/* ==========================================================================
   Oppovia — application styles (mobile-first)
   ========================================================================== */
/* ---------- Theme tokens. Light is the default; the dark theme overrides them below. ---------- */
:root {
    color-scheme: light;
    /* Type: a warm humanist pair (headings and display in Plus Jakarta Sans, text in Nunito Sans). */
    --font-display: 'Plus Jakarta Sans', 'Nunito Sans', system-ui, sans-serif;
    --font-body: 'Nunito Sans', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bg: #FFFFFF;            /* page background */
    --bg-soft: #F7F5FB;       /* alternate sections, footer, inset panels */
    --surface: #FFFFFF;       /* cards, modals */
    --border: #E7E3EF;
    --text: #15121C;
    --text-muted: #5F5A6B;
    --brand: #6D28D9;
    --brand-hover: #5B21B6;
    --brand-soft: #EDE9FE;
    --on-brand: #FFFFFF;
    --live: #DC2626;          /* live indicator only */
    --live-hover: #B91C1C;
    --live-soft: #FEE2E2;
    --success: #15803D;
    --shadow: 0 6px 24px -12px rgba(21, 18, 28, .18);
    --shadow-sm: 0 1px 2px rgba(21, 18, 28, .04), 0 4px 14px -10px rgba(21, 18, 28, .12);
    /* Surfaces that used to be dark: hero bands, the studio console, the auth side panel, the footer. */
    --hero-bg: var(--bg-soft);
    --hero-text: var(--text);
    --hero-muted: var(--text-muted);
    --hero-box: var(--surface);
    --hero-box-border: var(--border);
    --footer-bg: var(--bg-soft);
    --footer-text: var(--text);
    --footer-muted: var(--text-muted);
    --footer-line: var(--border);
    /* Overlays on top of cover art stay dark in both themes. */
    --media-bg: #0F0A1F;
    --media-text: #FFFFFF;
    /* Older names the stylesheet still uses, pointed at the tokens above. */
    --op-brand: var(--brand);
    --op-brand-600: var(--brand-hover);
    --op-brand-soft: var(--brand-soft);
    --op-live: var(--live);
    --op-live-soft: var(--live-soft);
    --op-ink: var(--text);
    --op-ink-2: var(--text);
    --op-muted: var(--text-muted);
    --op-bg: var(--bg-soft);
    --op-card: var(--surface);
    --op-line: var(--border);
    --op-radius: 16px;
    --sidebar-w: 260px;
    --topbar-h: 60px;
    --bottomnav-h: 64px;
    /* Phone status bar, notch and gesture insets (0 on desktop). Installed apps draw edge to edge. */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    /* Bootstrap */
    --bs-primary: var(--brand);
    --bs-primary-rgb: 109, 40, 217;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 109, 40, 217;
    --bs-link-hover-color: var(--brand-hover);
    --bs-link-hover-color-rgb: 91, 33, 182;
    --bs-body-font-family: var(--font-body);
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-secondary-color: var(--text-muted);
    --bs-border-color: var(--border);
    --bs-heading-color: var(--text);
    --bs-emphasis-color: var(--text);
    --bs-tertiary-bg: var(--bg-soft);
    --bs-secondary-bg: var(--bg-soft);
}
/* The old dark look, kept as the dark theme: chosen with the toggle, or by the device when nothing was chosen. */
[data-theme="dark"] {
        color-scheme: dark;
        --bg: #0F0A1F;
        --bg-soft: #171126;
        --surface: #1B1530;
        --border: #2E2743;
        --text: #F4F2FA;
        --text-muted: #ACA6BF;
        --brand: #A78BFA;
        --brand-hover: #C4B5FD;
        --brand-soft: #2A2050;
        --on-brand: #15121C;
        --live: #F43F5E;
        --live-hover: #E11D48;
        --live-soft: #3B1220;
        --success: #4ADE80;
        --shadow: 0 6px 24px -12px rgba(0, 0, 0, .6);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -10px rgba(0, 0, 0, .5);
        --hero-bg: #0F0A1F;
        --hero-text: #FFFFFF;
        --hero-muted: rgba(255, 255, 255, .62);
        --hero-box: rgba(255, 255, 255, .06);
        --hero-box-border: rgba(255, 255, 255, .1);
        --footer-bg: #0B0817;
        --footer-text: #FFFFFF;
        --footer-muted: rgba(255, 255, 255, .7);
        --footer-line: rgba(255, 255, 255, .12);
        --bs-primary-rgb: 167, 139, 250;
        --bs-link-color-rgb: 167, 139, 250;
        --bs-link-hover-color-rgb: 196, 181, 253;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0F0A1F;
        --bg-soft: #171126;
        --surface: #1B1530;
        --border: #2E2743;
        --text: #F4F2FA;
        --text-muted: #ACA6BF;
        --brand: #A78BFA;
        --brand-hover: #C4B5FD;
        --brand-soft: #2A2050;
        --on-brand: #15121C;
        --live: #F43F5E;
        --live-hover: #E11D48;
        --live-soft: #3B1220;
        --success: #4ADE80;
        --shadow: 0 6px 24px -12px rgba(0, 0, 0, .6);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -10px rgba(0, 0, 0, .5);
        --hero-bg: #0F0A1F;
        --hero-text: #FFFFFF;
        --hero-muted: rgba(255, 255, 255, .62);
        --hero-box: rgba(255, 255, 255, .06);
        --hero-box-border: rgba(255, 255, 255, .1);
        --footer-bg: #0B0817;
        --footer-text: #FFFFFF;
        --footer-muted: rgba(255, 255, 255, .7);
        --footer-line: rgba(255, 255, 255, .12);
        --bs-primary-rgb: 167, 139, 250;
        --bs-link-color-rgb: 167, 139, 250;
        --bs-link-hover-color-rgb: 196, 181, 253;
    }
}
tml { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .font-display { font-family: var(--font-display); letter-spacing: -0.01em; }
a { text-decoration: none; }
.text-brand { color: var(--op-brand) !important; }
.text-live { color: var(--op-live) !important; }
.bg-brand { background: var(--op-brand) !important; }
.bg-brand-soft { background: var(--op-brand-soft) !important; }
.bg-live-soft { background: var(--op-live-soft) !important; }
.bg-live { background: var(--op-live) !important; }

/* Buttons */
.btn { border-radius: 12px; font-weight: 600; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn-outline-brand { border-color: var(--op-brand); color: var(--op-brand); }
.btn-outline-brand:hover { background: var(--brand); color: var(--on-brand); }
.btn-live { background: var(--live); border-color: var(--live); color: #fff; }
.btn-live:hover, .btn-live:focus { background: var(--live-hover); border-color: var(--live-hover); color: #fff; }
/* Secondary button: white, brand text, 1px brand border. */
.btn-soft { background: var(--surface); color: var(--brand); border: 1px solid var(--brand); }
.btn-soft:hover, .btn-soft:focus { background: var(--brand-soft); color: var(--brand-hover); border-color: var(--brand-hover); }
.btn-pill { border-radius: 999px; }
.btn-xl { padding: .9rem 1.6rem; font-size: 1.1rem; border-radius: 16px; }
.btn-follow.following { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-follow.following:hover { color: var(--op-live); border-color: var(--op-live); }

/* Forms */
.form-control, .form-select { border-radius: 12px; padding: .65rem .9rem; border-color: var(--op-line); }
.form-control:focus, .form-select:focus { border-color: var(--op-brand); box-shadow: 0 0 0 .2rem rgba(109,40,217,.15); }
.form-label { font-weight: 600; font-size: .9rem; }
.form-text { font-size: .8rem; }
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple { border: 1px solid var(--op-line); border-radius: 12px; min-height: 44px; padding: .3rem .4rem; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 30px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-container { width: 100% !important; }

/* Cards */
.card { border: 1px solid var(--border); border-radius: var(--op-radius); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); }
.card-soft { box-shadow: var(--shadow); }
.badge { font-weight: 600; letter-spacing: .01em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--op-brand-soft); flex: 0 0 auto; }
.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 110px; height: 110px; border: 4px solid var(--surface); box-shadow: 0 6px 20px -8px rgba(0,0,0,.35); }
.avatar-live { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--live); animation: avatar-flicker 2.4s infinite; }
.cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--op-brand-soft); border-radius: 12px; }
.cover-sq { aspect-ratio: 1/1; }

/* Live indicator */
.live-pill { display: inline-flex; align-items: center; gap: .35rem; background: var(--live); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px; text-transform: uppercase; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.7);} 100% { opacity: 1; transform: scale(1);} }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--op-live); box-shadow: 0 0 0 0 rgba(244,63,94,.6); animation: ring 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(244,63,94,.6);} 70% { box-shadow: 0 0 0 12px rgba(244,63,94,0);} 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0);} }

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; display: flex; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--op-line); padding: calc(1.1rem + var(--safe-top)) 1rem 1.1rem calc(1rem + var(--safe-left)); z-index: 1030; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--op-ink); padding: .3rem .5rem 1rem; }
.sidebar-switch { display: flex; background: var(--op-bg); border-radius: 12px; padding: 4px; margin-bottom: 1rem; }
.sidebar-switch a { flex: 1; text-align: center; font-size: .8rem; font-weight: 700; padding: .4rem; border-radius: 9px; color: var(--op-muted); }
.sidebar-switch a.on { background: var(--surface); color: var(--op-brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link { display: flex; align-items: center; gap: .8rem; padding: .62rem .8rem; border-radius: 12px; color: var(--op-ink-2); font-weight: 500; }
.sidebar-link i { font-size: 1.15rem; width: 22px; text-align: center; color: var(--op-muted); }
.sidebar-link:hover { background: var(--op-bg); color: var(--op-ink); }
.sidebar-link.active { background: var(--op-brand-soft); color: var(--op-brand); font-weight: 700; }
.sidebar-link.active i { color: var(--op-brand); }
.sidebar-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--op-line); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 1020; height: calc(var(--topbar-h) + var(--safe-top)); display: flex; align-items: center; gap: .75rem; padding: var(--safe-top) max(1rem, var(--safe-right)) 0 max(1rem, var(--safe-left)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--op-line); }
.topbar-brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--op-ink); }
.topbar-search { position: relative; flex: 1; max-width: 520px; }
.topbar-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--op-muted); }
.topbar-search .form-control { padding-left: 2.3rem; background: var(--op-bg); border-color: transparent; border-radius: 999px; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.topbar-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--op-ink); font-size: 1.25rem; background: var(--op-bg); }
.notif-dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--live); color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.app-content { flex: 1; padding: 1rem max(1rem, var(--safe-right)) calc(var(--bottomnav-h) + var(--safe-bottom) + 1.5rem) max(1rem, var(--safe-left)); max-width: 1180px; width: 100%; margin: 0 auto; }
.app-content.no-nav { padding-bottom: 1rem; }
@media (min-width: 992px) {
    .app-main { margin-left: var(--sidebar-w); }
    .app-content { padding: 1.5rem 2rem 3rem; }
}
/* bottom nav */
.app-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--bottomnav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); background: var(--surface); border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; align-items: center; z-index: 1030; }
.bn-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--op-muted); font-size: .68rem; font-weight: 600; height: 100%; }
.bn-item i { font-size: 1.35rem; }
.bn-item.active { color: var(--op-brand); }
.bn-plus { justify-self: center; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--brand); color: var(--on-brand); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin-top: -26px; box-shadow: 0 10px 24px -8px rgba(109,40,217,.7); }
.plus-sheet { border-radius: 20px 20px 0 0; height: auto; max-height: 75vh; }
.plus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.plus-item { display: flex; align-items: center; gap: .8rem; padding: .9rem; border: 1px solid var(--op-line); border-radius: 14px; color: var(--op-ink); font-weight: 600; }
.plus-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* ---------- Content blocks ---------- */
.page-title { font-size: 1.45rem; font-weight: 800; margin: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 1.4rem 0 .7rem; }
.section-head h2 { font-size: 1.05rem; font-weight: 800; margin: 0; letter-spacing: .02em; text-transform: uppercase; }
.section-head a { font-size: .85rem; font-weight: 600; }
.h-scroll { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .1rem .6rem; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex: 0 0 auto; }
@media (min-width: 992px) { .h-scroll { margin: 0; padding-left: 0; padding-right: 0; } }

/* Live show card */
.live-card { width: 240px; border-radius: 18px; overflow: hidden; background: var(--media-bg); color: var(--media-text); position: relative; display: block; }
.live-card .live-card-cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; opacity: .85; }
.live-card .live-card-body { position: absolute; inset: auto 0 0 0; padding: .9rem; background: rgba(15,10,31,.84); }
.live-card .live-pill { position: absolute; top: .7rem; left: .7rem; }
.live-card .listeners { position: absolute; top: .7rem; right: .7rem; background: rgba(0,0,0,.5); color: #fff; font-size: .72rem; font-weight: 600; padding: .25rem .5rem; border-radius: 999px; }
.live-card .presenter { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.live-card .presenter img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; }
.live-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.live-card .cat { font-size: .75rem; opacity: .8; }
@media (min-width: 576px) { .live-card { width: 270px; } }
.live-card-wide { width: 100%; }

/* Presenter card */
.presenter-card { width: 150px; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; }
.presenter-card .pc-link { display: flex; flex-direction: column; align-items: center; width: 100%; }
.presenter-card .name { font-weight: 700; font-size: .92rem; display: block; width: 100%; color: var(--op-ink); }
.presenter-card .meta { font-size: .75rem; color: var(--op-muted); width: 100%; }
.list-item { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--op-line); }
.list-item:last-child { border-bottom: 0; }
.list-item .title { font-weight: 700; color: var(--op-ink); }
.list-item .sub { font-size: .8rem; color: var(--op-muted); }

/* Category chips */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--op-line); color: var(--op-ink); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.chip.active, .chip:hover { border-color: var(--op-brand); color: var(--op-brand); background: var(--op-brand-soft); }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.cat-tile { display: flex; align-items: center; gap: .7rem; padding: .9rem; border-radius: 14px; color: #fff; font-weight: 700; min-height: 68px; }
.cat-tile i { font-size: 1.4rem; opacity: .9; }
/* Compact tiles (listener home): about half the size of the standard tile */
.chip-grid-sm { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .4rem; }
.cat-tile-sm { gap: .4rem; padding: .35rem .55rem; border-radius: 10px; min-height: 34px; font-size: .76rem; line-height: 1.15; }
.cat-tile-sm i { font-size: .95rem; }
.cat-tile-sm .small { font-size: .66rem; }
.cat-tile-sm > div { min-width: 0; }
.cat-tile-sm > div > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Audience stage (raise hand → speak) */
.stage-speakers { display: flex; flex-wrap: wrap; gap: .6rem .8rem; }
.stage-speaker { display: flex; flex-direction: column; align-items: center; width: 64px; text-align: center; font-size: .72rem; font-weight: 600; color: var(--op-ink); }
.stage-speaker .sp-avatar { position: relative; width: 50px; height: 50px; }
.stage-speaker .sp-avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--op-line); transition: border-color .15s, box-shadow .15s; }
.stage-speaker .sp-badge { position: absolute; right: -3px; bottom: -3px; width: 21px; height: 21px; border-radius: 50%; background: var(--surface); border: 1px solid var(--op-line); display: flex; align-items: center; justify-content: center; font-size: .66rem; }
.stage-speaker .sp-name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .3rem; }
.stage-speaker.is-speaking .sp-avatar img, .list-item.is-speaking .avatar { border-color: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 28%, transparent); }
.list-item .avatar { border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; }
.stage-me { border-radius: 14px; padding: .75rem; background: var(--op-bg); border: 1px solid var(--op-line); }
.stage-me.is-invited { background: var(--op-brand-soft); border-color: var(--op-brand); }
.stage-me.is-live { background: var(--live-soft); border-color: var(--live); }
.hand-wave { display: inline-block; transform-origin: 70% 80%; animation: hand-wave 1.6s ease-in-out infinite; }
@keyframes hand-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .hand-wave { animation: none; } }

/* Presenter dashboard */
.studio-slim { padding: 1.15rem 1.25rem; border-radius: 20px; }
.studio-slim .show-name { font-size: 1.25rem; }
a.stat, a.list-item { text-decoration: none; }
a.stat { transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--op-brand); box-shadow: 0 6px 18px -12px rgba(109, 40, 217, .6); }
a.list-item:hover .title { color: var(--op-brand); }
.stat-score { display: flex; align-items: center; gap: .8rem; }
.stat-score .score-ring { width: 58px; height: 58px; }
.stat-score .score-ring > span { width: 46px; height: 46px; font-size: 1rem; }

/* Music deck (studio) */
.deck-now { border-radius: 14px; padding: .8rem; background: var(--op-bg); border: 1px solid var(--op-line); }
.deck-play { width: 46px; height: 46px; border-radius: 50%; padding: 0; font-size: 1.4rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.deck-progress { position: relative; height: 6px; border-radius: 999px; background: var(--op-line); cursor: pointer; }
.deck-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--op-brand); }
.deck-duck-badge { color: var(--op-brand); font-weight: 600; }
.deck-jingles { display: flex; flex-wrap: wrap; gap: .4rem; }
.deck-jingles .btn.is-playing { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.deck-list { max-height: 320px; overflow-y: auto; }
.deck-list .list-item { padding: .45rem 0; gap: .6rem; }
.deck-list .list-item.is-current .title { color: var(--op-brand); }
.deck-row-play { width: 34px; height: 34px; border-radius: 50%; padding: 0; flex-shrink: 0; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow-sm); }
.stat .label { font-size: .75rem; color: var(--op-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.stat .delta { font-size: .78rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }

/* Tables */
.table-wrap { background: var(--surface); border: 1px solid var(--op-line); border-radius: var(--op-radius); overflow: auto; }
.table-wrap .table { margin: 0; }
.table-wrap .table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--op-muted); border-bottom-width: 1px; white-space: nowrap; }
.table-wrap .table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--bg-soft); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filter-bar .form-control, .filter-bar .form-select { width: auto; min-width: 150px; }

/* Empty state */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--op-muted); }
.empty i { font-size: 2.4rem; display: block; margin-bottom: .6rem; color: var(--text-muted); opacity: .55; }

/* Profile header */
.profile-hero { position: relative; border-radius: 20px; overflow: hidden; background: var(--media-bg); color: var(--media-text); }
.profile-hero .hero-cover { width: 100%; height: 160px; object-fit: cover; opacity: .6; }
.profile-hero .hero-body { padding: 0 1.2rem 1.2rem; margin-top: -55px; position: relative; }
@media (min-width: 768px) { .profile-hero .hero-cover { height: 220px; } }
.tabs-scroll { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--op-line); margin-bottom: 1rem; scrollbar-width: none; }
.tabs-scroll .nav-link { white-space: nowrap; font-weight: 600; color: var(--op-muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .7rem .9rem; }
.tabs-scroll .nav-link.active { color: var(--op-brand); border-bottom-color: var(--op-brand); background: transparent; }

/* Studio / live room */
.studio { background: var(--hero-bg); color: var(--hero-text); border: 1px solid var(--hero-box-border); border-radius: 24px; padding: 1.5rem; text-align: center; position: relative; overflow: hidden; }
.studio::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(192,38,211,.16), transparent); pointer-events: none; }
.studio .show-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.studio .timer { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.studio .big-stat { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.studio .small-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.2rem 0; }
.studio-grid > div { background: var(--hero-box); border: 1px solid var(--hero-box-border); border-radius: 14px; padding: .8rem .4rem; }
.mic-meter { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.mic-meter > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--success), #FACC15, var(--live)); transition: width .08s linear; }
.btn-golive { width: 100%; max-width: 360px; padding: 1.1rem; font-size: 1.25rem; font-weight: 800; border-radius: 20px; background: var(--op-live); border: 0; color: #fff; box-shadow: 0 16px 40px -14px rgba(244,63,94,.8); }
.btn-golive:disabled { opacity: .5; box-shadow: none; }
.player { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-radius: 20px; padding: 1.2rem; }
.btn-play { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--brand); color: var(--on-brand); font-size: 2rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px -14px rgba(109,40,217,.8); }
.btn-play.playing { background: var(--text); color: var(--bg); }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq span { width: 4px; background: var(--op-live); border-radius: 2px; animation: eq 1s infinite ease-in-out; }
.eq span:nth-child(2) { animation-delay: .15s; } .eq span:nth-child(3) { animation-delay: .3s; } .eq span:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.comments { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; padding-right: .2rem; }
.comment { display: flex; gap: .6rem; }
.comment img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.comment .bubble { background: var(--op-bg); border-radius: 14px; padding: .5rem .8rem; font-size: .9rem; max-width: 100%; }
.comment .who { font-weight: 700; font-size: .8rem; }
.comment .who .badge { font-size: .6rem; vertical-align: middle; }
.tip-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.tip-presets .btn { min-width: 64px; }

/* Landing */
.landing-hero { background: var(--hero-bg); color: var(--hero-text); position: relative; overflow: hidden; padding: calc(3.5rem + var(--safe-top)) 0 4rem; }
.landing-hero > * { position: relative; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; }
.hero-title span { display: block; }
/* One highlighted line only. */
.hero-title .l2 { color: var(--brand); }
.hero-title .l3 { color: inherit; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.landing-nav .brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--hero-text); }
.feature { padding: 1.4rem; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--op-line); height: 100%; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: .8rem; background: var(--op-brand-soft); color: var(--op-brand); }
.feature h3 { font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.manifesto { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.15; }
.landing-footer { color: var(--op-muted); font-size: .85rem; padding: 2rem 0; border-top: 1px solid var(--op-line); }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; padding-top: var(--safe-top); padding-bottom: var(--safe-bottom); }
.auth-side { display: none; background: var(--hero-bg); color: var(--hero-text); border-right: 1px solid var(--border); padding: 2.25rem 3rem; position: relative; overflow: hidden; }
.auth-side > * { position: relative; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.2rem; }
.auth-card { width: 100%; max-width: 440px; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1fr 1fr; } .auth-side { display: flex; flex-direction: column; justify-content: flex-start; gap: .5rem; position: sticky; top: 0; height: 100vh; } }

/* Error page */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(2rem + var(--safe-top)) 1rem calc(2rem + var(--safe-bottom)); }
.error-card { text-align: center; max-width: 520px; }
.error-code { font-family: var(--font-display); font-size: 5rem; font-weight: 800; line-height: 1; color: var(--op-brand); }

/* Steps / timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding-left: 1.6rem; padding-bottom: 1rem; border-left: 2px solid var(--op-line); margin-left: .5rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--op-brand); }
.timeline li:last-child { border-left-color: transparent; }

/* Notifications */
.notif { display: flex; gap: .8rem; padding: .85rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--op-line); color: var(--op-ink); }
.notif.unread { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); border-color: var(--brand-soft); }
.notif .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--op-brand-soft); color: var(--op-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: 0 0 auto; }

/* Schedule grid */
.sched-grid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: .5rem; min-width: 1050px; }
.sched-day h6 { font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; color: var(--op-muted); }
.sched-item { background: var(--surface); border: 1px solid var(--op-line); border-left: 4px solid var(--op-brand); border-radius: 10px; padding: .55rem .65rem; margin-bottom: .4rem; font-size: .8rem; }
.sched-item .t { font-weight: 700; color: var(--op-brand); }

/* Misc */
.sticky-actions { position: sticky; bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + .5rem); z-index: 5; }
@media (min-width: 992px) { .sticky-actions { bottom: 1rem; } }
.text-small { font-size: .85rem; }
.rounded-xl { border-radius: 18px !important; }
.score-ring { --p: 0; width: 88px; height: 88px; border-radius: 50%; background: conic-gradient(var(--op-brand) calc(var(--p) * 1%), var(--op-line) 0); display: grid; place-items: center; }
.score-ring > span { width: 70px; height: 70px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.swal2-popup { border-radius: 20px !important; font-family: var(--bs-body-font-family) !important; }
.swal2-confirm { border-radius: 12px !important; }
.offline-badge { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 12px); background: var(--text); color: var(--bg); padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; z-index: 2000; display: none; }
.install-banner { position: fixed; left: max(1rem, var(--safe-left)); right: max(1rem, var(--safe-right)); bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 12px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: .8rem 1rem; box-shadow: var(--shadow); z-index: 1999; display: none; align-items: center; gap: .8rem; }
@media (min-width: 992px) { .install-banner { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 380px; } }
.dev-notice { background: #FFF7ED; color: #9A3412; border: 1px dashed #FDBA74; border-radius: 12px; padding: .6rem .8rem; font-size: .82rem; }

/* ---------- Legal ---------- */
.legal-page { max-width: 1040px; margin: 0 auto; }
.legal-tabs { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.2rem; padding-bottom: .1rem; }
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-head { margin-bottom: 1.3rem; }
.legal-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--op-brand); }
.legal-title { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; margin: .2rem 0 .4rem; }
.legal-toc { top: calc(var(--topbar-h) + var(--safe-top) + 1rem); max-height: calc(100vh - var(--topbar-h) - var(--safe-top) - 2rem); overflow-y: auto; }
.legal-toc-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--op-muted); margin-bottom: .4rem; }
.legal-toc a, .legal-toc-mobile nav a { display: block; padding: .32rem .6rem; border-radius: 8px; color: var(--op-ink-2); font-size: .86rem; }
.legal-toc a:hover, .legal-toc-mobile nav a:hover { background: var(--op-brand-soft); color: var(--op-brand); }
.legal-toc-mobile { background: var(--surface); border: 1px solid var(--op-line); border-radius: 14px; padding: .7rem .9rem; }
.legal-toc-mobile summary { font-weight: 700; cursor: pointer; }
.legal-toc-mobile nav { margin-top: .5rem; }
.legal-body { padding: 1.2rem; font-size: .97rem; line-height: 1.72; color: var(--op-ink-2); }
@media (min-width: 768px) { .legal-body { padding: 2rem 2.2rem; } }
.legal-body h2 { font-size: 1.15rem; font-weight: 800; color: var(--op-ink); margin: 2.2rem 0 .6rem; scroll-margin-top: calc(var(--topbar-h) + 1rem); }
.legal-body h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; color: var(--op-ink); margin: 1.3rem 0 .4rem; }
.legal-body p, .legal-body ul { margin-bottom: .9rem; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li { margin-bottom: .35rem; }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; }
.legal-body .chip { text-decoration: none; }
.legal-body table { font-size: .88rem; margin-bottom: 1rem; }
.legal-body table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--op-muted); white-space: nowrap; }
.legal-summary { background: var(--op-brand-soft); color: var(--op-ink); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.4rem; }
.legal-contact { font-style: normal; background: var(--op-bg); border-radius: 14px; padding: 1rem 1.1rem; }
.legal-related { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--op-line); }
.legal-links { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .78rem; }
.legal-links a { color: var(--op-muted); }
.legal-links a:hover { color: var(--op-brand); }
.legal-copy { font-size: .75rem; color: var(--op-muted); }

/* ---------- Presenter card: same size for everyone, live ring flickers ---------- */
.presenter-card .pc-avatar { position: relative; display: block; width: 84px; height: 84px; margin-bottom: .6rem; border-radius: 50%; flex: 0 0 auto; }
.presenter-card .pc-avatar img { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--op-brand-soft); }
.presenter-card .pc-avatar.is-live::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--op-live); pointer-events: none; animation: live-flicker 2.4s infinite; }
@keyframes live-flicker {
    0%, 100% { opacity: 1; }
    8% { opacity: .35; } 11% { opacity: 1; } 14% { opacity: .5; } 17% { opacity: 1; }
    55% { opacity: .9; } 60% { opacity: .3; } 64% { opacity: 1; }
}
@keyframes avatar-flicker {
    0%, 100% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--live); }
    8% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px color-mix(in srgb, var(--live) 35%, transparent); }
    11% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--live); }
    60% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px color-mix(in srgb, var(--live) 30%, transparent); }
    64% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--live); }
}
@media (prefers-reduced-motion: reduce) {
    .presenter-card .pc-avatar.is-live::after, .avatar-live { animation: none; }
}

/* ---------- Site footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-muted); padding: 3.5rem 0 1.5rem; font-size: .9rem; border-top: 1px solid var(--footer-line); }
.site-footer a { color: var(--footer-muted); }
.site-footer a:hover, .site-footer a:focus { color: var(--brand); }
.sf-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--footer-text) !important; }
.sf-tagline { color: var(--footer-text); font-weight: 600; margin: 1rem 0 .35rem; }
.sf-about { max-width: 340px; margin-bottom: 1.2rem; line-height: 1.6; }
.sf-heading { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-text); margin-bottom: .9rem; }
.sf-list { list-style: none; padding: 0; margin: 0; }
.sf-list li + li { margin-top: .55rem; }
.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--footer-line); font-size: .8rem; color: var(--footer-muted); }
.site-footer-compact { margin-top: 2.5rem; padding: 1.4rem 0 .5rem; border-top: 1px solid var(--op-line); text-align: center; }
.sfc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.2rem; font-size: .82rem; }
.sfc-links a { color: var(--op-ink-2); font-weight: 500; }
.sfc-links a:hover { color: var(--op-brand); }
.sfc-copy { margin-top: .6rem; font-size: .75rem; color: var(--op-muted); }
@media (min-width: 768px) {
    .site-footer-compact { text-align: left; }
    .sfc-links { justify-content: flex-start; }
}

/* ---------- Layout fixes (mobile overflow) ---------- */
/* Flex children with truncated text must be allowed to shrink (Bootstrap has no min-w-0 utility). */
.min-w-0 { min-width: 0 !important; }
/* Make scroll rows and cards the containing block, so absolutely positioned children
   (e.g. visually-hidden labels) are clipped instead of widening the page. */
.h-scroll, .presenter-card { position: relative; }
/* Swipe rows inside a Bootstrap .container (front pages): bleed only as far as the container padding. */
@media (max-width: 991.98px) {
    .container .h-scroll { margin-left: calc(var(--bs-gutter-x, 1.5rem) * -.5); margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5); padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5); }
}
/* Stat/KPI tiles: let grid columns shrink on phones instead of widening the page. */
.stat-grid, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { min-width: 0; overflow: hidden; }
.stat .value { font-size: clamp(1.1rem, 5vw, 1.45rem); overflow-wrap: anywhere; }

/* ---------- Sign in with Google ---------- */
.btn-google { display: flex; align-items: center; justify-content: center; gap: .75rem; background: #fff; color: #1F1F1F; border: 1px solid #DADCE0; font-weight: 600; }
.btn-google:hover, .btn-google:focus { background: #F8F9FA; color: #1F1F1F; border-color: #C6C9CE; }
.auth-google-note { font-size: .75rem; color: var(--op-muted); text-align: center; margin: .6rem 0 0; }
.auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0; color: var(--op-muted); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--op-line); }

/* Cover studio picker */
.cover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-height: 380px; overflow-y: auto; }
.cover-option { position: relative; padding: 0; border: 2px solid var(--op-line); border-radius: 12px; overflow: hidden; background: none; line-height: 0; }
.cover-option:hover, .cover-option:focus-visible { border-color: var(--op-brand); }
.cover-option svg, .cover-option img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cover-option .cover-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: .2rem .4rem; font-size: .68rem; line-height: 1.2; color: var(--media-text); background: rgba(15,10,31,.6); text-align: left; }

/* Questions and answers on the landing pages (the same list that feeds the FAQ markup). */
.faq-section { border-top: 1px solid var(--bs-border-color); }
.faq-section .accordion-item { background: transparent; border-color: var(--bs-border-color); }
.faq-section .accordion-button { font-weight: 700; font-size: .98rem; background: transparent; }
.faq-section .accordion-button:not(.collapsed) { color: var(--op-brand); box-shadow: none; }
.faq-section .accordion-button:focus { box-shadow: none; }
.faq-section .accordion-body { font-size: .93rem; line-height: 1.6; }

/* Category links across the bottom of the front-page footer. */
.sf-categories { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--footer-line); }
.sf-cat-links { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin-top: .7rem; }
.sf-cat-links a { font-size: .8rem; color: var(--footer-muted); }
.sf-cat-links a:hover { color: var(--brand); }
.sf-categories + .sf-bottom { margin-top: 1.4rem; }

/* Small uppercase label above a heading ("UP NEXT", "FOUNDING PRESENTERS"). */
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.up-next .btn, .open-slot .btn { min-height: 40px; }

/* Become a Presenter page */
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.01em; text-transform: uppercase; }
.trust-line { letter-spacing: .02em; }
.shot { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--op-line); margin-top: auto; }
.shot-slot { aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; background: var(--op-bg); color: var(--op-muted); border-style: dashed; font-size: .8rem; font-family: ui-monospace, monospace; }
.shot-slot i { font-size: 1.6rem; }
.feature { display: flex; flex-direction: column; }
.earn { padding: 1.4rem; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--op-line); height: 100%; }
.earn h3 { font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: 760px; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 3.2rem; line-height: 1.55; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; display: flex; align-items: center; justify-content: center; }
/* Founding Presenter banner (homepage + presenter page) */
.founding-banner { padding: 1.5rem 0; }
.founding-card { background: var(--op-brand-soft); border-radius: 22px; padding: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; color: var(--text); }
.founding-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.15; }
.founding-counter { display: inline-block; background: var(--surface); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; }
.founding-counter strong { color: var(--brand); font-size: 1.05rem; }
/* Small brand text on brand-soft is below the contrast rule, so the eyebrow uses body text here. */
.founding-card .eyebrow { color: var(--text) !important; }
.btn-xs { --bs-btn-padding-y: .15rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .72rem; border-radius: 999px; }
.sched-empty { border-left-color: var(--op-line) !important; display: grid; gap: .25rem; }

/* Company pages: About, Community Guidelines, Sponsor a show */
.page-top { padding-bottom: 3rem; }
.page-prose { max-width: 760px; font-size: 1.05rem; line-height: 1.7; }
.page-prose p { margin-bottom: 1.1rem; }
.guide { padding: 1.1rem 0; border-bottom: 1px solid var(--op-line); }
.guide:last-of-type { border-bottom: 0; }
.guide h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: .35rem; }
.guide p { margin: 0; color: var(--op-ink-2); }
.sf-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.sf-social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--footer-line); color: var(--footer-text); font-size: 1rem; }
.sf-social a:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ---------- Hero surfaces (landing pages, auth side panel, studio console) ----------
   These bands used to be dark, so their markup uses Bootstrap's "light" utilities. They are
   remapped to the hero tokens here rather than in every view; the dark theme flips the tokens back. */
.landing-hero .text-white-50, .auth-side .text-white-50, .studio .text-white-50 { color: var(--hero-muted) !important; }
.landing-hero .text-white, .auth-side .text-white, .studio .text-white, .landing-hero .text-white a, .auth-side a.text-white { color: var(--hero-text) !important; }
.landing-hero .text-danger { color: var(--live) !important; }
.landing-hero .btn-outline-light, .auth-side .btn-outline-light { color: var(--brand); border-color: var(--brand); background: var(--surface); }
.landing-hero .btn-outline-light:hover, .landing-hero .btn-outline-light:focus { background: var(--brand-soft); color: var(--brand-hover); border-color: var(--brand-hover); }
.landing-hero .btn-light, .auth-side .btn-light { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.landing-hero .btn-light:hover, .landing-hero .btn-light:focus { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.landing-hero .badge.bg-white { background: var(--brand-soft) !important; color: var(--text) !important; }
.landing-hero .hero-box { background: var(--hero-box); border: 1px solid var(--hero-box-border); color: var(--hero-text); box-shadow: var(--shadow-sm); }
.landing-hero .alert-warning { color: inherit; }
.studio .btn-outline-light, .studio .btn-light { color: var(--hero-text); border-color: var(--hero-box-border); background: var(--hero-box); }
/* Purple call-to-action bands keep white text; their white button is the secondary style. */
.bg-brand { color: var(--on-brand); }
.bg-brand .btn-light { background: #fff; color: #6D28D9; border-color: #fff; }
.bg-brand .btn-light:hover, .bg-brand .btn-light:focus { background: #EDE9FE; color: #5B21B6; }
/* Theme toggle (header and footer) */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: .35rem .7rem; font-size: .8rem; font-weight: 600; cursor: pointer; line-height: 1; }
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .on-dark { display: none; }
[data-theme="dark"] .theme-toggle .on-light { display: none; }
[data-theme="dark"] .theme-toggle .on-dark { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-actions .theme-toggle { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 1.1rem; }
/* Bootstrap components follow the tokens in both themes. */
.modal-content, .dropdown-menu, .offcanvas, .list-group-item, .accordion-item, .accordion-button, .form-control, .form-select, .swal2-popup, .input-group-text { background-color: var(--surface); color: var(--text); border-color: var(--border); }
.accordion-button:not(.collapsed) { background-color: var(--surface); }
.form-control::placeholder { color: var(--text-muted); opacity: .8; }
.dropdown-item, .swal2-title, .swal2-html-container { color: var(--text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--bg-soft); color: var(--text); }
.text-muted, .form-text { color: var(--text-muted) !important; }
.badge.text-bg-light { background: var(--bg-soft) !important; color: var(--text) !important; }
.btn-outline-dark, .btn-outline-secondary { color: var(--text); border-color: var(--border); }
.btn-outline-dark:hover, .btn-outline-secondary:hover { background: var(--bg-soft); color: var(--text); border-color: var(--text-muted); }
.text-success { color: var(--success) !important; }
.btn-google { background: #fff; color: #1F1F1F; }

/* Replays ("Catch up") */
.replay-card { width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.replay-card .replay-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--brand-soft); }
.replay-card .replay-body { padding: .75rem .85rem .9rem; }
/* Cookie consent */
.consent-banner { position: fixed; left: max(1rem, var(--safe-left)); right: max(1rem, var(--safe-right)); bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 12px); z-index: 2001; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; font-size: .9rem; }
.consent-banner .consent-text { flex: 1 1 320px; line-height: 1.5; }
.consent-banner .consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (min-width: 992px) { .consent-banner { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 560px; } }
.is-guest .consent-banner, body:not(.section-listener) .consent-banner { bottom: calc(1rem + var(--safe-bottom)); }
/* Auth pages: standard-height fields and buttons, the form is long enough as it is. */
.auth-card .form-control, .auth-card .form-select { padding: .5rem .8rem; font-size: .95rem; }
.auth-card .btn { padding-top: .55rem; padding-bottom: .55rem; }
.auth-card .mb-3 { margin-bottom: .85rem !important; }

/* Drawn mock-ups of the presenter tools (Become a Presenter page) */
.mock { margin-top: auto; aspect-ratio: 16 / 10; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .5rem; font-size: .72rem; color: var(--text); overflow: hidden; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.mock-live { background: var(--live); color: #fff; font-weight: 800; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; }
.mock-timer, .mock-label { color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.mock-pill { background: var(--brand-soft); color: var(--text); font-weight: 700; font-size: .62rem; padding: .15rem .5rem; border-radius: 999px; }
.mock-title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.mock-meter { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.mock-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--success), #FACC15, var(--live)); animation: mock-meter 2.2s ease-in-out infinite alternate; }
@keyframes mock-meter { from { width: 35%; } to { width: 78%; } }
@media (prefers-reduced-motion: reduce) { .mock-meter span { animation: none; } }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.mock-tiles > div { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: .4rem .3rem; text-align: center; display: flex; flex-direction: column; }
.mock-tiles b { font-family: var(--font-display); font-size: .95rem; line-height: 1.1; }
.mock-tiles i { font-style: normal; color: var(--text-muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.mock-btn { margin-top: auto; text-align: center; font-weight: 700; padding: .45rem; border-radius: 9px; background: var(--brand); color: var(--on-brand); }
.mock-btn-live { background: var(--live); color: #fff; }
.mock-bars { flex: 1; display: flex; align-items: flex-end; gap: .35rem; padding: .2rem 0; min-height: 52px; }
.mock-bars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--brand-soft); }
.mock-bars span:nth-child(6), .mock-bars span:nth-child(7) { background: var(--brand); }
.mock-balance { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.mock-list { display: flex; flex-direction: column; gap: .3rem; }
.mock-list > div { display: flex; justify-content: space-between; gap: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .3rem .5rem; }
.mock-list b { color: var(--success); white-space: nowrap; }
.mock-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.mock-week > div { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text-muted); }
.mock-week > div.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.mock-slotcard { margin-top: auto; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 10px; padding: .5rem .7rem; display: flex; flex-direction: column; gap: .15rem; }
.mock-slotcard b { color: var(--brand); }
.mock-slotcard span { color: var(--text-muted); }
.mock-bubble { align-self: flex-start; max-width: 85%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px 12px 12px 4px; padding: .4rem .6rem; }
.mock-bubble.alt { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--brand-soft); border-color: var(--brand-soft); }
.mock-bubble b { display: block; font-size: .62rem; color: var(--text-muted); }
.mock-poll { margin-top: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .45rem .6rem; display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
.mock-poll i { display: block; height: 6px; border-radius: 3px; background: var(--brand); }
/* Why apply: two lines above the application form */
.apply-sell { display: grid; gap: .5rem; }
.apply-sell-line { display: flex; gap: .7rem; align-items: flex-start; background: var(--brand-soft); border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; line-height: 1.5; color: var(--text); }
.apply-sell-line i { color: var(--brand); font-size: 1.1rem; margin-top: .1rem; }
/* Company pages inside the app shell: the header band without its own nav */
.page-top.bare { padding-top: 2rem; padding-bottom: 2rem; border-radius: 20px; margin-bottom: 1.5rem; }
.page-top.bare .landing-nav { display: none; }
.page-top.bare .hero-title { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.section-listener .page-prose { max-width: 820px; }
