/* =========================================================
   Super Bowl Props — Design System
   Clean, modern, award-winning aesthetic
   ========================================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Palette — refined dark with warm accent */
    --bg:          #0f0f0f;
    --bg-elevated: #191919;
    --bg-card:     #1e1e1e;
    --bg-hover:    #252525;
    --bg-input:    #141414;

    --border:       rgba(255,255,255,0.08);
    --border-focus: rgba(212,175,55,0.5);

    --text:        #eaeaea;
    --text-secondary: #888;
    --text-tertiary:  #555;

    --accent:        #d4af37;
    --accent-dim:    rgba(212,175,55,0.12);
    --accent-hover:  #c9a431;

    --green:       #34c759;
    --green-dim:   rgba(52,199,89,0.12);
    --red:         #ff3b30;
    --red-dim:     rgba(255,59,48,0.12);
    --orange:      #ff9500;
    --orange-dim:  rgba(255,149,0,0.12);
    --blue:        #0a84ff;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow:    0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.5);

    --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

/* --- Container --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.container-narrow { max-width: 520px; }

/* --- Header / Navigation --- */
.header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.header-brand:hover { color: var(--accent); }

.header-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.header-nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.header-nav .league-name {
    color: var(--accent);
    font-weight: 600;
    padding-right: 0.5rem;
    margin-right: 0.25rem;
    border-right: 1px solid var(--border);
}

.header-nav .nav-separator {
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 0.15rem;
    font-size: 0.9rem;
}

.header-nav .nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 0.25rem;
}

/* --- Flash Messages --- */
.flash-messages {
    max-width: 960px;
    margin: 1rem auto;
    padding: 0 1.5rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flash-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,199,89,0.2); }
.flash-error   { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,59,48,0.2); }
.flash-info    { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(212,175,55,0.2); }
.flash-warning { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,149,0,0.2); }

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    border-color: rgba(255,255,255,0.14);
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.card-header {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #000;
    box-shadow: 0 0 20px rgba(212,175,55,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.16);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border-color: rgba(255,255,255,0.14);
}

.btn-danger {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(255,59,48,0.2);
}
.btn-danger:hover {
    background: rgba(255,59,48,0.2);
}

.btn-success {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(52,199,89,0.2);
}
.btn-success:hover {
    background: rgba(52,199,89,0.2);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    padding: 0.4rem;
    min-width: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-icon:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 0.3rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-control[readonly] {
    opacity: 0.7;
    cursor: default;
}

select.form-control {
    appearance: auto;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.form-row > * { flex: 1; }

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-gold   { background: var(--accent-dim); color: var(--accent); }
.badge-silver { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.badge-bronze { background: rgba(205,127,50,0.15); color: #cd7f32; }
.badge-success { background: var(--green-dim); color: var(--green); }
.badge-warning { background: var(--orange-dim); color: var(--orange); }
.badge-error   { background: var(--red-dim); color: var(--red); }
.badge-neutral { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* --- Grid --- */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* --- Stat Cards --- */
.stat-card {
    text-align: center;
    padding: 1.25rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* --- Text Utilities --- */
.text-muted     { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }
.text-accent    { color: var(--accent); }
.text-success   { color: var(--green); }
.text-error     { color: var(--red); }
.text-warning   { color: var(--orange); }
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.text-sm        { font-size: 0.85rem; }
.text-xs        { font-size: 0.78rem; }
.text-2xl       { font-size: 2rem; }
.text-3xl       { font-size: 3rem; }

.font-mono {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85em;
}

/* --- Spacing helpers --- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Layout Helpers --- */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-divider {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.team-logo-sm {
    height: 30px;
    width: auto;
}

/* --- Countdown Box --- */
.countdown-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.countdown-box.locked {
    background: var(--red-dim);
    border-color: rgba(255,59,48,0.2);
    color: var(--red);
}

.countdown-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* --- Progress Bar --- */
.progress-track {
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    height: 6px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.4s ease;
}

.progress-fill-accent { background: var(--accent); }
.progress-fill-green  { background: var(--green); }

/* --- Option Buttons (Picks) --- */
.option-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition);
    font-size: 0.9rem;
    color: var(--text);
}

.option-btn:hover {
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.03);
}

.option-btn.selected,
.option-btn-selected {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.option-btn.correct {
    border-color: var(--green);
    background: var(--green-dim);
}

.option-btn input[type="radio"] {
    accent-color: var(--accent);
}

.option-btn.correct input[type="radio"] {
    accent-color: var(--green);
}

/* --- Prop Item --- */
.prop-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.prop-item:last-child { border-bottom: none; }

.prop-question {
    margin-bottom: 0.65rem;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
}

.prop-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.prop-result {
    margin-top: 0.5rem;
    font-size: 0.82rem;
}

/* --- Lock Overlay --- */
.lock-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.lock-overlay h2 {
    color: var(--red);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.lock-overlay p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* --- Modal --- */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-backdrop.active { display: flex; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 520px;
    width: 90%;
}

/* --- Sticky Bottom Bar --- */
.sticky-bottom {
    position: sticky;
    bottom: 1rem;
    z-index: 100;
}

.sticky-bottom .btn {
    box-shadow: var(--shadow-xl);
}

/* --- Copy Input Group --- */
.copy-group {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.copy-group .form-control {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
}

/* --- Flex utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 0.75rem; }
.gap-3 { gap: 1rem; }

/* --- Collapsible Section --- */
.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.collapsible-header:hover {
    opacity: 0.85;
}

.toggle-icon {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: transform var(--transition);
}

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.empty-state p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* --- Leaderboard specifics --- */
.leaderboard-you td {
    background: var(--accent-dim);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.rank-1 { background: var(--accent-dim); color: var(--accent); }
.rank-2 { background: rgba(192,192,192,0.12); color: #aaa; }
.rank-3 { background: rgba(205,127,50,0.12); color: #cd7f32; }

/* --- Page-level hero --- */
.page-hero {
    margin-bottom: 2rem;
}

.page-hero h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.page-hero p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* --- Toast notification --- */
.toast {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #000;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1100;
    animation: toastSlide 2s ease-in-out;
}

@keyframes toastSlide {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* --- Inline link with underline --- */
.link-subtle {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px dashed var(--text-tertiary);
    transition: all var(--transition);
}
.link-subtle:hover {
    color: var(--text);
    border-color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
        height: 48px;
    }

    .header-nav {
        gap: 0;
    }

    .header-nav a {
        padding: 0.3rem 0.5rem;
        font-size: 0.78rem;
    }

    .header-nav .league-name {
        display: none;
    }

    .container {
        padding: 1.25rem 1rem 3rem;
    }

    .card {
        padding: 1.25rem;
        border-radius: var(--radius);
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .option-btn {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .header-nav a:not(.nav-essential) {
        display: none;
    }

    body { font-size: 14px; }
}

/* --- Standalone page layout (landing, join, welcome, admin-login) --- */
.standalone-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg);
    padding: 1rem;
}

.standalone-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.standalone-card .logo {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.standalone-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.standalone-card .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* --- Feature list on landing --- */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
}

.feature-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.feature-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.feature-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* --- Info box --- */
.info-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    text-align: left;
}

.info-box h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.info-box p, .info-box ul {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* --- Access link section --- */
.access-link-box {
    background: var(--bg-input);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: left;
}

.access-link-box h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.access-link-box p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

/* --- Existing players chip list --- */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.chip {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* --- Game matchup display --- */
.matchup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.matchup-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.matchup-team img {
    height: 44px;
    width: 44px;
    object-fit: contain;
}

.matchup-vs {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Inline actions --- */
.actions-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

/* --- Divider --- */
.divider {
    height: 1px;
    background: var(--border);
    margin: 1.25rem 0;
}

/* --- code tag --- */
code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85em;
    background: rgba(255,255,255,0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.18);
}
