/* ==========================================================================
   Vivaan Gems & Astrology Services — Cosmic Dark Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@400;500;600&family=Noto+Sans:wght@400;500;600&display=swap');

/* Rupee symbol ₹ — use Noto Sans which has full Indian currency support */
@font-face {
  font-family: 'DM Sans';
  src: local('Noto Sans'), local('Arial');
  unicode-range: U+20B9;
  font-weight: 400 700;
}

/* --------------------------------------------------------------------------
   2. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  /* Colours */
  --bg:            #05070F;
  --bg-primary:    #1A1F3A;
  --gold:          #C9A84C;
  --gold-dark:     #A8863A;
  --gold-light:    #E4C46A;
  --purple:        #7B5EA7;
  --purple-light:  #9B7EC8;
  --text:          #F0EBE3;
  --text-muted:    #8A8FA8;
  --card-bg:       #0D1128;
  --card-border:   rgba(201,168,76,0.12);
  --success:       #4CAF82;
  --warning:       #E8A838;
  --danger:        #E85050;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Shadows */
  --shadow-card:    0 2px 20px rgba(0,0,0,0.45), 0 0 0 1px var(--card-border);
  --shadow-hover:   0 8px 40px rgba(0,0,0,0.55), 0 0 24px rgba(201,168,76,0.12);
  --shadow-glow:    0 0 30px rgba(201,168,76,0.22), 0 0 60px rgba(123,94,167,0.12);
  --shadow-result:  0 0 50px rgba(201,168,76,0.3), 0 0 100px rgba(123,94,167,0.18);
  --shadow-btn:     0 4px 20px rgba(201,168,76,0.3);

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1160px;
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   3. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Firefox scrollbar — thin, gold-tinted, matches Webkit styling below */
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
}

/* Webkit (Safari/Chrome) scrollbar — slim, gold-tinted, consistent across browsers */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.3);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.5); background-clip: padding-box; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
  min-height: 100vh;
}

/* Global touch targets & tap delay fix */
a, button, [role="button"] {
  touch-action: manipulation;
}

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

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

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS auto-zoom */
  touch-action: manipulation;
}

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

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: lining-nums;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h5 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.text-gold   { color: var(--gold); }
.text-purple { color: var(--purple-light); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.italic      { font-style: italic; }

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-xl);
  box-sizing: border-box;
}

.section {
  padding-block: var(--space-2xl);
}

.section--dark    { background-color: var(--bg); }
.section--navy    { background-color: var(--bg-primary); }
.section--card-bg { background-color: var(--card-bg); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.flex {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

/* --------------------------------------------------------------------------
   6. Starfield Background
   -------------------------------------------------------------------------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars-layer {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.stars-layer--sm {
  background-image: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
                    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
                    radial-gradient(1px 1px at 50% 40%, rgba(255,255,255,0.7) 0%, transparent 100%),
                    radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.4) 0%, transparent 100%),
                    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.6) 0%, transparent 100%),
                    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.5) 0%, transparent 100%),
                    radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
                    radial-gradient(1px 1px at 75% 35%, rgba(255,255,255,0.7) 0%, transparent 100%),
                    radial-gradient(1px 1px at 25% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
                    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.5) 0%, transparent 100%);
  background-size: 300px 300px;
  animation: starsDrift 60s linear infinite;
  opacity: 0.7;
}

.stars-layer--md {
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(201,168,76,0.4) 0%, transparent 100%),
                    radial-gradient(1.5px 1.5px at 55% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
                    radial-gradient(2px 2px at 80% 15%, rgba(201,168,76,0.3) 0%, transparent 100%),
                    radial-gradient(1.5px 1.5px at 35% 50%, rgba(255,255,255,0.5) 0%, transparent 100%),
                    radial-gradient(2px 2px at 65% 85%, rgba(123,94,167,0.4) 0%, transparent 100%),
                    radial-gradient(1.5px 1.5px at 5%  45%, rgba(255,255,255,0.4) 0%, transparent 100%),
                    radial-gradient(2px 2px at 95% 25%, rgba(201,168,76,0.3) 0%, transparent 100%);
  background-size: 500px 500px;
  animation: starsDrift 100s linear infinite reverse;
  opacity: 0.6;
}

.stars-layer--lg {
  background-image: radial-gradient(3px 3px at 40% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
                    radial-gradient(2.5px 2.5px at 75% 60%, rgba(201,168,76,0.35) 0%, transparent 100%),
                    radial-gradient(3px 3px at 10% 75%, rgba(123,94,167,0.3) 0%, transparent 100%),
                    radial-gradient(2.5px 2.5px at 60% 40%, rgba(255,255,255,0.4) 0%, transparent 100%);
  background-size: 800px 800px;
  animation: starsDrift 150s linear infinite;
  opacity: 0.5;
}

@keyframes starsDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(-300px); }
}

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color var(--t-base), backdrop-filter var(--t-base),
              box-shadow var(--t-base);
}

.site-header.scrolled {
  background-color: rgba(5,7,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav__logo span { color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.875rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 13px; /* ensures 48x48 touch target: 22px bars + 13px padding each side */
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(5,7,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-md);
  border-bottom: 1px solid var(--card-border);
  z-index: 200;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav__drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__drawer .nav__link {
  font-size: 1.05rem;
  padding: 14px 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* Gold primary */
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1A1200;
  box-shadow: var(--shadow-btn);
}

.btn--gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
  border-radius: inherit;
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,168,76,0.45);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(201,168,76,0.35);
}

.btn--outline:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Ghost */
.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* Purple accent */
.btn--purple {
  background: linear-gradient(135deg, var(--purple) 0%, #5a4080 100%);
  color: var(--text);
}

.btn--purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(123,94,167,0.4);
}

/* Sizes */
.btn--sm  { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn--lg  { padding: 1rem 2.2rem; font-size: 1rem; }
.btn--xl  { padding: 1.1rem 2.6rem; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* WhatsApp */
.btn--whatsapp {
  background: #25D366;
  border: 1.5px solid #1da851;
  color: #fff;
  box-shadow: 0 3px 14px rgba(37,211,102,0.35), 0 1px 4px rgba(0,0,0,0.1);
}
.btn--whatsapp::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn--whatsapp:hover {
  background: #1da851;
  border-color: #178a44;
  box-shadow: 0 6px 22px rgba(37,211,102,0.5), 0 2px 8px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base), box-shadow var(--t-base),
              border-color var(--t-base);
  overflow-x: hidden;
  box-sizing: border-box;
  max-width: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201,168,76,0.25);
}

.card--glow:hover {
  box-shadow: var(--shadow-glow);
}

.card__icon {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: block;
}

.card__eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--gold {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
}

.badge--purple {
  background: rgba(123,94,167,0.15);
  color: var(--purple-light);
  border: 1px solid rgba(123,94,167,0.25);
}

.badge--new {
  background: rgba(76,175,130,0.15);
  color: var(--success);
  border: 1px solid rgba(76,175,130,0.25);
}

/* --------------------------------------------------------------------------
   10. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* iOS Safari: excludes dynamic browser chrome */
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Nebula glow blobs */
.hero__bg::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,94,167,0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: nebulaFloat 8s ease-in-out infinite alternate;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: nebulaFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes nebulaFloat {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-30px) scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  color: var(--text);
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* Social proof bar */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.07);
}

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

.proof-item__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.proof-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   11. Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.section-header__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   12. Problem Section
   -------------------------------------------------------------------------- */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.problem-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--t-base), border-color var(--t-base);
}

.problem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,168,76,0.25);
}

.problem-card__icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-sm);
}

.problem-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.problem-cta {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(123,94,167,0.06));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   13. Tool Cards
   -------------------------------------------------------------------------- */
.tool-card {
  background:
    radial-gradient(at 15% 25%, rgba(123,94,167,0.09) 0px, transparent 55%),
    radial-gradient(at 85% 75%, rgba(201,168,76,0.07) 0px, transparent 55%),
    var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, rgba(123,94,167,0.04) 100%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201,168,76,0.3);
}

.tool-card:hover::before { opacity: 1; }

.tool-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
}

.tool-card__planet {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  display: inline-block;
  -webkit-transform: translateX(0);
  transform: translateX(0);
  -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.tool-card:hover .tool-card__planet {
  -webkit-transform: translateX(-10px);
  transform: translateX(-10px);
}

.tool-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.tool-card__hook {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.tool-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: var(--space-sm);
  transition: gap var(--t-fast), opacity var(--t-fast);
}

.tool-card__link:hover { gap: 10px; }

/* --------------------------------------------------------------------------
   14. How It Works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.step {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
}

.step__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(123,94,167,0.1));
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.step__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. Testimonials
   -------------------------------------------------------------------------- */
/* Marquee wrapper — hides overflow, fades edges */
.testimonials-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* Scrolling track — duplicated cards create seamless loop */
.testimonials-track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: testimonials-scroll 120s linear infinite;
}

/* Pause on hover or touch-hold */
.testimonials-track:hover,
.testimonials-track:focus-within {
  animation-play-state: paused;
}

@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
  .testimonials-track .testimonial-card[aria-hidden="true"] {
    display: none;
  }
  .testimonials-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.testimonial-card {
  width: 360px;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(201,168,76,0.15);
  font-weight: 700;
}

.testimonial-card__num {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  box-shadow: 0 0 8px rgba(201,168,76,0.4);
}

.testimonial-card__stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bg);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 3px;
}

.testimonial-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. Service Cards
   -------------------------------------------------------------------------- */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card--student {
  border-color: rgba(123,94,167,0.3);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(123,94,167,0.06) 100%);
}

.service-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.service-card__price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.service-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.service-card__feature::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 0.75rem var(--space-md);
  font-size: 1rem; /* never below 16px — prevents iOS auto-zoom */
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  min-height: 48px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(138,143,168,0.5);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(201,168,76,0.5);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8FA8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-primary);
  color: var(--text);
}

/* Cross-browser consistency for <select class="form-input">.
   Safari macOS renders a chunky native ↕ widget that clips narrow boxes;
   this rule replaces it with a compact custom chevron, identical across
   Safari, Chrome, Firefox, and mobile. */
select.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8FA8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
  padding-left: 0.5rem;
  padding-right: 1.3rem;
  cursor: pointer;
}

.form-textarea { min-height: 120px; resize: vertical; }

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

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   18. Sticky Booking Bar
   -------------------------------------------------------------------------- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(5,7,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: var(--space-sm) var(--space-xl);
  /* safe area for iPhone home indicator */
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform var(--t-base);
}

.sticky-bar.visible { transform: translateY(0); }

.sticky-bar__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.sticky-bar__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sticky-bar__text strong { color: var(--text); }

/* --------------------------------------------------------------------------
   19. WhatsApp Float
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: var(--space-xl);
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.38);
  color: #25D366;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: background var(--t-base), border-color var(--t-base), bottom var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float::before {
  content: '';
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325D366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* When sticky bar is visible, push WhatsApp float above it */
.sticky-bar.visible ~ .whatsapp-float,
body.has-sticky-bar .whatsapp-float {
  bottom: calc(80px + env(safe-area-inset-bottom));
}

.whatsapp-float:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   20. Tool Result Reveal
   -------------------------------------------------------------------------- */
.result-reveal {
  opacity: 0;
  transform: scale(0.92) translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-x: hidden;
  max-width: 100%;
}

.result-reveal.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.result-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.result-card--glow {
  box-shadow: var(--shadow-result);
  border: 1px solid rgba(201,168,76,0.25);
  animation: resultGlow 3s ease-in-out infinite alternate;
}

.result-card--danger {
  box-shadow: 0 0 50px rgba(232,80,80,0.2), 0 0 100px rgba(232,80,80,0.1);
  border: 1px solid rgba(232,80,80,0.25);
}

.result-card--success {
  box-shadow: 0 0 50px rgba(76,175,130,0.2), 0 0 100px rgba(76,175,130,0.1);
  border: 1px solid rgba(76,175,130,0.25);
}

@keyframes resultGlow {
  from { box-shadow: var(--shadow-result); }
  to   { box-shadow: 0 0 60px rgba(201,168,76,0.4), 0 0 120px rgba(123,94,167,0.25); }
}

.result-planet {
  font-size: 4rem;
  display: inline-block;
  margin-bottom: var(--space-md);
  animation: planetSpin 20s linear infinite;
}

@keyframes planetSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Meter / Progress bar */
.meter-container {
  margin: var(--space-xl) 0;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}

.meter-label__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.meter-label__val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
}

.meter-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

/* Circular meter */
.circle-meter {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-xl);
}

.circle-meter svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.circle-meter__bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}

.circle-meter__fill {
  fill: none;
  stroke: url(#goldGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-meter__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circle-meter__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.circle-meter__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   21. Planet Loading Spinner
   -------------------------------------------------------------------------- */
.planet-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-3xl) 0;
}

.planet-loader__orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--purple-light), var(--purple));
  box-shadow: 0 0 20px rgba(123,94,167,0.4), inset -8px -4px 12px rgba(0,0,0,0.3);
  animation: planetOrbit 2s linear infinite;
  position: relative;
}

.planet-loader__orb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  right: -20px;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
  border-radius: 50%;
  transform: translateY(-50%) rotateX(75deg);
}

@keyframes planetOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.planet-loader__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

@keyframes waPulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.35); }
  60%  { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0  rgba(37,211,102,0); }
}

/* --------------------------------------------------------------------------
   22. Tool Form Layout
   -------------------------------------------------------------------------- */
.tool-page {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + var(--space-xl));
  padding-bottom: var(--space-2xl);
}

.tool-container {
  max-width: 640px;
  margin-inline: auto;
}

.tool-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.tool-header__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}

.tool-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   23. Quiz Styles
   -------------------------------------------------------------------------- */
.quiz-progress {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2xl);
}

.quiz-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.quiz-step {
  display: none;
  animation: fadeInUp 0.35s ease;
}

.quiz-step.active { display: block; }

.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.quiz-option {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-base);
  min-height: 48px;
}

.quiz-option:hover,
.quiz-option.selected {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.35);
  color: var(--text);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   24. Planet Positions Table
   -------------------------------------------------------------------------- */
.planets-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
}

.planets-table {
  width: 100%;
  min-width: 360px; /* prevents collapse on 320px screens */
  border-collapse: collapse;
  font-size: 0.875rem;
}

.planets-table th {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: left;
}

.planets-table td {
  padding: var(--space-sm) var(--space-md);
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.planets-table tr:last-child td { border-bottom: none; }

.planets-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.planet-symbol { font-size: 1.2rem; }

/* --------------------------------------------------------------------------
   25. About Section Teaser
   -------------------------------------------------------------------------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-teaser__img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-teaser__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-teaser__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(5,7,15,0.7) 100%
  );
}

.about-teaser__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--gold), var(--purple)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.35;
}

/* --------------------------------------------------------------------------
   26. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.footer__brand span { color: var(--gold); }

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__disclaimer {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  padding-top: var(--space-md);
}
.footer__disclaimer .version-link {
  color: var(--gold);
  opacity: 0.75;
  font-size: 0.78rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   27. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   28. Utility Animations
   -------------------------------------------------------------------------- */
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.2); }
  50%       { box-shadow: 0 0 40px rgba(201,168,76,0.4), 0 0 80px rgba(123,94,167,0.2); }
}

/* --------------------------------------------------------------------------
   29. Miscellaneous
   -------------------------------------------------------------------------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
  margin: var(--space-2xl) 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
  letter-spacing: 0.05em;
}

/* Share buttons */
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xl);
}

/* Notification toast */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(5,7,15,0.95);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text);
  opacity: 0;
  transition: transform var(--t-base), opacity var(--t-base);
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   30. Responsive — Tablet (≤900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .steps::before { display: none; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .about-teaser {
    grid-template-columns: 1fr;
  }

  .about-teaser__img-wrap {
    max-width: 280px;
    margin-inline: auto;
    aspect-ratio: 1;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__drawer { display: flex; }
}

/* --------------------------------------------------------------------------
   31. Responsive — Mobile (≤600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  :root { --space-3xl: 3.5rem; }

  .container { padding-inline: var(--space-md); }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  /* Tool cards — full width Try Free link on mobile */
  .tool-card__link {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 10px 0;
  }

  /* Nav logo — shrink for small screens */
  .nav__logo { font-size: 1.05rem; }

  /* Proof bar — wrap to 2 cols on mobile */
  .hero__proof {
    gap: var(--space-md);
    justify-content: center;
  }
  .proof-item { min-width: 120px; }

  /* Testimonials — narrow cards on mobile */
  .testimonial-card { width: 280px; }

  .problem-cards { grid-template-columns: 1fr 1fr; }

  .quiz-options { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  .footer__bottom { flex-direction: column; text-align: center; }

  .sticky-bar__inner { flex-direction: column; gap: var(--space-sm); }
  .sticky-bar { padding: var(--space-md); }

  .result-card { padding: var(--space-xl) var(--space-md); }

  .tool-form { padding: var(--space-xl) var(--space-md); }

  /* Fix: CTA buttons full-width on mobile, text allowed to wrap */
  .btn--xl {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .btn--lg {
    white-space: normal;
    text-align: center;
  }
  /* Ensure all section CTAs are centered on mobile */
  .section .btn, .card .btn--gold, .result-card .btn--gold {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* --------------------------------------------------------------------------
   32. Responsive — Small Mobile (≤400px)
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  .problem-cards { grid-template-columns: 1fr; }
  .btn--xl { padding: 0.9rem 1.8rem; font-size: 0.95rem; }
}

/* --------------------------------------------------------------------------
   33. Touch Targets
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .btn, a.nav__link, .quiz-option,
  .footer__link, .tool-card__link {
    min-height: 48px;
  }
  .nav__link { padding: var(--space-sm) 0; }

  /* Larger tap area for footer links */
  .footer__link {
    display: inline-flex;
    align-items: center;
    padding-block: 6px;
  }
}

/* --------------------------------------------------------------------------
   34. Mobile Floating Elements
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .whatsapp-float {
    padding: 0.38rem 0.7rem;
    font-size: 0.7rem;
    bottom: 80px;
    right: var(--space-md);
  }

  /* When sticky bar is also showing, push WhatsApp higher */
  body.has-sticky-bar .whatsapp-float { bottom: 140px; }

  /* Sticky bar: full-width single CTA on very small screens */
  .sticky-bar__inner { flex-direction: column; align-items: stretch; }
  .sticky-bar .btn { width: 100%; }
}

/* Tablet */
@media (max-width: 768px) and (min-width: 481px) {
  .whatsapp-float {
    right: var(--space-md);
    bottom: 96px;
  }
  body.has-sticky-bar .whatsapp-float { bottom: 140px; }
}

/* --------------------------------------------------------------------------
   35. Body padding for sticky bar (prevents content hidden behind it)
   -------------------------------------------------------------------------- */
body.has-sticky-bar {
  padding-bottom: 80px;
}
@media (max-width: 600px) {
  body.has-sticky-bar {
    padding-bottom: 140px; /* taller on mobile — sticky bar stacks vertically */
  }
}

/* --------------------------------------------------------------------------
   36. Tool card pointer-events isolation
   Only the Try Free link is tappable — nothing else on the card.
   -------------------------------------------------------------------------- */
.tool-card {
  pointer-events: none !important;
  cursor: default !important;
}
.tool-card * {
  pointer-events: none !important;
  cursor: default !important;
}
.tool-card .tool-card__link {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 10;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  min-height: 48px;
  min-width: 120px;
  padding: 12px 8px;
  display: inline-flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   37. Scroll padding so sticky header doesn't cover anchor targets
   -------------------------------------------------------------------------- */
html {
  scroll-padding-top: 80px;
}

/* --------------------------------------------------------------------------
   39. Time Picker Modal
   -------------------------------------------------------------------------- */
.tp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.tp-overlay.open { display: flex; }

.tp-modal {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: 1.75rem 2rem;
  width: min(340px, calc(100vw - 2rem));
}

.tp-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.tp-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tp-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.tp-num {
  width: 100%;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  padding: 0.6rem 0.25rem;
  -moz-appearance: textfield;
  outline: none;
}
.tp-num::-webkit-outer-spin-button,
.tp-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-num:focus { border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(201,168,76,0.2); }

.tp-sublabel {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tp-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 0.5rem;
  flex: 0;
}

.tp-ampm {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 0 0 60px;
}

.tp-ap {
  background: var(--card-bg);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  width: 100%;
}
.tp-ap.active {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  color: var(--gold);
}
.tp-ap:not(.active):hover { border-color: rgba(201,168,76,0.5); color: var(--text); }

.tp-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tp-clock-ico { color: var(--text-muted); font-size: 1.1rem; margin-right: auto; }
.tp-cancel {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.tp-cancel:hover { color: var(--text); }
.tp-ok {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.tp-ok:hover { color: var(--gold-light); }

.tp-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text-muted);
  background: var(--card-bg);
}
.tp-trigger.has-value { color: var(--text); }

/* --------------------------------------------------------------------------
   38. Tool grid mobile — single column, no overlap
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .grid-3 .tool-card {
    width: 100%;
    height: auto;
    min-height: auto;
    overflow: visible;
    position: relative;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   LIGHT THEME — "Golden Scroll"
   Applied via [data-theme="light"] on <html>
   ========================================================================== */

[data-theme="light"] {
  color-scheme: light;
  --bg:            #FAF6EF;
  --bg-primary:    #F0E9D8;
  --gold:          #9A6B0A;
  --gold-dark:     #7A5208;
  --gold-light:    #C9A84C;
  --purple:        #5B3E8E;
  --purple-light:  #7B5EA7;
  --text:          #1C1826;
  --text-muted:    #6A6280;
  --card-bg:       #FFFFFF;
  --card-border:   rgba(154,107,10,0.13);
  --border:        rgba(154,107,10,0.15);
  --shadow-card:   0 2px 20px rgba(0,0,0,0.07), 0 0 0 1px rgba(154,107,10,0.08);
  --shadow-hover:  0 8px 40px rgba(0,0,0,0.11), 0 0 20px rgba(154,107,10,0.1);
  --shadow-glow:   0 0 30px rgba(154,107,10,0.12), 0 0 60px rgba(91,62,142,0.08);
  --shadow-result: 0 0 40px rgba(154,107,10,0.18), 0 0 80px rgba(91,62,142,0.1);
}

/* Starfield — subtle golden dust in light mode */
[data-theme="light"] .stars-layer--sm,
[data-theme="light"] .stars-layer--md,
[data-theme="light"] .stars-layer--lg { opacity: 0.08; }

/* Nav */
[data-theme="light"] .site-header {
  background-color: rgba(250,246,239,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(154,107,10,0.12);
}
[data-theme="light"] .site-header.scrolled {
  background-color: rgba(250,246,239,0.95);
  box-shadow: 0 1px 0 rgba(154,107,10,0.1), 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .nav__logo { color: var(--gold); }
[data-theme="light"] .nav__link { color: var(--text-muted); }
[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active { color: var(--gold); }
[data-theme="light"] .nav__hamburger span { background: var(--text); }
[data-theme="light"] .nav__drawer {
  background: #FFFFFF;
  border-top: 1px solid rgba(154,107,10,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Form inputs */
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #FFFFFF;
  border-color: rgba(154,107,10,0.2);
  color: var(--text);
}
[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder { color: rgba(106,98,128,0.5); }
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: var(--gold);
  background: #FFFCF7;
  box-shadow: 0 0 0 3px rgba(154,107,10,0.1);
}
[data-theme="light"] select.form-input option { background: #FFFFFF; color: var(--text); }
[data-theme="light"] select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8863A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
}
[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8863A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* Light theme scrollbar — gold-tinted on cream background */
[data-theme="light"] html { scrollbar-color: rgba(154,107,10,0.35) transparent; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(154,107,10,0.35); background-clip: padding-box; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(154,107,10,0.55); background-clip: padding-box; }

/* Form labels */
[data-theme="light"] .form-label { color: var(--text); }
[data-theme="light"] .form-error { color: #c0392b; }

/* Eyebrow */
[data-theme="light"] .eyebrow { color: var(--gold); }

/* Cards */
[data-theme="light"] .card,
[data-theme="light"] .service-card,
[data-theme="light"] .tool-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .cred-card { background: #FFFFFF; }

[data-theme="light"] .tool-card__title { color: var(--text); }
[data-theme="light"] .tool-card__hook { color: var(--text-muted); }
[data-theme="light"] .tool-card__link { color: var(--gold); }

[data-theme="light"] .testimonial-card::before { color: rgba(154,107,10,0.12); }
[data-theme="light"] .testimonial-card__text { color: var(--text-muted); }
[data-theme="light"] .testimonial-card__name { color: var(--text); }
[data-theme="light"] .testimonial-card__meta { color: var(--text-muted); }
[data-theme="light"] .testimonial-card__avatar { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #FFF; }

[data-theme="light"] .service-card__price { color: var(--gold); }
[data-theme="light"] .service-card__features li { color: var(--text-muted); }
[data-theme="light"] .service-card__features li::before { color: var(--gold); }

/* Buttons */
[data-theme="light"] .btn--outline {
  border-color: var(--gold);
  color: var(--gold);
}
[data-theme="light"] .btn--outline:hover {
  background: rgba(154,107,10,0.08);
}

/* Section headings and text */
[data-theme="light"] h1, [data-theme="light"] h2,
[data-theme="light"] h3, [data-theme="light"] h4,
[data-theme="light"] h5 { color: var(--text); }
[data-theme="light"] p { color: var(--text-muted); }

/* Step numbers */
[data-theme="light"] .step__num { background: var(--gold); color: var(--bg); }
[data-theme="light"] .step__title { color: var(--text); }
[data-theme="light"] .step__desc { color: var(--text-muted); }

/* Proof / stats bar */
[data-theme="light"] .hero__proof { border-color: rgba(154,107,10,0.12); background: rgba(255,255,255,0.8); }
[data-theme="light"] .proof-item__label { color: var(--text-muted); }

/* Hero text */
[data-theme="light"] .hero__headline { color: var(--text); }
[data-theme="light"] .hero__sub { color: var(--text-muted); }
[data-theme="light"] .hero-cred { border-color: rgba(154,107,10,0.2); color: var(--text-muted); }
[data-theme="light"] .hero-cred strong { color: var(--gold); }

/* Sections with dark bg in dark mode → warm tones in light */
[data-theme="light"] .section--dark { background-color: #F0E9D8; }
[data-theme="light"] .section--navy { background-color: #E8DFC8; }
[data-theme="light"] .section--card-bg { background-color: #FFFFFF; }

/* Footer */
[data-theme="light"] .site-footer {
  background: #F0E9D8;
  border-top-color: rgba(154,107,10,0.15);
}
[data-theme="light"] .footer__brand span { color: var(--gold); }
[data-theme="light"] .footer__tagline { color: var(--text-muted); }
[data-theme="light"] .footer__heading { color: var(--text); }
[data-theme="light"] .footer__link { color: var(--text-muted); }
[data-theme="light"] .footer__link:hover { color: var(--gold); }
[data-theme="light"] .footer__copy,
[data-theme="light"] .footer__disclaimer { color: var(--text-muted); }
[data-theme="light"] .footer__bottom { border-top-color: rgba(154,107,10,0.12); }

/* Sticky bar */
[data-theme="light"] .sticky-bar {
  background: #FFFFFF;
  border-top: 1px solid rgba(154,107,10,0.15);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .sticky-bar__text { color: var(--text-muted); }
[data-theme="light"] .sticky-bar__text strong { color: var(--text); }

/* WhatsApp float — light theme: solid green pill with shadow + pulse */
[data-theme="light"] .whatsapp-float {
  background: #25D366;
  border-color: #1da851;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.1);
  padding: 0.55rem 1.1rem;
  animation: waPulse 2.8s ease infinite;
}

[data-theme="light"] .whatsapp-float::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}

[data-theme="light"] .whatsapp-float:hover {
  background: #1da851;
  border-color: #178a44;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.12);
  animation: none;
}

@media (max-width: 480px) {
  [data-theme="light"] .whatsapp-float {
    padding: 0.38rem 0.85rem;
    font-size: 0.7rem;
  }
}

/* Section headers */
[data-theme="light"] .section-header__title { color: var(--text); }
[data-theme="light"] .section-header__desc { color: var(--text-muted); }

/* Badge */
[data-theme="light"] .badge--gold { background: rgba(154,107,10,0.1); border-color: rgba(154,107,10,0.3); color: var(--gold); }

/* Card borders that use hardcoded rgba values */
[data-theme="light"] .hero__proof-divider { background: rgba(154,107,10,0.15); }

/* Booking page — summary row divider + past slot (white-opacity → invisible in light) */
[data-theme="light"] .sum-row { border-bottom-color: rgba(154,107,10,0.08); }
[data-theme="light"] .slot-btn.past { border-color: rgba(0,0,0,0.08); color: var(--text-muted); }

/* Booking page specific */
[data-theme="light"] .cal-wrap,
[data-theme="light"] .slots-wrap { background: #FFFFFF; }
[data-theme="light"] .cal-dname { color: #9A8880; }
[data-theme="light"] .cd.past, [data-theme="light"] .cd.no { color: #D4CCBE; }
[data-theme="light"] .cd.avail { color: var(--gold); }
[data-theme="light"] .leg { color: #9A8880; }
[data-theme="light"] .slots-placeholder { color: var(--text-muted); }
[data-theme="light"] .slots-date-hdr { color: var(--text); border-bottom-color: rgba(154,107,10,0.12); }
[data-theme="light"] .slot-btn.avail { border-color: rgba(154,107,10,0.25); background: rgba(154,107,10,0.04); color: var(--gold); }
[data-theme="light"] .slot-btn.avail:hover { background: rgba(154,107,10,0.1); }
[data-theme="light"] .slot-btn.booked,
[data-theme="light"] .slot-btn.busy { border-color: rgba(0,0,0,0.08); color: #BDB8C0; }
[data-theme="light"] .slot-tag { background: rgba(0,0,0,0.05); color: #9A8880; }
[data-theme="light"] .summary-box { background: rgba(154,107,10,0.04); border-color: rgba(154,107,10,0.12); }
[data-theme="light"] .sum-lbl { color: var(--text-muted); }
[data-theme="light"] .sum-val { color: var(--text); }
[data-theme="light"] .meet-card.gm { background: rgba(26,115,232,0.05); border-color: rgba(26,115,232,0.15); }
[data-theme="light"] .meet-card strong { color: var(--text); }
[data-theme="light"] .meet-card span { color: var(--text-muted); }
[data-theme="light"] .book-divider { border-top-color: rgba(0,0,0,0.07); }
[data-theme="light"] .step-lbl { color: var(--gold); }

/* Feedback page */
[data-theme="light"] .fb-card { background: #FFFFFF; }
[data-theme="light"] .consent-box { background: rgba(154,107,10,0.04); border-color: rgba(154,107,10,0.15); }
[data-theme="light"] .star-btn { color: #D4CCBE; }
[data-theme="light"] .star-btn.active { color: var(--gold); }

/* Time picker modal */
[data-theme="light"] .tp-modal { background: #FFFFFF; border-color: rgba(154,107,10,0.2); }
[data-theme="light"] .tp-title { color: var(--text-muted); }
[data-theme="light"] .tp-num { background: #FAF6EF; color: var(--text); border-color: var(--gold); }
[data-theme="light"] .tp-sep { color: var(--text-muted); }
[data-theme="light"] .tp-ap { background: #FAF6EF; border-color: rgba(154,107,10,0.2); color: var(--text-muted); }
[data-theme="light"] .tp-ap.active { background: rgba(154,107,10,0.12); border-color: var(--gold); color: var(--gold); }
[data-theme="light"] .tp-cancel { color: var(--text-muted); }
[data-theme="light"] .tp-ok { color: var(--gold); }

/* ── THEME TOGGLE BUTTON ─────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle__icon { font-size: 0.9rem; line-height: 1; }

/* Smooth theme transition */
html { transition: background-color 0.3s ease, color 0.3s ease; }
body { transition: background-color 0.3s ease; }
