/* ===================================================
   VALHALLA-BRIKETTEN — Design System
   "Blå Spejder-Identitet"
   Alfa Slab One + Source Sans 3 (Proxima Nova stand-in)
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Colors — Blå spejder-palette */
  --bg-white: #F8F9FC;
  --bg-cream: #EDF1F7;
  --text-primary: #1A1A2E;
  --text-muted: #5A6478;
  --text-light: #8E99AB;
  --brand-teal: #003366;
  --brand-amber: #0094F0;
  --accent-coral: #EA636F;
  --highlight-sage: #6EBCCD;
  --card-white: #FFFFFF;
  --card-border: #DCE2EB;
  --dark-bg: #001A33;
  --dark-card: #002244;
  --dark-card-border: rgba(110,188,205,0.15);

  /* Typography */
  --font-display: 'Alfa Slab One', Georgia, serif;
  --font-body: 'Source Sans 3', 'proxima-nova', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 100px;
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
  box-sizing: border-box;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  transition: color 0.4s ease;
  white-space: nowrap;
}

.navbar.scrolled .nav-logo {
  color: var(--brand-teal);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.3s, background 0.3s;
}

.navbar.scrolled .nav-link {
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active-link {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active-link {
  color: var(--brand-teal);
  background: rgba(0,51,102,0.08);
}

.nav-admin {
  border: 1.5px solid rgba(255,255,255,0.3);
  font-size: 0.72rem;
  padding: 5px 14px;
}

.navbar.scrolled .nav-admin {
  border-color: var(--card-border);
  color: var(--text-muted);
}

.navbar.scrolled .nav-admin:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  background: rgba(0,51,102,0.05);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
  background: var(--text-primary);
}

@media (max-width: 768px) {
  /* --- Navigation --- */
  .navbar {
    padding: 0 16px;
  }

  .hamburger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-right: -8px;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 80vw);
    height: 100dvh;
    flex-direction: column;
    background: var(--card-white);
    padding: 80px 32px 40px;
    gap: 4px;
    align-items: flex-start;
    transition: right 0.35s ease;
    box-shadow: -8px 0 32px rgba(0,0,0,0.1);
    z-index: 1002;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    color: var(--text-primary);
    font-size: 1rem;
    padding: 14px 16px;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.active-link {
    color: var(--brand-teal);
    background: rgba(0,51,102,0.06);
  }

  .nav-admin {
    border-color: var(--card-border);
    color: var(--text-muted);
    margin-top: 16px;
  }

  /* --- Container padding --- */
  .container {
    padding: 0 16px;
  }

  /* --- Modal fixes --- */
  .modal-overlay {
    padding: 12px;
  }

  .modal-box {
    max-height: 90vh;
    max-height: 90dvh;
    padding: 24px 16px;
  }

  .modal-box.game-modal {
    padding: 16px 12px;
  }

  /* --- Touch-friendly buttons --- */
  .game-card-btn,
  .cta-btn-primary,
  .cta-btn-secondary,
  .admin-save-btn {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  /* --- Dashboard cards touch targets --- */
  .dash-refresh-btn {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 20px;
  }
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 60px;
}

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

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,26,51,0.95) 0%,
    rgba(0,26,51,0.7) 30%,
    rgba(0,26,51,0.3) 60%,
    rgba(0,26,51,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .hero-badge {
    margin-top: 72px;
    margin-bottom: 16px;
    font-size: 0.7rem;
    padding: 5px 14px;
  }
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--highlight-sage);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-tagline {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.tagline-word {
  color: rgba(255,255,255,0.9);
}

.tagline-fire {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #FFE066 20%, #FFB347 45%, #FF6B35 70%, #E85D04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.1);
  animation: fire-text-flicker 3s ease-in-out infinite;
  text-shadow: none;
}

.tagline-fire::before {
  content: 'glød';
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #fff 0%, #FFE066 30%, #FFB347 60%, #FF6B35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(4px) brightness(1.3);
  opacity: 0.5;
  animation: fire-glow-shift 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.tagline-fire::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: -10%;
  width: 120%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(255,107,53,0.5) 0%, rgba(232,93,4,0.2) 50%, transparent 80%);
  filter: blur(6px);
  animation: fire-underglow 2s ease-in-out infinite;
}

.tagline-ember {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FFB347;
  pointer-events: none;
  animation: ember-rise 3s ease-out infinite;
}

.tagline-ember-1 {
  right: 15%;
  top: -2px;
  animation-delay: 0s;
  background: #FFDD44;
}

.tagline-ember-2 {
  right: 30%;
  top: 0;
  animation-delay: 0.8s;
  width: 2px;
  height: 2px;
  background: #FF6B35;
}

.tagline-ember-3 {
  right: 5%;
  top: 2px;
  animation-delay: 1.6s;
  background: #fff;
  width: 2px;
  height: 2px;
}

.tagline-ember-4 {
  right: 22%;
  top: -4px;
  animation-delay: 2.2s;
  background: #FFB347;
  width: 2.5px;
  height: 2.5px;
}

.tagline-ember-5 {
  right: 10%;
  top: 0px;
  animation-delay: 0.4s;
  background: #FFDD44;
  width: 1.5px;
  height: 1.5px;
}

@keyframes fire-text-flicker {
  0%, 100% { filter: brightness(1.1); }
  25% { filter: brightness(1.2); }
  50% { filter: brightness(1.0); }
  75% { filter: brightness(1.25); }
}

@keyframes fire-glow-shift {
  0% { opacity: 0.4; transform: translateY(0); }
  100% { opacity: 0.6; transform: translateY(-1px); }
}

@keyframes fire-underglow {
  0%, 100% { opacity: 0.5; transform: scaleX(1); }
  50% { opacity: 0.8; transform: scaleX(1.1); }
}

@keyframes ember-rise {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  15% { opacity: 0.9; }
  80% { opacity: 0.2; transform: translateY(-28px) translateX(6px) scale(0.4); }
  100% { opacity: 0; transform: translateY(-36px) translateX(8px) scale(0); }
}

.hero-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Counters */
.hero-counters {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.counter-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  min-width: 160px;
  text-align: center;
  transition: transform 0.3s ease;
}

.counter-card:hover {
  transform: translateY(-2px);
}

.counter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.75);
}

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

.counter-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.2;
}

.counter-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-top: 4px;
}

/* Milestone */
.milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,148,240,0.15);
  border: 1px solid rgba(0,148,240,0.25);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-amber);
  margin-bottom: 12px;
}

.milestone-arrow {
  font-size: 1rem;
}

/* CRO: Countdown badge */
.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234,99,111,0.12);
  border: 1px solid rgba(234,99,111,0.2);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.countdown-value {
  color: #EA636F;
  font-weight: 700;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-teal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 24px rgba(0,51,102,0.4);
}

/* Ember particles */
.ember-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  opacity: 0;
  animation: float-ember var(--duration, 8s) var(--delay, 0s) ease-out infinite;
}

@keyframes float-ember {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  50% {
    transform: translateX(var(--drift-1, 30px)) translateY(-40vh);
    opacity: 0.6;
  }
  80% {
    transform: translateX(var(--drift-2, -20px)) translateY(-70vh);
    opacity: 0.3;
  }
  100% {
    transform: translateX(var(--drift-3, 10px)) translateY(-100vh);
    opacity: 0;
  }
}

/* ===================================================
   WAVE DIVIDERS
   =================================================== */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-hero-to-facts {
  background: transparent;
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.wave-facts-to-dash {
  background: var(--bg-cream);
}

.wave-dash-to-branches {
  background: var(--dark-bg);
}

.wave-branches-to-partners {
  background: var(--bg-white);
}

.wave-partners-to-games {
  background: var(--bg-cream);
}

.wave-games-to-timeline {
  background: var(--bg-white);
}

/* ===================================================
   SECTION HEADERS
   =================================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-teal);
  background: rgba(0,51,102,0.08);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-label.light {
  color: var(--highlight-sage);
  background: rgba(110,188,205,0.12);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-title.light {
  color: #fff;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-subtitle.light {
  color: rgba(255,255,255,0.6);
}

/* ===================================================
   FACTS SECTION
   =================================================== */
.facts-section {
  background: var(--bg-cream);
  padding: var(--section-pad) 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.fact-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.fact-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.fact-icon {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--brand-teal);
}

.fact-icon svg {
  width: 20px;
  height: 20px;
}

.fact-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

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

/* --- Video card in facts grid --- */
.fact-video-card {
  grid-column: 1 / -1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.fact-video-card video {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Ingrediens-formel web-element --- */
.formula-card {
  position: relative;
  background: linear-gradient(145deg, #001A33 0%, #003366 40%, #0f4172 80%, #002855 100%);
  border-radius: var(--radius-lg);
  padding: 52px 44px 48px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,26,51,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

.formula-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(110,188,205,0.12);
  pointer-events: none;
}

.formula-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(0,148,240,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.formula-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.formula-ingredient {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}

.formula-ingredient:hover {
  transform: translateY(-6px) scale(1.05);
}

.formula-icon-wrap {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.08);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
  transition: background 0.3s, border-color 0.3s;
}

.formula-ingredient:hover .formula-icon-wrap {
  background: rgba(255,255,255,0.1);
  border-color: rgba(110,188,205,0.25);
}

.formula-icon {
  width: 56px;
  height: 56px;
}

.formula-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.03em;
  text-align: center;
}

.formula-pct {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #0094F0;
}

.formula-op {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: rgba(110,188,205,0.5);
  line-height: 1;
  padding: 0 4px;
  align-self: center;
  margin-top: -28px;
}

.formula-equals {
  font-size: 2.4rem;
  color: #0094F0;
  letter-spacing: -2px;
}

.formula-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.formula-briket-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.formula-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 70px;
  background: radial-gradient(ellipse at center, rgba(255,107,53,0.35) 0%, rgba(250,163,7,0.15) 45%, transparent 75%);
  filter: blur(12px);
  animation: glow-pulse 2.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.formula-briket {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35)) drop-shadow(0 0 16px rgba(255,107,53,0.15));
}

.formula-label-result {
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.formula-quote {
  text-align: center;
  line-height: 1.35;
}

.formula-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255,255,255,0.92);
  display: block;
}

.formula-quote-highlight {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #0094F0;
  display: block;
  text-shadow: 0 0 20px rgba(0,148,240,0.3);
}

.formula-sparkle {
  position: absolute;
  color: rgba(0,148,240,0.25);
  font-size: 1.2rem;
  animation: sparkle-float 4s ease-in-out infinite;
}

.formula-sparkle-1 {
  bottom: 16px;
  right: 24px;
  animation-delay: 0s;
}

.formula-sparkle-2 {
  top: 16px;
  left: 24px;
  animation-delay: 2s;
  font-size: 0.8rem;
}

@keyframes sparkle-float {
  0%, 100% { opacity: 0.2; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.6; transform: scale(1.3) rotate(30deg); }
}

@media (max-width: 768px) {
  .formula-card {
    padding: 36px 20px 36px;
  }

  .formula-row {
    gap: 8px;
  }

  .formula-icon-wrap {
    width: 66px;
    height: 66px;
    border-radius: 16px;
  }

  .formula-icon {
    width: 44px;
    height: 44px;
  }

  .formula-op {
    font-size: 1.3rem;
    margin-top: -20px;
  }

  .formula-briket-wrap {
    width: 90px;
    height: 90px;
  }

  .formula-briket {
    width: 90px;
    height: 90px;
  }

  .formula-label {
    font-size: 0.65rem;
  }

  .formula-pct {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .formula-row {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .formula-ingredient {
    flex: 0 0 calc(25% - 12px);
    min-width: 60px;
  }

  .formula-op {
    display: none;
  }

  .formula-equals {
    display: block;
    flex-basis: 100%;
    text-align: center;
    margin-top: 0;
    font-size: 1.5rem;
  }

  .formula-result {
    flex-basis: 100%;
  }
}

@media (max-width: 600px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   DASHBOARD SECTION
   =================================================== */
.dashboard-section {
  background: var(--dark-bg);
  padding: var(--section-pad) 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s ease;
}

.dash-card:hover {
  transform: scale(1.01);
}

.dash-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 400;
}

.dash-card-sub {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}

.dash-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-stat {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
}

.dash-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
}

.dash-stat-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dash-stat-info {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.dash-stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand-amber);
}

.dash-stat.highlight .dash-stat-val {
  color: var(--brand-amber);
  text-shadow: 0 0 20px rgba(0,148,240,0.4);
}

.dash-stat-unit {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.dash-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  text-align: right;
}

.dash-stat.estimated {
  background: rgba(0,148,240,0.08);
  border: 1px solid rgba(0,148,240,0.15);
}

/* Progress bar */
.progress-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-card-border);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.progress-label strong {
  color: var(--brand-amber);
}

.progress-pct {
  font-family: var(--font-display);
  color: var(--brand-amber);
  font-size: 1rem;
}

.progress-bar-bg {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-teal), var(--highlight-sage));
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scoreboard */
.scoreboard {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-card-border);
}

.scoreboard-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scoreboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.scoreboard-rank {
  width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
}

.scoreboard-icon {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.6);
}

.scoreboard-icon svg {
  width: 16px;
  height: 16px;
}

.scoreboard-name {
  flex: 1;
  font-weight: 500;
}

.scoreboard-val {
  font-family: var(--font-display);
  color: var(--brand-amber);
  font-size: 1.05rem;
}

/* Timeline mini */
.timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.timeline-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.timeline-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.timeline-mini-item.done .timeline-mini-dot {
  background: var(--highlight-sage);
}

.timeline-mini-item.current .timeline-mini-dot {
  background: var(--brand-amber);
  box-shadow: 0 0 8px rgba(0,148,240,0.5);
}

.timeline-mini-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.timeline-mini-item.current .timeline-mini-label {
  color: var(--brand-amber);
  font-weight: 700;
}

.timeline-mini-item.done .timeline-mini-label {
  color: rgba(255,255,255,0.55);
}

/* Next step */
.next-step-text {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0,148,240,0.1);
  border: 1px solid rgba(0,148,240,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--brand-amber);
}

.next-step-arrow {
  font-size: 1.1rem;
}

/* Dashboard refresh */
.dashboard-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.refresh-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.refresh-btn.spinning .refresh-icon {
  animation: spin 0.6s ease;
}

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

.refresh-icon {
  display: inline-block;
  font-size: 1.1rem;
}

.refresh-time {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dash-stat {
    grid-template-columns: 28px 1fr;
    gap: 8px;
  }

  .dash-stat-label {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: -4px;
  }
}

/* ===================================================
   BRANCHES SECTION
   =================================================== */
.branches-section {
  background: var(--bg-white);
  padding: var(--section-pad) 0;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* 5-branch layout: top row 3 cards each span 2 cols, bottom row 2 cards centered */
.branches-grid > .branch-card {
  grid-column: span 2;
}

/* Center the last 2 cards in a 6-col grid: each spans 2, total 4, offset by 1 */
.branches-grid > .branch-card:nth-child(4) {
  grid-column: 2 / 4;
}

.branches-grid > .branch-card:nth-child(5) {
  grid-column: 4 / 6;
}

.branch-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  border-left: 4px solid var(--brand-teal);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:nth-child(1) { border-left-color: #0f4172; }
.branch-card:nth-child(2) { border-left-color: var(--brand-amber); }
.branch-card:nth-child(3) { border-left-color: var(--accent-coral); }
.branch-card:nth-child(4) { border-left-color: #4A90D9; }
.branch-card:nth-child(5) { border-left-color: #2c98b7; }

.branch-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.branch-icon {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--brand-teal);
}

.branch-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.branch-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.branch-age {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.branch-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin-bottom: 10px;
}

.branch-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.branch-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

.branch-stat {
  display: flex;
  flex-direction: column;
}

.branch-stat-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
}

.branch-stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.branch-level {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: rgba(110,188,205,0.15);
  color: var(--brand-teal);
}

.branch-level.level-Øvet {
  background: rgba(0,148,240,0.1);
  color: var(--brand-amber);
}

.branch-level.level-Mester {
  background: rgba(234,99,111,0.1);
  color: var(--accent-coral);
}

@media (max-width: 768px) {
  .branches-grid {
    grid-template-columns: 1fr;
  }
  .branches-grid > .branch-card {
    grid-column: span 1;
  }
  .branches-grid > .branch-card:nth-child(4),
  .branches-grid > .branch-card:nth-child(5) {
    grid-column: span 1;
  }
}

/* ===================================================
   PARTNERS SECTION
   =================================================== */
.partners-section {
  background: var(--bg-cream);
  padding: var(--section-pad) 0;
}

.partners-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partner-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  align-items: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}

.partner-avatar {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.partner-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.partner-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-teal);
  background: rgba(0,51,102,0.06);
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.partner-desc {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
}

.partner-link {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin-top: 8px;
  transition: color 0.2s;
}

.partner-link:hover {
  color: var(--brand-amber);
}

/* ===================================================
   GAMES SECTION
   =================================================== */
.games-section {
  background: var(--bg-white);
  padding: var(--section-pad) 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.game-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-teal);
}

.game-card-icon svg {
  width: 48px;
  height: 48px;
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.game-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.game-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.2s;
}

.game-btn:hover {
  background: #002855;
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .game-card {
    padding: 24px 20px;
  }

  .game-card-btn,
  .game-btn {
    min-height: 48px;
    padding: 14px 24px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Reduce wave divider height on mobile */
  .wave-divider svg {
    height: 36px;
  }
}

/* ===================================================
   TIMELINE & NEWS SECTION
   =================================================== */
.timeline-section {
  background: var(--bg-cream);
  padding: var(--section-pad) 0;
}

.timeline-news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.column-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Timeline track */
.timeline-track {
  position: relative;
  padding-left: 28px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  z-index: 1;
  color: var(--text-light);
}

.timeline-item.completed .timeline-dot {
  color: var(--brand-teal);
}

.timeline-item.active .timeline-dot {
  color: var(--brand-amber);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 3px;
}

.timeline-item.completed .timeline-date {
  color: var(--brand-teal);
}

.timeline-item.active .timeline-date {
  color: var(--brand-amber);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-item:not(.completed):not(.active) .timeline-title {
  color: var(--text-light);
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-item:not(.completed):not(.active) .timeline-desc {
  color: var(--text-light);
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: scale(1.01);
}

.news-date {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-news-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--dark-bg);
  padding: 60px 0 40px;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--highlight-sage);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===================================================
   MODALS
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.admin-modal {
  max-width: 800px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
  background: rgba(0,0,0,0.1);
  color: var(--text-primary);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ===================================================
   GAME MODALS — Shared
   =================================================== */

/* Builder Game */
.builder-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.click-add-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0,51,102,0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.add-btn:hover {
  background: rgba(0,51,102,0.1);
  border-color: var(--brand-teal);
}

.add-btn span:first-child {
  font-size: 0.88rem;
}

.add-btn span:nth-child(2) {
  font-size: 0.72rem;
  color: var(--text-light);
}

.add-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--brand-teal);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
}

.press-container {
  background: var(--bg-cream);
  border: 2px dashed var(--card-border);
  border-radius: var(--radius-md);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.press-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
  z-index: 1;
}

.press-levels {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  height: 160px;
}

.level-bar {
  width: 40px;
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.bar-coffee { background: #4A3728; }
.bar-sawdust { background: #D4B896; }
.bar-paper { background: #8fb8a5; }
.bar-water { background: #4a90d9; }

.mix-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-teal);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  flex: 1;
}

.mix-btn:hover {
  background: #002855;
  transform: scale(1.02);
}

.builder-result {
  margin-top: 20px;
  text-align: center;
  display: none;
}

.builder-result.success,
.builder-result.failure {
  display: block;
  padding: 24px;
  border-radius: var(--radius-md);
  animation: fadeIn 0.4s ease;
}

.builder-result.success {
  background: rgba(0,51,102,0.06);
  border: 1px solid rgba(0,51,102,0.15);
}

.builder-result.failure {
  background: rgba(234,99,111,0.06);
  border: 1px solid rgba(234,99,111,0.15);
}

.result-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.result-emoji svg {
  width: 48px;
  height: 48px;
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

@media (max-width: 600px) {
  .builder-container {
    grid-template-columns: 1fr;
  }
}

/* Calculator Game */
.calc-container {
  max-width: 440px;
  margin: 0 auto;
}

.calc-input-group {
  margin-bottom: 20px;
}

.calc-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.calc-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color 0.2s;
  outline: none;
}

.calc-input:focus {
  border-color: var(--brand-teal);
}

.calc-btn {
  width: 100%;
  padding: 12px;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 24px;
}

.calc-btn:hover {
  background: #002855;
  transform: scale(1.02);
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.calc-results.show {
  opacity: 1;
  transform: translateY(0);
}

.calc-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.calc-result-icon {
  display: flex;
  align-items: center;
  color: var(--brand-teal);
  flex-shrink: 0;
}

.calc-result-icon svg {
  width: 20px;
  height: 20px;
}

.calc-result-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand-teal);
}

.calc-result-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.share-btn {
  width: 100%;
  padding: 10px;
  background: rgba(0,51,102,0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-teal);
  transition: background 0.2s;
}

.share-btn:hover {
  background: rgba(0,51,102,0.12);
}

/* Quiz Game */
.quiz-container {
  max-width: 520px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.quiz-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
}

.quiz-progress-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--brand-teal);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-option {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  background: var(--bg-cream);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--brand-teal);
  background: rgba(0,51,102,0.04);
}

.quiz-option.correct {
  border-color: var(--brand-teal);
  background: rgba(0,51,102,0.08);
  color: var(--brand-teal);
}

.quiz-option.wrong {
  border-color: var(--accent-coral);
  background: rgba(234,99,111,0.06);
  color: var(--accent-coral);
}

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

.quiz-feedback {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  display: none;
  margin-bottom: 16px;
}

.quiz-feedback.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.quiz-feedback.correct-fb {
  background: rgba(0,51,102,0.06);
  border: 1px solid rgba(0,51,102,0.12);
}

.quiz-feedback.wrong-fb {
  background: rgba(234,99,111,0.06);
  border: 1px solid rgba(234,99,111,0.12);
}

.quiz-next-btn {
  display: none;
  width: 100%;
  padding: 12px;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}

.quiz-next-btn.show {
  display: block;
}

.quiz-next-btn:hover {
  background: #002855;
}

.quiz-result {
  text-align: center;
  display: none;
}

.quiz-result.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.quiz-result-score {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--brand-teal);
}

.quiz-result-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.quiz-result-msg {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.quiz-restart-btn {
  padding: 10px 28px;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}

.quiz-restart-btn:hover {
  background: #002855;
}

/* ===================================================
   ADMIN PANEL
   =================================================== */
.admin-login {
  text-align: center;
  padding: 40px 0;
}

.admin-login h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.admin-login p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.admin-input {
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.admin-input:focus {
  border-color: var(--brand-teal);
}

.admin-login-btn {
  padding: 10px 32px;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}

.admin-login-btn:hover {
  background: #002855;
}

.admin-error {
  font-size: 0.82rem;
  color: var(--accent-coral);
  font-weight: 600;
  margin-top: 12px;
  min-height: 20px;
}

/* Admin Panel */
.admin-panel {
  display: none;
}

.admin-panel.show {
  display: block;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
}

.admin-logout-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.admin-logout-btn:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

.admin-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.admin-tab {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--brand-teal);
  background: rgba(0,51,102,0.06);
}

.admin-tab.active {
  color: #fff;
  background: var(--brand-teal);
}

/* Admin forms */
.admin-field {
  margin-bottom: 16px;
}

.admin-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: var(--brand-teal);
}

.admin-field textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.admin-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}

.admin-save-btn:hover {
  background: #002855;
}

.admin-success {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-teal);
  margin-left: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.admin-success.show {
  opacity: 1;
}

/* Admin list */
.admin-list {
  margin-bottom: 16px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  gap: 12px;
}

.admin-item-info {
  flex: 1;
  min-width: 0;
}

.admin-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-edit-btn,
.admin-delete-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.admin-edit-btn {
  color: var(--brand-teal);
  border: 1px solid rgba(0,51,102,0.2);
}

.admin-edit-btn:hover {
  background: rgba(0,51,102,0.06);
}

.admin-delete-btn {
  color: var(--accent-coral);
  border: 1px solid rgba(234,99,111,0.2);
}

.admin-delete-btn:hover {
  background: rgba(234,99,111,0.06);
}

.admin-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border: 1.5px dashed var(--card-border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
}

.admin-add-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   CRO: Partner CTA Section
   =================================================== */
.partner-cta-section {
  padding: 80px 0 60px;
  background: var(--bg-cream);
}

.partner-cta-card {
  background: linear-gradient(135deg, #001A33 0%, #003366 50%, #0f4172 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,26,51,0.3);
}

.partner-cta-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(0,148,240,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.partner-cta-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0094F0;
  margin-bottom: 12px;
}

.partner-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.partner-cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 540px;
  font-weight: 500;
}

.partner-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #0094F0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background 0.25s, transform 0.25s;
  text-decoration: none;
}

.cta-btn-primary:hover {
  background: #007ACC;
  transform: translateY(-2px);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.25s;
  text-decoration: none;
}

.cta-btn-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.partner-cta-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.partner-cta-stat {
  text-align: center;
  padding: 14px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  min-width: 140px;
}

.partner-cta-stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #0094F0;
  display: block;
}

.partner-cta-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .partner-cta-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 28px;
  }

  .partner-cta-stats {
    flex-direction: row;
    justify-content: center;
  }

  .partner-cta-stat {
    flex: 1;
    min-width: auto;
    padding: 12px 10px;
  }

  .partner-cta-stat-val {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .partner-cta-stats {
    flex-wrap: wrap;
  }
}

/* ===================================================
   RESPONSIVE - SMALL PHONES
   =================================================== */
@media (max-width: 480px) {
  :root {
    --section-pad: 48px;
  }

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

  .hero-tagline {
    font-size: 1.3rem;
  }

  .hero-intro {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero-counters {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .counter-card {
    width: 100%;
    max-width: 280px;
    padding: 16px 20px;
  }

  .counter-value {
    font-size: 1.8rem;
  }

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

  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  /* Fact cards readable on small screens */
  .fact-card {
    padding: 20px 16px;
  }

  .fact-title {
    font-size: 1.05rem;
  }

  .fact-desc {
    font-size: 0.88rem;
  }

  /* Video card rounded corners reduced */
  .fact-video-card {
    border-radius: 12px;
  }

  /* Dashboard text readability */
  .dash-card-title {
    font-size: 1.05rem;
  }

  .dash-row-value {
    font-size: 1.5rem;
  }

  .modal-box {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  /* Branch cards */
  .branch-card {
    padding: 20px 16px;
  }

  /* Timeline compact */
  .tl-title {
    font-size: 1rem;
  }

  .tl-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }
}
/* ===================================================
   GUIDE PAGES
   =================================================== */

/* Guide page hero — dark gradient banner at top */
.guide-hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #002244 50%, #003366 100%);
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(110,188,205,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.guide-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.guide-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.guide-hero-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.guide-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  font-style: italic;
}

/* Guide body content */
.guide-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.guide-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--brand-teal);
  margin-top: 56px;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.2;
}

.guide-body h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.guide-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.guide-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.guide-body em {
  color: var(--brand-teal);
  font-style: italic;
}

.guide-body ul, .guide-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.guide-body li {
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.guide-body hr {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 48px 0;
}

/* Guide blockquote */
.guide-body blockquote {
  background: var(--bg-cream);
  border-left: 4px solid var(--brand-amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-primary);
}

.guide-body blockquote p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Guide tables */
.guide-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
}

.guide-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.guide-body thead th {
  background: var(--dark-bg);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guide-body thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.guide-body thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.guide-body tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-muted);
}

.guide-body tbody tr:hover {
  background: var(--bg-cream);
}

/* Video embed */
.guide-video {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
}

.guide-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.guide-video.vertical iframe {
  aspect-ratio: 9/16;
  max-width: 340px;
  margin: 0 auto;
}

/* Activity cards */
.guide-activity {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}

.guide-activity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.guide-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0,51,102,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.guide-activity-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.guide-activity-time {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

.guide-activity .guide-materials {
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.guide-materials strong {
  color: var(--text-primary);
}

/* Tip/callout box */
.guide-tip {
  background: rgba(0,148,240,0.06);
  border: 1px solid rgba(0,148,240,0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  gap: 12px;
}

.guide-tip-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.guide-tip p {
  color: var(--text-primary);
  margin: 0;
  font-size: 0.95rem;
}

/* Safety box */
.guide-safety {
  background: rgba(234,99,111,0.06);
  border: 1px solid rgba(234,99,111,0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.guide-safety h3 {
  color: var(--accent-coral);
  margin-top: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-safety ul {
  margin-bottom: 0;
}

.guide-safety li {
  color: var(--text-muted);
}

/* Materials checklist */
.guide-checklist {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.guide-checklist h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.guide-checklist ul {
  list-style: none;
  padding: 0;
}

.guide-checklist li {
  padding: 6px 0 6px 28px;
  position: relative;
}

.guide-checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
  color: var(--brand-amber);
}

/* Connection to other branches */
.guide-connections {
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-card));
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 40px 0;
}

.guide-connections h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.guide-connections ul {
  list-style: none;
  padding: 0;
}

.guide-connections li {
  color: rgba(255,255,255,0.75);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-connections li:last-child {
  border-bottom: none;
}

.guide-connections em {
  color: var(--highlight-sage);
}

/* Back button */
.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-amber);
  margin-top: 40px;
  padding: 12px 0;
  font-size: 0.95rem;
  transition: gap 0.2s;
}

.guide-back:hover {
  gap: 12px;
}

/* Guide footer */
.guide-footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid var(--card-border);
}

.guide-footer a {
  color: var(--brand-amber);
}

/* ===================================================
   GUIDE OVERVIEW PAGE — Card grid
   =================================================== */
.guide-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.guide-overview-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

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

.guide-overview-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.guide-overview-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brand-teal);
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
}

.guide-overview-card .guide-overview-card-role {
  font-size: 0.82rem;
  color: var(--brand-amber);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.guide-overview-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex-grow: 1;
}

.guide-overview-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.guide-overview-card-age {
  font-size: 0.82rem;
  color: var(--text-light);
}

.guide-overview-card-arrow {
  color: var(--brand-amber);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Coordination cards — different styling */
.guide-overview-card.coord-card {
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-card));
  border-color: var(--dark-card-border);
}

.guide-overview-card.coord-card h3 {
  color: #fff;
}

.guide-overview-card.coord-card .guide-overview-card-role {
  color: var(--highlight-sage);
}

.guide-overview-card.coord-card p {
  color: rgba(255,255,255,0.65);
}

.guide-overview-card.coord-card .guide-overview-card-footer {
  border-color: rgba(255,255,255,0.08);
}

.guide-overview-card.coord-card .guide-overview-card-age {
  color: rgba(255,255,255,0.45);
}

.guide-overview-card.coord-card .guide-overview-card-arrow {
  color: var(--highlight-sage);
}

/* Material flow diagram */
.guide-flow {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  max-width: var(--container-max);
  margin: 0 auto 60px;
  text-align: center;
}

.guide-flow h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 24px;
}

.guide-flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-flow-step {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.guide-flow-arrow {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Responsive guide */
@media (max-width: 768px) {
  .guide-hero {
    padding: 120px 16px 40px;
  }
  
  .guide-body {
    padding: 40px 16px 60px;
  }
  
  .guide-overview-grid {
    grid-template-columns: 1fr;
    padding: 40px 16px 24px;
  }
  
  .guide-flow-steps {
    flex-direction: column;
    gap: 4px;
  }
  
  .guide-flow-arrow {
    transform: rotate(90deg);
  }

  .guide-hero h1 {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    word-break: break-word;
    hyphens: auto;
  }

  .guide-hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .guide-activity {
    padding: 20px 16px;
  }

  .guide-connections {
    padding: 24px 20px;
  }
}
