/* ======================================================================
   Ciara Tantsukool -- Design System
   Premium Modern Theme with Glassmorphism & Warm Brand Palette
   ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

/* -- CSS Custom Properties -- */
:root {
  /* Brand Palette — Ciara 2026 (Cool Nordic, restrained) */
  --color-burgundy: #5C3D4F;
  --color-brown: #786070;
  --color-gold: #A89468;
  --color-gold-light: #C8BA94;
  --color-dusty-rose: #A8909A;
  --color-light-rose: #C4B0B8;
  --color-rose-gold: #907078;
  --color-rose-gold-light: #B8A0A8;
  --color-blush: #EDE8E8;
  --color-near-black: #1C1C20;
  --color-cream: #F7F7F8;

  /* Accent tones — cool Nordic */
  --color-lavender: #ACA8B8;
  --color-sage: #98A898;
  --color-coral: #C08878;
  --color-plum: #4C3448;
  --color-olive: #B0B8A0;
  --color-olive-light: #D0D4C4;
  --color-sky: #9CB0BC;
  --color-warm-white: #F7F7F8;

  /* Legacy aliases */
  --color-petrool: var(--color-burgundy);
  --color-korall: var(--color-gold);
  --color-kreemikas: var(--color-cream);
  --color-sugav: var(--color-near-black);
  --ciara-gold: var(--color-gold);
  --ciara-gold-dark: var(--color-brown);
  --ciara-gold-light: var(--color-gold-light);
  --ciara-black: var(--color-near-black);
  --ciara-peach: var(--color-blush);

  /* Stage Theme Variables (Defaults) */
  --stage-accent: var(--color-burgundy);
  --stage-accent-soft: rgba(122, 59, 80, 0.1);
  --stage-bg: var(--color-cream);

  /* Semantic UI Colors */
  --bg-primary: #F7F7F8;
  --bg-secondary: rgba(92, 61, 79, 0.012);
  --bg-card: #FFFFFF;
  --text-primary: #2C2C30;
  --text-secondary: rgba(44, 44, 48, 0.52);
  --text-tertiary: rgba(44, 44, 48, 0.32);
  --text-inverse: #ffffff;

  /* Font Families */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Plus Jakarta Sans', sans-serif; /* Legacy alias */
  --font-sans: 'Lato', sans-serif;
  --font-family: var(--font-sans);

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

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 100px;
  --radius-blob: 30% 70% 70% 30% / 30% 30% 70% 70%;

  /* Shadows (clean, Apple-like) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.07);
  --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.05);
  --shadow-glass: var(--shadow-md);
  --shadow-gold: 0 4px 20px rgba(184, 155, 94, 0.12);
  --shadow-warm-hover: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Borders */
  --border-light: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.10);
  --border-glass: rgba(0, 0, 0, 0.04);

  /* Glass — restrained, not overused */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(0, 0, 0, 0.04);
  --glass-blur: 16px;

  /* Mesh gradient for body — airy cool-warm */
  --mesh-gradient: radial-gradient(ellipse at 15% 0%, rgba(197, 206, 170, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 5%, rgba(192, 184, 208, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(242, 224, 222, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 85%, rgba(181, 202, 214, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 75%, rgba(197, 206, 170, 0.05) 0%, transparent 45%);

  /* Neutrals */
  --neutral-100: rgba(248, 247, 245, 0.8);
  --neutral-200: rgba(44, 42, 48, 0.05);
  --neutral-300: rgba(44, 42, 48, 0.09);
  --neutral-400: rgba(44, 42, 48, 0.18);
  --neutral-500: rgba(44, 42, 48, 0.32);

  /* Accents */
  --accent-sage: var(--color-sage);
  --accent-sage-light: rgba(179, 196, 168, 0.15);
  --accent-sage-dark: #8EA88A;
  --accent-lavender-light: rgba(192, 184, 208, 0.15);
  --accent-lavender-dark: #9686AE;
  --accent-peach-light: rgba(242, 224, 222, 0.4);
  --accent-rose-light: rgba(221, 190, 192, 0.15);
  --accent-rose-dark: var(--color-dusty-rose);
  --accent-olive-light: rgba(197, 206, 170, 0.15);
  --accent-mint-light: rgba(201, 168, 76, 0.10);

  /* Z-indexes */
  --z-below: -1;
  --z-base: 1;
  --z-overlay: 100;
  --z-modal: 1000;
  --z-toast: 2000;
}

/* ======================================================================
   Ciara Symbol System — Diamond-based brand iconography
   ====================================================================== */

.ciara-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  position: relative;
}

.ciara-symbol::before {
  content: '';
  display: block;
  width: 0.75em;
  height: 0.75em;
  transform: rotate(45deg);
  background: var(--color-gold);
  border-radius: 2px;
}

.ciara-symbol--sm::before {
  width: 0.5em;
  height: 0.5em;
}

.ciara-symbol--lg::before {
  width: 1.2em;
  height: 1.2em;
  border-radius: 3px;
}

.ciara-symbol--outline::before {
  background: transparent;
  border: 2px solid var(--color-gold);
}

.ciara-symbol--rose::before {
  background: var(--color-dusty-rose);
}

.ciara-symbol--burgundy::before {
  background: var(--color-burgundy);
}

.ciara-symbol--lavender::before {
  background: var(--color-lavender);
}

/* Diamond separator (horizontal rule replacement) */
.ciara-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: var(--space-lg) 0;
  color: var(--color-gold);
  opacity: 0.5;
}

.ciara-divider::before,
.ciara-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}

.ciara-divider-diamond {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--color-gold);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Section accent diamond (replaces emoji headers) */
.section-diamond {
  display: inline-block;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.section-diamond--gold { background: var(--color-gold); }
.section-diamond--rose { background: var(--color-dusty-rose); }
.section-diamond--burgundy { background: var(--color-burgundy); }
.section-diamond--lavender { background: var(--color-lavender); }
.section-diamond--sage { background: var(--color-sage); }
.section-diamond--coral { background: var(--color-coral); }
.section-diamond--plum { background: var(--color-plum); }

/* Badge with diamond prefix */
.badge-ciara {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-ciara::before {
  content: '';
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: currentColor;
  border-radius: 1px;
  flex-shrink: 0;
}

/* Triple diamond pattern (for section headers) */
.triple-diamond {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.triple-diamond span {
  display: block;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--color-gold);
  border-radius: 1px;
}

.triple-diamond span:nth-child(2) {
  width: 8px;
  height: 8px;
  background: var(--color-burgundy);
}

/* ======================================================================
   Ciara Ikoonid — Skandinaavia-minimalistlik pastelne sümboolika
   Puhas geomeetria, ohukesed jooned, pastelsed toonid.
   ====================================================================== */

/* Base icon container */
.ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

/* Size variants */
.ci--sm { width: 1.8rem; height: 1.8rem; }
.ci--lg { width: 3.2rem; height: 3.2rem; }
.ci--xl { width: 4rem; height: 4rem; }

/* Soft pastel backgrounds */
.ci-rose { background: rgba(196, 131, 138, 0.12); color: var(--color-dusty-rose); }
.ci-gold { background: rgba(201, 168, 76, 0.12); color: var(--color-gold); }
.ci-lavender { background: rgba(197, 181, 214, 0.15); color: var(--color-lavender); }
.ci-sage { background: rgba(181, 196, 177, 0.15); color: var(--color-sage); }
.ci-coral { background: rgba(232, 146, 124, 0.12); color: var(--color-coral); }
.ci-plum { background: rgba(107, 58, 94, 0.1); color: var(--color-plum); }
.ci-burgundy { background: rgba(122, 59, 80, 0.08); color: var(--color-burgundy); }
.ci-blush { background: rgba(242, 224, 222, 0.4); color: var(--color-dusty-rose); }

/* ── Keha / Anatoomia ── */
.ci-body::after {
  content: '';
  width: 1px;
  height: 55%;
  background: currentColor;
  border-radius: 1px;
}
.ci-body::before {
  content: '';
  position: absolute;
  width: 30%;
  height: 30%;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  top: 15%;
}

/* ── Luustik ── */
.ci-skeleton::after {
  content: '';
  width: 1.5px;
  height: 50%;
  background: currentColor;
}
.ci-skeleton::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 1.5px;
  background: currentColor;
  top: 45%;
}

/* ── Lihased / Joud ── */
.ci-strength::after {
  content: '';
  width: 35%;
  height: 35%;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

/* ── Suda / Vereringe ── */
.ci-heart::after {
  content: '';
  width: 35%;
  height: 35%;
  background: currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  opacity: 0.7;
}

/* ── Aju / Neuroteadus ── */
.ci-brain::after {
  content: '';
  width: 40%;
  height: 40%;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* ── Muusika ── */
.ci-music::after {
  content: '';
  width: 1.5px;
  height: 50%;
  background: currentColor;
  position: relative;
  left: 3px;
}
.ci-music::before {
  content: '';
  position: absolute;
  width: 25%;
  height: 25%;
  background: currentColor;
  border-radius: 50%;
  bottom: 22%;
  left: 28%;
}

/* ── Taht / Saavutus ── */
.ci-star::after {
  content: '';
  width: 35%;
  height: 35%;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ── Raamat / Opimine ── */
.ci-book::after {
  content: '';
  width: 40%;
  height: 45%;
  border: 1.5px solid currentColor;
  border-radius: 1px 3px 3px 1px;
  border-left-width: 2.5px;
}

/* ── Tants / Liikumine ── */
.ci-dance::after {
  content: '';
  width: 40%;
  height: 40%;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  transform: rotate(-30deg);
}

/* ── Kell / Aeg ── */
.ci-clock::after {
  content: '';
  width: 40%;
  height: 40%;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.ci-clock::before {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 15%;
  background: currentColor;
  transform-origin: bottom;
  transform: rotate(30deg);
}

/* ── Teemant / Ciara logo ── */
.ci-diamond::after {
  content: '';
  width: 35%;
  height: 35%;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
  opacity: 0.8;
}

/* ── Leht / Loodus ── */
.ci-leaf::after {
  content: '';
  width: 30%;
  height: 45%;
  border: 1.5px solid currentColor;
  border-radius: 0 50% 50% 0;
  transform: rotate(30deg);
}

/* ── Silm / Vaatlus ── */
.ci-eye::after {
  content: '';
  width: 45%;
  height: 25%;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.ci-eye::before {
  content: '';
  position: absolute;
  width: 8%;
  height: 8%;
  background: currentColor;
  border-radius: 50%;
}

/* ── Kild / Katke (progress) ── */
.ci-shard::after {
  content: '';
  width: 30%;
  height: 50%;
  background: currentColor;
  clip-path: polygon(50% 0%, 100% 100%, 0% 80%);
  opacity: 0.7;
}

/* ── Lainetus / Voog ── */
.ci-wave::after {
  content: '';
  width: 55%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 5px 0 currentColor;
  opacity: 0.6;
}

/* ── Combo badge: icon + label ── */
.ci-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

/* ── Soft card header pattern ── */
.ci-card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  opacity: 0.04;
  pointer-events: none;
  overflow: hidden;
}

.ci-card-accent::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  transform: rotate(45deg);
  background: var(--color-burgundy);
  top: -30px;
  right: -30px;
  border-radius: 4px;
}

/* ── Dot indicator (replaces bullet points) ── */
.ci-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-dusty-rose);
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.ci-dot--gold { background: var(--color-gold); }
.ci-dot--lavender { background: var(--color-lavender); }
.ci-dot--sage { background: var(--color-sage); }
.ci-dot--coral { background: var(--color-coral); }

/* ======================================================================
   Custom Scrollbar
   ====================================================================== */

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--color-sage), var(--color-lavender));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--color-burgundy), var(--color-brown));
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-cream);
}


/* ======================================================================
   Reset & Base
   ====================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: var(--mesh-gradient);
  background-attachment: scroll;
  background-size: 100% 100%;
  min-height: 100vh;
  animation: gradient-shift 30s ease infinite alternate;
  background-size: 200% 200%;
}

::selection {
  background: rgba(179, 196, 168, 0.35);
  color: var(--color-near-black);
}


/* ======================================================================
   Typography
   ====================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.005em;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

a {
  color: var(--color-brown);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

strong {
  font-weight: 700;
}

.text-serif {
  font-family: var(--font-serif);
}

.text-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-near-black);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

.text-inverse {
  color: var(--text-inverse);
}

.text-gold {
  color: var(--color-gold);
}

.text-gold-dark {
  color: var(--color-brown);
}

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

.text-petrool {
  color: var(--color-burgundy);
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}


/* ======================================================================
   Layout
   ====================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
  padding-top: 80px;
}

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

.py-huge {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

@media (max-width: 768px) {
  .py-huge {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

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


/* ======================================================================
   Animated Gradient Background (Blob System)
   ====================================================================== */

.blob-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-below);
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(120px);
  opacity: 0.08;
  animation: float 25s infinite ease-in-out;
  will-change: transform;
}

.blob-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--color-olive), var(--color-olive-light));
  top: -180px;
  left: -180px;
  border-radius: var(--radius-blob);
  animation: float 25s infinite ease-in-out, shape-shift 20s infinite ease-in-out;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-lavender), var(--color-sky));
  bottom: -80px;
  right: -80px;
  animation-delay: -7s;
  animation: float 22s infinite ease-in-out, shape-shift 18s infinite ease-in-out reverse;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-blush), var(--color-light-rose));
  top: 35%;
  right: 12%;
  animation-delay: -12s;
  animation: float 28s infinite ease-in-out, shape-shift 24s infinite ease-in-out;
}


/* ======================================================================
   Header / Navigation
   ====================================================================== */

.header {
  position: sticky;
  top: 0;
  background: rgba(247, 247, 248, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(247, 247, 248, 0.95);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.04);
}

.logo-img {
  height: 40px;
  width: auto;
  transition: transform var(--transition-fast);
}

.header.scrolled .logo-img {
  height: 32px;
}

.login-logo {
  height: 80px;
  width: auto;
  margin-bottom: var(--space-md);
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  letter-spacing: -0.005em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--color-burgundy);
  border-radius: 1px;
  transition: width 0.25s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover::after {
  width: 50%;
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.nav-link.active::after {
  display: none;
}

@media (max-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.3s ease;
  }

  .header.header-hidden {
    transform: translateY(-100%);
  }

  .nav {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    background: rgba(249, 248, 246, 0.90);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 1px solid rgba(44, 42, 48, 0.05);
    padding: var(--space-xs) var(--space-xs);
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 30px rgba(44, 42, 48, 0.05);
  }

  .nav-link {
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 52px;
    min-width: 52px;
    justify-content: center;
    letter-spacing: 0.01em;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    color: var(--color-burgundy);
    background: transparent !important;
  }

  .nav-link.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-sage), var(--color-lavender));
    border-radius: 3px;
  }

  .page {
    padding-top: 70px;
    padding-bottom: 100px;
  }
}


/* ======================================================================
   Input Groups & Forms
   ====================================================================== */

.input-group {
  margin-bottom: var(--space-lg);
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  appearance: none;
  color: var(--text-primary);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2), 0 4px 16px rgba(201, 168, 76, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group {
  margin-bottom: var(--space-lg);
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  appearance: none;
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2), 0 4px 16px rgba(201, 168, 76, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.range-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.range-group input {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sage), var(--color-lavender));
  appearance: none;
  border-radius: 4px;
}

.range-group input::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-near-black);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44, 42, 48, 0.3);
  transition: transform 0.2s ease;
}

.range-group input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-group input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-near-black);
  cursor: pointer;
  border: none;
}


/* ======================================================================
   Buttons
   ====================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: scale(0.97) translateY(0);
  transition-duration: 0.1s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-brown));
  color: var(--text-inverse);
  box-shadow: 0 4px 18px rgba(122, 59, 80, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-near-black), var(--color-burgundy));
  box-shadow: 0 8px 30px rgba(122, 59, 80, 0.30);
  transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-near-black);
  border: 1.5px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--color-sage);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(44, 42, 48, 0.08);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-brown));
  color: var(--text-inverse);
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-brown), var(--color-burgundy));
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Shimmer Button */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  animation: shimmer 3s infinite;
}


/* ======================================================================
   Cards (Glassmorphism 2.0)
   ====================================================================== */

.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(122, 59, 80, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(201, 168, 76, 0.3),
      transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.003);
  box-shadow: 0 20px 50px rgba(122, 59, 80, 0.08),
    0 0 0 1px rgba(201, 168, 76, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.82);
}

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

.card-ciara {
  border: 1.5px solid rgba(201, 168, 76, 0.3);
  background: linear-gradient(135deg, rgba(249, 248, 246, 0.9), rgba(201, 168, 76, 0.05));
}

.card-ciara:hover {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.12);
}

.card-accent {
  border-left: 4px solid var(--color-burgundy);
}

.result-card {
  margin-top: var(--space-2xl);
  display: none;
  text-align: left;
}

.result-header {
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
}

.result-header h2 {
  font-size: 2.8rem;
  color: var(--color-near-black);
  margin-bottom: var(--space-xs);
}

.result-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-brown);
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
  font-weight: 700;
}

.technical-list,
.music-list {
  margin: var(--space-md) 0;
  list-style: none;
}

.technical-list li,
.music-list li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-md);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.technical-list li:hover,
.music-list li:hover {
  border-left-color: var(--color-burgundy);
}

.creative-constraint {
  background: linear-gradient(135deg, var(--color-near-black), #3A3640);
  color: var(--text-inverse);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  margin-top: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.creative-constraint::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(201, 168, 76, 0.1), transparent);
  pointer-events: none;
}

.creative-constraint h4 {
  margin-bottom: var(--space-sm);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-family: var(--font-sans);
}

.creative-constraint p {
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* Glass card variant */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(44, 42, 48, 0.04);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 40px rgba(44, 42, 48, 0.06);
  transform: translateY(-3px);
}

/* White glass background */
.bg-white-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bg-creme {
  background: var(--color-cream);
}


/* ======================================================================
   Progress Bar
   ====================================================================== */

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar::before {
  content: none; /* Remove shimmer — too busy */
}

.progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--color-burgundy);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar-lg {
  height: 12px;
}

.loading-spinner {
  display: none;
  margin: var(--space-xl) auto;
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}


/* ======================================================================
   Badges
   ====================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--stage-accent-soft);
  color: var(--stage-accent);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.badge-lg {
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
}

.badge-lg .badge-icon {
  font-size: 1.4rem;
}

.badge-icon {
  font-size: 1.1rem;
}

.badge-earned {
  position: relative;
  cursor: default;
  animation: glow-pulse 3s ease-in-out infinite;
}

.badge-locked {
  opacity: 0.35;
  filter: grayscale(100%);
}

.badge-lavender {
  background: var(--accent-lavender-light);
  color: var(--color-dusty-rose);
}

.badge-accent {
  background: var(--color-gold);
  color: var(--color-near-black);
  border: none;
  font-weight: 700;
}

.badge-outline {
  background: transparent;
  border: 1.5px solid var(--color-burgundy);
  color: var(--color-burgundy);
  font-weight: 700;
}

.badge-korall {
  background: var(--color-gold);
  color: var(--color-near-black);
  border: none;
}

.badge-sage {
  background: var(--color-burgundy);
  color: white;
}


/* ======================================================================
   Stat Cards
   ====================================================================== */

.stat-card {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(44, 42, 48, 0.07);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--color-burgundy);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ======================================================================
   Quest Cards
   ====================================================================== */

/* Quest cards — clean, solid, Nordic minimal */
.quest-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 16px 20px;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--category-color, var(--color-burgundy));
  border-radius: 12px;
  transition: all 0.25s ease;
  margin-bottom: 8px;
}

.quest-card:hover {
  background: #FFFFFF;
  border-color: var(--border-medium);
  border-left-color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.quest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border-radius: 10px;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  color: var(--color-burgundy);
  font-weight: 600;
}

.quest-card:hover .quest-icon {
  background: var(--color-burgundy);
  color: white;
}

.quest-icon span {
  display: block;
  font-size: 0.9rem;
}

.quest-card .quest-content {
  flex: 1;
  min-width: 0;
}

.quest-card .quest-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}

.quest-card .quest-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.quest-card .quest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quest-xp {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

.quest-difficulty {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quest-difficulty.easy {
  background: rgba(168, 184, 160, 0.15);
  color: var(--color-sage);
}

.quest-difficulty.medium {
  background: rgba(184, 155, 94, 0.12);
  color: var(--color-gold);
}

.quest-difficulty.hard {
  background: rgba(107, 58, 74, 0.08);
  color: var(--color-burgundy);
}

.quest-card.completed {
  background: var(--bg-primary);
  opacity: 0.7;
  border-left-color: var(--color-sage);
}

.quest-card.completed .quest-icon {
  background: var(--color-sage);
  color: white;
}

.quest-card.completed .quest-name {
  text-decoration: line-through;
  text-decoration-color: var(--text-tertiary);
  color: var(--text-tertiary);
}

.quest-card.completed .quest-icon::after {
  content: '\2713';
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
}


/* ======================================================================
   Interactive Journey Timeline
   ====================================================================== */

.journey-path {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.journey-path::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-sage), var(--color-lavender), var(--color-dusty-rose));
  border-radius: 3px;
  z-index: 0;
}

.timeline-node {
  position: relative;
  padding-left: 80px;
  padding-bottom: var(--space-lg);
  cursor: pointer;
  z-index: 2;
}

.timeline-dot {
  position: absolute;
  left: 28px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(122, 59, 80, 0.15);
  transition: all 0.4s ease;
  z-index: 3;
}

.timeline-node:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 6px 24px rgba(122, 59, 80, 0.25);
}

.timeline-node.active .timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(122, 59, 80, 0.12), 0 6px 24px rgba(122, 59, 80, 0.2);
}

.timeline-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  max-width: 520px;
}

.timeline-node:hover .timeline-card,
.timeline-node.active .timeline-card {
  border-color: var(--stage-accent, var(--color-burgundy));
  box-shadow: 0 12px 36px rgba(122, 59, 80, 0.1);
  transform: translateX(4px);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.timeline-stage-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.timeline-age {
  background: var(--stage-accent-soft, rgba(92, 61, 79, 0.06));
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-sessions {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* Expandable detail panel within node */
.timeline-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.timeline-node.active .timeline-detail {
  max-height: 600px;
  opacity: 1;
  margin-top: var(--space-md);
}

.timeline-detail-inner {
  padding: var(--space-md);
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.timeline-detail-inner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.timeline-modules {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0;
}

.timeline-modules li {
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
}

.timeline-modules li::before {
  content: '\25B8';
  color: var(--color-gold);
  font-weight: 700;
  flex-shrink: 0;
}

.timeline-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-brown));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-cta:hover {
  background: var(--color-near-black);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(122, 59, 80, 0.2);
}

@media (max-width: 700px) {
  .journey-path::before {
    left: 20px;
  }

  .timeline-node {
    padding-left: 44px;
    padding-bottom: var(--space-sm);
  }

  .timeline-card {
    padding: 12px 14px;
    max-width: 100%;
  }

  .timeline-dot {
    left: 6px;
    width: 20px;
    height: 20px;
  }

  .timeline-stage-name {
    font-size: 0.95rem;
  }

  .timeline-age {
    font-size: 0.68rem;
    padding: 2px 8px;
  }
}


/* ======================================================================
   Hero Section
   ====================================================================== */

.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(122, 59, 80, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-burgundy);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(122, 59, 80, 0.1);
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}


/* ======================================================================
   Feature Cards
   ====================================================================== */

.feature-card {
  text-align: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(44, 42, 48, 0.07);
  background: rgba(255, 255, 255, 0.75);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9rem;
  margin: 0 auto;
}


/* ======================================================================
   Profile Section
   ====================================================================== */

.profile-card-ciara {
  border: 1.5px solid var(--color-gold);
  background: linear-gradient(135deg, rgba(242, 224, 222, 0.2), rgba(255, 255, 255, 0.8));
}

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

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-brown));
  color: white;
  box-shadow: 0 8px 30px rgba(122, 59, 80, 0.2);
  flex-shrink: 0;
  border: 3px solid var(--color-gold);
  font-family: var(--font-serif);
  transition: transform 0.3s ease;
}

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

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.profile-level {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.profile-level-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.profile-xp-text {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-name {
    font-size: 1.75rem;
  }
}


/* ======================================================================
   Badges Grid
   ====================================================================== */

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.4s ease;
}

.badge-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px rgba(122, 59, 80, 0.06);
}

.badge-card-icon {
  font-size: 2rem;
}

.badge-card-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-card-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.badge-card.locked {
  opacity: 0.3;
  filter: grayscale(100%);
}


/* ======================================================================
   Tabs
   ====================================================================== */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: 4px;
  background: rgba(122, 59, 80, 0.05);
  border-radius: var(--radius-lg);
  max-width: 100%;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(122, 59, 80, 0.04);
}

.tab {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
  border: none;
  font-family: var(--font-family);
  white-space: nowrap;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.tab.active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  box-shadow: 0 2px 12px rgba(122, 59, 80, 0.06);
  font-weight: 600;
}

/* Border-style tab variant */
.border-tab {
  border: 1.5px solid rgba(122, 59, 80, 0.12);
  background: transparent;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.border-tab:hover {
  border-color: var(--color-sage);
  background: rgba(179, 196, 168, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 196, 168, 0.12);
}

.border-tab.active {
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-brown));
  color: white;
  border-color: var(--color-burgundy);
  box-shadow: 0 4px 16px rgba(122, 59, 80, 0.2);
}


/* ======================================================================
   Streaks
   ====================================================================== */

.streak-display {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, rgba(242, 224, 222, 0.5), rgba(232, 214, 138, 0.3));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.streak-flame {
  font-size: 2rem;
}

.streak-count {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-serif);
  color: var(--color-burgundy);
}

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


/* ======================================================================
   Toast Notifications
   ====================================================================== */

.toast {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-toast);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 50px rgba(122, 59, 80, 0.12);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-near-black);
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}


/* ======================================================================
   Stage Detail Header
   ====================================================================== */

.stage-header {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(44, 42, 48, 0.06);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stage-header-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.stage-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(179, 196, 168, 0.08), transparent 60%);
  pointer-events: none;
}

.stage-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.stage-emoji {
  font-size: 2.5rem;
}

.stage-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ======================================================================
   Skeleton Loading
   ====================================================================== */

.skeleton {
  background: linear-gradient(90deg, rgba(122, 59, 80, 0.04), rgba(201, 168, 76, 0.06), rgba(122, 59, 80, 0.04));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}


/* ======================================================================
   Keyframe Animations
   ====================================================================== */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  25% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-18px) rotate(-0.5deg);
  }
  75% {
    transform: translateY(-8px) rotate(0.3deg);
  }
}

@keyframes shape-shift {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 34% 66% / 48% 62% 38% 52%;
  }
  50% {
    border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%;
  }
  75% {
    border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 50% 100%;
  }
  75% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 50% 0%;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(201, 168, 76, 0.2);
  }
}

@keyframes slide-up-fade {
  0% {
    opacity: 0;
    transform: translateY(40px) rotate(0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

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

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

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

@keyframes scrollBounce {
  0%,
  100% {
    top: 8px;
    opacity: 1;
  }
  50% {
    top: 22px;
    opacity: 0.3;
  }
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* ======================================================================
   Reveal Animations
   ====================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(35px) rotate(0.3deg);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-img {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.float-animation {
  animation: float 4s infinite ease-in-out;
}

.floating {
  animation: float 4s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}

.animate-scale-in {
  animation: scaleIn var(--transition-base) both;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 100ms;
}

.delay-2 {
  animation-delay: 200ms;
}

.delay-3 {
  animation-delay: 300ms;
}

.delay-4 {
  animation-delay: 400ms;
}

.delay-5 {
  animation-delay: 500ms;
}


/* ======================================================================
   Glow Border Effect
   ====================================================================== */

.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg,
      var(--color-burgundy),
      var(--color-gold),
      var(--color-dusty-rose),
      var(--color-gold));
  background-size: 300% 300%;
  animation: gradient-shift 6s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-border:hover::after {
  opacity: 0.6;
}


/* ======================================================================
   Utilities
   ====================================================================== */

.flex {
  display: flex;
}

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

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

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

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

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

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

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

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

.mb-3xl {
  margin-bottom: var(--space-3xl);
}

.mb-4xl {
  margin-bottom: var(--space-4xl);
}

.section-header {
  margin-bottom: var(--space-lg);
}

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

.p-lg {
  padding: var(--space-lg);
}

.p-xl {
  padding: var(--space-xl);
}

.w-full {
  width: 100%;
}

.col-span-full {
  grid-column: 1 / -1;
}

.opacity-70 {
  opacity: 0.7;
}

.relative {
  position: relative;
}


/* ======================================================================
   Empty State
   ====================================================================== */

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}

.empty-state h3 {
  margin-bottom: var(--space-sm);
}

.empty-state p {
  margin: 0 auto;
}


/* ======================================================================
   Page Transitions
   ====================================================================== */

.page-content {
  animation: fadeIn 0.3s ease-out;
}


/* ======================================================================
   Scroll Indicator
   ====================================================================== */

.scroll-indicator {
  width: 30px;
  height: 50px;
  border: 2px solid var(--neutral-400);
  border-radius: 15px;
  position: relative;
  margin: var(--space-xl) auto 0;
}

.scroll-indicator::after {
  content: '';
  width: 4px;
  height: 10px;
  background: var(--color-gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s infinite;
}


/* ======================================================================
   Water Waves / Map Decoration
   ====================================================================== */

.map-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
}

.map-waves svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  animation: wave 10s linear infinite;
}


/* ======================================================================
   Cloud Decorations
   ====================================================================== */

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  z-index: 0;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}


/* ======================================================================
   Hero with Background Image
   ====================================================================== */

/* Hero */
.hero-with-bg {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  background-color: var(--color-near-black);
  background-size: cover;
  background-position: center;
}

.hero-bg-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  transition: transform 12s ease;
}

.hero-with-bg:hover .hero-bg-image {
  transform: scale(1.08);
}

.hero-content-overlay {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--space-lg);
  background: rgba(0, 0, 0, 0.35);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content-overlay h1,
.hero-content-overlay p {
  color: white;
  text-shadow: none;
}

.hero-content-overlay h1 {
  text-shadow: none;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: white;
  background-clip: unset;
}

.hero-content-overlay .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.hero-content-overlay .hero-badge {
  background: var(--color-gold);
  color: var(--color-near-black);
  border-color: transparent;
}

.bg-inspiration {
  background-image: url('/images/inspiration-bg.jpg');
  background-size: cover;
  background-position: center 20%;
  background-attachment: scroll;
}

.bg-hero {
  background-image: url('/images/hero-dancer.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: scroll;
}

.bg-school {
  background-image: url('/images/hero-dancer.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: scroll;
}


/* ======================================================================
   Age-Appropriate Backgrounds
   ====================================================================== */

.bg-eelope {
  background-image: linear-gradient(rgba(249, 248, 246, 0.72), rgba(249, 248, 246, 0.72)), url('../images/p2tipic_Ciara-9212.jpg') !important;
}

.bg-pohi-1 {
  background-image: linear-gradient(rgba(249, 248, 246, 0.72), rgba(249, 248, 246, 0.72)), url('../images/p2tipic_Ciara-9432.jpg') !important;
}

.bg-pohi-2 {
  background-image: linear-gradient(rgba(249, 248, 246, 0.72), rgba(249, 248, 246, 0.72)), url('../images/p2tipic_Ciara-9650.jpg') !important;
}

.bg-pohi-3 {
  background-image: linear-gradient(rgba(249, 248, 246, 0.72), rgba(249, 248, 246, 0.72)), url('../images/p2tipic_Ciara-9562.jpg') !important;
}


/* ======================================================================
   Quests Page -- Module Groups
   ====================================================================== */

/* Module groups — clean hierarchy */
.module-group {
  margin-bottom: var(--space-lg);
}

.module-header {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  user-select: none;
}

.module-header:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.module-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-header h3 span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-burgundy);
  background: rgba(107, 58, 74, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

.module-toggle-icon {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  color: var(--text-tertiary);
}

.module-group.expanded .module-toggle-icon {
  transform: rotate(180deg);
}

.module-group.expanded .module-header {
  border-color: var(--color-burgundy);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.module-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.module-group.expanded .module-content {
  max-height: 3000px;
  padding: 12px;
}


/* ======================================================================
   Login Overlay
   ====================================================================== */

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 42, 48, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.login-overlay.hidden {
  display: none;
}

.login-card {
  max-width: 420px;
  width: 100%;
  padding: var(--space-xl);
  text-align: center;
  background: rgba(249, 248, 246, 0.97);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(44, 42, 48, 0.3);
  backdrop-filter: blur(16px);
}

.login-card h2 {
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
  font-size: 2rem;
}

.login-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
}

.login-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid rgba(122, 59, 80, 0.15);
  border-radius: var(--radius-md);
  background: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--color-near-black);
}

.login-input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.8;
}

.login-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2), 0 4px 16px rgba(201, 168, 76, 0.1);
}


/* ======================================================================
   Diary & Reflection
   ====================================================================== */

.diary-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.diary-history-list .card {
  transition: all 0.3s ease;
}

.diary-history-list .card:hover {
  transform: translateX(4px);
}

#focus-chips .btn {
  transition: all 0.3s ease;
}

#focus-chips .btn.active {
  background: var(--color-burgundy) !important;
  color: white !important;
  box-shadow: 0 4px 14px rgba(122, 59, 80, 0.25);
}


/* ======================================================================
   Generator Container
   ====================================================================== */

#generator-section {
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
}

#generator-section .section-header h2::after {
  background: var(--color-gold);
}

.generator-container {
  max-width: 700px;
  margin: 0 auto;
}


/* ======================================================================
   Onboarding Steps
   ====================================================================== */

.onboarding-step {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.onboarding-step:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(122, 59, 80, 0.06);
}


/* ======================================================================
   Passport Stamps
   ====================================================================== */

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-md);
}

.stamp {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border: 4px double var(--border-light);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(100%) opacity(0.3);
  padding: var(--space-sm);
}

.stamp.earned {
  filter: none;
  opacity: 1;
  border-color: var(--color-gold);
  transform: rotate(-5deg);
  box-shadow: 0 10px 25px rgba(201, 168, 76, 0.2);
}

.stamp.earned:hover {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: 0 14px 35px rgba(201, 168, 76, 0.3);
}

.stamp-icon {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.stamp-name {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--color-burgundy);
}

.stamp-date {
  font-size: 0.5rem;
  opacity: 0.6;
  margin-top: 2px;
}

.stamp::after {
  content: 'CIARA';
  position: absolute;
  bottom: 10px;
  font-size: 0.4rem;
  letter-spacing: 0.2em;
  font-weight: 900;
  opacity: 0.2;
}


/* ======================================================================
   Tantsumaailm / Theory Page
   ====================================================================== */

.theory-section {
  max-width: 900px;
  margin: 0 auto;
}

/* Expandable Theory Cards */
.theory-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(44, 42, 48, 0.04);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.theory-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.theory-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  user-select: none;
}

.theory-expand-icon {
  font-size: 1.2rem;
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
}

.theory-card.expanded .theory-expand-icon {
  transform: rotate(90deg);
}

.theory-card-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-lg);
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.theory-card.expanded .theory-card-body {
  max-height: 3000px;
  padding: 0 var(--space-lg) var(--space-lg);
}

/* Style Timeline */
.style-timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.style-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-burgundy), var(--color-gold));
}

.style-period {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.style-period-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px white;
}

/* Fun Fact Callout */
.fun-fact {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, rgba(232, 214, 138, 0.2), rgba(201, 168, 76, 0.1));
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 3px solid var(--color-gold);
}

/* Key Terms Grid */
.key-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-sm);
}

.key-term {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.key-term-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-burgundy);
  margin-bottom: 2px;
}

.key-term-meaning {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Dancers Grid */
.dancers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.dancer-card {
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.dancer-card:hover {
  transform: translateY(-4px);
}

.dancer-card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  text-align: left;
}

.dancer-card.expanded .dancer-card-detail {
  max-height: 600px;
  margin-top: var(--space-md);
}

.dancer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-burgundy);
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-md);
  margin: var(--space-sm) 0;
}

/* Venues Grid */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.venue-card {
  cursor: pointer;
  text-align: center;
}

.venue-card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  text-align: left;
}

.venue-card.expanded .venue-card-detail {
  max-height: 400px;
  margin-top: var(--space-md);
}

/* Career Cards */
.career-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44, 42, 48, 0.04);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.career-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.career-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}

.career-card-detail {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-lg);
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.career-card.expanded .career-card-detail {
  max-height: 500px;
  padding: 0 var(--space-lg) var(--space-lg);
}

/* Quizzes Grid */
.quizzes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.quiz-card {
  text-align: center;
}

/* Quiz Option Buttons */
.quiz-option {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(122, 59, 80, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-family);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--color-burgundy);
  background: rgba(122, 59, 80, 0.03);
  transform: translateX(4px);
}

.quiz-option.correct {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #2e7d32;
  font-weight: 600;
}

.quiz-option.wrong {
  background: #fce4ec;
  border-color: #e57373;
  color: #c62828;
}

.quiz-option:disabled {
  cursor: default;
  opacity: 0.85;
}


/* ======================================================================
   Hover Animation Utility
   ====================================================================== */

.animation-hover {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.animation-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 45px rgba(122, 59, 80, 0.1);
}


/* ======================================================================
   Events Grid
   ====================================================================== */

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


/* ======================================================================
   Events Timeline
   ====================================================================== */

.events-timeline {
  position: relative;
  padding-left: 2rem;
}

.events-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-burgundy), var(--color-gold), rgba(122, 59, 80, 0.08));
}

.timeline-month {
  margin-bottom: var(--space-lg);
}

.timeline-month--past {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.timeline-month--past:hover {
  opacity: 0.85;
}

.timeline-month-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
  position: relative;
}

.timeline-month-dot {
  position: absolute;
  left: -2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-burgundy);
  border: 2px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-burgundy);
  z-index: 1;
}

.timeline-month-label {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-burgundy);
  font-weight: 600;
  margin: 0;
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


/* ======================================================================
   Event Cards
   ====================================================================== */

.event-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(44, 42, 48, 0.05);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(44, 42, 48, 0.07);
  background: rgba(255, 255, 255, 0.88);
}

.event-card--past {
  background: rgba(255, 255, 255, 0.5);
}

.event-card--upcoming {
  box-shadow: 0 0 0 2px var(--color-gold), 0 4px 24px rgba(201, 168, 76, 0.15);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.event-card-date {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.event-date-text {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-burgundy);
  letter-spacing: 0.02em;
}

.event-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.event-card-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.event-org-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.event-status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 6px;
}

.event-status-badge.event-card--past {
  background: rgba(44, 42, 48, 0.06);
  color: var(--text-tertiary);
  box-shadow: none;
}

.event-status-badge.event-card--upcoming {
  background: rgba(201, 168, 76, 0.12);
  color: var(--color-brown);
  box-shadow: none;
}

.event-card-body {
  margin-bottom: 0.5rem;
}

.event-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.event-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 0.25rem;
  font-style: italic;
  font-family: var(--font-serif);
}

.event-card-location {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(122, 59, 80, 0.04);
}

.event-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.event-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-burgundy);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(122, 59, 80, 0.15);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.event-link:hover {
  background: var(--color-burgundy);
  color: white;
  border-color: var(--color-burgundy);
}


/* ======================================================================
   Event Groups
   ====================================================================== */

.event-groups-section {
  position: relative;
}

.event-groups-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid rgba(122, 59, 80, 0.1);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}

.event-groups-toggle:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.event-group-count {
  font-weight: 700;
  color: var(--color-burgundy);
}

.event-group-label {
  font-weight: 500;
}

.event-toggle-icon {
  font-size: 0.6rem;
  transition: transform 0.25s ease;
}

.event-groups-dropdown {
  display: block;
  background: rgba(122, 59, 80, 0.03);
  border: 1px solid rgba(122, 59, 80, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.event-groups-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.event-group-tag {
  display: inline-block;
  background: rgba(122, 59, 80, 0.06);
  color: var(--color-burgundy);
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.event-group-tag--none {
  background: rgba(122, 59, 80, 0.03);
  color: var(--text-tertiary);
  font-weight: 400;
}

.event-group-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-primary);
  transition: background 0.15s;
}

.event-group-option:hover {
  background: rgba(122, 59, 80, 0.04);
}

.event-group-option input[type="checkbox"] {
  accent-color: var(--color-burgundy);
  width: 16px;
  height: 16px;
}


/* ======================================================================
   Reflection
   ====================================================================== */

.event-info-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-sage);
  background: rgba(179, 196, 168, 0.08);
  border: 1px solid rgba(179, 196, 168, 0.3);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-family);
}

.event-info-btn:hover {
  background: var(--color-sage);
  color: white;
  border-color: var(--color-sage);
}

.event-reflect-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}

.event-reflect-btn:hover {
  background: var(--color-gold);
  color: var(--color-near-black);
  border-color: var(--color-gold);
}

.event-reflect-btn--done {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--color-gold);
}

/* Reflection Modal */
.reflection-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 42, 48, 0.5);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.reflection-modal {
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(44, 42, 48, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.reflection-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(122, 59, 80, 0.06);
}

.reflection-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-burgundy);
  margin: 0 0 0.25rem;
}

.reflection-modal-header p {
  font-size: 0.85rem;
  margin: 0;
}

.reflection-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.reflection-close:hover {
  color: var(--color-burgundy);
}

.reflection-group-header {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-burgundy);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(122, 59, 80, 0.1);
}
.reflection-group-header:first-child {
  margin-top: 0;
}

.reflection-modal-body {
  padding: var(--space-md) var(--space-lg);
  overflow-y: auto;
  flex: 1;
}

.reflection-question {
  margin-bottom: var(--space-md);
}

.reflection-question label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-burgundy);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.reflection-question textarea {
  width: 100%;
  border: 1.5px solid rgba(122, 59, 80, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-primary);
  resize: vertical;
  transition: all 0.25s ease;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
}

.reflection-question textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.reflection-modal-footer {
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  border-top: 1px solid rgba(122, 59, 80, 0.06);
  text-align: right;
}


/* ======================================================================
   Section Tabs (Challenges)
   ====================================================================== */

#section-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
  max-width: 100%;
}

#section-tabs::-webkit-scrollbar {
  display: none;
}


/* ======================================================================
   Responsive (max-width: 768px)
   ====================================================================== */

@media (max-width: 768px) {

  .dancers-grid,
  .venues-grid,
  .quizzes-grid {
    grid-template-columns: 1fr;
  }

  .key-terms-grid {
    grid-template-columns: 1fr;
  }

  .career-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .events-timeline {
    padding-left: 1.5rem;
  }

  .timeline-month-dot {
    left: -1.5rem;
    width: 10px;
    height: 10px;
  }

  .events-timeline::before {
    left: 0.35rem;
  }

  .event-card {
    padding: var(--space-sm);
  }

  .event-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .reflection-modal {
    max-height: 90vh;
  }

  .reflection-modal-header,
  .reflection-modal-body,
  .reflection-modal-footer {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  /* ── Scrollable tab rows — row scrolls, page stays ── */
  .tabs,
  .quick-nav,
  #section-tabs,
  #theory-tabs,
  #blog-category-tabs,
  #daily-category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    scrollbar-width: none;
    width: auto !important;
    max-width: 100%;
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
    gap: 0.4rem;
    box-sizing: border-box;
  }

  .tabs::-webkit-scrollbar,
  .quick-nav::-webkit-scrollbar,
  #section-tabs::-webkit-scrollbar,
  #theory-tabs::-webkit-scrollbar,
  #blog-category-tabs::-webkit-scrollbar,
  #daily-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .quick-nav {
    background: transparent;
  }

  .tab {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .quick-nav .tab {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    min-height: 40px;
  }

  /* Glass card padding */
  .glass-card.p-lg {
    padding: var(--space-md);
  }

  /* Toast mobile */
  .toast {
    left: var(--space-sm);
    right: var(--space-sm);
    max-width: 100%;
    top: var(--space-md);
  }

  /* Generous touch targets */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }

  .btn-sm {
    min-height: 44px;
  }

  .quest-card {
    min-height: 48px;
  }

  /* Onboarding */
  .onboarding-step {
    padding: var(--space-sm);
  }

  /* Hero with bg */
  .hero-with-bg {
    min-height: 35vh;
    border-radius: var(--radius-lg);
  }

  .hero-bg-image {
    background-attachment: scroll;
  }

  /* Generator container */
  .generator-container {
    padding: var(--space-md);
  }

  /* Profile header stacking */
  .profile-header {
    gap: var(--space-md);
    padding: var(--space-lg);
  }

  .avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  /* Stamps grid */
  .stamp-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: var(--space-md);
  }

  .stamp {
    width: 100px;
    height: 100px;
  }
}


/* ======================================================================
   Mobile-first improvements — comprehensive
   ====================================================================== */

@media (max-width: 768px) {

  /* ── Scrollable rows: fade hint on edges ── */
  .tabs,
  .quick-nav {
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
  }

  /* ── Typography scaling ── */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.05rem; }

  .h2 { font-size: 1.6rem; }

  /* ── Container breathing room ── */
  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  /* ── Bottom nav — larger text, better touch ── */
  .nav-link {
    font-size: 0.72rem;
    padding: 6px 8px;
    gap: 3px;
    min-width: 56px;
  }

  /* ── No hover transforms on touch (prevents sticky hover) ── */
  .card:hover {
    transform: none;
  }

  .discover-card:hover {
    transform: none;
  }

  /* ── Modals — nearly full-screen on mobile ── */
  .reflection-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .reflection-modal {
    max-width: 100% !important;
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0;
  }

  .reflection-modal-body {
    padding: var(--space-sm) !important;
    -webkit-overflow-scrolling: touch;
  }

  .reflection-modal-header {
    padding: var(--space-sm) var(--space-sm) 0;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
  }

  .reflection-modal-header h3 {
    font-size: 1.1rem;
  }

  .reflection-modal-footer {
    padding: var(--space-sm);
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
  }

  .reflection-modal-footer .btn {
    width: 100%;
  }

  /* ── Textarea mobile-friendly ── */
  .reflection-question textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  /* ── Inputs — prevent iOS zoom ── */
  input[type="text"],
  input[type="time"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px;
  }

  /* ── Event cards — compact on mobile ── */
  .event-card-badges {
    gap: 4px;
  }

  .event-org-badge {
    font-size: 0.7rem !important;
    padding: 2px 8px !important;
  }

  .event-status-select {
    font-size: 0.75rem;
  }

  .event-info-btn,
  .event-link,
  .event-reflect-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
    min-height: 44px;
  }

  /* ── Generator form ── */
  .generator-container {
    padding: var(--space-sm);
  }

  .generator-container .grid-2,
  .generator-container .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* ── Hero with background image ── */
  .hero-with-bg {
    min-height: 28vh;
    padding: var(--space-lg) var(--space-sm);
  }

  .hero-with-bg h1 {
    font-size: 1.6rem;
  }

  .hero-with-bg p {
    font-size: 0.9rem;
  }

  /* ── Profile page ── */
  .profile-card-ciara {
    padding: var(--space-sm);
  }

  .profile-header {
    padding: var(--space-md) !important;
  }

  /* ── Spacing reductions ── */
  .mb-xl { margin-bottom: var(--space-lg); }
  .mb-4xl { margin-bottom: var(--space-xl); }
  .gap-xl { gap: var(--space-md); }
  .p-xl { padding: var(--space-md); }
  .p-lg { padding: var(--space-md); }

  /* ── Footer spacing before bottom nav ── */
  footer {
    padding-bottom: var(--space-md) !important;
    margin-bottom: 80px;
  }

  /* ── Section header ── */
  .section-header h2 {
    font-size: 1.5rem;
  }

  /* ── Packing list items — better touch targets ── */
  .packing-student-item {
    min-height: 48px;
  }

  /* ── Login overlay ── */
  .login-card {
    margin: var(--space-sm);
    padding: var(--space-lg);
  }
}

/* Extra small screens (iPhone SE etc) */
@media (max-width: 380px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .nav-link {
    font-size: 0.65rem;
    padding: 5px 6px;
    min-width: 48px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}


/* ======================================================================
   Print Styles
   ====================================================================== */

@media print {
  .header,
  .nav,
  .blob-bg,
  .toast {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    backdrop-filter: none;
    box-shadow: none;
    border: 1px solid #ddd;
    background: white;
  }
}


/* ======================================================================
   Reduced Motion
   ====================================================================== */

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  body {
    animation: none;
  }

  .blob {
    animation: none;
  }
}


/* ======================================================================
   Focus Styles (Accessibility)
   ====================================================================== */

*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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


/* ======================================================================
   Missing Utility Classes (HTML-referenced)
   ====================================================================== */

/* Step numbers for onboarding */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-gold));
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--font-serif);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(122, 59, 80, 0.25);
}

/* Onboarding image */
.onboarding-image-wrap {
  border-radius: var(--radius-xl);
  padding: 0;
  background: none;
  box-shadow: none;
  animation: onboarding-gentle-float 8s ease-in-out infinite;
  overflow: hidden;
}

@keyframes onboarding-gentle-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-1.5deg) translateY(-8px); }
}

.onboarding-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
  filter: sepia(10%) saturate(110%) contrast(1.05);
  border-radius: calc(var(--radius-xl) - 6px);
}

/* Footer text */
.footer-text {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Badge variants */
.badge-gold {
  background: var(--color-gold-light);
  color: var(--color-brown);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.badge-dark {
  background: var(--color-near-black);
  color: white;
}

/* Section overline */
.section-overline {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

/* Card variants */
.card-dark {
  background: var(--color-burgundy);
  color: white;
  border: none;
}

.card-dark h4,
.card-dark .h2 {
  color: rgba(255, 255, 255, 0.85);
}

/* Vision cards */
.vision-goal-card {
  border-top: 4px solid var(--color-gold);
}

.vision-goal-card h3 {
  color: var(--color-gold);
}

.vision-dream-card {
  border-top: 4px solid var(--color-burgundy);
}

.vision-dream-card h3 {
  color: var(--color-burgundy);
}

/* Gamification box */
.gamification-title {
  font-size: 1.1rem;
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
}

.gamification-list {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: var(--space-md);
}

.gamification-list li {
  margin-bottom: var(--space-xs);
}

/* Text accent (replaces text-petrool in new brand) */
.text-accent {
  color: var(--color-burgundy);
  font-weight: 600;
}

/* ======================================================================
   Tantsuteadus Blog Styles
   ====================================================================== */

.blog-search {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 2px solid rgba(122, 59, 80, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.blog-search:focus {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 3px rgba(122, 59, 80, 0.08);
}

.blog-search::placeholder {
  color: var(--text-tertiary);
}

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

.blog-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  border-left: 5px solid var(--color-burgundy);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: blogCardReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.blog-card-category {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-burgundy);
  line-height: 1.3;
  margin: 0;
}

.blog-card-summary {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.blog-card-source {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(122, 59, 80, 0.06);
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.blog-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-brown);
  background: rgba(121, 78, 31, 0.08);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    padding: var(--space-sm) var(--space-md);
  }

  .blog-card-title {
    font-size: 1.1rem;
  }
}

/* Season Timeline */
.season-timeline {
  overflow-x: auto;
}
.season-months {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  min-height: 100px;
  padding: var(--space-sm) 0;
}
.season-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 40px;
}
.season-month--current .season-label {
  color: var(--color-burgundy);
  font-weight: 700;
}
.season-month--current .season-bar {
  background: var(--color-burgundy) !important;
}
.season-bar-wrap {
  display: flex;
  align-items: flex-end;
  height: 60px;
}
.season-bar {
  width: 24px;
  background: var(--color-gold);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s ease;
  min-height: 4px;
}
.season-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
  font-weight: 500;
}
.season-count {
  font-size: 0.65rem;
  color: var(--color-gold);
  font-weight: 700;
}

/* ======================================================================
   Self-Efficacy Tracker (SCCT — Lent & Brown, 2013)
   ====================================================================== */
.efficacy-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(122, 59, 80, 0.06);
}
.efficacy-item:last-child {
  border-bottom: none;
}
.efficacy-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}
.efficacy-scale {
  display: flex;
  gap: 0.4rem;
}
.efficacy-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(122, 59, 80, 0.15);
  background: white;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.efficacy-btn:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}
.efficacy-btn.active {
  background: var(--color-burgundy);
  border-color: var(--color-burgundy);
  color: white;
}

/* Efficacy History Chart */
.efficacy-history {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.efficacy-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.efficacy-row-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 110px;
  flex-shrink: 0;
}
.efficacy-row-bars {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  align-items: flex-end;
  height: 40px;
}
.efficacy-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.efficacy-bar-fill {
  width: 100%;
  background: linear-gradient(to top, var(--color-gold), var(--color-burgundy));
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.4s ease;
}

@media (max-width: 768px) {
  .efficacy-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  .efficacy-row-label {
    min-width: auto;
  }
  .efficacy-row-bars {
    width: 100%;
  }
}

/* ── Checklist / Varustus ── */

.checklist-item-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.checklist-item-row:hover {
  border-color: var(--color-gold);
}

.checklist-item-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  padding: var(--space-xs) 0;
}

.checklist-item-input::placeholder {
  color: var(--text-tertiary);
}

.checklist-required-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-required-toggle input[type="checkbox"] {
  accent-color: var(--color-burgundy);
}

.checklist-remove-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.checklist-remove-btn:hover {
  color: var(--color-burgundy);
}

/* Student checklist */

.checklist-student-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.checklist-student-item:hover {
  border-color: var(--color-sage);
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 42, 48, 0.05);
}

.checklist-student-item.checked {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(223,186,79,0.06), rgba(223,186,79,0.02));
}

.checklist-student-item.checked .checklist-item-name {
  text-decoration: line-through;
  text-decoration-color: var(--color-gold);
  color: var(--text-tertiary);
}

.checklist-student-item input[type="checkbox"] {
  display: none;
}

.checklist-checkbox-visual {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-dusty-rose);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.checklist-student-item.checked .checklist-checkbox-visual {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.checklist-student-item.checked .checklist-checkbox-visual::after {
  content: '';
  width: 8px;
  height: 14px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-1px);
}

.checklist-item-name {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
  transition: all 0.3s ease;
}

.checklist-required-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-burgundy);
  background: rgba(131,46,72,0.08);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.checklist-done-banner {
  background: linear-gradient(135deg, rgba(223,186,79,0.12), rgba(223,186,79,0.04));
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  color: var(--color-burgundy);
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .checklist-student-item {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }
  .checklist-item-name {
    font-size: 0.9rem;
  }
  .checklist-required-badge {
    font-size: 0.65rem;
  }
}


/* ======================================================================
   Modern Design Enhancements 2026
   ====================================================================== */

/* Subtle grain texture overlay for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Cards — unified hover with lift + subtle sage glow */
.card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(44, 42, 48, 0.07), 0 0 0 1px rgba(179, 196, 168, 0.12);
}

/* Accent bar for section headers — gradient dot cluster */
.section-header h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--space-sm) auto 0;
  background: linear-gradient(90deg, var(--color-sage), var(--color-dusty-rose), var(--color-lavender));
  border-radius: 3px;
  opacity: 0.7;
}

/* Smooth focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Badge olive variant */
.badge-olive {
  background: rgba(197, 206, 170, 0.25);
  color: #5A6340;
}

/* Badge sky variant */
.badge-sky {
  background: rgba(181, 202, 214, 0.25);
  color: #4A6A7A;
}

/* Tabs — refined active state with sage accent */
.tab.active,
.tab.border-tab.active {
  position: relative;
}

.tab.border-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  width: 60%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-sage), var(--color-lavender));
  border-radius: 3px;
}

/* Animated entrance for reveal elements */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Subtle divider with sage-to-lavender */
.ciara-divider::before,
.ciara-divider::after {
  background: linear-gradient(to right, transparent, var(--color-sage), var(--color-lavender), transparent);
}

/* Quick nav border-tab refinement */
.quick-nav .tab.border-tab {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.5);
}

.quick-nav .tab.border-tab:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--color-sage);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 196, 168, 0.12);
}

.quick-nav .tab.border-tab.active {
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-brown));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(122, 59, 80, 0.2);
}

.quick-nav .tab.border-tab.active::after {
  display: none;
}

/* ── Photo accent strips ── */
/* Brush stroke mask for images */
.brush-mask {
  -webkit-mask-image: url('/images/brush-mask-1.svg');
  mask-image: url('/images/brush-mask-1.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.brush-mask-2 {
  -webkit-mask-image: url('/images/brush-mask-2.svg');
  mask-image: url('/images/brush-mask-2.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.brush-mask-3 {
  -webkit-mask-image: url('/images/brush-mask-3.svg');
  mask-image: url('/images/brush-mask-3.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.photo-strip img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  filter: saturate(0.85);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.photo-strip img:nth-child(1) {
  -webkit-mask-image: url('/images/brush-mask-1.svg');
  mask-image: url('/images/brush-mask-1.svg');
}
.photo-strip img:nth-child(2) {
  -webkit-mask-image: url('/images/brush-mask-2.svg');
  mask-image: url('/images/brush-mask-2.svg');
}
.photo-strip img:nth-child(3) {
  -webkit-mask-image: url('/images/brush-mask-3.svg');
  mask-image: url('/images/brush-mask-3.svg');
}
.photo-strip img:nth-child(4) {
  -webkit-mask-image: url('/images/brush-mask-1.svg');
  mask-image: url('/images/brush-mask-1.svg');
}

.photo-strip img:hover {
  transform: scale(1.05);
  filter: saturate(1.1);
}

@media (max-width: 768px) {
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-strip img {
    height: 120px;
  }
}

/* ── Floating photo card — decorative accent ── */
.photo-card-float {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(44, 42, 48, 0.12);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.photo-card-float::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(44, 42, 48, 0.4));
  pointer-events: none;
}

.photo-card-float:hover {
  transform: rotate(-1deg) scale(1.02);
}

.photo-card-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Pastel accent cards for "Avasta rohkem" ── */
.discover-card {
  text-decoration: none;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.discover-card--sage {
  background: linear-gradient(145deg, rgba(179, 196, 168, 0.15), rgba(221, 228, 200, 0.10));
  border-left: 4px solid var(--color-sage);
}

.discover-card--lavender {
  background: linear-gradient(145deg, rgba(192, 184, 208, 0.15), rgba(181, 202, 214, 0.10));
  border-left: 4px solid var(--color-lavender);
}

.discover-card--rose {
  background: linear-gradient(145deg, rgba(242, 224, 222, 0.2), rgba(221, 190, 192, 0.10));
  border-left: 4px solid var(--color-dusty-rose);
}

.discover-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 16px 40px rgba(44, 42, 48, 0.08);
}

/* ── Pastel dot decorations ── */
.pastel-dots {
  position: absolute;
  pointer-events: none;
}

.pastel-dots::before,
.pastel-dots::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.pastel-dots::before {
  width: 120px;
  height: 120px;
  background: var(--color-olive-light);
  top: -40px;
  right: -40px;
}

.pastel-dots::after {
  width: 80px;
  height: 80px;
  background: var(--color-lavender);
  bottom: -20px;
  left: -20px;
}


/* ── Progress bar — sage to lavender ── */
.progress-bar-fill {
  background: linear-gradient(90deg, var(--color-sage), var(--color-lavender)) !important;
}

/* ── Animated floating shapes — extra background interest ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

/* ── Footer — refined with pastel accent ── */
footer {
  position: relative;
}

footer::before {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(90deg, var(--color-sage), var(--color-lavender), var(--color-dusty-rose));
  border-radius: 2px;
  opacity: 0.4;
}
