*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

[data-theme="light"] {
  --primary: #FF8FAB;
  --primary-light: #FFB6C1;
  --primary-dark: #e07a94;
  --secondary: #69DB7C;
  --secondary-light: #B2F2BB;
  --bg: #FFFFFF;
  --bg-alt: #FFF5F7;
  --bg-card: #FFFFFF;
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e0e0e0;
  --shadow: rgba(255, 143, 171, 0.15);
  --shadow-lg: rgba(255, 143, 171, 0.25);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --card-bg: #FFFFFF;
  --input-bg: #f8f8f8;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --gradient-primary: linear-gradient(135deg, #FF8FAB, #FFB6C1);
  --gradient-bg: linear-gradient(135deg, #FFF5F7, #FFFFFF);
}

[data-theme="dark"] {
  --primary: #C0392B;
  --primary-light: #8B0000;
  --primary-dark: #a03020;
  --secondary: #1B2A4A;
  --secondary-light: #0A1628;
  --bg: #0D0D0D;
  --bg-alt: #111827;
  --bg-card: #1B2A4A;
  --text: #F0F0F0;
  --text-secondary: #bbb;
  --text-muted: #777;
  --border: #2a3a5a;
  --shadow: rgba(192, 57, 43, 0.2);
  --shadow-lg: rgba(192, 57, 43, 0.35);
  --nav-bg: rgba(13, 13, 13, 0.9);
  --card-bg: #1B2A4A;
  --input-bg: #0D0D0D;
  --glass-bg: rgba(0, 0, 0, 0.3);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(135deg, #C0392B, #8B0000);
  --gradient-bg: linear-gradient(135deg, #0D0D0D, #111827);
}

body {
  background: var(--bg);
  color: var(--text);
}

section {
  padding: 80px 5%;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BOTTOM DOCK NAVBAR === */
/* Floating logo (top-left) */
.dock-logo {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 8px 16px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
  animation: dockSlideUp 0.6s 0.05s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.dock-logo i {
  color: var(--primary);
  font-size: 1.2rem;
}

.dock-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



header {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  top: auto;
}

header.scrolled .pill-nav {
  box-shadow: 0 8px 40px var(--shadow-lg);
}

.pill-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 58px;
  padding: 0 8px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: 0 8px 32px var(--shadow);
  pointer-events: all;
  transition: box-shadow 0.3s ease;
  animation: dockSlideUp 0.6s 0.15s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  max-width: calc(100vw - 24px);
}

/* Logo hidden inside the dock (now a separate element) */
.nav-logo {
  display: none;
}

/* Dock items - icon only by default */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links a,
.nav-links .dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 44px;
  border-radius: 30px;
  cursor: pointer;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              gap 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              color 0.3s ease;
  padding: 0 11px;
  max-width: 44px;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* Extended hover zone to prevent stutter between items */
.nav-links a::before,
.nav-links .dropdown-trigger::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
}

/* Main icon always visible */
.nav-links a i:first-child,
.nav-links .dropdown-trigger i:first-child {
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Label hidden by default */
.dock-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0;
}

/* Chevron hidden by default */
.dock-chevron {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  font-size: 0.55rem;
  margin-left: 0;
}

/* Hover: expand item with label + chevron */
.nav-links a:hover,
.nav-links .dropdown-trigger:hover {
  max-width: 200px;
  padding: 0 14px;
  gap: 6px;
  background: rgba(128, 128, 128, 0.1);
}

.nav-links a:hover .dock-label,
.nav-links .dropdown-trigger:hover .dock-label {
  max-width: 180px;
  opacity: 1;
  margin-left: 6px;
}

.nav-links .dropdown-trigger:hover .dock-chevron {
  opacity: 0.6;
  max-width: 20px;
  margin-left: 4px;
}

/* Active state - expanded with highlight */
.nav-links a.active,
.nav-links .dropdown-trigger.active {
  max-width: 200px;
  padding: 0 14px;
  gap: 6px;
  background: var(--primary);
  color: #fff;
}

.nav-links a.active i,
.nav-links .dropdown-trigger.active i {
  color: #fff;
}

.nav-links a.active .dock-label,
.nav-links .dropdown-trigger.active .dock-label {
  max-width: 180px;
  opacity: 1;
  margin-left: 6px;
}

.nav-links .dropdown-trigger.active .dock-chevron {
  opacity: 0.8;
  max-width: 20px;
  margin-left: 4px;
}

/* Nav-right (theme + auth) in dock */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 6px;
  margin-left: 4px;
  border-left: 1px solid var(--glass-border);
  flex-shrink: 0;
}

/* Eye toggle - hide/show header */
.eye-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-left: 2px;
}

.eye-toggle:hover {
  background: rgba(128, 128, 128, 0.1);
  color: var(--text);
}

.pill-nav.tucked .eye-toggle {
  cursor: grab;
}
.pill-nav.tucked .eye-toggle:active {
  cursor: grabbing;
}

/* Eye in move/drag mode */
.eye-toggle.eye-moving {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 0 16px var(--shadow-lg);
  animation: eyeMovePulse 1.2s ease-in-out infinite;
  cursor: move;
}
.eye-toggle.eye-moving:active {
  cursor: move;
}
@keyframes eyeMovePulse {
  0%, 100% { box-shadow: 0 0 12px var(--shadow-lg); }
  50% { box-shadow: 0 0 24px var(--primary); }
}

/* Tucked state - only eye icon visible */
.pill-nav.tucked .nav-links,
.pill-nav.tucked .nav-right,
.pill-nav.tucked .hamburger {
  display: none !important;
}

.pill-nav.tucked {
  position: fixed;
  width: 46px;
  height: 46px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border, rgba(128,128,128,0.2));
  z-index: 999999;
  box-shadow: 0 4px 20px var(--shadow, rgba(0,0,0,0.3));
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}
.pill-nav.tucked:hover {
  box-shadow: 0 6px 28px var(--shadow-lg, rgba(0,0,0,0.5));
}

.pill-nav.tucked .eye-toggle {
  width: 100%;
  height: 100%;
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

/* Theme switch small */
.theme-switch-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.theme-switch {
  position: relative;
  width: 30px;
  height: 16px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-switch-slider::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.theme-switch input:checked + .theme-switch-slider {
  background: var(--gradient-primary);
}

.theme-switch input:checked + .theme-switch-slider::before {
  transform: translateX(14px);
}

/* Auth buttons in dock - icon only by default */
.dock-auth-btn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 0 !important;
  border-radius: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  gap: 0 !important;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              gap 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              transform 0.3s ease !important;
  max-width: 36px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* Extended hover zone for auth buttons */
.dock-auth-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
}

.dock-auth-btn i {
  font-size: 0.95rem !important;
  margin: 0 !important;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.dock-auth-btn:hover {
  max-width: 140px;
  padding: 0 12px 0 8px !important;
  gap: 6px !important;
  background: var(--input-bg, rgba(128, 128, 128, 0.12));
  transform: scale(1.05);
  justify-content: flex-start;
}

.dock-auth-btn:hover .dock-label {
  max-width: 120px;
  opacity: 1;
  margin-left: 2px;
}

.logout-btn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 0 !important;
  border-radius: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  gap: 0 !important;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              gap 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  max-width: 36px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.logout-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
}

.logout-btn i {
  font-size: 0.95rem !important;
  margin: 0 !important;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.logout-btn:hover {
  max-width: 140px;
  padding: 0 12px 0 8px !important;
  gap: 5px !important;
}

.logout-btn:hover .dock-label {
  max-width: 120px;
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 30px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 35px 30px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  perspective: 1000px;
  transform-style: preserve-3d;
}

.feature-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 20px 50px var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: #fff;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg) scale(1.1);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* === HOW IT WORKS === */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  position: relative;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.step-connector {
  position: absolute;
  top: 30px;
  left: 60%;
  width: 80%;
  height: 2px;
  border-top: 2px dashed var(--primary);
  z-index: 1;
}

.step:last-child .step-connector {
  display: none;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* === STATS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h2 {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 5px;
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 30px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--shadow);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card .plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.pricing-card .plan-price {
  font-size: 3rem;
  font-weight: 900;
  margin: 15px 0;
}

.pricing-card .plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .plan-features {
  text-align: left;
  margin: 25px 0;
}

.pricing-card .plan-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card .plan-features li i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.toggle-switch {
  width: 50px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

.discount-badge {
  background: var(--secondary-light);
  color: var(--secondary);
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* === AUTH (Login/Signup) === */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5%;
  position: relative;
}

.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px 40px;
  width: 100%;
  max-width: 450px;
  z-index: 2;
  box-shadow: 0 20px 60px var(--shadow);
}

.auth-card h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--shadow);
}

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

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
}

.form-options input[type="checkbox"] {
  accent-color: var(--primary);
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-link a {
  color: var(--primary);
  font-weight: 600;
}

.auth-link a:hover {
  text-decoration: underline;
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  background: var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.password-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0;
}

/* === CHECKOUT === */
.checkout-section {
  min-height: 100vh;
  padding: 100px 5% 60px;
  position: relative;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.order-summary {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}

.order-summary h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.order-plan {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.order-price {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.order-features {
  margin: 20px 0;
}

.order-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.order-features li i {
  color: var(--secondary);
}

.change-plan {
  display: inline-block;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
}

.change-plan:hover {
  text-decoration: underline;
}

.payment-section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--border);
}

.payment-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.terms-box {
  background: rgba(255, 143, 171, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.terms-box:hover {
  border-color: var(--primary);
}

.terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
}

.terms-header i {
  transition: transform 0.3s ease;
}

.terms-header.open i {
  transform: rotate(180deg);
}

.terms-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.terms-content.open {
  max-height: 300px;
}

.terms-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 0.9rem;
}

.terms-check input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.payment-method {
  padding: 15px 10px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--input-bg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.payment-method i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: var(--text);
}

.payment-method:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.payment-method.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.payment-method.active i {
  color: #fff;
}

.payment-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.payment-form.open {
  max-height: 500px;
  opacity: 1;
}

.payment-form .form-group {
  margin-bottom: 15px;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.btn-block {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

/* === FOOTER (index only) === */
.footer,
.footer-home {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 5% 30px;
  position: relative;
  z-index: 1;
}

.footer-home {
  background: linear-gradient(180deg, var(--bg), #ffe9ef 30%, #ffdde6 100%);
}

html[data-theme="dark"] .footer-home {
  background: linear-gradient(180deg, var(--bg-alt), #3a2530 40%, #2b1a24 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Stack footer links vertically (one per line) */
.footer-col > a {
  display: block;
  width: fit-content;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col > a:hover {
  color: var(--primary);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px var(--shadow-lg);
}

.modal i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.modal h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* === MISC === */
.hidden {
  display: none !important;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.btn .spinner {
  margin-right: 8px;
}

/* Drag drop zone base */
.drop-zone {
  border: 3px dashed var(--border);
  border-radius: 20px;
  padding: 60px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--input-bg);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(255, 143, 171, 0.05);
  transform: scale(1.01);
}

.drop-zone i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.drop-zone h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.drop-zone p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.drop-zone.drag-over {
  animation: borderPulse 1s infinite;
}

/* Payment option radio */
.payment-option:hover {
  border-color: var(--primary) !important;
  background: rgba(255, 143, 171, 0.03);
}

.payment-option input:checked ~ span {
  color: var(--primary);
}

/* Header dropdown - opens upward from bottom dock */
.header-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 30px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-trigger:hover {
  color: var(--text);
}

.dropdown-menu {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  min-width: 210px;
  max-height: 60vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 48px var(--shadow-lg);
  z-index: 1000;
}

.header-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 143, 171, 0.1);
  color: var(--primary);
}

.dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--primary);
}

/* === MEGA MENU === */
.mega-dropdown {
  position: static !important;
}

.mega-menu {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  padding-top: 15px;
  display: flex;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 20px 60px var(--shadow-lg);
  z-index: 1000;
  max-width: calc(100vw - 40px);
  width: max-content;
  max-height: 60vh;
  overflow-y: auto;
}

.header-dropdown.mega-dropdown:hover .mega-menu,
.header-dropdown.mega-dropdown.active .mega-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-column {
  flex: 0 0 25%;
  max-width: 25%;
  min-width: 200px;
  padding: 0 8px;
}

.mega-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  white-space: nowrap;
}

.mega-column a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mega-column a:hover {
  background: rgba(255, 143, 171, 0.1);
  color: var(--primary);
}

/* Responsive mega menu (bottom dock) */
@media (max-width: 1024px) {
  .mega-menu {
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    max-width: calc(100vw - 32px);
    width: 90vw;
    max-height: 50vh;
    flex-wrap: wrap;
    border-radius: 16px;
  }
  .header-dropdown.mega-dropdown:hover .mega-menu,
  .header-dropdown.mega-dropdown.active .mega-menu {
    transform: translateX(-50%) translateY(0);
  }
  .mega-column {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 120px;
    padding: 0 6px;
  }
}

/* === RIGHT-TOP DOCK LOGO (on dashboard) === */
.dock-logo.right {
  left: auto;
  right: 24px;
}

/* === DASHBOARD PILL-NAV COMPACT STATE (hides links but stays in place) === */
.pill-nav.compact .nav-links,
.pill-nav.compact .nav-right {
  display: none !important;
}
.pill-nav.compact {
  /* keep normal position, just hide content */
}

/* === MOBILE NAV: current page shows icon + name, others icon-only === */
@media (max-width: 768px) {
  .pill-nav {
    gap: 1px;
    padding: 0 6px;
    height: 54px;
    max-width: calc(100vw - 12px);
  }

  .nav-links {
    max-width: calc(100vw - 190px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a,
  .nav-links .dropdown-trigger {
    padding: 0 8px;
    max-width: 38px;
    height: 42px;
  }

  /* Active (current page): icon + page name always visible on mobile */
  .nav-links a.active,
  .nav-links .dropdown-trigger.active {
    max-width: 130px;
    padding: 0 12px;
    gap: 5px;
  }
  .nav-links a.active .dock-label,
  .nav-links .dropdown-trigger.active .dock-label {
    max-width: 96px;
    opacity: 1;
    margin-left: 5px;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-right {
    gap: 2px;
    padding-left: 4px;
    margin-left: 2px;
  }
  .nav-right .dock-auth-btn {
    padding: 0 8px;
  }
}
