/**
 * einfachladen.com - Variant B Styles
 * Mobile-First Optimized Design
 */

/* ============================================
   RESET & BASE - Mobile First
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors - Fresh Green */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --text: #1d1d1f;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  
  /* Spacing - Optimized for Mobile */
  --space-xs: 0.375rem;   /* 6px */
  --space-sm: 0.625rem;   /* 10px */
  --space-md: 0.875rem;   /* 14px */
  --space-lg: 1.125rem;   /* 18px */
  --space-xl: 1.5rem;     /* 24px */
  
  /* Border Radius */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   CONTAINER & LAYOUT SYSTEM
   ============================================ */
.container,
.section-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container,
  .section-container {
    padding: 0 2rem;
  }
}

/* Section Spacing */
main > section {
  padding: 4rem 0;
  width: 100%;
}

@media (max-width: 767px) {
  main > section {
    padding: 2.5rem 0;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

/* ============================================
   HEADER - Sticky & Clean
   ============================================ */
header {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0.3rem 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:active {
  transform: scale(0.98);
}

.brand-badge {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.brand-badge svg,
.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  letter-spacing: -0.02em;
}

.brand-text-light {
  font-weight: 500;
  color: var(--text);
}

.brand-text-bold {
  font-weight: 700;
  color: var(--text);
}

.brand-text-tld {
  font-size: 0.7em;
  color: rgba(0,0,0,0.4);
  font-weight: 500;
  margin-left: 1px;
}

@media (min-width: 768px) {
  .brand-badge {
    width: 80px;
    height: 80px;
  }
  
  .brand-text {
    font-size: 1.6rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  display: block;
  padding: 0.9rem 0 var(--space-lg);
  text-align: left;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  width: 100%;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--space-sm);
  text-align: left;
}

@media (min-width: 900px) {
  .hero {
    padding: 2.5rem 0 3.5rem;
    text-align: center;
  }
  
  .hero h1 {
    text-align: center;
    margin-bottom: var(--space-xl);
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero .container > * {
    width: 100%;
    max-width: 1000px;
  }

  .hero .container > .benefit-card {
    max-width: 900px;
  }

  .hero .container > .priority-access {
    max-width: 980px;
  }
  
  .hero-line1 {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-line2 {
    font-size: 3.5rem;
    margin-bottom: var(--space-xl);
  }
}

.hero-line1 {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-line2 {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #14532d 0%, #10b981 60%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: var(--space-sm);
}

/* How It Works - Clean Horizontal Layout */
.how-it-works {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  background: transparent;
  padding: 0;
  margin: var(--space-md) 0 var(--space-md);
  max-width: 100%;
  width: 100%;
}

@media (min-width: 900px) {
  .how-it-works {
    justify-content: center;
    max-width: 900px;
    margin: var(--space-lg) auto var(--space-xl);
  }

  .how-it-works {
    flex-wrap: nowrap;
    gap: 0;
  }

  .work-step {
    min-width: 0;
  }

  .benefit-card,
  .priority-access {
    width: 100%;
  }
}

.work-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.4rem;
  position: relative;
  gap: 0.65rem;
  min-width: 0;
}

.work-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(0,0,0,0.08);
}

.step-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  border: none;
  color: var(--primary);
  box-shadow: none;
}

.step-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.step-content {
  width: 100%;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Benefit Card (Checklist Box) */
.benefit-card {
  background: #F9FAFB;
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  margin: var(--space-md) 0 var(--space-lg);
  max-width: 100%;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

@media (min-width: 900px) {
  .benefit-card {
    max-width: 700px;
    margin: var(--space-xl) auto;
    padding: 1.75rem 2.5rem;
  }
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
}

.benefit-list strong {
  font-weight: 700;
}

.check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #1d1d1f;
}

@media (min-width: 768px) {
  .benefit-card {
    padding: 1.25rem 2rem;
    max-width: 650px;
  }
  
  .benefit-list {
    gap: 0.75rem;
  }
  
  .benefit-list li {
    font-size: 1.1rem;
    white-space: normal;
  }
  
  .check-icon {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   PRIORITY ACCESS - Premium CTA
   ============================================ */
.priority-access {
  margin: 0 auto var(--space-xl);
  max-width: 720px;
  padding: 0 0.5rem;
}

.priority-access-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-radius: 24px;
  padding: 2.25rem 2.5rem 2.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14),
              0 8px 24px rgba(15, 23, 42, 0.08),
              0 1px 2px rgba(15, 23, 42, 0.08);
}

.priority-access-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 50%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 55%);
  pointer-events: none;
}

.priority-access-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.priority-access-card > * {
  position: relative;
  z-index: 1;
}

.priority-access-card::before,
.priority-access-card::after {
  z-index: 0;
}

.priority-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #0f5132;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}

.priority-title {
  margin: 1rem 0 0.6rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.priority-subtitle {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 1.4rem;
  letter-spacing: -0.01em;
}

.priority-subtitle strong {
  font-weight: 700;
}

.btn-priority {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #111827 0%, #0f172a 50%, #14532d 100%);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.32),
              0 6px 18px rgba(20, 83, 45, 0.28);
  text-decoration: none;
}

.btn-priority:active {
  transform: scale(0.98);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.btn-priority svg {
  transition: transform 0.3s ease;
}

.btn-priority:hover svg {
  transform: translateX(3px);
}

.priority-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .priority-access-card {
    padding: 2.25rem 1.5rem;
  }

  .priority-title {
    font-size: 1.6rem;
  }
}

/* ============================================
   PRIORITY ACCESS MODAL
   ============================================ */
.priority-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start; /* Start from top for scrolling */
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
  overflow-y: auto; /* Enable backdrop scrolling */
  -webkit-overflow-scrolling: touch;
}

.priority-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.priority-modal {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
  margin: auto; /* Center vertically when it fits */
}

.priority-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 55%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 60%);
  pointer-events: none;
}

.priority-modal::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

#authModal .priority-modal {
  background: #ffffff;
}

#authModal .priority-modal::before,
#authModal .priority-modal::after {
  content: none;
}

.priority-modal-backdrop.is-open .priority-modal {
  transform: translateY(0) scale(1);
}

.priority-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.priority-modal-close:hover {
  background: rgba(15, 23, 42, 0.12);
  color: var(--text);
}

.priority-modal-content {
  padding: 2.75rem 2.5rem 2.25rem;
  position: relative;
  z-index: 1;
}

.booking-modal {
  max-width: 640px;
  margin: auto; /* Center vertically when it fits */
  position: relative;
}

.booking-modal-content {
  /* Removed max-height constraints */
}

.booking-modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.booking-progress {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.booking-progress-steps {
  display: flex;
  gap: 0.5rem;
}

.booking-progress-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.booking-progress-step.is-active {
  background: rgba(16, 185, 129, 0.18);
  color: #0f5132;
}

.booking-progress-step.is-complete {
  background: var(--primary);
  color: white;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.booking-date-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem; /* avoid iOS zoom and align with native controls */
  color: #0f172a;
  background: #ffffff;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
  min-height: 42px; /* Ensure sufficient touch target */
  background-clip: padding-box;
}

.booking-date-input:focus {
  outline: none;
  border-color: #94a3b8;
}

/* iOS/Safari date input normalization */
.booking-date-input::-webkit-date-and-time-value {
  text-align: left;
  color: #0f172a;
  min-height: 1.2em; /* Ensure value is visible */
}

.booking-date-input::-webkit-datetime-edit {
  padding: 0;
}

/* Hide the browser's native date input placeholder text */
.booking-date-input::-webkit-datetime-edit-text,
.booking-date-input::-webkit-datetime-edit-month-field,
.booking-date-input::-webkit-datetime-edit-day-field,
.booking-date-input::-webkit-datetime-edit-year-field {
  color: transparent;
}

/* Show the actual value when filled */
.booking-date-input:valid::-webkit-datetime-edit-text,
.booking-date-input:valid::-webkit-datetime-edit-month-field,
.booking-date-input:valid::-webkit-datetime-edit-day-field,
.booking-date-input:valid::-webkit-datetime-edit-year-field {
  color: #0f172a;
}

.booking-date-input::-webkit-calendar-picker-indicator {
  opacity: 0; /* Hide native icon, use custom one */
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%; /* Make entire input clickable for the picker */
  height: 100%;
}

.booking-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.booking-step.is-active {
  display: flex;
}

.booking-time-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-time-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.15rem;
  border-radius: 16px;
  border: 2px solid rgba(15, 23, 42, 0.08);
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.booking-time-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
}

.booking-time-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.booking-time-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.booking-time-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.booking-time-card-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.booking-time-card-value:not(:has(span)) {
  color: var(--text-secondary);
  font-weight: 500;
}

.booking-time-card-arrow {
  flex-shrink: 0;
  color: var(--text-secondary);
  opacity: 0.5;
  transition: all 0.2s ease;
}

.booking-time-card:hover .booking-time-card-arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--primary);
}

.booking-time-card.has-value {
  border-color: #0f172a;
  background: #ffffff;
}

.booking-time-card.has-value .booking-time-card-icon {
  background: #ffffff;
  color: #0f172a;
}

.booking-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.booking-time-sheet {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;
}

.booking-time-sheet.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-time-sheet-content {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.booking-time-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.booking-time-sheet-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.booking-time-sheet-close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.booking-time-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.booking-time-sheet-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  padding: 1rem 0.5rem;
}

.booking-slot {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: white;
  border-radius: 12px;
  padding: 0.85rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-slot:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.12);
}

.booking-slot.is-selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--primary);
  color: #0f5132;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.btn-secondary {
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: white;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* Booking Summary V2 – Overrides / fallback from style.css */
.booking-summary-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.booking-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

.priority-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.priority-modal-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #0f5132;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
}

.priority-modal-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.priority-modal-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.priority-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.priority-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.priority-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.priority-field input {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
}

.priority-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.btn-priority-submit {
  width: 100%;
  padding: 0.95rem 1.4rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #111827 0%, #0f172a 50%, #14532d 100%);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28),
              0 6px 18px rgba(20, 83, 45, 0.24);
}

.btn-priority-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.priority-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.2rem;
}

.priority-legal a {
  color: var(--primary-dark);
  text-decoration: none;
}

@media (max-width: 767px) {
  .priority-modal-content {
    padding: 2.25rem 1.5rem 1.75rem;
  }

  .booking-slot-grid {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-secondary,
  .booking-actions .btn-priority-submit {
    width: 100%;
    justify-content: center;
  }

  .booking-time-card {
    padding: 1rem 0.85rem;
  }

  .booking-time-card-icon {
    width: 40px;
    height: 40px;
  }

  .booking-time-card-value {
    font-size: 1rem;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 2px 12px rgba(16,185,129,0.25), 0 8px 24px rgba(16,185,129,0.15);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(16,185,129,0.35), 0 12px 32px rgba(16,185,129,0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text);
  background: rgba(252,255,254,0.84);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(31,220,188,0.25);
}

.btn-ghost:hover {
  background: rgba(252,255,254,0.94);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* ============================================
   CARDS
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: rgba(254,255,254,0.94);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(31,220,188,0.15);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(31,220,188,0.25);
}

.card h3 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Details (FAQ) */
details {
  cursor: pointer;
}

details summary {
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  transition: color 0.2s ease;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "→";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s ease;
  color: var(--primary);
  font-weight: 700;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details:hover summary {
  color: var(--primary);
}

details p {
  margin-top: 12px;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.liquid-title {
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 0 32px;
}

main > section.liquid-section > h2.liquid-title {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 4rem;
}

@media (max-width: 768px) {
  .liquid-title {
    padding: 0 20px;
  }
  
  main > section.liquid-section > h2.liquid-title {
    padding-left: 2.5rem;
  }
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding: 0 32px;
  margin-bottom: 2rem;
}

.payment-badges {
  padding: 0 32px;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .trust-grid,
  .payment-badges {
    padding: 0 20px;
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.rating-stars {
  font-size: 1.2rem;
  color: #F59E0B;
  line-height: 1;
}

.trust-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   WHY SECTION - Feature Grid
   ============================================ */
.liquid-section {
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.liquid-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.liquid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.liquid-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.liquid-card:active {
  transform: scale(0.98);
}

.liquid-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--primary-dark);
}

.liquid-icon svg {
  width: 24px;
  height: 24px;
}

.liquid-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.liquid-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .liquid-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 900px) {
  .liquid-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .liquid-section h2 {
    font-size: 2.5rem;
    text-align: center;
  }
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
  padding: var(--space-xl) 0;
  background: white;
}

.pricing-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 auto var(--space-lg);
  max-width: max-content;
}

.pricing-hero {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pricing-item {
  text-align: center;
  padding: 32px;
  background: rgba(254,255,254,0.94);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(31,220,188,0.15);
  border-radius: 24px;
  flex: 1;
  min-width: 200px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.pricing-item:hover {
  background: rgba(254,255,254,0.95);
  border-color: rgba(31,220,188,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pricing-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.pricing-currency {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-amount {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-value-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
}

.pricing-unit {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.85;
  flex-shrink: 0;
}

.pricing-divider {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.6;
}

.pricing-note {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  padding: 16px;
  background: rgba(31,220,188,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(31,220,188,0.1);
  border-radius: var(--radius);
  line-height: 1.5;
}

.pricing-note svg {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.8;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-row .btn {
  min-width: 180px;
}

.payment-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}

.payment-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.payment-badge svg {
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: var(--space-lg) 0;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

footer p {
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

footer a:active {
  color: white;
}

@media (min-width: 640px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Form Message */
.form-message {
  margin-top: var(--space-sm);
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
  text-align: center;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 2px solid #EF4444;
}

.form-message.info {
  display: block;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 2px solid rgba(59, 130, 246, 0.35);
}

/* Confetti */
.confetti-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: sparkleRise 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sparkleRise {
  0% { 
    transform: translate(0, 0) scale(0); 
    opacity: 0; 
  }
  25% { 
    opacity: 1; 
    transform: translate(var(--tx), var(--ty)) scale(1); 
  }
  100% { 
    opacity: 0; 
    transform: translate(var(--tx), calc(var(--ty) - 40px)) scale(0); 
  }
}

/* ============================================
   MOBILE SECTION SPACING OPTIMIZATIONS
   ============================================ */
@media (max-width: 767px) {
  .section-container {
    padding: 2rem 0.75rem !important;
  }

  header {
    padding: 0.05rem 0;
  }

  .brand-badge {
    width: 64px;
    height: 64px;
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .hero {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
  }
  
  main > section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .liquid-section {
    padding: 2rem 0 !important;
  }
  
  section h2 {
    margin-bottom: 1.25rem !important;
    font-size: 1.6rem !important;
  }
  
  .cards {
    gap: 0.875rem !important;
  }
  
  .card {
    padding: 1rem !important;
  }
  
  .liquid-grid {
    gap: 1rem !important;
  }
  
  .liquid-card {
    padding: 1.25rem !important;
  }
  
  .trust-grid {
    gap: 1rem !important;
  }
  
  .pricing-hero {
    padding: 1.25rem !important;
  }
  
  .pricing-content {
    margin-bottom: 1.25rem !important;
  }
  
  .cta-row {
    gap: 0.75rem !important;
    margin-top: 1.25rem !important;
  }
  
  .payment-badges {
    margin-top: 1rem !important;
  }
  
  .footer {
    padding: 1.5rem 0 !important;
  }

  .how-it-works {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
  }

  .work-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.2rem;
    gap: 0.5rem;
    min-width: 0;
  }

  .work-step:not(:last-child)::after {
    display: block;
    top: 15%;
    height: 70%;
  }

  .step-content h3 {
    font-size: 0.95rem;
  }

  .step-content p {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .benefit-list li {
    white-space: normal;
    align-items: center;
  }

  .benefit-list li {
    font-size: 0.92rem;
  }

  .benefit-card {
    margin-top: 2.25rem;
  }
}

/* ============================================
   RESPONSIVE OPTIMIZATIONS
   ============================================ */
@media (min-width: 390px) and (max-width: 767px) {
  .hero-line1,
  .hero-line2 {
    font-size: 2.2rem;
  }
  
  .step-icon {
    width: 56px;
    height: 56px;
  }
  
  .step-icon img {
    width: 34px;
    height: 34px;
  }
  
  .step-content h3 {
    font-size: 1.1rem;
  }
  
  .step-content p {
    font-size: 1rem;
  }
  
  .benefit-list li {
    font-size: 1.05rem;
  }
  
  .check-icon {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 389px) {
  .hero-line1 {
    font-size: 1.7rem;
  }
  
  .hero-line2 {
    font-size: 1.7rem;
  }
  
  .step-icon {
    width: 46px;
    height: 46px;
  }
  
  .step-icon img {
    width: 28px;
    height: 28px;
  }
  
  .step-content h3 {
    font-size: 0.95rem;
  }
  
  .step-content p {
    font-size: 0.85rem;
  }
  
  .benefit-list li {
    font-size: 0.92rem;
  }
  
  .check-icon {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 768px) {
  :root {
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }
  
  .hero {
    padding: 2rem 0 var(--space-xl);
  }
  
  .hero h1 {
    margin-bottom: var(--space-md);
  }
  
  .hero-line1 {
    font-size: 3rem;
    margin-bottom: 0.6rem;
  }
  
  .hero-line2 {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
  }

  .how-it-works {
    margin: var(--space-lg) auto var(--space-lg);
    padding: 0;
    max-width: 750px;
  }
  
  .work-step {
    padding: 0 1.25rem;
    gap: 1rem;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
  }
  
  .step-icon img {
    width: 36px;
    height: 36px;
  }
  
  .step-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
  }
  
  .step-content p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media (min-width: 900px) {
  main > section .section-container {
    max-width: 1140px;
    padding: 0 2rem;
  }
  
  main > section.liquid-section {
    padding: 4rem 0;
  }
  
  .pricing-hero {
    max-width: 100%;
    padding: 0;
  }

  main > section.liquid-section > h2,
  main > section.liquid-section > p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .liquid-grid {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  section h2 {
    text-align: center;
    margin-bottom: 3rem;
  }

  .cards {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .trust-grid {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .priority-access {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  .priority-access-card {
    width: 100%;
    padding: 2.75rem 3.5rem 2.9rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   AUTHENTICATION STYLES
   ============================================ */

/* Header Auth Container */
#auth-container {
  margin-left: auto;
}

/* Standardized Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  gap: 1rem;
}

.site-header .header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #0f172a;
}

@media (min-width: 768px) {
  .site-header .header-brand {
    margin-left: -1rem;
  }
}

.site-header .brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* width: 3rem; removed */
  /* height: 3rem; removed */
}

.site-header .brand-badge svg {
  width: 2.25rem;
  height: 2.25rem;
}

.site-header .brand-text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .site-header .header-inner {
    gap: 0.75rem;
  }
  .site-header .header-brand {
    min-width: 0;
    gap: 0; /* reduced from 0.2rem to 0 */
  }
  .site-header .brand-text {
    font-size: 0.9rem;
  }
  .site-header .auth-buttons,
  .site-header .auth-user-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }
  .site-header .auth-buttons a,
  .site-header .auth-user-info .btn-logout {
    min-width: 72px;
    padding: 0.38rem 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
  }
  .site-header .auth-buttons a.btn-login {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    background: #ffffff;
  }
  .site-header .auth-user-info .auth-user-trigger {
    min-width: auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }
  .site-header .auth-buttons a.btn-register {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  }
  .site-header .auth-user-menu {
    min-width: 180px;
  }
}

/* Auth Buttons Container */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login,
.btn-register {
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-register {
  background: #0f172a;
  color: white;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.btn-register:hover {
  background: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.btn-register:active {
  transform: scale(0.98);
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-user-dropdown {
  position: relative;
}

.auth-user-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid rgba(30, 58, 138, 0.15);
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: inherit;
  text-decoration: none;
}

.auth-user-trigger:hover {
  background: #1e40af;
  border-color: rgba(30, 58, 138, 0.25);
}

.auth-user-trigger:active {
  transform: scale(0.97);
}

.auth-user-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  user-select: none;
}

.auth-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 200px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  padding: 0.35rem;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.auth-user-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.auth-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-menu-item svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.auth-menu-item:hover {
  background: #f8fafc;
}

.auth-menu-item.logout {
  color: #b91c1c;
}

.auth-menu-item.logout svg {
  color: #b91c1c;
}

.auth-menu-header {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem 0.35rem;
}

.auth-menu-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.auth-menu-email {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
}

.auth-menu-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0.2rem 0.5rem;
}

.btn-logout {
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-logout:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-logout:active {
  transform: scale(0.97);
}

/* Auth Modal Specific Styles */
.auth-modal-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.auth-modal-divider::before,
.auth-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

/* Google Sign-In Button */
.btn-google {
  width: 100%;
  padding: 0.95rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: white;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-google:active {
  transform: scale(0.98);
}

.btn-google svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Email Auth Button */
.btn-email-auth {
  width: 100%;
  padding: 0.95rem 1.4rem;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-email-auth:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-email-auth:active {
  transform: scale(0.98);
}

.btn-email-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Auth Modal Header adjustments */
.auth-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-modal-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.auth-modal-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Profile Modal */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}

.profile-actions .btn-priority-submit {
  flex: 1;
  justify-content: center;
}

.btn-danger {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: #fff5f5;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.6);
}

.btn-danger:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.profile-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .profile-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* Loading State for Auth Buttons */
.btn-google.loading,
.btn-email-auth.loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

    /* Success Message in Auth Context */
    .auth-success-message {
      padding: 1rem;
      border-radius: 12px;
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid var(--primary);
      color: var(--primary-dark);
      font-size: 0.9rem;
      text-align: center;
      margin-top: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    /* Auth Tabs */
    .auth-tabs {
      display: flex;
      gap: 0;
      border-bottom: 2px solid rgba(0, 0, 0, 0.06);
      margin-bottom: 1.5rem;
    }

.auth-tabs-modal {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0.12rem;
  margin-bottom: 1.25rem;
}

    .auth-tab {
      flex: 1;
      padding: 0.85rem 1rem;
      background: none;
      border: none;
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-secondary);
      cursor: pointer;
      border-bottom: 3px solid transparent;
      margin-bottom: -2px;
      transition: all 0.2s ease;
    }

.auth-tab-modal {
  border-radius: 10px;
  padding: 0.32rem 0.8rem;
  font-size: 0.88rem;
  border-bottom: none;
  margin-bottom: 0;
  color: #64748b;
}

    .auth-tab:hover {
      color: var(--text);
    }

    .auth-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }

.auth-tabs-modal .auth-tab-modal.active {
  color: #ffffff !important;
  background: #0f172a !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.auth-tabs-modal .auth-tab-modal.active svg {
  color: #ffffff !important;
  fill: currentColor;
}

    /* Password Toggle */
    .password-wrapper {
      position: relative;
    }

    .password-wrapper input {
      width: 100%;
      padding-right: 3rem;
    }

    .password-toggle-btn {
      position: absolute;
      right: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-secondary);
      cursor: pointer;
      padding: 0.25rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .password-toggle-btn:hover {
      color: var(--text);
    }

    /* Auth Options */
    .auth-options {
      display: flex;
      justify-content: flex-end;
  margin-top: 0;
  margin-bottom: 0;
    }

    .btn-text-link {
      background: none;
      border: none;
      color: var(--primary);
      font-size: 0.85rem;
      cursor: pointer;
      padding: 0;
      text-decoration: underline;
      font-weight: 500;
    }

    .btn-text-link:hover {
      color: var(--primary-dark);
    }

.auth-legal {
  margin-top: 0.6rem;
}

/* ============================================
   AUTH PAGES (login.html, register.html)
   ============================================ */

.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdf9 100%);
}

.auth-page-container {
  width: 100%;
  max-width: 480px;
}

.auth-page-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
}

.auth-page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.auth-page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.auth-page-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  background: white;
  transition: all 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-field input::placeholder {
  color: var(--text-muted);
}

.btn-auth-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  margin-top: 0.5rem;
}

.btn-auth-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-auth-submit:active {
  transform: scale(0.98);
}

.btn-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-page-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-page-footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.auth-page-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-page-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.auth-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.auth-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.auth-legal a:hover {
  color: var(--text);
}

/* Update button styles to work as links */
.btn-login,
.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (min-width: 640px) {
  .auth-page-card {
    padding: 3rem 2.5rem;
  }

  .auth-page-header h1 {
    font-size: 2rem;
  }
}
