/* CSS Design System for In Memoriam Automatizacija */

/* CSS Variables */
:root {
  --color-bg: #030305; /* Deep obsidian midnight black */
  --color-surface: #090a0f; /* Obsidian slate */
  --color-surface-hover: #10121a;
  --color-border: rgba(223, 197, 159, 0.12); /* Champagne gold border */
  --color-border-light: rgba(255, 255, 255, 0.04);
  --color-primary: #dfc59f; /* Luxury champagne gold */
  --color-primary-hover: #cca97c;
  --color-primary-light: rgba(223, 197, 159, 0.06);
  --color-text-main: #f8fafc; /* Slate 50 */
  --color-text-muted: #94a3b8; /* Slate 400 */
  --color-text-muted-light: #64748b; /* Slate 500 */
  --color-success: #10b981;
  --color-success-light: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b;
  --color-warning-light: rgba(245, 158, 11, 0.1);
  --color-danger: #ef4444;
  --color-danger-light: rgba(239, 68, 68, 0.1);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  
  --transition-fast: 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-normal: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 0 20px rgba(223, 197, 159, 0.15);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 6px;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Global Premium Glow Backgrounds */
.glow-bg {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  opacity: 0.08;
  z-index: -1;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}
.glow-bg-1 {
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: -15%;
  right: -10%;
}
.glow-bg-2 {
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%); /* Royal indigo glow */
  bottom: -15%;
  left: -10%;
  animation-delay: -6s;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.06;
  }
  100% {
    transform: scale(1.15) translate(3%, 2%);
    opacity: 0.10;
  }
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-text-main);
  font-weight: 500;
  letter-spacing: 0.02em;
}

p {
  color: var(--color-text-muted);
}

.accent {
  color: var(--color-primary);
}

.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.subtitle {
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Containers */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 60px 24px; /* Space for navbar */
  min-height: calc(100vh - 120px);
  flex: 1 0 auto;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(22, 24, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: var(--transition-fast);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  text-shadow: var(--shadow-gold);
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}
.partner-badge {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(197, 168, 128, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* View Sections */
.view-section {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BUTTONS */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #030305;
  box-shadow: 0 4px 14px rgba(223, 197, 159, 0.15);
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold), 0 8px 20px rgba(223, 197, 159, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  letter-spacing: 0.02em;
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(223, 197, 159, 0.35);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  letter-spacing: 0.02em;
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: #030305;
  box-shadow: var(--shadow-gold);
}
.btn-block {
  width: 100%;
  display: flex;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* FORMS */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}
.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(223, 197, 159, 0.1);
  background-color: rgba(255, 255, 255, 0.04);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dfc59f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(72%) sepia(17%) saturate(628%) hue-rotate(355deg) brightness(88%) contrast(85%); /* gold color #c5a880 */
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 4px;
  transition: var(--transition-fast);
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(197, 168, 128, 0.15);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* 1. AUTH CARD VIEW */
#auth-view {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #3b82f6 100%);
}
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}
.auth-logo-icon {
  font-size: 2.2rem;
  color: var(--color-primary);
  text-shadow: var(--shadow-gold);
  display: inline-block;
  margin-bottom: 12px;
}
.auth-header h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.auth-footer {
  margin-top: 25px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 0.8rem;
}

/* 2. DASHBOARD / STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.stat-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-fast);
}
.stat-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.stat-icon {
  font-size: 2.2rem;
  background-color: var(--color-primary-light);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-info h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 4px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

/* TABLE CARD */
.table-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th, .table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.table th {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background-color: rgba(255, 255, 255, 0.01);
}
.table tbody tr {
  transition: var(--transition-fast);
}
.table tbody tr:hover {
  background-color: var(--color-surface-hover);
}
.table tbody tr td:first-child {
  position: relative;
}
.table tbody tr td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-primary);
  opacity: 0;
  transition: var(--transition-fast);
}
.table tbody tr:hover td:first-child::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--color-primary);
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.empty-row td {
  padding: 50px 0;
  color: var(--color-text-muted);
}

/* STATUS BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}
.badge-draft {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
}
.badge-processing {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
  animation: pulse 1.5s infinite ease-in-out;
}
.badge-completed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}
.badge-failed {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* WIZARD BUILDER */
.wizard-container {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .wizard-container {
    padding: 24px;
  }
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  gap: 8px;
  flex: 1;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}
.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-align: center;
  transition: var(--transition-fast);
}
.progress-line {
  height: 2px;
  background-color: var(--color-border);
  flex: 1;
  margin-top: -24px; /* Align with circles */
  z-index: 1;
}
.progress-step.active .step-num {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}
.progress-step.active .step-label {
  color: var(--color-primary);
}
.progress-step.completed .step-num {
  border-color: var(--color-success);
  background-color: var(--color-success-light);
  color: var(--color-success);
}
.progress-step.completed .step-label {
  color: var(--color-success);
}

.card-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

/* WIZARD STEP 2 CONFIG */
.wizard-grid-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .wizard-grid-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Media Advisor Alert */
.adviser-box {
  background-color: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  align-items: flex-start;
  animation: collapseIn 0.3s ease-out;
}
.adviser-box.adviser-warning {
  background-color: var(--color-warning-light);
  border-color: rgba(245, 158, 11, 0.4);
}
.adviser-box.adviser-danger {
  background-color: var(--color-danger-light);
  border-color: rgba(239, 68, 68, 0.4);
}
.adviser-icon {
  font-size: 1.2rem;
  line-height: 1;
}

@keyframes collapseIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.count-bar {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
.count-badge {
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Image Moderation Box Styling */
.moderation-box {
  background-color: rgba(223, 197, 159, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 15px;
  animation: collapseIn 0.4s ease-out;
  width: 100%;
}
.moderation-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.moderation-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
}
.moderation-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .moderation-actions-grid {
    grid-template-columns: 1fr;
  }
}
.btn-success-filled {
  background-color: var(--color-success);
  color: #030305;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}
.btn-success-filled:hover {
  background-color: #0e9f6e;
  color: #030305;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
}
.btn-warning-filled {
  background-color: var(--color-primary);
  color: #030305;
  box-shadow: 0 4px 10px rgba(223, 197, 159, 0.15);
}
.btn-warning-filled:hover {
  background-color: var(--color-primary-hover);
  color: #030305;
  box-shadow: 0 6px 14px rgba(223, 197, 159, 0.25);
}
.moderation-status-notice {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  animation: collapseIn 0.3s ease-out;
  line-height: 1.4;
}
.moderation-status-notice.text-success {
  background-color: var(--color-success-light);
  border-left: 3px solid var(--color-success);
  color: var(--color-success) !important;
}
.moderation-status-notice.text-warning {
  background-color: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  color: var(--color-primary) !important;
}

/* DRAG & DROP ZONE */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.01);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.upload-zone:hover {
  border-color: var(--color-primary);
  background-color: rgba(197, 168, 128, 0.02);
}
.upload-zone.dragover {
  border-color: var(--color-success);
  background-color: var(--color-success-light);
}
.upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.upload-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
}
.upload-tip {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 80%;
}

.preview-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 15px;
}
.preview-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--color-border);
  position: relative;
}
.preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.preview-box img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.preview-divider {
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* AI LOADER ANIMATION */
.ai-loader-container {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}
.ai-loader-container p {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 10px;
}
.loading-detail {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(197, 168, 128, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 3. STEP 3: PACKAGES */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .package-grid {
    grid-template-columns: 1fr;
  }
}
.package-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}
.package-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.package-card h4 {
  font-size: 1.35rem;
  margin-bottom: 15px;
  margin-top: 8px;
  text-align: center;
}
.package-price {
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}
.original-price {
  font-size: 0.95rem;
  text-decoration: line-through;
  color: var(--color-text-muted);
}
.discounted-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-serif);
}
.package-features {
  list-style: none;
  margin-bottom: 30px;
  flex: 1;
}
.package-features li {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--color-text-main);
}
.package-features li:contains("✕") {
  color: var(--color-text-muted);
}
.premium-highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-gold);
  background-color: rgba(197, 168, 128, 0.02);
}
.package-card.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}
.bg-gold {
  background-color: var(--color-primary) !important;
}
.text-dark {
  color: var(--color-bg) !important;
}

/* CHECKOUT SUMMARY */
.checkout-box {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.checkout-box h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}
.checkout-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.checkout-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 20px 0;
}
.strike-text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}
.checkout-total {
  font-size: 1.25rem;
  font-weight: 700;
}
.checkout-total span:first-child {
  font-family: var(--font-serif);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--color-border);
  background-color: rgba(22, 24, 34, 0.5);
  padding: 30px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: auto;
}

/* TOAST / NOTIFICATION */
.notification-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  max-width: 380px;
}
.toast {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease-out forwards;
}
.toast-success { border-left-color: var(--color-success); }
.toast-error { border-left-color: var(--color-danger); }
.toast-message {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-main);
  padding-right: 20px;
}
.toast-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}
.toast-close:hover {
  color: var(--color-text-main);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Public Memorial View Specifics */
.memorial-body {
  background-color: #0f1015; /* Soft, restful dark grey */
  background-image: radial-gradient(circle at 50% 0%, #1c1d26 0%, #0f1015 100%);
}

.public-memorial-wrapper {
  max-width: 760px;
  padding-top: 40px;
}

.memorial-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.memorial-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
}

.memorial-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  position: relative;
}

.memorial-symbol-header {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  opacity: 0.95;
  font-size: 2.2rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.memorial-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 35px;
}

.portrait-frame {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  padding: 8px;
  box-shadow: var(--shadow-gold), inset 0 0 15px rgba(223, 197, 159, 0.1);
  margin-bottom: 24px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4);
  position: relative;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(223, 197, 159, 0.3);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  transition: var(--transition-normal);
}

.portrait-frame:hover img {
  transform: scale(1.05);
}

.deceased-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.deceased-dates {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.obituary-content {
  max-width: 600px;
  margin: 0 auto 35px auto;
  text-align: center;
}

.obituary-text-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.8;
  color: #e5e7eb;
  font-style: italic;
  font-weight: 400;
}

.obituary-footer-divider {
  text-align: center;
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 0.5em;
  margin-bottom: 30px;
  opacity: 0.5;
}

.share-box {
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 25px;
}

.share-box p {
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* CANDLE CARD SPECIFICS */
.candle-card {
  padding: 35px 20px;
}

.candle-wrapper {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

.candle-container {
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.candle-container:hover {
  transform: scale(1.05);
}

.candle-body-svg {
  display: block;
}

/* FLAME STRUCTURE AND ANIMATION */
.flame-container {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 30px;
  pointer-events: none;
}

.flame-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 30px;
  height: 30px;
  background-color: #ff9800;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.6;
}

.flame-main {
  position: absolute;
  top: 0;
  left: 3px;
  width: 14px;
  height: 24px;
  background: linear-gradient(to bottom, #fff8e1 0%, #ffeb3b 30%, #ff9800 60%, #f44336 100%);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  box-shadow: 0 0 10px #ffeb3b, 0 0 15px #ff9800;
  animation: flicker 0.15s ease-in-out infinite alternate;
}

.flame-inner {
  position: absolute;
  top: 10px;
  left: 7px;
  width: 6px;
  height: 10px;
  background-color: #2196f3;
  border-radius: 50%;
  opacity: 0.8;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-1deg); }
  100% { transform: scale(1.08) rotate(1.5deg); opacity: 0.95; }
}

.candle-count-display {
  font-size: 1rem;
  font-weight: 500;
}

.candle-count-display strong {
  color: var(--color-primary);
  font-size: 1.15rem;
}

/* GUESTBOOK CARD SPECIFICS */
.guestbook-card {
  padding: 40px 30px;
}

.condolence-form {
  margin: 24px 0 35px 0;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 30px;
}

.condolences-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.condolence-item {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  animation: slideInUp 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.condolence-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.6;
}

.condolence-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.condolence-meta strong {
  color: var(--color-primary);
}

.condolence-meta small {
  color: var(--color-text-muted);
}

.condolence-text {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

.empty-guestbook {
  text-align: center;
  color: var(--color-text-muted);
  padding: 30px 0;
}

@keyframes slideInUp {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Landing Page Specific Styling */
.landing-body {
  background-color: var(--color-bg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-primary);
}



/* FEATURES SECTION */
.section-title {
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card-large {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.feature-card-large:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.feature-badge-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--color-primary);
}

.feature-card-large h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* B2B BANNER */
.b2b-banner {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.1) 0%, rgba(22, 24, 34, 0.9) 100%);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 60px;
  box-shadow: var(--shadow-gold);
}

.b2b-banner-content h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.b2b-banner-content p {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .b2b-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

/* PUBLIC DIRECTORY */
.directory-search-wrapper {
  max-width: 600px;
  margin: 0 auto 40px auto;
}

#directory-search-input {
  width: 100%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  border-radius: 50px;
  padding: 16px 28px;
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

#directory-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .directory-grid { grid-template-columns: 1fr; }
}

.directory-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.directory-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.directory-portrait-frame {
  height: 220px;
  background-color: #0b0c10;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.directory-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: var(--transition-normal);
}

.directory-card:hover .directory-portrait-frame img {
  transform: scale(1.03);
}

.directory-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.directory-info h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.directory-years {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.funeral-details {
  background-color: rgba(255,255,255,0.01);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.85rem;
  display: flex;
  gap: 10px;
  line-height: 1.4;
  margin-top: auto;
}

.funeral-badge-icon {
  font-size: 1.2rem;
}

.text-gold {
  color: var(--color-primary);
  font-weight: 500;
}

.no-results {
  grid-column: 1 / -1;
  padding: 80px 0;
  color: var(--color-text-muted);
}

/* SPLIT SCREEN HERO SECTION */
.split-hero {
  position: relative;
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}

.split-panel {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 80px;
  box-sizing: border-box;
}

.panel-left {
  background-color: #cbc9c3;
  color: #121212;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-right {
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

/* Header typography on split screen */
.panel-header-text {
  text-align: left;
}

.panel-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #444444;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: 4px;
}

.panel-subtitle-desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #666666;
  margin: 0;
}

/* Split Nav Overlay */
.split-nav-overlay {
  position: absolute;
  top: 60px;
  right: 80px;
  display: flex;
  gap: 32px;
  z-index: 12;
}

.split-nav-overlay a {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: var(--transition-fast);
}

.split-nav-overlay a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* 3D Wooden frame */
.wooden-frame-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.wooden-frame {
  position: relative;
  background-color: #1a1a1a;
  padding: 10px;
  max-width: 320px;
  width: 100%;
  border: 14px solid #cbb493;
  border-image: linear-gradient(135deg, #e5d7c3 0%, #cbb493 40%, #a48c6f 70%, #826c54 100%) 14;
  box-shadow: 
    inset 0 0 15px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  transform: rotate(-1deg);
  transition: transform 0.4s ease;
}

.wooden-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.wooden-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* Overlapping Title text on split boundary */
.posle-overlap-text {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-5%);
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
  pointer-events: none;
  z-index: 5;
  letter-spacing: -0.02em;
}

/* Panel Footer typography */
.panel-footer-text {
  max-width: 380px;
}

.hero-serif-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.panel-left .hero-serif-title {
  color: #121212;
}

.panel-right .hero-serif-title {
  color: #ffffff;
}

.panel-subtitle-light {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-desc-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.panel-left .hero-desc-text {
  color: #333333;
}

.panel-right .hero-desc-text {
  color: rgba(255, 255, 255, 0.75);
}

.panel-footer-text.text-right {
  align-self: flex-end;
  text-align: right;
}

/* Mix Blend Mode CTA on Split Line */
.split-cta-container {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  z-index: 15;
}

.split-cta-btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  mix-blend-mode: difference;
}

.split-cta-btn:hover {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* Landing specific slide-down navbar */
.landing-body .navbar {
  transform: translateY(-101%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-body .navbar.navbar-scrolled {
  transform: translateY(0);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 900px) {
  .split-hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  
  .split-panel {
    flex: none;
    width: 100%;
    height: auto;
    padding: 60px 24px;
    align-items: center;
    text-align: center;
  }
  
  .panel-left {
    padding-top: 100px;
  }
  
  .panel-right {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .wooden-frame-container {
    margin: 30px auto;
    max-width: 260px;
  }
  
  .posle-overlap-text {
    position: static;
    transform: none;
    font-size: 3.5rem;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    color: #ffffff;
    display: none;
  }
  
  .panel-footer-text {
    max-width: 100%;
  }
  
  .panel-footer-text.text-right {
    align-self: center;
    text-align: center;
  }
  
  .split-nav-overlay {
    display: none;
  }
  
  .split-cta-container {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    padding: 40px 24px;
    width: 100%;
    text-align: center;
    background-color: #cbc9c3;
    display: flex;
    justify-content: center;
  }
  
  .split-cta-btn {
    mix-blend-mode: normal;
    border-color: #121212;
    color: #121212;
    background-color: transparent;
    width: 100%;
    max-width: 320px;
  }
  
  .split-cta-btn:hover {
    background-color: #121212;
    color: #cbc9c3;
    box-shadow: none;
  }
  
  .hero-serif-title {
    font-size: 3.2rem;
  }
}

/* B2B Dashboard Tabs & Modal Styles */
.dashboard-tabs .tab-btn {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-fast);
}

.dashboard-tabs .tab-btn.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(223, 197, 159, 0.3);
  box-shadow: var(--shadow-gold);
}

.dashboard-tabs .tab-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--color-text-main);
}

/* Modal Overlay & Modal Box */
.modal-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 550px;
  padding: 35px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Image Crop Modal */
.crop-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 5, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.crop-modal-content {
  background: var(--color-surface, #090a0f);
  border: 1px solid var(--color-border, rgba(223, 197, 159, 0.12));
  border-radius: var(--radius-lg, 16px);
  width: 100%;
  max-width: 550px;
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  display: flex;
  flex-direction: column;
}

.crop-modal.show {
  display: flex;
}

/* B2B Partner Registration & Profile Layouts */
@media (min-width: 992px) {
  .profile-grid-layout {
    grid-template-columns: 2fr 1fr !important;
  }
}

.b2b-billing-summary {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Form responsiveness for registration */
@media (max-width: 576px) {
  #register-form {
    grid-template-columns: 1fr !important;
  }
  #register-form > div {
    grid-column: span 1 !important;
  }
}

/* B2B Admin Dashboard Styles */
.admin-badge {
  background-color: #dfc59f !important;
  color: #000 !important;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.settings-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 15px;
}

@media (min-width: 992px) {
  .settings-grid-layout {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Modal form inputs specific sizing */
#admin-partner-form input,
#admin-partner-form select,
#admin-booking-form input,
#admin-booking-form select,
#admin-retouch-form input,
#admin-retouch-form select {
  width: 100%;
}

@media (max-width: 576px) {
  #admin-partner-form,
  #admin-booking-form {
    grid-template-columns: 1fr !important;
  }
  #admin-partner-form > div,
  #admin-booking-form > div {
    grid-column: span 1 !important;
  }
}

/* ============================================
   ADMIN NOTIFICATION BADGE & QUICK-ACCESS
   ============================================ */

/* Notification bell wrapper */
.notif-bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: 8px;
}

.notif-bell-btn {
  background: none;
  border: 1px solid rgba(223, 197, 159, 0.2);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.notif-bell-btn:hover {
  background: rgba(223, 197, 159, 0.1);
  border-color: rgba(223, 197, 159, 0.4);
  transform: scale(1.1);
}

.notif-bell-btn.has-pending {
  border-color: #f59e0b;
  animation: bellRing 2s ease-in-out infinite;
}

/* Badge count bubble */
.notif-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  animation: badgePulse 1.5s ease-in-out infinite;
}

.notif-badge-count.hidden {
  display: none;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.15); box-shadow: 0 0 14px rgba(239, 68, 68, 0.8); }
}

@keyframes bellRing {
  0%, 85%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(12deg); }
  91% { transform: rotate(-12deg); }
  94% { transform: rotate(8deg); }
  97% { transform: rotate(-6deg); }
}

/* Quick-access panel (dropdown from bell) */
.notif-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: var(--color-surface, #111420);
  border: 1px solid rgba(223, 197, 159, 0.2);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  min-width: 340px;
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 150;
  padding: 0;
}

.notif-dropdown.visible {
  display: block;
  animation: slideInDown 0.2s ease-out;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(223, 197, 159, 0.1);
  font-family: 'Cormorant Garamond', serif;
}

.notif-dropdown-header h4 {
  margin: 0;
  font-size: 17px;
  color: var(--color-primary, #dfc59f);
  font-weight: 600;
}

.notif-dropdown-header .notif-count-label {
  font-size: 12px;
  color: var(--color-text-muted, #94a3b8);
  font-family: 'Inter', sans-serif;
}

.notif-dropdown-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--color-text-muted, #94a3b8);
  font-size: 13px;
}

.notif-dropdown-empty .notif-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
  opacity: 0.5;
}

/* Individual notification items */
.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(223, 197, 159, 0.06);
  cursor: pointer;
  transition: background 0.2s ease;
}

.notif-item:hover {
  background: rgba(223, 197, 159, 0.06);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-meta {
  font-size: 11px;
  color: var(--color-text-muted, #94a3b8);
  margin-top: 2px;
}

.notif-item-action {
  flex-shrink: 0;
}

.notif-item-action .btn {
  font-size: 11px;
  padding: 4px 10px;
}

/* Quick-access banner inside obituaries tab */
.admin-pending-banner {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(234, 88, 12, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

.admin-pending-banner.visible {
  display: flex;
}

.admin-pending-banner .pending-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.admin-pending-banner .pending-info {
  flex: 1;
}

.admin-pending-banner .pending-info strong {
  color: #f59e0b;
  font-size: 14px;
}

.admin-pending-banner .pending-info p {
  font-size: 12px;
  color: var(--color-text-muted, #94a3b8);
  margin: 2px 0 0;
}

.admin-pending-banner .btn-process-first {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-pending-banner .btn-process-first:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Print Obituary Preview (A4 Plakat Format) */
.print-preview-card.a4-format {
  background-color: #ffffff !important; /* Force classic white newspaper background */
  color: #121212 !important; /* Force near-black text to match obituary.html */
  border: 12px solid #000000; /* Thick black border for authentic look */
  padding: 0 !important; /* No padding so columns touch edges */
  margin-top: 15px;
  width: 100%;
  max-width: 680px; /* Wider for landscape */
  aspect-ratio: 1.414 / 1; /* A4 Landscape aspect ratio */
  box-sizing: border-box;
  font-family: 'Inter', sans-serif; /* Use Inter as base font */
  box-shadow: 0 10px 35px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: row; /* Split screen landscape */
  align-items: stretch;
  border-radius: 8px; /* Subtle rounded corners to match other cards */
  overflow: hidden;
}

.print-preview-left {
  width: 50%;
  height: 100%;
  background-color: #eee;
  display: flex;
  overflow: hidden;
}

.print-preview-left .print-preview-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.print-preview-right {
  width: 50%;
  padding: 40px 48px; /* Matched to px-12 py-16 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Left-aligned text content */
  text-align: left; /* Left-aligned */
  background-color: #ffffff;
}

.print-preview-symbol {
  font-size: 2.2rem;
  font-weight: bold;
  color: #121212 !important;
  margin-bottom: 15px;
  line-height: 1;
  font-family: 'Playfair Display', Georgia, serif;
}

.print-preview-intro {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #121212 !important;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}

.print-preview-name {
  font-size: 2.2rem; /* Matches text-5xl */
  font-weight: bold;
  color: #121212 !important;
  text-transform: uppercase;
  margin: 6px 0;
  letter-spacing: 1px;
  font-family: 'Playfair Display', Georgia, serif;
}

.print-preview-years {
  font-size: 1.25rem; /* Matches text-headline-sm */
  color: #121212 !important;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-family: 'Playfair Display', Georgia, serif;
}

.print-preview-text {
  font-size: 0.85rem; /* Matches text-body-lg */
  line-height: 1.5;
  color: #121212 !important;
  margin-bottom: 16px;
  word-wrap: break-word;
  white-space: pre-line;
  max-width: 100%;
  font-family: 'Inter', sans-serif;
}

.print-preview-ceremony {
  font-size: 0.85rem; /* Matches text-body-lg */
  font-weight: 600; /* Semibold */
  line-height: 1.5;
  color: #121212 !important;
  border-top: none; /* Removed dashed borders */
  border-bottom: none;
  padding: 0;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.print-preview-mourners {
  font-size: 0.8rem;
  font-weight: normal;
  color: #121212 !important;
  line-height: 1.5;
  width: 100%;
  margin-top: auto; /* Push to bottom */
  border-top: 1px solid rgba(18, 18, 18, 0.15); /* Subtle dark border-t */
  padding-top: 16px;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-style: italic;
}

/* MOBILE NATIVE APP OPTIMIZATIONS */
@media (max-width: 768px) {
  /* Prevent horizontal layout overflow */
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .content-wrapper {
    padding: 85px 16px 40px 16px; /* Symmetrical, smaller spacing on mobile */
  }

  /* Compact Navbar */
  .logo-text {
    font-size: 1.1rem !important;
  }
  .logo-text .accent {
    display: none !important; /* Hide 'Automatizacija' to save screen width */
  }
  .partner-badge {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
    max-width: 90px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .nav-container {
    padding: 12px 16px !important;
    gap: 8px !important;
  }
  .user-profile {
    gap: 8px !important;
  }

  /* Hide the top dashboard tabs since we have the bottom nav bar! */
  .dashboard-tabs {
    display: none !important;
  }

  /* Collapse inline-styled 2-column and 3-column grids into single column */
  #register-form,
  .settings-grid-layout,
  #global-billing-details-form,
  #profile-billing-form,
  #admin-partner-form,
  #admin-booking-form {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* Compact cards */
  .auth-card {
    padding: 24px 16px !important;
  }

  .content-wrapper {
    padding-bottom: 90px !important; /* Extra padding for bottom nav */
  }
  
  .mobile-bottom-nav {
    display: flex !important;
  }
}

/* BOTTOM NAVBAR (MOBILE/APK ONLY) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background-color: rgba(18, 20, 20, 0.98); /* dark surface color matching style.css */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(212, 175, 55, 0.3); /* border-gold-low */
  justify-content: space-around;
  align-items: stretch; /* Stretch children vertically to fill the bar */
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  padding: 0; /* Remove padding to maximize clickable target area */
  box-sizing: border-box;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #94a3b8);
  text-decoration: none;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  gap: 3px;
  width: 25%; /* 4 tabs = exactly 25% width each */
  height: 100%; /* Take 100% of the bar's height */
  transition: all 0.2s ease;
  opacity: 0.6;
  box-sizing: border-box;
}

.mobile-nav-item.active {
  color: var(--color-primary, #dfc59f); /* accent-gold theme */
  opacity: 1;
  transform: scale(1.05);
}

.mobile-nav-icon {
  font-size: 20px;
}

.mobile-nav-label {
  font-weight: 500;
}

body.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
}
