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

/* ─── Brand home-link (shared across all screens) ────────────────────── */
.brand-home-link {
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.brand-home-link:hover {
  opacity: 0.8;
}

:root {
  --bg:           #0d0d0f;
  --surface:      #16161a;
  --surface-2:    #1e1e24;
  --surface-3:    #22222a;
  --border:       #2a2a33;
  --border-light: #33333d;
  --accent:       #c8a96e;
  --accent-dim:   #8a7048;
  --accent-glow:  rgba(200,169,110,0.15);
  --text:         #e8e6e1;
  --text-muted:   #888794;
  --text-faint:   #555463;
  --user-bg:      #1a2535;
  --ai-bg:        #1e1e24;

  /* bet card accent colors */
  --bet-1:        #c8a96e;   /* gold   */
  --bet-1-dim:    rgba(200,169,110,0.12);
  --bet-2:        #5b8dee;   /* blue   */
  --bet-2-dim:    rgba(91,141,238,0.12);
  --bet-3:        #52c98a;   /* green  */
  --bet-3-dim:    rgba(82,201,138,0.12);

  /* inspiration card colors */
  --ins-blue:     rgba(91,141,238,0.1);
  --ins-green:    rgba(82,201,138,0.1);
  --ins-orange:   rgba(237,137,54,0.1);
  --ins-purple:   rgba(159,122,234,0.1);
  --ins-cyan:     rgba(56,189,248,0.1);
  --ins-pink:     rgba(236,72,153,0.1);
  --ins-gold:     rgba(200,169,110,0.1);

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Screen System ───────────────────────────────────────────────────── */
/* ─── Global navigation ──────────────────────────────────────────────── */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.gn-brand {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: opacity 0.18s;
}
.gn-brand:hover { opacity: 0.75; }
.gn-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gn-analyse-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, border-color 0.18s;
}
.gn-analyse-btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.55);
}
.gn-logout-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: color 0.18s;
  letter-spacing: 0.02em;
}
.gn-logout-btn:hover { color: #e08080; }

/* Non-landing screens get top padding to clear the global nav */
#screen-register,
#screen-chat,
#screen-output,
#screen-matrix,
#screen-shared {
  padding-top: 48px;
}

.screen {
  display: none;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  opacity: 0;
}
.screen.active {
  display: flex;
  animation: screenFadeIn 0.3s ease forwards;
}
.screen.fading-out {
  display: flex !important;
  animation: screenFadeOut 0.3s ease forwards;
  pointer-events: none;
  z-index: 1;
}

/* Landing and register pages need block, not flex */
#screen-landing.active      { display: block; }
#screen-landing.fading-out  { display: block !important; }
#screen-register.active     { display: block; }
#screen-register.fading-out { display: block !important; }

@keyframes screenFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes screenFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

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

/* ─── Shared button ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0d0d0f;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 2.2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: #dbbf7e;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(200,169,110,0.28);
}
.btn-primary:active { transform: translateY(0); }

/* ─── Landing Page ────────────────────────────────────────────────────── */
#screen-landing {
  overflow-y: auto;
  overflow-x: hidden;
  background: #0d0d0d;
  position: fixed;
}

/* BG blobs */
.lp-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.lp-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.045;
}
.lp-blob-1 { width: 700px; height: 700px; top: -15%; left: -15%; }
.lp-blob-2 { width: 500px; height: 500px; bottom: -10%; right: -10%; }
.lp-blob-3 { width: 350px; height: 350px; top: 45%; left: 55%; }

/* Fade-in base */
@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lp-fade-in {
  animation: lpFadeUp 0.85s cubic-bezier(0.4,0,0.2,1) both;
}
.lp-fade-in:nth-child(2) { animation-delay: 0.15s; }

.lp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section wrap */
.lp-section { position: relative; z-index: 1; }
.lp-section-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Nav ── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.lp-nav-brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.lp-nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.lp-nav-cta:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.55);
}
.lp-nav-logout {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-family: inherit;
  transition: color 0.18s;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
.lp-nav-logout:hover { color: #e08080; }

/* ── Welcome back row ── */
.lp-welcome-back {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.lp-welcome-text {
  font-size: 0.82rem;
  color: var(--accent);
  opacity: 0.85;
  font-weight: 500;
}
.lp-welcome-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0d0d0d;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, transform 0.18s;
}
.lp-welcome-btn:hover {
  background: #dab85c;
  transform: translateY(-1px);
}

/* ── Hero ── */
.lp-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 7rem 2.5rem 5rem;
}
.lp-hero-left { flex: 1; min-width: 0; }
.lp-hero-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lp-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

.lp-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.lp-headline em {
  font-style: italic;
  color: var(--accent);
}

.lp-subheadline {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.lp-hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.lp-btn-primary { font-size: 1rem; padding: 0.95rem 2.4rem; }

.lp-btn-ghost {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 0.85rem 1.8rem;
  transition: color var(--transition), border-color var(--transition);
}
.lp-btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(201,168,76,0.45);
}

.lp-trust-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lp-trust-sep { color: var(--accent); opacity: 0.5; }

/* ─── Returning user lookup ─────────────────────────────────────────── */
.lp-returning {
  margin-top: 1.6rem;
}
.lp-returning-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0.7;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.lp-returning-trigger:hover { opacity: 1; }

.lp-returning-form {
  margin-top: 0.75rem;
  animation: fadeInDown 0.25s ease both;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lp-returning-inner {
  display: flex;
  gap: 0.5rem;
}
.lp-returning-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.lp-returning-input::placeholder { color: var(--text-faint); }
.lp-returning-input:focus { border-color: var(--accent); }

.lp-returning-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.lp-returning-btn:hover {
  background: var(--accent);
  color: #000;
}
.lp-returning-msg {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  min-height: 1rem;
}
.lp-returning-error { color: #e08080; }

/* Clock */
.lp-clock-ring {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-clock-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.15);
}
.lp-clock-ring::after {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.06);
}
.lp-main-clock { width: 160px; height: 160px; }
.lp-clock-caption {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Stats Bar ── */
.lp-stats-bar {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}
.lp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  flex: 1;
  min-width: 160px;
}
.lp-stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.lp-stat-pct {
  font-size: 1.6rem;
}
.lp-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 160px;
  line-height: 1.4;
}
.lp-stat-src {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.2rem;
}
.lp-stat-div {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── How it works ── */
.lp-how {
  padding: 7rem 0;
}
.lp-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 3.5rem;
  text-align: center;
}
.lp-section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -2.5rem;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

.lp-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.lp-step {
  flex: 1;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.25rem;
}
.lp-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.lp-step-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.lp-step-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.lp-step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.lp-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 32px;
  gap: 5px;
}
.lp-connector span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}
.lp-connector span:nth-child(3) { opacity: 0.7; }

/* ── Model Section ── */
.lp-model {
  padding: 7rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(22,22,26,0.6) 100%);
}
.lp-model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 1.5rem;
}
.lp-model-card:last-child { margin-bottom: 0; }
.lp-model-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.lp-model-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Sources grid */
.lp-sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.lp-source-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.lp-source-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.lp-source-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}

/* Dimensions */
.lp-dimensions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lp-dim {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.lp-dim-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1px;
}
.lp-dim div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.lp-dim strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.lp-dim span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Bets preview */
.lp-bets-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lp-bet-prev {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.lp-bet-dot-wrap { flex-shrink: 0; }
.lp-bet-circle {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.lp-bc-green { background: #52c98a; box-shadow: 0 0 8px rgba(82,201,138,0.45); }
.lp-bc-blue  { background: #5b8dee; box-shadow: 0 0 8px rgba(91,141,238,0.45); }
.lp-bc-yellow{ background: #e8b84b; box-shadow: 0 0 8px rgba(232,184,75,0.45); }
.lp-bet-green { border-color: rgba(82,201,138,0.2); }
.lp-bet-blue  { border-color: rgba(91,141,238,0.2); }
.lp-bet-yellow{ border-color: rgba(232,184,75,0.2); }
.lp-bet-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.lp-bet-info strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.lp-bet-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* AI badges */
.lp-ai-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.lp-ai-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
}

/* ── Final CTA ── */
.lp-cta {
  padding: 8rem 2rem;
}
.lp-cta-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.lp-cta-inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, transparent 50%, rgba(201,168,76,0.06) 100%);
  pointer-events: none;
}
.lp-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.15;
}
.lp-cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}
.lp-cta-btn {
  font-size: 1.05rem;
  padding: 1rem 2.8rem;
}
.lp-cta-note {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ── Landing Responsive ── */
@media (max-width: 768px) {
  .lp-hero {
    flex-direction: column-reverse;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    gap: 2.5rem;
  }
  .lp-hero-left { display: flex; flex-direction: column; align-items: center; }
  .lp-subheadline { text-align: center; }
  .lp-trust-row { justify-content: center; }
  .lp-hero-buttons { justify-content: center; }

  .lp-stats-inner { padding: 2rem 1.5rem; }
  .lp-stat-div { display: none; }
  .lp-stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .lp-stat:last-child { grid-column: 1 / -1; }

  .lp-section-wrap { padding: 0 1.25rem; }
  .lp-how, .lp-model { padding: 5rem 0; }

  .lp-steps {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .lp-step { max-width: 280px; }
  .lp-connector {
    flex-direction: column;
    padding-top: 0;
  }

  .lp-sources-grid { grid-template-columns: 1fr; }
  .lp-model-card { padding: 1.5rem; }

  .lp-cta-inner { padding: 2.5rem 1.5rem; }
  .lp-nav { padding: 1rem 1.25rem; }
}

/* ─── Chat Screen — two-column ────────────────────────────────────────── */
#screen-chat {
  flex-direction: row;
  align-items: stretch;
  height: 100vh;
  overflow: hidden;
  background: #0d0d0f;
}

/* Left column */
.chat-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

/* ─── Journey progress banner ─────────────────────────────────────────── */
.journey-banner {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.journey-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
}

.journey-phase-counter {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.journey-phase-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  transition: opacity var(--transition);
}

.journey-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.journey-steps-left {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.journey-time-est {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.journey-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.journey-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.journey-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.journey-dot.completed {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

.journey-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.22);
  animation: dotPulse 2.2s ease-in-out infinite;
}

/* One-shot advance flash when progress moves forward */
.journey-dot.dot-advance {
  animation: dotAdvance 0.75s ease-out 2 !important;
}

.journey-dot-label {
  display: none;
}

.journey-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.journey-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 100px;
  width: 0%;
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Chat messages ───────────────────────────────────────────────────── */
.chat-main {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  scroll-behavior: smooth;
}

.chat-main::-webkit-scrollbar { width: 5px; }
.chat-main::-webkit-scrollbar-track { background: transparent; }
.chat-main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.message { display: flex; }

.message-user  { justify-content: flex-end;  animation: slideInRight 0.2s ease both; }
.message-assistant { justify-content: flex-start; animation: slideInLeft 0.2s ease both; }

.message-bubble {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  line-height: 1.65;
  max-width: 72ch;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-user .message-bubble {
  background: var(--user-bg);
  border: 1px solid rgba(91,141,238,0.2);
  border-bottom-right-radius: var(--radius-sm);
  color: var(--text);
}

.message-assistant .message-bubble {
  background: var(--ai-bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--radius-sm);
  color: var(--text);
}

/* thinking dots */
.thinking .message-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.8rem 1rem;
}

.dot {
  width: 6px; height: 6px;
  background: #C9A84C;
  border-radius: 50%;
  animation: dotPulseTyping 1.2s infinite ease-in-out;
}
.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.4s; }
.dot:nth-child(3) { animation-delay: 0.8s; }

@keyframes dotPulseTyping {
  0%, 60%, 100% { transform: scale(1);   opacity: 0.35; }
  30%           { transform: scale(1.4); opacity: 1;    }
}

/* Continuous gentle pulse for the active journey dot */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(200,169,110,0.22); }
  50%       { box-shadow: 0 0 0 7px rgba(200,169,110,0.06); }
}

/* One-shot glow burst when progress advances to a new dot */
@keyframes dotAdvance {
  0%   { box-shadow: 0 0 0 0   rgba(200,169,110,0.9); transform: scale(1.15); }
  60%  { box-shadow: 0 0 0 12px rgba(200,169,110,0);  transform: scale(1);    }
  100% { box-shadow: 0 0 0 0   rgba(200,169,110,0);   transform: scale(1);    }
}

/* ─── Chat footer ─────────────────────────────────────────────────────── */
.chat-footer {
  flex-shrink: 0;
  padding: 0.875rem 1.25rem 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  transition: border-color var(--transition);
}
.input-wrapper:focus-within { border-color: var(--accent-dim); box-shadow: 0 0 0 2px rgba(201,168,76,0.3); }

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  line-height: 1.5;
  resize: none;
  max-height: 140px;
  overflow-y: auto;
}
.chat-input::placeholder { color: var(--text-muted); }

.btn-send {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: var(--accent);
  color: #0d0d0f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.btn-send:hover { background: #dbbf7e; transform: scale(1.05); }
.btn-send:active { transform: scale(0.92) !important; }
.btn-send:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; transform: none; animation: none !important; }

.chat-disclaimer {
  margin-top: 0.45rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* ─── Inspiration Panel (right column) ───────────────────────────────── */
.inspiration-panel {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow-y: auto;
}

.inspiration-panel::-webkit-scrollbar { width: 4px; }
.inspiration-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.inspiration-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.inspiration-header-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.inspiration-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.inspiration-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.inspiration-cards {
  flex: 1;
  padding: 1rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Stat card */
.stat-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  animation: fadeUp 0.35s ease both;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border); }

.stat-card-accent {
  height: 3px;
}

.stat-card-body {
  padding: 0.875rem 1rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.stat-source {
  font-size: 0.68rem;
  color: var(--text-faint);
  font-style: italic;
}

/* Color variants */
.stat-card.blue  .stat-card-accent { background: #5b8dee; }
.stat-card.blue  .stat-card-body   { background: var(--ins-blue); }
.stat-card.blue  .stat-number      { color: #5b8dee; }

.stat-card.green .stat-card-accent { background: #52c98a; }
.stat-card.green .stat-card-body   { background: var(--ins-green); }
.stat-card.green .stat-number      { color: #52c98a; }

.stat-card.orange .stat-card-accent { background: #ed8936; }
.stat-card.orange .stat-card-body   { background: var(--ins-orange); }
.stat-card.orange .stat-number      { color: #ed8936; }

.stat-card.purple .stat-card-accent { background: #9f7aea; }
.stat-card.purple .stat-card-body   { background: var(--ins-purple); }
.stat-card.purple .stat-number      { color: #9f7aea; }

.stat-card.cyan .stat-card-accent { background: #38bdf8; }
.stat-card.cyan .stat-card-body   { background: var(--ins-cyan); }
.stat-card.cyan .stat-number      { color: #38bdf8; }

.stat-card.pink .stat-card-accent { background: #ec4899; }
.stat-card.pink .stat-card-body   { background: var(--ins-pink); }
.stat-card.pink .stat-number      { color: #ec4899; }

.stat-card.gold .stat-card-accent { background: var(--accent); }
.stat-card.gold .stat-card-body   { background: var(--ins-gold); }
.stat-card.gold .stat-number      { color: var(--accent); }

.inspiration-footer {
  padding: 0.75rem 1rem;
  font-size: 0.66rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  line-height: 1.5;
  font-style: italic;
}

/* hide inspiration panel below 900px, show a toggle instead */
@media (max-width: 900px) {
  .inspiration-panel { display: none; }
  .chat-left { border-right: none; }
}

/* ─── Output Screen ───────────────────────────────────────────────────── */
#screen-output {
  flex-direction: column;
  background: var(--bg);
  overflow-y: auto;
}

.output-header {
  flex-shrink: 0;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.output-header-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
}

.output-header-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.output-main {
  padding: 2.5rem 1.75rem 4rem;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}

.output-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.output-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.65rem;
}

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

/* ─── Section navigation ──────────────────────────────────────────────── */
.section-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.section-nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  padding: 0.18rem 0.4rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.section-nav-link:hover {
  background: rgba(200,169,110,0.1);
  color: #dbbf7e;
}

.section-nav-sep {
  color: var(--text-faint);
  font-size: 0.78rem;
  user-select: none;
}

/* ─── Scroll hint ─────────────────────────────────────────────────────── */
.scroll-hint {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 0.6rem 0 1.5rem;
  color: var(--accent);
  animation: scrollHintPulse 2s ease-in-out infinite;
  pointer-events: none;
}

.scroll-hint span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes scrollHintPulse {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50%       { opacity: 0.9;  transform: translateY(4px); }
}

/* ─── Bet cards grid ──────────────────────────────────────────────────── */
.bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.bet-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  animation: fadeUp 0.45s ease both;
  display: flex;
  flex-direction: column;
}
.bet-card:nth-child(2) { animation-delay: 0.1s; }
.bet-card:nth-child(3) { animation-delay: 0.2s; }

/* colored header section */
.bet-card-header {
  padding: 0.77rem 0.875rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bet-card:nth-child(1) .bet-card-header { background: var(--bet-1-dim); border-bottom: 1px solid rgba(200,169,110,0.2); }
.bet-card:nth-child(2) .bet-card-header { background: var(--bet-2-dim); border-bottom: 1px solid rgba(91,141,238,0.2); }
.bet-card:nth-child(3) .bet-card-header { background: var(--bet-3-dim); border-bottom: 1px solid rgba(82,201,138,0.2); }

.bet-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
}
.bet-card:nth-child(1) .bet-badge { background: rgba(200,169,110,0.2); color: var(--bet-1); }
.bet-card:nth-child(2) .bet-badge { background: rgba(91,141,238,0.2);  color: var(--bet-2); }
.bet-card:nth-child(3) .bet-badge { background: rgba(82,201,138,0.2);  color: var(--bet-3); }

.bet-approach-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.bet-card-body {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

/* Hours row */
.bet-hours-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.bet-hours-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}
.bet-card:nth-child(1) .bet-hours-number { color: var(--bet-1); }
.bet-card:nth-child(2) .bet-hours-number { color: var(--bet-2); }
.bet-card:nth-child(3) .bet-hours-number { color: var(--bet-3); }

.bet-hours-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  padding-bottom: 0.3rem;
}

/* Title */
.bet-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* Description */
.bet-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Score bar */
.bet-score-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.bet-score-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.bet-score-value {
  font-size: 0.75rem;
  font-weight: 600;
}
.bet-card:nth-child(1) .bet-score-value { color: var(--bet-1); }
.bet-card:nth-child(2) .bet-score-value { color: var(--bet-2); }
.bet-card:nth-child(3) .bet-score-value { color: var(--bet-3); }

.bet-score-track {
  height: 5px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.bet-score-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}
.bet-card:nth-child(1) .bet-score-fill { background: var(--bet-1); }
.bet-card:nth-child(2) .bet-score-fill { background: var(--bet-2); }
.bet-card:nth-child(3) .bet-score-fill { background: var(--bet-3); }

/* First step */
.bet-first-step {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.bet-first-step-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}

.bet-first-step-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.bet-first-step-text::before {
  content: "→ ";
  opacity: 0.5;
}

/* ─── Output actions ──────────────────────────────────────────────────── */
.output-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn-secondary:hover { background: rgba(200,169,110,0.08); border-color: var(--accent); }

.btn-ghost {
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

/* ─── Utility ─────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ─── Stolen-time animated clock ──────────────────────────────────────── */
@keyframes clock-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.clock-hour,
.clock-minute,
.clock-second {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

/* Second hand: 4 s/rotation (≈15× real speed) */
.clock-second { animation: clock-spin 4s    linear infinite; animation-delay: -1.7s; }
/* Minute hand: 240 s/rotation — visibly advances */
.clock-minute { animation: clock-spin 240s  linear infinite; animation-delay: -89s;  }
/* Hour hand: 2880 s/rotation — barely moves */
.clock-hour   { animation: clock-spin 2880s linear infinite; animation-delay: -1200s;}

/* Landing hero — two-column with clock on the right */
.landing-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.landing-clock-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.landing-clock-caption {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

/* Stack on small screens */
@media (max-width: 660px) {
  .landing-hero { flex-direction: column; gap: 2rem; }
}

/* Chat panel: flex label bar so clock fits on the right */
.panel-clock-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.panel-timer {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.8;
  white-space: nowrap;
}

/* Output header: group brand+sub on the left, clock+hours on the right */
.output-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.output-clock-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.output-stolen-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  font-style: italic;
}

/* ─── Right panel — label bar ─────────────────────────────────────────── */
.panel-label-bar {
  flex-shrink: 0;
  padding: 0.9rem 1.25rem 0.6rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-label-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
}

/* ─── Right panel — content wrapper ──────────────────────────────────── */
.panel-content-wrap {
  flex: 1;
  padding: 1.25rem;
  transition: opacity 0.3s ease;
}

.panel-content-wrap.fading {
  opacity: 0;
}

/* ─── Type A — Stat card ──────────────────────────────────────────────── */
.panel-stat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--accent);
  animation: fadeUp 0.3s ease both;
}

.panel-stat-number {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.panel-stat-label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
}

.panel-stat-source {
  font-size: 0.7rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 0.2rem;
}

/* ─── Type B — Quote card ─────────────────────────────────────────────── */
.panel-quote {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  animation: fadeUp 0.3s ease both;
}

.panel-quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 0.6;
  opacity: 0.7;
  user-select: none;
}

.panel-quote-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
}

.panel-quote-author {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ─── Type D — Case card ─────────────────────────────────────────────── */
.panel-case {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--accent);
  animation: fadeUp 0.3s ease both;
}

.panel-case-company {
  display: inline-flex;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
  width: fit-content;
}

.panel-case-did {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.panel-case-result {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
}

.panel-case-source {
  font-size: 0.64rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 0.1rem;
  text-align: right;
}

/* ─── Type E — Fact card ─────────────────────────────────────────────── */
.panel-fact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  animation: fadeUp 0.3s ease both;
}

.panel-fact-icon {
  font-size: 1.6rem;
  line-height: 1;
  user-select: none;
}

.panel-fact-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
}

.panel-fact-source {
  font-size: 0.68rem;
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

/* ─── Type C — Bar chart ──────────────────────────────────────────────── */
.panel-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeUp 0.3s ease both;
}

.panel-chart-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.panel-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chart-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chart-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 16px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.chart-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.chart-pct {
  position: absolute;
  right: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  z-index: 1;
}

.chart-source {
  font-size: 0.66rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 0.25rem;
}

/* ─── Output matrices ─────────────────────────────────────────────────── */
.output-matrices {
  margin-bottom: 2.5rem;
  margin-top: 0;
}

.matrices-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.5rem;
}

.matrices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.matrix-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  animation: fadeUp 0.4s ease both;
}
.matrix-card:nth-child(2) { animation-delay: 0.1s; }

.matrix-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ── Complexity × Value matrix ────────────────────────────────────────── */
.complexity-matrix {
  display: flex;
  gap: 0.5rem;
}

.cm-y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 60px;
  flex-shrink: 0;
  padding: 4px 0;
}

.cm-y-labels span {
  font-size: 0.62rem;
  color: var(--text-faint);
  text-align: right;
  line-height: 1.2;
}

.cm-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cm-quadrants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  min-height: 210px;
}

.matrix-quadrant {
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.quad-hl {
  background: rgba(82,201,138,0.07);
  border: 1px solid rgba(82,201,138,0.22);
  border-top: 2px solid rgba(82,201,138,0.5);
}
.quad-hh {
  background: rgba(200,169,110,0.07);
  border: 1px solid rgba(200,169,110,0.22);
  border-top: 2px solid rgba(200,169,110,0.55);
}
.quad-ll {
  background: rgba(100,100,120,0.05);
  border: 1px solid rgba(100,100,120,0.18);
  border-top: 2px solid rgba(100,100,120,0.3);
}
.quad-lh {
  background: rgba(231,76,60,0.05);
  border: 1px solid rgba(231,76,60,0.15);
  border-top: 2px solid rgba(231,76,60,0.38);
}

.q-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.q-desc {
  font-size: 0.62rem;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

.q-bets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.q-empty {
  font-size: 0.7rem;
  color: var(--text-faint);
}

.matrix-bet-chip {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid currentColor;
  background: transparent;
  white-space: normal;
  word-break: break-word;
  cursor: pointer;
  transition: box-shadow var(--transition), opacity var(--transition);
  display: inline-block;
}
.matrix-bet-chip:hover { opacity: 0.78; }
.matrix-bet-chip.selected {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.cm-x-labels {
  display: flex;
  justify-content: space-between;
}

.cm-x-labels span {
  font-size: 0.62rem;
  color: var(--text-faint);
}

/* ── AI-type expandable rows ────────────────────────────────────────────── */
.ai-type-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ai-type-row {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.ai-type-row:last-child { border-bottom: none; }

.ai-type-row-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}
.ai-type-row-header:hover { background: var(--surface-2); }

.ai-type-number {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.55;
  flex-shrink: 0;
  width: 22px;
}

.ai-type-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.ai-type-name-new {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.ai-type-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ai-type-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  flex-shrink: 0;
}

.tool-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.42rem;
  border-radius: 100px;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  white-space: nowrap;
}

.ai-type-chevron {
  font-size: 1rem;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  line-height: 1;
}
.ai-type-row[data-expanded="true"] .ai-type-chevron {
  transform: rotate(90deg);
}

.ai-type-expanded-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ai-type-row[data-expanded="true"] .ai-type-expanded-body {
  max-height: 500px;
  padding: 0.65rem 0.9rem 0.9rem;
}

.ai-type-example {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.55rem 0.7rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
}

.ai-type-result {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ai-type-difficulty {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.difficulty-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  font-weight: 500;
  white-space: nowrap;
}

.difficulty-dots {
  display: flex;
  gap: 4px;
}

.d-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
}
.d-dot.filled {
  background: var(--accent);
  border-color: var(--accent);
}

.difficulty-num {
  font-size: 0.66rem;
  color: var(--text-faint);
}

.ai-type-guide {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guide-title {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.guide-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.12rem;
}

/* ── AI row pulse ─────────────────────────────────────────────────────── */
@keyframes rowPulse {
  0%   { background: transparent; }
  20%  { background: rgba(200,169,110,0.13); }
  60%  { background: rgba(200,169,110,0.06); }
  100% { background: transparent; }
}
.ai-type-row.pulsing {
  animation: rowPulse 2s ease-out;
}

/* ── Bet detail slide-in panel ──────────────────────────────────────────── */
.bet-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.bet-detail-panel.open { transform: translateX(0); }

.bet-detail-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bet-detail-close {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.bet-detail-close:hover { color: var(--text); border-color: var(--text-muted); }

.detail-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid;
  width: fit-content;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.detail-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.detail-meta-label {
  font-size: 0.68rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.detail-meta-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.detail-scores {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.detail-score-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.detail-score-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  width: 88px;
  flex-shrink: 0;
}

.score-dots {
  display: flex;
  gap: 4px;
  flex: 1;
}

.score-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
}
.score-dot.filled { border-color: transparent; }

.detail-score-num {
  font-size: 0.68rem;
  color: var(--text-muted);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.detail-section-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.detail-section-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════
   HANDLINGSPLAN FLOW
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Trigger card ─────────────────────────────────────────────────────── */
.hp-trigger-card {
  margin-top: 2.75rem;
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}
.hp-trigger-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200,169,110,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hp-trigger-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hp-trigger-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.hp-trigger-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hp-trigger-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hp-bet-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  min-width: 180px;
  max-width: 260px;
}
.hp-bet-btn:hover {
  background: rgba(200,169,110,0.10);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.18);
}
.hp-bet-btn-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}
.hp-bet-btn-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

/* ── Flow container & step header ─────────────────────────────────────── */
.hp-flow-container {
  margin-top: 2.5rem;
  animation: fadeUp 0.35s ease both;
}
.hp-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.hp-step-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}
.hp-step-progress {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.22rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Progress dots */
.hp-progress-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1.5rem;
}
.hp-prog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.hp-prog-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent);
  border-color: var(--accent);
}
.hp-prog-dot.completed {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

/* ── Step card ────────────────────────────────────────────────────────── */
.hp-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.hp-step-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ── Step 1: Confirm ──────────────────────────────────────────────────── */
.hp-confirm-bet-display {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.hp-confirm-bet-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.hp-confirm-bet-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.hp-confirm-bet-hours {
  font-size: 0.83rem;
  color: var(--text-muted);
}
.hp-confirm-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Step 2: Feasibility questions ────────────────────────────────────── */
.hp-question-block {
  margin-bottom: 2rem;
}
.hp-question-block:last-of-type { margin-bottom: 1rem; }
.hp-question-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.hp-question-sub {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-style: italic;
}
.hp-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.hp-option-card {
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: all var(--transition);
  user-select: none;
}
.hp-option-card:hover {
  border-color: var(--accent-dim);
  color: var(--text);
  background: var(--surface-3);
}
.hp-option-card.selected {
  border-color: var(--accent);
  background: rgba(200,169,110,0.09);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(200,169,110,0.25);
}

/* ── Step 3: Recommendation ───────────────────────────────────────────── */
.hp-rec-card {
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--accent);
  padding: 1.75rem;
  animation: fadeUp 0.35s ease both;
}
.hp-rec-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}
.hp-rec-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.hp-rec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 560px) { .hp-rec-grid { grid-template-columns: 1fr; } }
.hp-rec-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
}
.hp-rec-item-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.hp-rec-item-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.hp-tool-badge {
  display: inline-block;
  background: rgba(200,169,110,0.12);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.hp-complexity-dots {
  display: flex;
  gap: 4px;
  margin-top: 0.3rem;
}
.hp-cdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
}
.hp-cdot.filled { background: var(--accent); border-color: var(--accent); }
.hp-complexity-num {
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* ── Step 4: As-Is vs To-Be workflow ──────────────────────────────────── */
.hp-workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
@media (max-width: 680px) { .hp-workflow-grid { grid-template-columns: 1fr; } }

.hp-workflow-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.hp-workflow-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.hp-workflow-col.asis .hp-workflow-col-title { color: #e07070; }
.hp-workflow-col.tobe .hp-workflow-col-title { color: #52c98a; }

.hp-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.875rem;
  position: relative;
}
.hp-flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  width: 1px;
  height: calc(100% - 8px);
  background: var(--border);
}
.hp-flow-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.hp-flow-step.ai-step .hp-flow-icon {
  background: rgba(200,169,110,0.12);
  border-color: var(--accent-dim);
}
.hp-flow-content { flex: 1; min-width: 0; padding-top: 0.1rem; }
.hp-flow-step-label {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
}
.hp-flow-step-time {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.12rem;
}
.hp-flow-step-time.saved { color: #52c98a; }

.hp-workflow-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  font-weight: 700;
  text-align: center;
}
.hp-workflow-total.asis-total { color: #e07070; }
.hp-workflow-total.tobe-total { color: #52c98a; }

.hp-time-saved-highlight {
  text-align: center;
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  background: rgba(82,201,138,0.07);
  border: 1px solid rgba(82,201,138,0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #52c98a;
  font-weight: 600;
}

/* ── Step 5: Timeline ─────────────────────────────────────────────────── */
.hp-timeline {
  position: relative;
  padding-bottom: 0.5rem;
}
.hp-timeline-line {
  position: absolute;
  top: 24px;
  left: calc(12.5% - 0px);
  right: calc(12.5% - 0px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  pointer-events: none;
}
.hp-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 0.5rem;
}
@media (max-width: 680px) {
  .hp-milestones    { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .hp-timeline-line { display: none; }
}
.hp-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.25rem;
}
.hp-milestone-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  margin-bottom: 0.875rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.hp-milestone-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.hp-milestone-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.hp-milestone-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Step 6: Responsibility ───────────────────────────────────────────── */
.hp-responsibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
@media (max-width: 680px) { .hp-responsibility-grid { grid-template-columns: 1fr; } }
.hp-role-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.hp-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  border: 1px solid transparent;
}
.hp-role-badge.self       { background: rgba(200,169,110,0.15); color: var(--accent);  border-color: var(--accent-dim); }
.hp-role-badge.team       { background: rgba(91,141,238,0.12);  color: #5b8dee;        border-color: rgba(91,141,238,0.3); }
.hp-role-badge.it         { background: rgba(82,201,138,0.1);   color: #52c98a;        border-color: rgba(82,201,138,0.25); }
.hp-role-badge.management { background: rgba(159,122,234,0.1);  color: #9f7aea;        border-color: rgba(159,122,234,0.25); }
.hp-role-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hp-role-task {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.hp-role-task::before {
  content: '→';
  color: var(--text-faint);
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.hp-role-empty {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════════
   FLUID HANDLINGSPLAN FLOW
   ══════════════════════════════════════════════════════════════════════ */

.hp-fluid-wrapper {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: fadeUp 0.4s ease both;
}

.hp-fluid-top {
  text-align: center;
}

.hp-fluid-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.hp-fluid-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

/* Selected bet display */
.hp-fluid-bet-box {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.hp-fluid-bet-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.hp-fluid-bet-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.hp-fluid-bet-hours {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Questions stack */
.hp-fluid-questions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Individual question — starts invisible, slides in */
.hp-fluid-question {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

.hp-fluid-question.visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-fluid-question.answered .hp-fluid-q-header {
  opacity: 0.6;
}

.hp-fluid-q-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s ease;
}

.hp-fluid-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.hp-fluid-q-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.hp-fluid-multi-hint {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.65rem;
  font-style: italic;
  opacity: 0.8;
}

.hp-fluid-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Fluid option cards — large, full-width ───────────────────────────── */
.hp-fluid-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    border-left-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
  user-select: none;
}

.hp-fluid-option:hover:not(.locked) {
  border-left-color: var(--accent-dim);
  color: var(--text);
  background: var(--surface-3);
}

.hp-fluid-option:active:not(.locked) {
  transform: scale(0.98);
}

.hp-fluid-option.selected {
  border-color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(200,169,110,0.09);
  color: var(--accent);
}

.hp-fluid-option.locked:not(.selected) {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.hp-fluid-option.locked.selected {
  cursor: default;
  pointer-events: none;
}

/* Checkmark — hidden until selected */
.hp-fluid-option-check {
  opacity: 0;
  font-size: 0.8rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  transition: opacity 0.15s ease;
  font-weight: 700;
}

.hp-fluid-option.selected .hp-fluid-option-check {
  opacity: 1;
}

.hp-fluid-option-label {
  flex: 1;
}

/* Multi-select confirm button */
.hp-fluid-confirm-btn {
  display: none;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.hp-fluid-confirm-btn:hover {
  background: rgba(200,169,110,0.1);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Submit row — hidden until all questions answered */
.hp-fluid-submit {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease-in, transform 0.35s ease-in;
}

.hp-fluid-submit.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.hp-btn-generate {
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
}

/* ── Step 7: Download ─────────────────────────────────────────────────── */
.hp-summary-box {
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hp-summary-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
}
.hp-summary-title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.hp-summary-lines {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
}
.hp-download-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Shared nav row ───────────────────────────────────────────────────── */
.hp-nav-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.hp-btn-next {
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #0d0d0f;
  border: none;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.hp-btn-next:hover {
  background: #dbbf7e;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200,169,110,0.28);
}
.hp-btn-next:active { transform: translateY(0); }
.hp-btn-back {
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}
.hp-btn-back:hover { color: var(--text); border-color: var(--text-muted); }

/* ── Stacked results reveal ───────────────────────────────────────────── */
.hp-results-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.hp-result-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

.hp-result-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section heading — replaces old wizard step header */
.hp-result-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hp-result-heading::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* "Plan ready" badge that replaces the generate button after submission */
.hp-plan-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #52c98a;
  background: rgba(82,201,138,0.1);
  border: 1px solid rgba(82,201,138,0.3);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ─── Quick Reply Buttons ─────────────────────────────────────────────── */
@keyframes quickFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quick-reply-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0 0.25rem 0;
  justify-content: flex-start;
}

.quick-reply-btn {
  background: #111114;
  color: #C9A84C;
  border: 1px solid #C9A84C;
  border-radius: 100px;
  padding: 0.32rem 0.85rem;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  opacity: 0;
  animation: quickFadeUp 0.25s ease both;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.quick-reply-btn:hover {
  background: #C9A84C;
  color: #0d0d0f;
  transform: translateY(-1px);
}
.quick-reply-btn:active { transform: scale(0.95); }

/* ─── Send Button Pulse ───────────────────────────────────────────────── */
@keyframes sendGlow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(201,168,76,0.5); }
  50%       { box-shadow: 0 0 0 7px rgba(201,168,76,0);   }
}
.btn-send.has-text {
  animation: sendGlow 2s ease infinite;
}

/* ─── Right Panel Slide Transition ───────────────────────────────────── */
@keyframes panelSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel-content-wrap.panel-slide-out {
  animation: panelSlideOut 0.25s ease forwards;
  pointer-events: none;
}
.panel-content-wrap.panel-slide-in {
  animation: panelSlideIn 0.25s ease both;
}

/* ─── Panel Label Flip ────────────────────────────────────────────────── */
@keyframes labelFlip {
  0%   { transform: scaleY(1); opacity: 1; }
  45%  { transform: scaleY(0); opacity: 0; }
  55%  { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}
.panel-label-tag.label-flip {
  animation: labelFlip 0.35s ease both;
  display: inline-block;
}

/* ─── Progress Bar Shimmer ────────────────────────────────────────────── */
@keyframes barShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.journey-bar-fill.shimmer {
  background: linear-gradient(90deg,
    var(--accent-dim) 0%,
    var(--accent) 30%,
    #fff3c4 50%,
    var(--accent) 70%,
    var(--accent-dim) 100%
  );
  background-size: 200% auto;
  animation: barShimmer 0.85s ease both;
}

/* ─── Journey Phase Name Crossfade ────────────────────────────────────── */
@keyframes phaseNameFade {
  0%   { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.journey-phase-name.phase-updated {
  animation: phaseNameFade 0.3s ease both;
}

/* ═══════════════════════════════════════════════════════════════════════
   REGISTER SCREEN
   ═══════════════════════════════════════════════════════════════════════ */

#screen-register {
  background: #0d0d0d;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-y: auto;
}

.reg-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.reg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem 2rem;
  animation: fadeUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
  box-shadow: 0 0 60px rgba(200,169,110,0.05);
}

.reg-brand {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  opacity: 0.75;
}

.reg-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.reg-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reg-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.reg-required {
  color: var(--accent);
}

.reg-optional {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-faint);
  font-style: italic;
}

.reg-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.reg-input::placeholder {
  color: var(--text-faint);
}

.reg-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(200,169,110,0.18);
}

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

.reg-select option {
  background: #16161a;
  color: var(--text);
}

.reg-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid rgba(200,169,110,0.4);
  background: rgba(200,169,110,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.25rem;
}

.reg-privacy-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.reg-privacy p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.reg-submit {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #0d0d0f;
  border: none;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 0.35rem;
  letter-spacing: 0.01em;
}

.reg-submit:hover {
  background: #dbbf7e;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(200,169,110,0.28);
}

.reg-submit:active { transform: translateY(0); }

.reg-submit:disabled {
  background: var(--accent-dim);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 560px) {
  .reg-card { padding: 2rem 1.25rem 1.75rem; }
  .reg-wrap { padding: 1.5rem 1rem; }
}

/* ─── Toast notification ──────────────────────────────────────────────── */
.tsh-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(13, 13, 15, 0.96);
  border: 1px solid rgba(200, 169, 110, 0.55);
  color: #C9A84C;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 169, 110, 0.1);
  white-space: nowrap;
}
.tsh-toast.tsh-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Print styles ─────────────────────────────────────────────────────── */
@media print {
  /* Show only the output screen content */
  #screen-landing,
  #screen-register,
  #screen-chat,
  .output-header,
  .section-nav,
  .scroll-hint,
  .output-actions,
  .bet-detail-panel,
  .hp-trigger-card,
  .hp-nav-row,
  .hp-download-buttons {
    display: none !important;
  }

  body, html {
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 14px;
  }

  #screen-output {
    display: block !important;
    position: static !important;
    overflow: visible !important;
  }

  .output-main {
    padding: 1.5rem !important;
    max-width: 100% !important;
  }

  .bet-card,
  .matrix-card,
  .hp-step-card,
  .hp-rec-card,
  .hp-workflow-col,
  .hp-role-card,
  .hp-summary-box {
    background: #ffffff !important;
    border-color: #cccccc !important;
    page-break-inside: avoid;
  }

  .hp-flow-container { page-break-before: always; }

  * { color: #111111 !important; }
  .hp-trigger-card { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   IMPROVEMENT 4 — Personal Insight Card
   ═══════════════════════════════════════════════════════════════════════ */

#insight-container {
  margin: 0 0 1.75rem 0;
  min-height: 0;
}

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

.insight-card {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(200,169,110,0.07) 0%, transparent 65%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.4rem 1.75rem;
  animation: insightFadeUp 0.75s cubic-bezier(0.4,0,0.2,1) both;
}

.insight-eyebrow {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.insight-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════
   IMPROVEMENT 2 — Confidence scoring badge
   ═══════════════════════════════════════════════════════════════════════ */

.bet-confidence-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.45rem 0 0.7rem;
}

.bet-confidence-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bet-confidence-basis {
  font-size: 0.71rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════
   IMPROVEMENT 3 — Optimize / Accelerate / Transform tag
   ═══════════════════════════════════════════════════════════════════════ */

.bet-strat-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 2px 9px;
  border: 1px solid;
  border-radius: 100px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.bet-strat-description {
  font-size: 0.77rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.7rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════════
   IMPROVEMENT 1 — ROI Calculator
   ═══════════════════════════════════════════════════════════════════════ */

#roi-container {
  margin: 2rem 0;
}

.roi-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  animation: fadeUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

.roi-section-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.roi-salary-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.roi-salary-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.roi-salary-btn {
  padding: 0.55rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  cursor: pointer;
  transition: all var(--transition);
}
.roi-salary-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.roi-salary-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  font-weight: 600;
}

.roi-results {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.roi-card {
  opacity: 0;
  transform: translateY(10px);
  background: #0f0f14;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.roi-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.roi-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.roi-bet-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.roi-bet-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.roi-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
}
.roi-metric { display: flex; flex-direction: column; gap: 0.18rem; }
.roi-metric-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.roi-metric-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}
.roi-metric-highlight {
  grid-column: 1 / -1;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  margin-top: 0.2rem;
}
.roi-big {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  font-family: var(--font-serif) !important;
}
.roi-source {
  font-size: 0.65rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   IMPROVEMENT 5 — AI Readiness Score
   ═══════════════════════════════════════════════════════════════════════ */

#ai-readiness-container {
  margin: 2rem 0;
}

.ai-readiness-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  animation: fadeUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

.ai-readiness-heading {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.ai-readiness-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.ai-readiness-circle-wrap {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
}
.readiness-circle { display: block; }
.readiness-arc {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}
.readiness-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.readiness-score-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.readiness-score-denom {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ai-readiness-right { flex: 1; min-width: 180px; }
.ai-readiness-interpretation {
  font-size: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.ai-readiness-factors { display: flex; flex-direction: column; gap: 0.45rem; }
.readiness-factor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.81rem;
  color: var(--text-muted);
}
.readiness-factor-check { color: var(--accent); font-size: 0.82rem; }
.readiness-factor-value {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 1px 7px;
  border-radius: 10px;
}
.readiness-no-factors {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-style: italic;
}

.risk-flag-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(224,112,112,0.07);
  border: 1px solid rgba(224,112,112,0.28);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.2rem;
  margin-top: 1.2rem;
}
.risk-flag-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 1px; }
.risk-flag-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #e07070;
  margin-bottom: 0.28rem;
}
.risk-flag-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ai-readiness-source {
  font-size: 0.65rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   TIDSTYV CINEMATIC OVERLAY — Feature 1
   ═══════════════════════════════════════════════════════════════════════ */

.tidstyv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d0d0f;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

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

.tidstyv-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

/* Fast-spinning clock hands */
.tidstyv-clock-wrap {
  position: relative;
}

.tidstyv-clock {
  filter: drop-shadow(0 0 24px rgba(200, 169, 110, 0.35));
}

.tidstyv-clock-hour {
  transform-origin: 60px 60px;
  animation: tidstyv-spin-hour 1.2s linear infinite;
}

.tidstyv-clock-minute {
  transform-origin: 60px 60px;
  animation: tidstyv-spin-minute 0.4s linear infinite;
}

.tidstyv-clock-second {
  transform-origin: 60px 66px;
  animation: tidstyv-spin-second 0.12s linear infinite;
}

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

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

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

/* Counter */
.tidstyv-counter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.tidstyv-counter {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 600;
  color: #C9A84C;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(200, 169, 110, 0.4);
  transition: color 0.1s ease;
}

.tidstyv-unit {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 300;
  color: rgba(200, 169, 110, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  min-height: 1.5em;
}

/* Subtext */
.tidstyv-subtext {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(232, 230, 225, 0.75);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  max-width: 380px;
}

/* Skip link */
.tidstyv-skip {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  background: none;
  border: none;
  color: rgba(136, 135, 148, 0.6);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease, color 0.2s ease;
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.03em;
}

.tidstyv-skip:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════
   TIDSTYV PROFILE CARD — Feature 2
   ═══════════════════════════════════════════════════════════════════════ */

#profile-container {
  margin: 1.5rem 0;
}

.tidstyv-profile-card {
  background: linear-gradient(135deg, #16161a 0%, #1a1a22 100%);
  border: 1px solid rgba(200, 169, 110, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(200, 169, 110, 0.06), inset 0 1px 0 rgba(200, 169, 110, 0.1);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tidstyv-profile-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tprofile-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(200, 169, 110, 0.6);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.tprofile-headline {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.tprofile-type {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: #C9A84C;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 30px rgba(200, 169, 110, 0.25);
}

.tprofile-description {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(232, 230, 225, 0.7);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  border-left: 2px solid rgba(200, 169, 110, 0.25);
  padding-left: 1rem;
}

.tprofile-ranking {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.tprofile-ranking::before {
  content: "📊 ";
}

.tprofile-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(200, 169, 110, 0.4);
  color: #C9A84C;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tprofile-share-btn:hover {
  background: rgba(200, 169, 110, 0.1);
  border-color: #C9A84C;
}

/* ─── Output screen: share button + header right ─────────────────────── */
.output-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.output-share-btn {
  display: none; /* shown by JS once analysis_id exists */
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  color: rgba(201,168,76,0.8);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.output-share-btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: #C9A84C;
  color: #C9A84C;
}

/* ─── Shared analysis screen ──────────────────────────────────────────── */
#screen-shared {
  background: #0d0d0d;
  flex-direction: column;
  overflow-y: auto;
}
.sh-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
}
.sh-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.sh-content { width: 100%; }

.sh-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Top bar */
.sh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sh-brand {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.5);
  text-transform: uppercase;
}
.sh-start-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(201,168,76,0.7);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.sh-start-btn:hover { border-color: #C9A84C; color: #C9A84C; background: rgba(201,168,76,0.06); }

/* Hero */
.sh-hero { text-align: center; }
.sh-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin-bottom: 0.7rem;
}
.sh-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.sh-branche {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.sh-total { font-size: 1rem; color: var(--text-muted); }
.sh-total-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #C9A84C;
  margin-right: 0.3rem;
}

/* Profil badge */
.sh-profil-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(201,168,76,0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
}

/* Bet cards */
.sh-bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.sh-bet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid #C9A84C;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem;
}
.sh-bet-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.sh-bet-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.sh-bet-hours {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Score bar */
.sh-score-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.sh-score-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  width: 90px;
  flex-shrink: 0;
}
.sh-score-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.sh-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #C9A84C, #2ECC71);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.sh-score-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #C9A84C;
  white-space: nowrap;
  width: 55px;
  text-align: right;
  flex-shrink: 0;
}

/* CTA box */
.sh-cta-box {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.03));
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.sh-cta-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}
.sh-cta-sub { font-size: 0.85rem; color: var(--text-muted); }
.sh-cta-btn {
  margin-top: 0.5rem;
  background: #C9A84C;
  color: #0d0d0d;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.sh-cta-btn:hover { background: #dab85c; transform: translateY(-2px); }
.sh-cta-matrix {
  font-size: 0.78rem;
  color: rgba(201,168,76,0.55);
  cursor: pointer;
  transition: color 0.2s;
}
.sh-cta-matrix:hover { color: #C9A84C; }

/* Footer */
.sh-footer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ─── Rich shared-page elements ──────────────────────────────────────── */

/* Profile card */
.sh-profile-card {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.sh-profile-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.sh-profile-headline {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.sh-profile-type {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.sh-profile-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Insight card */
.sh-insight-card {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.sh-insight-eyebrow {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.sh-insight-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

/* Bets section */
.sh-bets-section { margin-bottom: 1.75rem; }
.sh-bets-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

/* Rich bet card */
.sh-bet-card-rich {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.sh-bet-card-top {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sh-bet-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.sh-bet-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.sh-bet-approach {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  color: var(--text-muted);
}
.sh-bet-strat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-left: auto;
}
.sh-bet-hours-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.sh-bet-hours-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.sh-bet-hours-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.sh-bet-title-rich {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.sh-bet-strat-desc {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.5;
}
.sh-bet-desc {
  padding: 1rem 1.5rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sh-bet-score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sh-bet-score-lbl {
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.sh-bet-score-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.sh-bet-score-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.7s ease;
}
.sh-bet-score-val {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.sh-bet-first-step {
  padding: 0.9rem 1.5rem;
}
.sh-bet-fs-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.sh-bet-fs-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Improved score bar */
.sh-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.sh-score-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.sh-score-bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
}
.sh-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #C9A84C, #52c98a);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Saved use cases from matrix ────────────────────────────────────── */
.saved-uc-section {
  max-width: 780px;
  margin: 3rem auto 0;
  padding: 2rem;
  border: 1px solid rgba(201,168,76,0.2);
  border-top: 3px solid rgba(201,168,76,0.5);
  border-radius: var(--radius-lg);
  background: rgba(201,168,76,0.04);
  transition: box-shadow 0.3s ease;
}
.saved-uc-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin-bottom: 0.5rem;
}
.saved-uc-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.saved-uc-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C9A84C;
  color: #0d0d0d;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.saved-uc-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.saved-uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.saved-uc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease;
}
.saved-uc-card:hover {
  border-color: rgba(201,168,76,0.35);
}
.saved-uc-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.saved-uc-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
}
.saved-uc-card-branche {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.55);
}
.saved-uc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.saved-uc-meta-pill {
  font-size: 0.68rem;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
}
.saved-uc-meta-value {
  color: rgba(201,168,76,0.7);
  border-color: rgba(201,168,76,0.2);
}
.saved-uc-remove {
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.saved-uc-remove:hover {
  color: #e05555;
}

/* ─── Collective CTA (output screen) ─────────────────────────────────── */
.collective-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.07) 0%, rgba(201,168,76,0.03) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
  margin: 3rem auto 0;
  max-width: 780px;
}
.collective-cta-icon {
  flex-shrink: 0;
  opacity: 0.8;
}
.collective-cta-text {
  flex: 1;
  min-width: 0;
}
.collective-cta-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.collective-cta-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.collective-cta-btn {
  flex-shrink: 0;
  background: #C9A84C;
  color: #0d0d0d;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}
.collective-cta-btn:hover {
  background: #dab85c;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(201,168,76,0.35);
}

/* ─── Matrix Screen ───────────────────────────────────────────────────── */
#screen-matrix {
  background: #0d0d0d;
  flex-direction: column;
  overflow: hidden;
}

.bm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  flex-shrink: 0;
}
.bm-back-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  color: rgba(201,168,76,0.7);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bm-back-btn:hover {
  border-color: #C9A84C;
  color: #C9A84C;
  background: rgba(201,168,76,0.06);
}
.bm-brand {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.5);
  text-transform: uppercase;
}
.bm-topbar-spacer { width: 120px; }

.bm-header {
  padding: 1rem 2rem 0.5rem;
  flex-shrink: 0;
  text-align: center;
}
.bm-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.bm-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}
.bm-debug {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: rgba(201,168,76,0.5);
  letter-spacing: 0.04em;
  min-height: 1em;
}

/* Branche filter bar */
.bm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  padding: 0 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.bm-filter-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--text-faint);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.bm-filter-pill:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.5);
  color: var(--accent);
}
.bm-filter-pill.active {
  background: rgba(201,168,76,0.15);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Chart layout */
.bm-chart-area {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
  padding: 0.75rem 1.5rem 0;
  gap: 0.5rem;
}
.bm-y-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}
.bm-chart-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bm-chart-wrap {
  flex: 1;
  position: relative;
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f0f0f;
}
.bm-x-label {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  padding: 0.35rem 0 0;
  flex-shrink: 0;
}

/* Loading state */
.bm-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.bm-loading-dots {
  display: flex;
  gap: 8px;
}
.bm-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C9A84C;
  animation: bmDotPulse 1.2s ease-in-out infinite;
}
.bm-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.bm-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bmDotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1);   }
}

/* Error / empty states */
.bm-error, .bm-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

/* SVG bubbles */
#bm-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.bm-bubble-group {
  will-change: opacity, transform;
}

/* Tooltip */
.bm-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(18,18,20,0.96);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  max-width: 230px;
  z-index: 200;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.bm-tt-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.bm-tt-row {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.bm-tt-row strong { color: var(--text); }
.bm-tt-branche {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
}

/* Side panel */
.bm-panel {
  position: fixed;
  top: 48px;
  right: 0;
  bottom: 0;
  width: 400px;
  background: #111113;
  border-left: 1px solid rgba(201,168,76,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 150;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -12px 0 60px rgba(0,0,0,0.5);
}
.bm-panel.open { transform: translateX(0); }
.bm-panel-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: rgba(201,168,76,0.08);
  border: 1.5px solid rgba(201,168,76,0.35);
  color: #C9A84C;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.bm-panel-close:hover { background: rgba(201,168,76,0.18); border-color: #C9A84C; color: #fff; }
.bm-panel-content {
  padding: 3rem 1.75rem 2rem;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}
.bm-panel-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
  line-height: 1.3;
}
.bm-panel-branche {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin-bottom: 0.6rem;
}
.bm-panel-mention {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.bm-panel-mention strong { color: #C9A84C; }

.bm-panel-metrics { margin-bottom: 1.75rem; }
.bm-panel-metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.bm-panel-metric-label {
  font-size: 0.73rem;
  color: var(--text-muted);
  width: 120px;
  flex-shrink: 0;
}
.bm-panel-metric-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.bm-panel-metric-fill {
  height: 100%;
  background: linear-gradient(90deg, #C9A84C, #dab85c);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.bm-panel-metric-val {
  font-size: 0.73rem;
  color: var(--text-muted);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.bm-panel-rating-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.bm-panel-rating-label {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.bm-panel-stars {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.bm-star {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: rgba(255,255,255,0.15);
  transition: color 0.12s ease, transform 0.1s ease;
  padding: 0;
  line-height: 1;
}
.bm-star.active { color: #C9A84C; }
.bm-panel-rating-val {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bm-panel-rating-count {
  font-size: 0.7rem;
  opacity: 0.6;
}
.bm-panel-add-btn {
  width: 100%;
  background: #C9A84C;
  color: #0d0d0d;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 0.5rem;
}
.bm-panel-add-btn:hover {
  background: #dab85c;
  transform: translateY(-1px);
}

/* ─── "Hvad handler det om?" summary section ────────────────────────── */
.bm-panel-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}
.bm-panel-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.bm-panel-summary-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(201,168,76,0.82);
  font-style: italic;
  margin: 0;
}
.bm-panel-summary-empty {
  color: rgba(255,255,255,0.35);
  font-style: normal;
}

/* ─── Stories section ────────────────────────────────────────────────── */
.bm-stories-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.bm-stories-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.bm-stories-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1rem;
}
.bm-stories-loading {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.5rem 0;
}
.bm-stories-loading span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: bmDot 1.1s ease-in-out infinite;
}
.bm-stories-loading span:nth-child(2) { animation-delay: 0.18s; }
.bm-stories-loading span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bmDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.3; }
  40%            { transform: scale(1);   opacity: 1;   }
}
/* Panel description */
.bm-panel-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0.4rem 0 1.2rem;
  border-left: 2px solid rgba(201,168,76,0.3);
  padding-left: 0.75rem;
}

/* Story cards */
.bm-story-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  opacity: 0;
  animation: bsCardIn 0.35s ease both;
}
@keyframes bsCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header — always visible, clickable */
.bm-story-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.bm-story-header:hover { background: rgba(255,255,255,0.03); }

.bm-story-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0d0d;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.bm-story-header-text {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.35;
  min-width: 0;
}
.bm-story-name {
  color: var(--text);
  font-weight: 600;
}
.bm-story-meta {
  color: var(--text-faint);
  font-size: 0.74rem;
}

.bm-story-chevron {
  font-size: 0.65rem;
  color: rgba(201,168,76,0.5);
  flex-shrink: 0;
  transition: color 0.15s;
}
.bm-story-header:hover .bm-story-chevron { color: var(--accent); }

/* Collapsible body */
.bm-story-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.bm-story-body.open {
  max-height: 200px;
}
.bm-story-body-inner {
  padding: 0 0.9rem 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.7rem;
}
.bm-story-quote {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
}
.bm-story-profil {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}
.bm-story-profil span {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bm-stories-empty {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-style: italic;
  padding: 0.25rem 0;
  line-height: 1.5;
}

/* Bottom stats bar */
.bm-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  border-top: 1px solid rgba(201,168,76,0.08);
  background: rgba(13,13,13,0.9);
  font-size: 0.73rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.bm-stats-sep { color: rgba(201,168,76,0.3); }

/* Responsive: narrow screens */
@media (max-width: 640px) {
  .bm-panel { width: 100%; border-left: none; border-top: 1px solid rgba(201,168,76,0.15); top: auto; bottom: 0; height: 75vh; transform: translateY(100%); right: 0; }
  .bm-panel.open { transform: translateY(0); }
  .collective-cta { flex-direction: column; text-align: center; }
  .collective-cta-btn { width: 100%; }
}
