/* ================================================================
   redesign.css — Consultingo Design System Upgrade
   Loaded last — overrides inline styles and existing stylesheets.
   CSS-only changes. Zero JS / HTML structure changes.
   Source design: demo-consultingo/stitch_screens/
   ================================================================ */

/* ── Font import — Inter replaces DM Sans ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  /* Primary palette — indigo/purple (from 16_Home_Darker_Minimalist) */
  --primary:            #c0c1ff;
  --primary-container:  #8083ff;
  --on-primary-fixed:   #07006c;
  --tertiary:           #d0bcff;
  --tertiary-container: #a078ff;

  /* Surface system — deepest blacks from dark minimalist variant */
  --surface:          #080a0f;
  --surface-dim:      #050608;
  --surface-low:      #0b0e14;
  --surface-mid:      #0f1117;
  --surface-high:     #1c2026;
  --surface-highest:  #272a31;

  /* Text on dark surfaces */
  --on-surface:         #f5f0e8;
  --on-surface-variant: #c7c4d7;

  /* Borders */
  --outline:         #908fa0;
  --outline-variant: #464554;
}

/* ================================================================
   GLOBAL TYPOGRAPHY — Inter system font
   ================================================================ */
body,
input, textarea, select, button,
.dc-title, .dc-desc, .dc-copy, .dc-meta,
.hero-title, .hero-sub,
.b24-sub, .b24-proof,
.topbar-auth-btn, .top-nav-link,
.cards-section-label,
.stat-num, .stat-label,
.seo-copy, .about-bio, .about-role, .about-name,
.sp-link, .side-panel-footer {
  font-family: 'Inter', 'DM Sans', sans-serif;
}

/* Keep Playfair on brand identity elements (logo, auth panel) */
#intro-logo,
.top-nav-logo,
.side-panel-logo,
.auth-right-logo,
.b24-logo {
  font-family: 'Playfair Display', serif !important;
}

/* ================================================================
   LOADING SCREEN — keep animation, update bg + accent
   ================================================================ */
#intro-overlay {
  background: #080a0f !important;
}
#intro-logo em {
  color: var(--primary) !important;
  opacity: 1 !important;
}

/* ================================================================
   BODY BACKGROUND — dark unified (dark mode)
   ================================================================ */
body.mode-home:not(.light-mode) {
  background: var(--surface) !important;
}

/* ================================================================
   TOP NAVIGATION — indigo accent, glassmorphism unchanged
   ================================================================ */
body:not(.light-mode) .top-nav-inner {
  background: rgba(8, 10, 15, 0.80) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

/* Logo em: indigo instead of green */
body:not(.light-mode) .top-nav-logo em {
  color: var(--primary) !important;
}

/* Nav links */
body:not(.light-mode) .top-nav-link {
  color: rgba(255, 255, 255, 0.62) !important;
}
body:not(.light-mode) .top-nav-link:hover {
  color: #fff !important;
  background: rgba(192, 193, 255, 0.07) !important;
}
body:not(.light-mode) .top-nav-link.is-active {
  color: var(--primary) !important;
  background: rgba(192, 193, 255, 0.08) !important;
  border-color: rgba(192, 193, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 20px rgba(192,193,255,0.10) !important;
}

/* Auth buttons — indigo accent */
body:not(.light-mode) .topbar-auth-btn {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 255, 255, 0.80) !important;
}
body:not(.light-mode) .topbar-auth-btn:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}
body:not(.light-mode) .topbar-auth-btn.primary {
  background: linear-gradient(135deg, rgba(128,131,255,0.28), rgba(160,120,255,0.22)) !important;
  border-color: rgba(192, 193, 255, 0.35) !important;
  color: var(--primary) !important;
}
body:not(.light-mode) .topbar-auth-btn.primary:hover {
  background: linear-gradient(135deg, rgba(128,131,255,0.45), rgba(160,120,255,0.38)) !important;
  border-color: rgba(192, 193, 255, 0.55) !important;
  color: #fff !important;
}

/* Side panel */
body:not(.light-mode) .side-panel-logo em {
  color: var(--primary) !important;
}
body:not(.light-mode) .sp-register {
  background: rgba(128, 131, 255, 0.14) !important;
  border-color: rgba(192, 193, 255, 0.22) !important;
}

/* ================================================================
   SCROLL PROGRESS BAR — indigo
   ================================================================ */
body:not(.light-mode) #scroll-bar-track {
  background: rgba(192, 193, 255, 0.10) !important;
}
body:not(.light-mode) #scroll-bar-fill {
  background: linear-gradient(180deg, var(--primary), var(--primary-container)) !important;
  box-shadow: 0 0 8px rgba(128, 131, 255, 0.5) !important;
}
body:not(.light-mode) #scroll-bar-dot {
  background: var(--primary) !important;
  box-shadow: 0 0 10px rgba(192,193,255,0.8), 0 0 22px rgba(128,131,255,0.4) !important;
}
body:not(.light-mode) .scroll-label {
  color: rgba(192, 193, 255, 0.32) !important;
}

/* ================================================================
   HERO — b24 section: aurora orbs → indigo palette
   ================================================================ */
.b24-orb-1 {
  background: radial-gradient(circle, rgba(128,131,255,0.42) 0%, rgba(80,83,200,0.22) 50%, transparent 70%) !important;
}
.b24-orb-2 {
  background: radial-gradient(circle, rgba(80,60,200,0.40) 0%, rgba(100,90,230,0.18) 50%, transparent 70%) !important;
}
.b24-orb-3 {
  background: radial-gradient(circle, rgba(160,120,255,0.28) 0%, rgba(80,60,180,0.15) 50%, transparent 70%) !important;
}
.b24-hero::after {
  background: linear-gradient(to bottom, transparent, #06090f) !important;
}

/* Hero badge */
body:not(.light-mode) .hero-badge-pill {
  background: rgba(192, 193, 255, 0.05) !important;
  border: 1px solid rgba(192, 193, 255, 0.16) !important;
}
body:not(.light-mode) .hero-badge-dot {
  background: var(--primary) !important;
  box-shadow: 0 0 8px rgba(192, 193, 255, 0.65) !important;
}

/* Hero animating word — company name = primary color */
body:not(.light-mode) .b24-word-current,
body:not(.light-mode) .b24-word-next {
  color: var(--primary) !important;
}

/* Hero sub */
body:not(.light-mode) .b24-sub {
  color: rgba(199, 196, 215, 0.85) !important;
}
body:not(.light-mode) .b24-sub strong {
  color: var(--on-surface) !important;
}

/* Hero proof badge */
body:not(.light-mode) .b24-proof-badge {
  background: rgba(128, 131, 255, 0.12) !important;
  color: var(--primary) !important;
  border-color: rgba(192, 193, 255, 0.2) !important;
}

/* Hero CTA button */
body:not(.light-mode) .btn-test {
  background: linear-gradient(135deg, #7678d8 0%, #9b6bf0 100%) !important;
  border: 1px solid rgba(192, 193, 255, 0.25) !important;
  box-shadow:
    0 0 28px rgba(128, 131, 255, 0.32),
    0 8px 32px rgba(100, 80, 220, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
  color: #fff !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}
body:not(.light-mode) .btn-test:hover {
  background: linear-gradient(135deg, #8587e8 0%, #aa7ef8 100%) !important;
  box-shadow:
    0 0 40px rgba(128, 131, 255, 0.50),
    0 12px 40px rgba(100, 80, 220, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.14) !important;
  transform: translateY(-3px) !important;
  border-color: rgba(192, 193, 255, 0.35) !important;
}

/* Logo em in hero */
body:not(.light-mode) .b24-hero .b24-logo em,
body:not(.light-mode) .b24-content .logo em,
body:not(.light-mode) #s-home .logo em {
  -webkit-text-fill-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* Large shimmer logo on home — update gradient to indigo */
body:not(.light-mode) #s-home .logo {
  background: linear-gradient(
    90deg,
    #4a4db8 0%,
    #5e60cc calc(50% - 120px),
    #8083ff calc(50% - 60px),
    #c0c1ff 50%,
    #8083ff calc(50% + 60px),
    #5e60cc calc(50% + 120px),
    #4a4db8 100%
  ) !important;
  background-size: 250% 100% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shimmer-move 3s linear infinite !important;
}

/* ================================================================
   LAMP TRANSITION — indigo accent
   ================================================================ */
body:not(.light-mode) .lamp-line {
  border-top-color: rgba(192, 193, 255, 0.55) !important;
  box-shadow:
    0 0 12px rgba(192, 193, 255, 0.30),
    0 0 32px rgba(128, 131, 255, 0.10) !important;
}
body:not(.light-mode) .lamp-beam-left,
body:not(.light-mode) .lamp-beam-right {
  background: linear-gradient(to bottom, rgba(128, 131, 255, 0.14), transparent) !important;
}
body:not(.light-mode) .lamp-glow-big {
  background: radial-gradient(ellipse at 50% 0%, rgba(128,131,255,0.18) 0%, transparent 65%) !important;
}
body:not(.light-mode) .lamp-glow-small {
  background: radial-gradient(ellipse at 50% 0%, rgba(192,193,255,0.16) 0%, transparent 50%) !important;
}

/* ================================================================
   STATS BAR
   ================================================================ */
body:not(.light-mode) .stat-num {
  color: var(--primary) !important;
  font-family: 'Inter', sans-serif !important;
}
body:not(.light-mode) .stat-label {
  color: var(--on-surface-variant) !important;
}
body:not(.light-mode) .stat-divider {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ================================================================
   CARDS SECTION — "Wybierz ścieżkę kariery"
   ================================================================ */
body:not(.light-mode) .cards-section-label {
  color: var(--on-surface-variant) !important;
}

/* ── Corp card → indigo/primary ── */
body:not(.light-mode) .dc-corp .dc-card::after {
  background: rgba(80, 83, 200, 0.16) !important;
}
body:not(.light-mode) .dc-corp .dc-card {
  border-color: rgba(128, 131, 255, 0.26) !important;
}
body:not(.light-mode) .dc-corp .dc-card:hover {
  border-color: rgba(192, 193, 255, 0.58) !important;
  box-shadow:
    0 8px 32px rgba(128, 131, 255, 0.20),
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.55),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.35),
    inset 0 0 8px 4px rgba(255,255,255,0.06) !important;
}
body:not(.light-mode) .dc-corp .dc-icon {
  background: rgba(128, 131, 255, 0.16) !important;
}
body:not(.light-mode) .dc-corp .dc-title {
  color: var(--primary) !important;
}
body:not(.light-mode) .dc-corp .dc-meta {
  color: rgba(192, 193, 255, 0.48) !important;
}

/* ── Startup card → tertiary/purple ── */
body:not(.light-mode) .dc-startup .dc-card::after {
  background: rgba(100, 60, 180, 0.18) !important;
}
body:not(.light-mode) .dc-startup .dc-card {
  border-color: rgba(208, 188, 255, 0.26) !important;
}
body:not(.light-mode) .dc-startup .dc-card:hover {
  border-color: rgba(208, 188, 255, 0.58) !important;
  box-shadow:
    0 8px 32px rgba(160, 120, 255, 0.18),
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.55),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.35),
    inset 0 0 8px 4px rgba(255,255,255,0.06) !important;
}
body:not(.light-mode) .dc-startup .dc-icon {
  background: rgba(160, 120, 255, 0.16) !important;
}
body:not(.light-mode) .dc-startup .dc-title {
  color: var(--tertiary) !important;
}
body:not(.light-mode) .dc-startup .dc-meta {
  color: rgba(208, 188, 255, 0.48) !important;
}

/* Kancelaria (gold) and Agencja (pink) keep their existing premium colors — they look great */

/* General card copy text */
body:not(.light-mode) .dc-desc {
  color: rgba(255, 255, 255, 0.70) !important;
}
body:not(.light-mode) .dc-copy {
  color: rgba(255, 255, 255, 0.48) !important;
}

/* ── dc-card title font update ── */
.dc-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

/* ================================================================
   AUTH MODAL — dark glass, indigo accent
   ================================================================ */
body.mode-home:not(.light-mode) .auth-gate-box,
body.mode-corp:not(.light-mode) .auth-gate-box {
  background: rgba(8, 10, 20, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
}

/* Right panel: indigo gradient instead of blue */
.auth-gate-right {
  background: linear-gradient(155deg,
    #0c0c28 0%,
    #14105a 35%,
    #3028a0 65%,
    #14105a 100%) !important;
}
.auth-right-logo em {
  color: var(--primary) !important;
}

/* Form inputs — uses .auth-input class */
body.mode-home:not(.light-mode) .auth-input,
body.mode-corp:not(.light-mode) .auth-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: var(--on-surface) !important;
}
body.mode-home:not(.light-mode) .auth-input:focus,
body.mode-corp:not(.light-mode) .auth-input:focus {
  border-color: rgba(192, 193, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 0 0 3px rgba(128, 131, 255, 0.08) !important;
}

/* Primary submit button */
body.mode-home:not(.light-mode) .auth-submit-btn,
body.mode-corp:not(.light-mode) .auth-submit-btn {
  background: linear-gradient(135deg, #8083ff 0%, #a078ff 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(128, 131, 255, 0.28) !important;
}
body.mode-home:not(.light-mode) .auth-submit-btn:hover,
body.mode-corp:not(.light-mode) .auth-submit-btn:hover {
  background: linear-gradient(135deg, #9092ff 0%, #b08aff 100%) !important;
  box-shadow: 0 6px 28px rgba(128, 131, 255, 0.44) !important;
  transform: translateY(-1px) !important;
}

/* Auth link color */
body.mode-home:not(.light-mode) .auth-link,
body.mode-corp:not(.light-mode) .auth-link {
  color: var(--primary) !important;
}

/* Google OAuth button — already has good dark styling, just accent border */
body.mode-home:not(.light-mode) .auth-google-btn,
body.mode-corp:not(.light-mode) .auth-google-btn {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
body.mode-home:not(.light-mode) .auth-google-btn:hover,
body.mode-corp:not(.light-mode) .auth-google-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
}

/* ================================================================
   SEO COPY & ABOUT SECTION
   ================================================================ */
body.mode-home:not(.light-mode) .seo-copy h2,
body.mode-home:not(.light-mode) .seo-copy-block h3 {
  color: var(--on-surface) !important;
}
body.mode-home:not(.light-mode) .seo-copy p,
body.mode-home:not(.light-mode) .seo-copy li,
body.mode-home:not(.light-mode) .seo-copy-lead {
  color: var(--on-surface-variant) !important;
}
body.mode-home:not(.light-mode) .about-card {
  background: rgba(12, 14, 22, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ================================================================
   FOOTER
   ================================================================ */
body.mode-home:not(.light-mode) .powered-by {
  color: rgba(255, 255, 255, 0.18) !important;
}
body.mode-home:not(.light-mode) .powered-by a {
  color: rgba(192, 193, 255, 0.45) !important;
}

/* ================================================================
   FLOATING GALLERY SCREENSHOTS
   ================================================================ */
body.mode-home:not(.light-mode) .floating-shot {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ================================================================
   GLOSSARY FAB (startup game) — indigo
   ================================================================ */
.gloss-fab {
  border-color: rgba(192, 193, 255, 0.28) !important;
  color: var(--primary) !important;
}
.gloss-fab:hover {
  border-color: rgba(192, 193, 255, 0.52) !important;
}

/* ================================================================
   CONFIRM MODAL
   ================================================================ */
body:not(.light-mode) .confirm-box {
  background: #0f1117 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body:not(.light-mode) .confirm-box-title {
  color: var(--on-surface) !important;
}
body:not(.light-mode) .confirm-box-sub {
  color: var(--on-surface-variant) !important;
}

/* ================================================================
   HOME SCREEN — LAYOUT: continuous PDF-like scroll
   ================================================================ */

/* Kill old pseudo-element lamp overlays */
body.mode-home .home-cards-section::before,
body.mode-home .home-cards-section::after {
  display: none !important;
  content: none !important;
}

/* Hero — full-height section, block layout (not flex) */
body.mode-home #home-hero {
  display: block !important;    /* override Tailwind flex — simpler, predictable height */
  padding-top: 88px;
  padding-bottom: 80px;
  box-sizing: border-box;
  min-height: auto !important;
  isolation: isolate;            /* scope glass-card z-indexes within hero */
}

/* Grid inside hero: standard block — fills width, height by content */
body.mode-home #home-hero > .grid {
  align-items: start;           /* grid items don't stretch — each takes own height */
  min-height: 600px;            /* enforce minimum height for right-column cards */
}

/* Left column: flow naturally top-to-bottom, no justify-center quirks */
body.mode-home #home-hero .lg\:col-span-6:first-child {
  justify-content: flex-start !important;
  padding-top: 40px;
}

/* Right column: tall enough to hold all three floating cards */
body.mode-home #home-hero .lg\:col-span-6:last-child {
  min-height: 600px;
  position: relative;
  align-self: stretch;          /* stretch to full grid-row height */
}

/* Cards section — also position:relative so it paints in the SAME step (6)
   as the hero, and since it's AFTER the hero in DOM, it paints LAST = on top.
   This gives proper natural scroll: sections cover hero as you scroll past. */
body.mode-home .home-cards-section {
  position: relative !important;
  z-index: auto !important;
  width: 100% !important;
  background: #080a0f !important;
  padding: 0 !important;          /* sections have their own padding */
}
/* Desktop only: force block (overrides old display:flex). Mobile: let Tailwind .hidden hide it. */
@media (min-width: 1024px) {
  body.mode-home .home-cards-section {
    display: block !important;
  }
}
/* Mobile: hero must grow to fit content, beta-banner hidden */
@media (max-width: 1023px) {
  body.mode-home #home-hero {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  #beta-banner {
    display: none !important;
  }
}

body.mode-home .home-cards-section > * {
  position: relative;
  z-index: auto;
  width: 100% !important;        /* ensure each section is full width */
  box-sizing: border-box;
}

/* Scroll reveal — Intersection Observer adds .sr-visible when section enters view */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.mode-home .home-cards-section > section,
body.mode-home .home-cards-section > footer {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
body.mode-home .home-cards-section > section.sr-visible,
body.mode-home .home-cards-section > footer.sr-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger: each section slightly delayed */
body.mode-home .home-cards-section > *:nth-child(1) { transition-delay: 0s; }
body.mode-home .home-cards-section > *:nth-child(2) { transition-delay: 0.08s; }
body.mode-home .home-cards-section > *:nth-child(3) { transition-delay: 0.12s; }
body.mode-home .home-cards-section > *:nth-child(4) { transition-delay: 0.16s; }
body.mode-home .home-cards-section > *:nth-child(5) { transition-delay: 0.2s; }

/* ================================================================
   GLASS UTILITY CLASSES (for future use / already referenced)
   ================================================================ */
.glass-panel {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
}

.aurora-orb {
  filter: blur(120px);
  opacity: 0.15;
  position: absolute;
  z-index: 0;
  border-radius: 9999px;
  pointer-events: none;
}

.text-gradient-primary,
.text-gradient {
  background: linear-gradient(45deg, #c0c1ff, #d0bcff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pathway cards — home screen */
.pathway-card {
  position: relative;
  z-index: 2;
  background: #13151f;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), border-color 0.3s, box-shadow 0.3s;
}
.pathway-card:hover {
  transform: translateY(-6px);
}
/* Per-card accent colours */
#card-corp        { border-color: rgba(192,193,255,0.18); }
#card-corp:hover  { border-color: rgba(192,193,255,0.5); box-shadow: 0 8px 40px rgba(192,193,255,0.12); }
#card-startup        { border-color: rgba(208,188,255,0.18); }
#card-startup:hover  { border-color: rgba(208,188,255,0.5); box-shadow: 0 8px 40px rgba(208,188,255,0.12); }
#card-kancelaria        { border-color: rgba(168,200,255,0.18); }
#card-kancelaria:hover  { border-color: rgba(168,200,255,0.5); box-shadow: 0 8px 40px rgba(168,200,255,0.12); }
#card-agencja        { border-color: rgba(143,186,255,0.18); }
#card-agencja:hover  { border-color: rgba(143,186,255,0.5); box-shadow: 0 8px 40px rgba(143,186,255,0.12); }

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px) rotate(var(--tw-rotate, 0deg)); }
  50%       { transform: translateY(-15px) rotate(var(--tw-rotate, 0deg)); }
}
.animate-float { animation: float-gentle 6s ease-in-out infinite; }
.animate-float-delay-1 { animation-delay: 1s; }
.animate-float-delay-2 { animation-delay: 2s; }
.animate-float-delay-3 { animation-delay: 3s; }
/* Tailwind delay utilities used in new hero */
.delay-1000 { animation-delay: 1s; }
.delay-2000 { animation-delay: 2s; }

/* ================================================================
   RESULT SCREEN — Dashboard Layout (matches 8_Dashboard_Wynikow_Desktop)
   ================================================================ */

#s-result.active {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #10131a !important;
  min-height: 100vh;
  height: 100vh;
}

/* Ping animation for Live Training dot */
@keyframes res-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ── Sidebar ── */
.res-dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #10131a;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  overflow-y: auto;
}
.res-dash-brand {
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 16px;
}
.res-dash-brand-name {
  color: #f0f0f0;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.res-dash-brand-sub {
  color: #6b7280;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.res-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 0 8px;
}
.res-dash-nav-bottom {
  padding: 12px 8px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 12px;
}
.res-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
.res-nav-item:hover { color: #f0f0f0; background: rgba(255,255,255,0.05); }
.res-nav-item.active {
  color: #c0c1ff;
  background: linear-gradient(to right, rgba(192,193,255,0.15), transparent);
  border-right: 2px solid #c0c1ff;
}

/* ── Main canvas ── */
.res-dash-main {
  flex: 1;
  overflow-y: auto;
  padding: 48px 56px;
  background: #10131a;
}

/* ── Header ── */
.res-dash-report-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #c0c1ff;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.res-dash-title {
  font-size: 3.25rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #e0e2eb;
  margin: 0 0 8px;
}
.res-dash-subtitle {
  font-size: 17px;
  color: #6b7280;
  margin: 0 0 48px;
}
.res-dash-subtitle strong { color: #e0e2eb; font-weight: 500; }

/* ── Metrics grid ── */
.res-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.res-metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.res-metric-card-center { align-items: center; justify-content: center; text-align: center; }
.res-circle-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
}
.res-circle-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.res-circle-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #e0e2eb;
}
.res-metric-lbl {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 500;
}
.res-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
  padding-bottom: 16px;
}
.res-metric-num {
  font-family: 'DM Mono', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  color: #e0e2eb;
  margin-bottom: 4px;
  line-height: 1;
}
.res-metric-badge {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.res-badge-green  { color: #10b981; background: rgba(16,185,129,0.1); }
.res-badge-amber  { color: #f59e0b; background: rgba(245,158,11,0.1); }
.res-badge-red    { color: #ef4444; background: rgba(239,68,68,0.1); }
.res-badge-primary { color: #c0c1ff; background: rgba(192,193,255,0.1); }

/* ── Bottom 2-col grid ── */
.res-bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Chart panel */
.res-chart-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.res-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.res-chart-title {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #e0e2eb;
  margin: 0;
}
.res-chart-legend {
  display: flex;
  gap: 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
}
.res-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.res-dot-primary { background: #c0c1ff; }
.res-dot-muted   { background: rgba(255,255,255,0.1); }

/* Archetype row */
.res-arch-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.res-arch-glyph-new { font-size: 18px; color: #c0c1ff; opacity: 0.7; }
.res-arch-name-new  { font-size: 13px; font-weight: 600; color: #c0c1ff; letter-spacing: 0.06em; text-transform: uppercase; }

/* Trait tags inside result screen */
#s-result .res-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  max-width: 100%;
  margin-bottom: 20px;
}
#s-result .res-trait-tag {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #c0c1ff;
  border: 1px solid rgba(192,193,255,0.3);
  border-radius: 100px;
  padding: 4px 12px;
  background: rgba(192,193,255,0.05);
}

/* Chart area */
.res-chart-area { flex: 1; min-height: 200px; margin-top: 8px; }
.res-chart-area svg { width: 100%; height: 200px; display: block; }
.res-chart-xaxis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Right column ── */
.res-right-col { display: flex; flex-direction: column; gap: 16px; }

/* Feedback card */
.res-feedback-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid #c0c1ff;
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  flex: 1;
}
.res-feedback-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
/* Override old centered narrative style */
#s-result .res-narrative {
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: #f0f0f0 !important;
  font-style: italic !important;
  opacity: 1 !important;
  text-align: left !important;
  margin-bottom: 20px !important;
}
.res-feedback-mentor { display: flex; align-items: center; gap: 12px; }
.res-mentor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.res-mentor-name { font-size: 13px; font-weight: 700; color: #e0e2eb; }
.res-mentor-role { font-size: 10px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* Action buttons */
.res-cta-linkedin-new {
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  background: linear-gradient(to right, #c0c1ff, #8083ff);
  color: #1000a9;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.res-cta-linkedin-new:hover {
  box-shadow: 0 0 20px rgba(192,193,255,0.3);
  transform: translateY(-1px);
}
.res-cta-pdf {
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  background: transparent;
  color: #c0c1ff;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid rgba(70,69,84,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.res-cta-pdf:hover { background: rgba(255,255,255,0.05); }

/* Status card */
.res-status-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.res-status-header { display: flex; align-items: center; gap: 10px; }
.res-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0bcff;
  box-shadow: 0 0 8px rgba(208,188,255,0.8);
  flex-shrink: 0;
  animation: res-pulse 2s ease-in-out infinite;
}
@keyframes res-pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.res-status-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e0e2eb;
}
.res-status-row { display: flex; justify-content: space-between; font-size: 11px; }
.res-status-row span:first-child { color: #6b7280; }
.res-status-val { font-family: 'DM Mono', monospace; color: #e0e2eb; }

/* ── Mobile: hide sidebar, stack layout ── */
@media (max-width: 1023px) {
  #s-result.active { flex-direction: column !important; height: auto !important; overflow-y: auto !important; }
  .res-dash-sidebar { display: none !important; }
  .res-dash-main { padding: 32px 20px; }
  .res-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .res-bottom-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   ORBITAL PATHS VISUAL
   ───────────────────────────────────────────── */
#orbital-paths-section {
  padding: 80px 32px 96px;
  background: #020305;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.op-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.op-header {
  text-align: center;
  margin-bottom: 48px;
}

.op-stage {
  position: relative;
  width: 660px;
  height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Center pulsing orb ── */
.op-center {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #c0c1ff, #d0bcff, #a8c8ff, #8fbaff, #c0c1ff);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: op-center-pulse 4s ease-in-out infinite;
}

.op-center-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(192, 193, 255, 0.25);
  animation: op-ping 2.4s ease-out infinite;
  pointer-events: none;
}
.op-center-ring--1 { width: 80px; height: 80px; }
.op-center-ring--2 { width: 112px; height: 112px; animation-delay: 0.8s; border-color: rgba(192, 193, 255, 0.12); }

.op-center-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 1;
}

/* ── Static orbit ring ── */
.op-orbit-ring {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

/* ── Nodes container (origin at center of stage) ── */
.op-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ── Individual node ── */
.op-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  pointer-events: all;
  transition: opacity 0.4s ease;
}

.op-node-glow {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--op-color, #c0c1ff) 0%, transparent 70%);
  opacity: 0.18;
  transition: opacity 0.3s;
  pointer-events: none;
}
.op-node:hover .op-node-glow,
.op-node--active .op-node-glow { opacity: 0.4; }

.op-node-inner {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #12151c;
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--op-color, #c0c1ff);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.06);
}
.op-node:hover .op-node-inner,
.op-node--active .op-node-inner {
  background: var(--op-color, #c0c1ff);
  color: #080a0f;
  border-color: var(--op-color, #c0c1ff);
  transform: scale(1.25);
  box-shadow: 0 0 24px var(--op-color, #c0c1ff);
}

.op-node-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  transition: color 0.3s;
}
.op-node:hover .op-node-label,
.op-node--active .op-node-label { color: var(--op-color, #c0c1ff); }

/* ── Expanded card ── */
.op-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 256px;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.op-card--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.op-card-inner {
  background: rgba(10, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
}

.op-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0.85;
}

.op-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.op-card-subtitle {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.op-card-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}
.op-card-close:hover { background: rgba(255, 255, 255, 0.08); color: white; }

.op-card-title {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin: 0 0 8px;
  line-height: 1.1;
}

.op-card-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin: 0 0 14px;
}

.op-card-energy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.op-card-energy-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.op-card-energy-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}
.op-card-energy-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.7s ease;
}
.op-card-energy-val {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}

.op-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.op-card-tag {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.op-card-cta {
  width: 100%;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.15s;
}
.op-card-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Hint text ── */
.op-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 20px;
  letter-spacing: 0.06em;
}

/* ── Keyframes ── */
/* Hide orbital on mobile — .home-cards-section has display:block !important which overrides Tailwind hidden */
@media (max-width: 1023px) {
  #orbital-paths-section { display: none !important; }
}

/* ══════════════════════════════════════════════════
   MOBILE PATH LIST  (.mp-*)
   Scoped to #mobile-paths-section to beat body.mode-home inheritance
══════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  #mobile-paths-section { background: #f8f7ff; color: #1a1a2e; }
  #mobile-paths-section .mp-wrapper { padding: 40px 20px 32px; max-width: 500px; margin: 0 auto; }
  #mobile-paths-section .mp-eyebrow { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6366f1; display: block; margin-bottom: 8px; }
  #mobile-paths-section .mp-title { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 28px; line-height: 1.2; }
  #mobile-paths-section .mp-hint { font-size: 11px; color: #94a3b8; text-align: center; margin-top: 16px; letter-spacing: .06em; }

  /* Item */
  #mobile-paths-section .mp-item {
    position: relative;
    border: 1px solid rgba(0,0,0,0.09);
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  #mobile-paths-section .mp-item--open {
    border-color: var(--mp-color);
    box-shadow: 0 0 20px -6px var(--mp-color);
  }

  /* Corner brackets */
  #mobile-paths-section .mp-bracket-tl,
  #mobile-paths-section .mp-bracket-br {
    position: absolute; width: 18px; height: 18px;
    opacity: 0; transition: opacity .25s; pointer-events: none;
  }
  #mobile-paths-section .mp-bracket-tl { top: 10px; left: 10px; border-top: 2px solid var(--mp-color); border-left: 2px solid var(--mp-color); }
  #mobile-paths-section .mp-bracket-br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--mp-color); border-right: 2px solid var(--mp-color); }
  #mobile-paths-section .mp-item--open .mp-bracket-tl,
  #mobile-paths-section .mp-item--open .mp-bracket-br { opacity: 1; }

  /* Head row */
  #mobile-paths-section .mp-item-head { display: flex; align-items: center; gap: 14px; padding: 18px; }
  #mobile-paths-section .mp-item-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(99,102,241,0.07); border: 1.5px solid rgba(99,102,241,0.18);
    display: flex; align-items: center; justify-content: center;
    color: var(--mp-color); flex-shrink: 0;
    transition: background .3s, border-color .3s, color .3s;
  }
  #mobile-paths-section .mp-item-icon .material-symbols-outlined { font-size: 22px; }
  #mobile-paths-section .mp-item--open .mp-item-icon { background: var(--mp-color); color: #fff; border-color: var(--mp-color); }

  #mobile-paths-section .mp-item-text { flex: 1; min-width: 0; }
  #mobile-paths-section .mp-item-title { font-size: 16px; font-weight: 700; color: #0f172a; transition: color .3s; }
  #mobile-paths-section .mp-item--open .mp-item-title { color: var(--mp-color); }
  #mobile-paths-section .mp-item-subtitle { font-size: 12px; color: #64748b; margin-top: 2px; }

  #mobile-paths-section .mp-item-arrow { font-size: 20px; color: #94a3b8; transition: transform .3s, color .3s; flex-shrink: 0; }
  #mobile-paths-section .mp-item--open .mp-item-arrow { transform: rotate(90deg); color: var(--mp-color); }

  /* Expandable body */
  #mobile-paths-section .mp-item-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
    padding: 0 18px;
  }
  #mobile-paths-section .mp-item--open .mp-item-body { max-height: 400px; padding: 0 18px 18px; }
  #mobile-paths-section .mp-item-desc { font-size: 13px; line-height: 1.6; color: #475569; margin-bottom: 14px; }

  /* Energy bar */
  #mobile-paths-section .mp-item-energy { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  #mobile-paths-section .mp-item-energy-label { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; white-space: nowrap; }
  #mobile-paths-section .mp-item-energy-track { flex: 1; height: 3px; background: rgba(0,0,0,0.1); border-radius: 2px; overflow: hidden; }
  #mobile-paths-section .mp-item-energy-fill { height: 100%; border-radius: 2px; }
  #mobile-paths-section .mp-item-energy-val { font-size: 11px; color: var(--mp-color); font-weight: 600; white-space: nowrap; }

  /* Tags */
  #mobile-paths-section .mp-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  #mobile-paths-section .mp-tag {
    font-size: 10px; padding: 3px 8px; border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    color: #64748b;
  }

  /* CTA */
  #mobile-paths-section .mp-item-cta {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: opacity .2s, transform .15s;
  }
  .mp-item-cta:active { opacity: .85; transform: scale(0.98); }
}

/* ══════════════════════════════════════════════════
   FLIP BUTTON CTA
══════════════════════════════════════════════════ */
.flip-btn-outer {
  display: inline-block;
  perspective: 500px;
}
.flip-btn-outer.w-full { display: block; width: 100%; }

.flip-btn {
  position: relative;
  display: block;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
  width: 100%;
}
.flip-btn-outer:hover .flip-btn {
  transform: rotateX(180deg);
}
.flip-btn:active { transform: rotateX(180deg) scale(0.96); }

.flip-btn-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  letter-spacing: -0.01em;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  white-space: nowrap;
}
.flip-btn-front {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 16px rgba(99,102,241,0.35);
}
.flip-btn-back {
  position: absolute;
  inset: 0;
  background: #f0eeff;
  color: #3730a3;
  transform: rotateX(180deg);
}

/* Desktop sizing */
.flip-btn-face.size-md { font-size: 15px; padding: 13px 28px; }
/* Mobile sizing */
.flip-btn-face.size-sm { font-size: 13px; padding: 10px 20px; }

/* ── Hero primary CTA ── */
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #6d5efc 0%, #8b5cf6 52%, #a855f7 100%);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  box-shadow:
    0 14px 32px rgba(109, 94, 252, 0.28),
    0 6px 14px rgba(91, 33, 182, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease;
}
.hero-cta-primary:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #7c6dff 0%, #9668ff 52%, #b363ff 100%);
  border-color: rgba(221, 214, 254, 0.5);
  box-shadow:
    0 18px 40px rgba(124, 109, 255, 0.34),
    0 8px 18px rgba(91, 33, 182, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.28);
  transform: translateY(-2px);
  filter: saturate(1.06);
}
.hero-cta-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 8px 20px rgba(109, 94, 252, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.hero-cta-primary:focus-visible {
  outline: 2px solid rgba(221, 214, 254, 0.72);
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(109, 94, 252, 0.22),
    0 16px 34px rgba(109, 94, 252, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.hero-cta-primary .material-symbols-outlined {
  pointer-events: none;
  flex-shrink: 0;
}
.hero-cta-arrow {
  transition: transform 0.2s ease;
}
.hero-cta-primary:hover .hero-cta-arrow {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .hero-cta-primary {
    min-height: 50px;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 14px;
  }
}

@keyframes op-center-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(192, 193, 255, 0.25); }
  50%       { box-shadow: 0 0 40px rgba(192, 193, 255, 0.55); }
}
@keyframes op-ping {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ══ MOBILE LIGHT THEME ══════════════════════════════════════ */
@media (max-width: 1023px) {
  body.mode-home {
    background: #ffffff !important;
  }
  body.mode-home .top-nav-inner {
    background: rgba(255,255,255,0.90) !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.9) !important;
  }
  body.mode-home .top-nav-logo {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
  }
  body.mode-home .top-nav-logo em {
    color: #6366f1 !important;
    -webkit-text-fill-color: #6366f1 !important;
  }
  body.mode-home .top-nav-toggle {
    border-color: rgba(0,0,0,0.12) !important;
    background: rgba(0,0,0,0.04) !important;
    color: #0f172a !important;
  }
  body.mode-home .top-nav-toggle:hover {
    background: rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.18) !important;
  }
  body.mode-home .topbar-auth-btn {
    border-color: rgba(0,0,0,0.10) !important;
    background: rgba(0,0,0,0.03) !important;
    color: #374151 !important;
  }
  body.mode-home .topbar-auth-btn.primary {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.10)) !important;
    border-color: rgba(99,102,241,0.30) !important;
    color: #6366f1 !important;
  }
  body.mode-home .aurora-orb {
    opacity: 0.10 !important;
  }
}

/* ══ GLOW CTA BUTTON ═════════════════════════════════════════ */
.hero-glow-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-glow-wrap::before {
  content: '';
  position: absolute;
  inset: 4px 6px;
  background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b);
  border-radius: 12px;
  filter: blur(14px);
  opacity: 0.62;
  transition: opacity 0.3s ease, filter 0.3s ease;
  z-index: 0;
}
.hero-glow-wrap:hover::before {
  opacity: 1;
  filter: blur(20px);
}
.hero-cta-glow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-family: Inter, 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.hero-cta-glow:hover {
  background: #1f2937;
  transform: translateY(-1px);
}
.hero-cta-glow:active {
  transform: scale(0.98);
}


/* ================================================================
   SAMPLE QUESTION SECTION — "Spróbuj bez rejestracji"
   Compact: cały widget mieści się w jednym viewport (bez scrollowania)
   ================================================================ */
.sample-question-section {
  padding: 40px 0 32px;
  background: var(--surface);
}
.sq-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Intro row — jedna linia zamiast bloku */
.sq-intro-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sq-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
  white-space: nowrap;
}
.sq-headline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.3;
  margin: 0;
}

/* Card */
.question-card {
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}
.qcard-header {
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.firm-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(99,102,241,0.15);
  color: #818cf8;
}
.stage-badge {
  font-size: 10px;
  color: var(--on-surface-variant);
}
.progress-dots {
  margin-left: auto;
  display: flex;
  gap: 5px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.dot.active { background: #6366f1; }
.dot.done   { background: #22c55e; }

.qcard-body { padding: 14px 16px 10px; }
.question-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--on-surface-variant);
  margin-bottom: 6px;
}
.question-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--on-surface);
  margin-bottom: 10px;
}
.scenario-box {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid #6366f1;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: var(--on-surface);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.option-btn:hover:not(.locked) {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.08);
}
.option-btn.correct {
  border-color: rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.08);
}
.option-btn.wrong {
  border-color: rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.08);
}
.option-btn.dimmed  { opacity: 0.35; }
.option-btn.locked  { cursor: default; }
.opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--on-surface-variant);
}

/* Feedback — pojawia się po odpowiedzi (poniżej foldu jest ok) */
.sq-feedback {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.55;
}
.sq-feedback.show { display: block; }
.sq-feedback-title {
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sq-feedback-body { color: var(--on-surface-variant); }

/* Footer */
.qcard-footer {
  padding: 9px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sq-cta {
  padding: 7px 16px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}
.sq-cta:hover { opacity: 0.85; }
.sq-hint {
  font-size: 11px;
  color: var(--on-surface-variant);
}

/* Stats row — pod foldem, nie przeszkadza */
.sq-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sq-stat {
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.sq-stat-num {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 3px;
}
.sq-stat-label {
  display: block;
  font-size: 10px;
  color: var(--on-surface-variant);
}

@media (max-width: 600px) {
  .sample-question-section { padding: 28px 0 20px; }
  .sq-stats { grid-template-columns: 1fr; }
  .sq-intro-row { flex-direction: column; gap: 4px; }
  .sq-headline { font-size: 1rem; }
}
