/* ==========================================================================
   host.css
   Host pages: top bar, login, dashboard, setup, live control panel.
   Mobile first; wider layouts from 900px (laptop).
   ========================================================================== */

/* ---------- Top bar ---------- */
.hbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.hbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.hbar-logo { height: 54px; width: auto; }   /* Top bar logo */
.hbar-title {
    font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--purple); border-left: 1px solid var(--line); padding-left: 10px;
}
.hbar-switch { margin-left: auto; order: 3; width: 100%; }
.hbar-switch select {
    width: 100%; font: inherit; font-size: 0.85rem; font-weight: 600;
    padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--teal-line);
    background: var(--teal-tint); color: var(--teal-dark);
}
.hbar-acct { margin-left: auto; }
@media (max-width: 480px) {
    .hbar-title { display: none; }
}
@media (min-width: 720px) {
    .hbar-switch { order: 0; width: auto; min-width: 260px; }
    .hbar-acct { margin-left: 0; }
}

.host-main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 48px; }
.section-title { font-size: 1.05rem; margin-bottom: 12px; }
.back-link { display: inline-block; font-size: 0.85rem; font-weight: 600; text-decoration: none; margin-bottom: 10px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.login-logo img { height: 72px; width: auto; margin-bottom: 18px; }   /* Same size as the landing page logo */
@media (max-width: 719px) { .login-logo img { height: 64px; } }
.login-card { width: 100%; max-width: 400px; text-align: center; padding: 28px 24px; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.login-form { display: grid; gap: 10px; margin-top: 16px; }
.input-code { text-align: center; font-size: 1.4rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.login-alt { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; text-align: left; }
.login-alt-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; margin: 6px 0; }
.login-alt-row a { font-weight: 700; text-decoration: none; }

/* ---------- Dashboard ---------- */
.dash-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-hello h1 { font-size: 1.6rem; }
.dash-hello p { margin: 6px 0 0; }
.dash-section { margin-top: 26px; }

.game-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.game-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient); }
a.game-card:hover { transform: translateY(-2px); border-color: var(--teal-line); box-shadow: 0 10px 28px rgba(0, 150, 183, 0.15); }
.game-icon { font-size: 2rem; }
.game-name { font-weight: 800; font-size: 1.15rem; }
.game-tag { color: var(--ink-2); font-size: 0.9rem; flex: 1; }
.game-cta { font-weight: 800; color: var(--teal-dark); font-size: 0.9rem; margin-top: 6px; }
.game-card.is-soon { opacity: 0.6; }
.game-card.is-soon::before { background: var(--line); }
.game-card.is-soon .game-cta { color: var(--ink-3); }

.open-list, .recent-list { display: grid; gap: 10px; }
.open-item, .recent-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    text-decoration: none; color: var(--ink);
}
.open-item:hover, .recent-item:hover { border-color: var(--teal-line); }
.open-icon { font-size: 1.4rem; }
.open-text { flex: 1; display: flex; flex-direction: column; }
.recent-item { justify-content: space-between; flex-wrap: wrap; }

/* ---------- Setup ---------- */
.setup-head { margin-bottom: 16px; }
.setup-head h1 { font-size: 1.5rem; }
.setup-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
    .setup-grid { grid-template-columns: 380px 1fr; align-items: start; }
    .setup-actions { grid-column: 1 / -1; }
}
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

/* Segmented radio buttons */
.seg { display: grid; gap: 6px; background: var(--bg-2); padding: 4px; border-radius: 12px; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg-5 { grid-template-columns: repeat(5, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
    display: block; text-align: center; padding: 9px 6px; border-radius: 9px;
    font-weight: 700; font-size: 0.9rem; color: var(--ink-2); transition: all 0.12s ease;
}
.seg input:checked + span { background: #fff; color: var(--teal-dark); box-shadow: 0 1px 4px rgba(26, 26, 46, 0.12); }
.seg input:focus-visible + span { outline: 2px solid var(--teal); }
.seg.is-locked { opacity: 0.6; }
.seg.is-locked label { cursor: not-allowed; }

/* Checkboxes */
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--teal-dark); flex-shrink: 0; }
.check-strong { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 12px; }
.rule {
    margin-top: 8px; padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--purple-tint); color: var(--purple-dark); font-size: 0.85rem; font-weight: 600;
}
.hint {
    display: block; margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--gold-tint); color: #7a5a00; font-size: 0.85rem; font-weight: 600;
    border: 1px solid rgba(230, 168, 0, 0.3);
}
.note {
    padding: 12px 14px; border-radius: var(--radius-sm); background: var(--teal-tint);
    border: 1px solid var(--teal-line); font-size: 0.85rem; color: var(--ink-2);
}
.note strong { color: var(--ink); }

.setup-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.setup-card-head .help { margin-top: 2px; }
.setup-actions { display: flex; justify-content: center; }
.setup-actions .btn { min-width: 260px; }
@media (max-width: 600px) { .setup-actions .btn { width: 100%; } }

/* Bingo card preview (setup) */
.bingo-preview { max-width: 560px; margin: 0 auto; }
.bp-head, .bp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bp-head span {
    text-align: center; font-weight: 900; font-size: 1.4rem; color: #fff;
    background: var(--gradient); border-radius: 8px; padding: 4px 0; margin-bottom: 6px;
}
.bp-cell {
    aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); background: #fff;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 4px; font-size: clamp(0.6rem, 1.9vw, 0.82rem); font-weight: 600; line-height: 1.15;
    cursor: pointer; color: var(--ink); transition: all 0.12s ease; font-family: inherit;
}
.bp-cell:hover { border-color: var(--teal); background: var(--teal-tint); }
.bp-cell.is-custom { border-color: var(--purple); background: var(--purple-tint); }
.bp-cell.is-free { background: var(--gradient-gold); border-color: var(--gold); cursor: default; flex-direction: column; gap: 2px; }
.bp-cell.is-free b { font-size: 0.9em; letter-spacing: 0.08em; }
.bp-cell.is-flash { animation: flash 0.5s ease; }
@keyframes flash { 0% { background: var(--teal-light); } 100% { background: #fff; } }
.modal-current { font-weight: 700; color: var(--ink); background: var(--bg-2); padding: 8px 10px; border-radius: 8px; }

/* ---------- Live panel ---------- */
.live-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.live-title h1 { font-size: 1.45rem; }
.live-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.live-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.live-actions .btn-start { padding: 14px 24px; font-size: 1.05rem; }
@media (max-width: 600px) {
    .live-actions { width: 100%; }
    .live-actions .btn-start, .live-actions .btn-end { flex: 1; }
}

.live-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
/* Phone order: QR, live board (winners), players */
.qr-card { order: 1; }
.board-card { order: 2; }
.players-card { order: 3; }
@media (min-width: 900px) {
    .live-grid { grid-template-columns: 300px 1fr 320px; align-items: start; }
    .qr-card { order: 1; }
    .players-card { order: 2; }
    .board-card { order: 3; }
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.card-head h2 { font-size: 1.05rem; }
.count {
    display: inline-block; min-width: 26px; text-align: center; padding: 1px 8px; margin-left: 4px;
    border-radius: 999px; background: var(--gradient); color: #fff; font-size: 0.85rem;
}

/* QR card */
.qr-card { text-align: center; }
.qr-frame { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; max-width: 240px; margin: 0 auto; }
.qr-label { font-weight: 800; margin-top: 12px; color: var(--ink-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.qr-code-big {
    font-size: 2.2rem; font-weight: 900; letter-spacing: 0.18em;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.qr-url { word-break: break-all; margin: 4px 0 10px; }
.qr-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 899px) {
    .qr-card { display: grid; grid-template-columns: 130px 1fr; gap: 4px 14px; text-align: left; align-items: center; }
    .qr-frame { grid-row: 1 / span 5; max-width: 130px; margin: 0; padding: 4px; }
    .qr-label { margin-top: 0; }
    .qr-code-big { font-size: 1.8rem; }
    .qr-btns { justify-content: flex-start; }
}

/* Player list */
.players-tip { margin-bottom: 10px; }
.player-list { display: grid; gap: 6px; }
.player-list .empty, .leaders .empty { color: var(--ink-3); font-size: 0.9rem; padding: 14px 0; text-align: center; list-style: none; }
.prow { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.prow.is-new { animation: popIn 0.3s ease; }
.prow-head {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
    background: none; border: 0; font: inherit; cursor: pointer; text-align: left; color: var(--ink);
}
.prow-head:hover { background: var(--bg-2); }
.gdot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.gdot-M { background: var(--teal); }
.gdot-F { background: var(--purple); }
.gdot-A { background: var(--ink-3); }
.prow-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-prog { width: 70px; height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; flex-shrink: 0; }
.prow-prog i { display: block; height: 100%; background: var(--gradient); border-radius: 6px; }
.prow-num { font-size: 0.8rem; color: var(--ink-2); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.badge { font-size: 0.65rem; font-weight: 900; letter-spacing: 0.06em; padding: 3px 6px; border-radius: 6px; }
.badge-bingo { background: var(--gold-tint); color: var(--gold-dark); border: 1px solid rgba(230, 168, 0, 0.4); }
.badge-full { background: var(--purple-tint); color: var(--purple); border: 1px solid rgba(123, 44, 191, 0.3); }
.chev { color: var(--ink-3); transition: transform 0.15s ease; font-size: 0.8rem; }
.prow.is-open .chev { transform: rotate(90deg); }
.prow-body { padding: 4px 12px 12px; border-top: 1px solid var(--line); background: var(--bg-2); }

/* Mini card inside a player row */
.mini-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 8px; max-width: 420px; }
.mini-cell {
    aspect-ratio: 1.15; border-radius: 6px; background: #fff; border: 1px solid var(--line);
    font-size: 0.58rem; line-height: 1.1; padding: 3px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; color: var(--ink-3); overflow: hidden;
}
.mini-cell.is-marked { background: var(--gradient); color: rgba(255, 255, 255, 0.8); border-color: transparent; }
.mini-cell.is-marked b { color: #fff; font-size: 0.68rem; }
.mini-cell.is-free { background: var(--gradient-gold); color: var(--ink); border-color: transparent; font-weight: 800; }

/* Board */
.winners { display: grid; gap: 10px; margin-bottom: 6px; }
.win-box {
    border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px;
    border: 1px dashed var(--line); background: var(--bg-2);
}
.win-box.is-won { border-style: solid; }
.win-box.win-bingo.is-won { background: var(--gold-tint); border-color: rgba(230, 168, 0, 0.45); }
.win-box.win-full.is-won { background: var(--purple-tint); border-color: rgba(123, 44, 191, 0.35); }
.win-ico { font-size: 1.6rem; }
.win-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.win-name { font-weight: 800; font-size: 1.15rem; }
.win-box:not(.is-won) .win-name { color: var(--ink-3); font-weight: 600; font-size: 0.95rem; }
.mini-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin: 16px 0 8px; }
.leaders { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.leaders li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.leaders .rank { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.leaders .lname { flex: 1; font-weight: 600; }
.leaders .lnum { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 700; }
.settings-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.85rem; }
.settings-sum li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.settings-sum span { color: var(--ink-2); }
.settings-sum strong { text-align: right; }

/* Credit warning inside the start modal */
.credit-warn {
    margin-top: 12px; padding: 12px; border-radius: var(--radius-sm);
    background: var(--gold-tint); border: 1px solid rgba(230, 168, 0, 0.4); color: #7a5a00; font-weight: 700;
}

/* Full screen QR (for a TV or projector) */
.bigqr {
    position: fixed; inset: 0; z-index: 120; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.bigqr-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bigqr-inner img { width: min(70vh, 86vw); height: auto; }
.bigqr-name { font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 900; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigqr-code { font-size: clamp(1rem, 2.2vw, 1.4rem); color: var(--ink-2); }

/* ---------- Pair / question list editor (Mystery Match, This or That) ---------- */
.pair-list { display: grid; gap: 8px; margin-bottom: 12px; }
.pair-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; }
.pair-row .input { padding: 9px 11px; font-size: 0.95rem; }
.pair-amp { font-weight: 900; color: var(--purple); font-size: 1.05rem; }
.pair-or { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-dark); }
.pair-del {
    width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
    color: var(--ink-3); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.pair-del:hover:not([disabled]) { color: var(--error); border-color: rgba(220, 53, 69, 0.4); }
.pair-del[disabled] { opacity: 0.35; cursor: not-allowed; }
.input-error { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important; }
.add-row { width: 100%; }
.howto { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.88rem; color: var(--ink-2); }

/* ---------- Mystery Match live board ---------- */
.mm-chip { font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--purple-tint); color: var(--purple); white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.mm-looking { white-space: nowrap; }
.badge-match { background: rgba(40, 167, 69, 0.1); color: var(--success); border: 1px solid rgba(40, 167, 69, 0.35); }
.kv { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; }
.kv li { display: flex; justify-content: space-between; gap: 10px; }
.kv span { color: var(--ink-2); }
.mm-board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.empty-box { padding: 16px; border-radius: 12px; border: 1px dashed var(--line); background: var(--bg-2); color: var(--ink-3); font-size: 0.9rem; text-align: center; }
.mm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mm-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.mm-list li.is-prize { background: var(--gold-tint); border-color: rgba(230, 168, 0, 0.45); }
.mm-list li.empty { justify-content: center; color: var(--ink-3); border-style: dashed; }
.mm-list .rank { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mm-list li.is-prize .rank { background: none; font-size: 1.1rem; }
.mm-names { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.chip em { font-style: normal; color: var(--purple); font-weight: 600; }

/* ---------- This or That live board ---------- */
.tot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tot-stats div { border-radius: 12px; padding: 12px; background: var(--bg-2); text-align: center; }
.tot-stats b { display: block; font-size: 1.6rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tot-stats span { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.splits { display: grid; gap: 10px; }
.split-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.split-labels b { color: var(--ink); }
.split-bar { height: 10px; border-radius: 10px; background: var(--purple); opacity: 0.85; overflow: hidden; }
.split-bar i { display: block; height: 100%; background: var(--teal); }
.split-bar.is-empty { background: var(--line); }
.split-bar.is-empty i { background: var(--line); }
.prow-body .mini-title { margin: 10px 0 6px; }

/* ---------- Free mixers (up to 3 players) ---------- */
.free-banner {
    margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-size: 0.85rem;
    background: var(--gold-tint); border: 1px solid rgba(230, 168, 0, 0.4); color: #7a5a00;
}
.free-banner a { font-weight: 700; }
.start-choice { display: grid; gap: 8px; margin-top: 12px; }
.choice {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
    padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
    font: inherit; cursor: pointer; color: var(--ink);
}
.choice b { font-size: 1rem; }
.choice span { font-size: 0.82rem; color: var(--ink-2); }
.choice.is-on { border-color: var(--teal); background: var(--teal-tint); }
.choice[disabled] { opacity: 0.5; cursor: not-allowed; }
.credit-warn a { font-weight: 800; }

/* ---------- Free trial page + welcome code ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.trial-games { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 8px; text-align: left; }
.trial-games li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-weight: 700; }
.trial-games span { font-size: 1.3rem; }
.trial-q { text-align: center; margin-top: 8px; font-size: 1.05rem; }
.trial-foot { margin-top: 14px; }
.welcome-box {
    text-align: center; padding: 18px; border-radius: var(--radius); margin-bottom: 16px;
    background: #fff; border: 2px dashed var(--teal); box-shadow: var(--shadow);
}
.welcome-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); }
.welcome-code { font-size: 2.4rem; font-weight: 900; letter-spacing: 0.12em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Top bar links: My Account / Speed Dating Event / Log out ---------- */
.hbar { position: relative; }
.hbar-nav { display: flex; gap: 8px; align-items: center; }
.hbar-menu-btn { display: none; }
@media (max-width: 719px) {
    .hbar-menu-btn {
        display: inline-flex; font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer;
        color: var(--teal-dark); background: var(--teal-tint); border: 1px solid var(--teal-line); border-radius: 999px; padding: 6px 12px;
    }
    .hbar-nav {
        display: none; position: absolute; right: 12px; top: calc(100% + 4px); z-index: 40; flex-direction: column; align-items: stretch;
        background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px; min-width: 220px;
    }
    .hbar-nav.is-open { display: flex; }
    .hbar-nav .btn { width: 100%; padding: 12px; }
    .hbar-acct { margin-left: auto; }
}
@media (min-width: 720px) {
    /* Logo left, everything else flush right */
    .hbar-brand { margin-right: auto; }
    .hbar-switch { margin-left: 0; }
}

/* ---------- Mixer 3-Pack success page ---------- */
.buy-card h1 { margin-bottom: 8px; }
.buy-code-box { margin: 18px 0 12px; }
.buy-code-box .btn { margin-top: 8px; }
.buy-note { margin: 4px 0 6px; }
.buy-card .btn-lg { margin-top: 16px; }

/* ---------- Credits pills link to the Mixer 3-Pack checkout ---------- */
.pill-link { text-decoration: none; cursor: pointer; }
.pill-link:hover { filter: brightness(0.96); text-decoration: underline; }
@media (max-width: 719px) { .pill-more { display: none; } }   /* Phones: short pill so Menu stays on the same row */

/* ---------- Top bar logo on phones ---------- */
@media (max-width: 719px) { .hbar-logo { height: 34px; } }   /* Phones keep 34px so the pill and Menu fit on one row */

/* ---------- Dismiss X on the dashboard code box ---------- */
.welcome-box { position: relative; }
.welcome-close {
    position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: var(--bg-2); color: var(--ink-2); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.welcome-close:hover { background: var(--teal-tint); color: var(--teal-dark); }
