/**
 * Page-specific layouts (profile, events, statistics overrides).
 * Global theme: main.css | HUD components: command-center.css
 */

/* -------------------------------------------------------------------------- */
/* Profile */
/* -------------------------------------------------------------------------- */
/* Hero — center stack (legacy-style focal point) */
.hub-profile-page .hub-profile-hero {
    position: relative;
    border-radius: var(--radius-card);
    padding: 2rem 1.5rem 2.25rem;
    border: 1px solid var(--hub-border);
    background: linear-gradient(145deg, var(--profile-hero-bg-a), var(--profile-hero-bg-b));
    box-shadow: var(--hub-glow);
    backdrop-filter: blur(16px);
    overflow: hidden;
}
.hub-profile-page .hub-profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 220px at 50% -30%, var(--profile-hero-tint-a), transparent 55%),
                radial-gradient(480px 200px at 50% 100%, var(--profile-hero-tint-b), transparent 50%);
    pointer-events: none;
}
.hub-profile-page .hub-profile-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
/* Banner-only: never use generic .hub-profile-avatar on the page root */
.hub-profile-page .hub-profile-banner-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.35);
    display: block;
}
.hub-profile-page .hub-profile-hero-text {
    max-width: 36rem;
}
.hub-profile-page .hub-profile-banner-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-heading);
    text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45), 0 0 36px rgba(var(--accent-rgb), 0.22);
    line-height: 1.2;
}
.hub-profile-page .hub-profile-banner-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: var(--hub-muted);
    font-size: 0.98rem;
    margin-top: 0.25rem;
    width: 100%;
}

.hub-profile-page .hub-profile-banner-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
}

.hub-profile-page .hub-profile-banner-member-since {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--hub-muted);
    line-height: 1.35;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.hub-profile-page .hub-profile-banner-member-since i {
    font-size: 0.78rem;
    opacity: 0.85;
}

.hub-profile-page .hub-profile-banner-meta strong { color: var(--profile-meta-strong); font-weight: 600; }

/* Body: grid xl:12 — row + col-xl-8 + col-xl-4 */
.hub-profile-page .hub-profile-col-main,
.hub-profile-page .hub-profile-col-side {
    min-width: 0;
}
.hub-profile-page .hub-profile-col-side {
    position: static;
}

/* Inner: left stack (jobs + convoys) | right stack (status/ranks); sidebar = badges + social */
.hub-profile-page .hub-profile-split-row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.hub-profile-page .hub-profile-card.dash-hud-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hub-profile-page .hub-profile-card {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    background: var(--profile-card-inner);
    backdrop-filter: blur(14px);
    box-shadow: var(--hub-glow);
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-self: start;
    width: 100%;
}

/* Standard horizontal card title (fixes accidental vertical / sideways label bugs) */
.hub-profile-page .hub-profile-card-heading {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hub-primary);
    margin: 0 0 0.85rem 0;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.22);
    flex-shrink: 0;
    line-height: 1.3;
}

.hub-profile-page .hub-profile-card-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--hub-primary);
    margin-bottom: 0.75rem;
}

.hub-profile-page .hub-profile-rank-row { margin-bottom: 1rem; }
.hub-profile-page .hub-profile-rank-row:last-child { margin-bottom: 0; }
.hub-profile-page .hub-profile-rank-label {
    font-size: 0.82rem;
    color: var(--hub-muted);
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.hub-profile-page .hub-profile-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--profile-progress-track);
    overflow: hidden;
    border: 1px solid var(--profile-progress-border);
}
.hub-profile-page .hub-profile-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-progress-end));
    box-shadow: 0 0 12px rgba(var(--accent-2-rgb), 0.45);
    transition: width 0.35s ease;
}
.hub-profile-page .hub-profile-driver-rank-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.55));
    backdrop-filter: blur(14px);
}
.hub-profile-page .hub-profile-convoy-rank-card {
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(46, 16, 101, 0.35));
    backdrop-filter: blur(14px);
}
.hub-profile-page .hub-profile-rank-progress-fill--convoy {
    background: linear-gradient(90deg, #8b5cf6, #c084fc);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
}
.hub-profile-page .hub-profile-status-rank-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.75rem;
    margin-bottom: 1rem;
}
.hub-profile-page .hub-profile-status-rank-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.hub-profile-page .hub-profile-status-rank-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--hub-muted);
}
.hub-profile-page .hub-profile-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(51, 65, 85, 0.55);
    color: var(--text-heading);
}
.hub-profile-page .hub-profile-status-pill--trainee {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(71, 85, 105, 0.45);
    color: #cbd5e1;
}
.hub-profile-page .hub-profile-status-pill--driver {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.12);
    color: #a5f3fc;
}
.hub-profile-page .hub-profile-status-promo {
    font-size: 0.75rem;
    color: var(--hub-muted);
    margin-top: 0.15rem;
}
.hub-profile-page .hub-profile-driver-rank-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.hub-profile-page .hub-profile-driver-rank-km {
    font-size: 0.82rem;
    color: var(--hub-muted);
    margin-top: 0.35rem;
}
.hub-profile-page .hub-profile-rank-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.8);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
}
.hub-profile-page .hub-profile-rank-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-progress-end));
    box-shadow: 0 0 12px rgba(var(--accent-2-rgb), 0.45);
    transition: width 0.35s ease;
}
.hub-profile-page .hub-profile-rank-next-label {
    font-size: 0.78rem;
    color: var(--hub-muted);
    margin-top: 0.55rem;
}
.hub-profile-page .hub-profile-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-profile-page .hub-profile-badge {
    border-radius: 12px;
    padding: 6px;
    background: var(--profile-badge-bg);
    border: 1px solid var(--profile-badge-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hub-profile-page .hub-profile-badge:hover {
    transform: scale(1.06);
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.2);
}
.hub-profile-page .hub-profile-badge img { display: block; max-height: 52px; width: auto; max-width: 72px; object-fit: contain; }
.hub-profile-page .hub-profile-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0.75rem; }
.hub-profile-page .hub-profile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-default);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--text-btn-outline);
    text-decoration: none;
    transition: all 0.2s ease;
}
.hub-profile-page .hub-profile-social a:hover {
    border-color: rgba(var(--accent-rgb), 0.65);
    color: var(--text-nav-active);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.28);
}

.hub-profile-page .hub-profile-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
}
.hub-profile-page .hub-profile-job-row {
    display: grid;
    grid-template-columns: minmax(0, 4.5rem) minmax(0, 1fr) minmax(0, 4.5rem) minmax(0, 4.5rem);
    gap: 6px 10px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: var(--profile-job-row-bg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.hub-profile-page .hub-profile-job-row:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    background: var(--surface-row-hover);
    box-shadow: inset 3px 0 0 rgba(var(--accent-rgb), 0.75);
}
.hub-profile-page .hub-profile-job-id {
    font-weight: 700;
    color: var(--hub-primary);
    font-size: 0.88rem;
}
.hub-profile-page .hub-profile-job-route {
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hub-profile-page .hub-profile-job-route-sep {
    margin: 0 0.25rem;
    color: var(--hub-muted);
}
.hub-profile-page .hub-profile-job-muted { font-size: 0.72rem; color: var(--hub-muted); }
.hub-profile-page .hub-profile-job-metric {
    font-size: 0.82rem;
    text-align: right;
    white-space: nowrap;
}
@media (max-width: 575px) {
    .hub-profile-page .hub-profile-job-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .hub-profile-page .hub-profile-job-id { grid-column: 1 / -1; }
    .hub-profile-page .hub-profile-job-route { grid-column: 1 / -1; }
    .hub-profile-page .hub-profile-job-metric { text-align: left; white-space: normal; }
}

.hub-profile-page .hub-profile-convoy-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}
.hub-profile-page .hub-profile-convoy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.hub-profile-page .hub-profile-convoy-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-default);
    background: var(--surface-plate-inner);
    min-height: 120px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hub-profile-page .hub-profile-convoy-card:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.18);
    transform: translateY(-1px);
    color: inherit;
}
.hub-profile-page .hub-profile-convoy-card--own {
    border: 2px solid rgba(var(--accent-rgb), 0.65);
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.22);
}
.hub-profile-page .hub-profile-convoy-card--partner {
    border: 2px solid rgba(251, 191, 36, 0.58);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.18);
}
.hub-profile-page .hub-profile-convoy-own-badge {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    z-index: 2;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(28, 96, 113, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.hub-profile-page .hub-profile-convoy-partner-badge {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(180, 83, 9, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hub-profile-page .hub-profile-convoy-placeholder {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--accent-rgb), 0.45);
    font-size: 2rem;
    background: linear-gradient(145deg, rgba(8, 16, 32, 0.95), rgba(13, 21, 38, 0.78));
}
.hub-profile-page .hub-profile-convoy-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.hub-profile-page .hub-profile-convoy-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    background: linear-gradient(180deg, transparent, var(--profile-convoy-cap-bg));
    backdrop-filter: blur(10px);
    font-size: 0.72rem;
    color: var(--text-caption);
}
.hub-profile-page .hub-profile-convoy-cap strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-heading);
    margin-bottom: 2px;
}

.hub-profile-page .hub-profile-convoy-empty {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(var(--accent-rgb), 0.25);
    background: rgba(var(--accent-rgb), 0.04);
}
.hub-profile-page .hub-profile-convoy-empty-icon {
    font-size: 3.25rem;
    line-height: 1;
    color: var(--hub-primary);
    filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.7)) drop-shadow(0 0 28px rgba(var(--accent-rgb), 0.35));
    margin-bottom: 1rem;
}
.hub-profile-page .hub-profile-convoy-empty p {
    color: var(--hub-muted);
    font-size: 0.95rem;
    max-width: 16rem;
}

/* -------------------------------------------------------------------------- */
/* Events */
/* -------------------------------------------------------------------------- */
.hub-events-page .hub-events-hero-title {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--hub-primary);
    margin-bottom: 0.35rem;
}
.hub-events-page .hub-events-hero-heading {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}
.hub-events-page .hub-events-hero-sub {
    color: var(--hub-muted);
    font-size: 0.95rem;
    max-width: 46rem;
}
.hub-events-page .hub-events-month-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--hub-radius, 12px);
    border: 1px solid var(--hub-border, rgba(255, 255, 255, 0.08));
    background: var(--hub-surface-elevated, rgba(255, 255, 255, 0.03));
}
.hub-events-page .hub-events-month-filter-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub-muted);
}
.hub-events-page .hub-events-month-filter-select {
    width: auto;
    min-width: 11rem;
    max-width: 100%;
}
.hub-events-page .hub-events-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 0.03em;
    margin: 0;
}
.hub-events-page .hub-events-section-count {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hub-primary);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.08);
}

.hub-events-page .hub-events-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border-default);
    background: var(--card-bg-glass);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.hub-events-page .hub-events-card:hover {
    border-color: rgba(var(--accent-rgb), 0.42);
    box-shadow: var(--hub-glow), 0 0 28px rgba(var(--accent-rgb), 0.16);
    transform: translateY(-2px);
}
.hub-events-page .hub-events-card--own {
    --hub-own-red: 239, 68, 68;
    --hub-own-red-deep: 185, 28, 28;
    border: 2px solid rgba(var(--hub-own-red), 0.78);
    background:
        radial-gradient(130% 90% at 0% 0%, rgba(var(--hub-own-red), 0.24), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(var(--hub-own-red-deep), 0.16), transparent 50%),
        var(--card-bg-glass);
    box-shadow:
        var(--shadow-card),
        0 0 0 1px rgba(var(--hub-own-red), 0.24) inset,
        0 0 28px rgba(var(--hub-own-red), 0.32),
        0 0 56px rgba(var(--hub-own-red), 0.14);
    animation: hub-events-own-glow 2.6s ease-in-out infinite;
}
.hub-events-page .hub-events-card--own:hover {
    border-color: rgba(var(--hub-own-red), 0.98);
    box-shadow:
        0 0 0 1px rgba(var(--hub-own-red), 0.42) inset,
        0 0 36px rgba(var(--hub-own-red), 0.48),
        0 0 72px rgba(var(--hub-own-red), 0.22);
    animation: none;
}
@keyframes hub-events-own-glow {
    0%, 100% {
        box-shadow:
            var(--shadow-card),
            0 0 0 1px rgba(239, 68, 68, 0.22) inset,
            0 0 24px rgba(239, 68, 68, 0.28),
            0 0 48px rgba(239, 68, 68, 0.12);
    }
    50% {
        box-shadow:
            var(--shadow-card),
            0 0 0 1px rgba(239, 68, 68, 0.34) inset,
            0 0 38px rgba(239, 68, 68, 0.46),
            0 0 72px rgba(239, 68, 68, 0.22);
    }
}
.hub-events-page .hub-events-own-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff1f2;
    background: linear-gradient(90deg, rgba(153, 27, 27, 0.94), rgba(220, 38, 38, 0.94), rgba(153, 27, 27, 0.94));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35);
    pointer-events: none;
}
.hub-events-page .hub-events-card--compact .hub-events-own-ribbon {
    font-size: 0.62rem;
    padding: 0.35rem 0.55rem;
}
.hub-events-page .hub-events-card--partner {
    border: 2px solid rgba(251, 191, 36, 0.62);
    background:
        radial-gradient(130% 90% at 0% 0%, rgba(251, 191, 36, 0.16), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(245, 158, 11, 0.1), transparent 50%),
        var(--card-bg-glass);
    box-shadow:
        var(--shadow-card),
        0 0 0 1px rgba(251, 191, 36, 0.16) inset,
        0 0 28px rgba(245, 158, 11, 0.18);
}
.hub-events-page .hub-events-card--partner:hover {
    border-color: rgba(251, 191, 36, 0.88);
    box-shadow:
        var(--hub-glow),
        0 0 0 1px rgba(251, 191, 36, 0.28) inset,
        0 0 36px rgba(245, 158, 11, 0.28);
}
.hub-events-page .hub-events-partner-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fffbeb;
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.92), rgba(217, 119, 6, 0.92), rgba(180, 83, 9, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.hub-events-page .hub-events-partner-ribbon .hub-events-ribbon-name {
    letter-spacing: 0.06em;
    text-transform: none;
    font-weight: 700;
}
.hub-events-page .hub-events-partner-ribbon .hub-events-ribbon-sep {
    opacity: 0.75;
    font-weight: 700;
}
.hub-events-page .hub-events-card--compact .hub-events-partner-ribbon {
    font-size: 0.62rem;
    padding: 0.35rem 0.55rem;
}
.hub-events-page .hub-events-manual-ribbon {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ede9fe;
    background: rgba(91, 33, 182, 0.82);
    border: 1px solid rgba(196, 181, 253, 0.35);
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.35);
    pointer-events: none;
}
.hub-events-page .hub-events-card--compact .hub-events-manual-ribbon {
    font-size: 0.62rem;
    padding: 0.22rem 0.45rem;
}
.hub-events-page .hub-events-card-title--own {
    color: #fecaca;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.45);
}
.hub-events-page .hub-events-card-title--partner {
    color: #fde68a;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.28);
}
.hub-events-page .hub-events-card-meta--joined {
    color: #86efac;
}
.hub-events-page .hub-events-card-meta--joined i {
    color: #4ade80;
}
.hub-joined-events-page .hub-events-card-meta--cc {
    color: #fcd34d;
    font-weight: 600;
}
.hub-joined-events-page .hub-events-card-meta--cc i {
    color: #fbbf24;
}
.hub-events-page .hub-events-card--compact {
    border-radius: var(--radius-card);
}
.hub-events-page .hub-events-card--compact .hub-events-card-banner {
    height: 6.5rem;
}
.hub-events-page .hub-events-card--compact .hub-events-card-body {
    padding: 0.75rem 0.9rem 0.9rem;
    gap: 0.35rem;
}
.hub-events-page .hub-events-card--compact .hub-events-card-title {
    font-size: 0.95rem;
}

.hub-events-page .hub-events-card-banner {
    position: relative;
    width: 100%;
    height: 11rem;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(8, 16, 32, 0.95), rgba(13, 21, 38, 0.78));
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
    border-radius: 0.75rem 0.75rem 0 0;
}
.hub-events-page .hub-events-card-banner img,
.hub-events-page .hub-events-card-banner-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hub-events-page .hub-events-card-banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--accent-rgb), 0.45);
    font-size: 2.75rem;
}

.hub-events-page .hub-events-card-body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.hub-events-page .hub-events-game-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    color: var(--hub-primary);
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.1);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.12);
}
.hub-events-page .hub-events-card-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.32;
    margin: 0;
}
.hub-events-page .hub-events-card-meta {
    font-size: 0.86rem;
    color: var(--hub-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.hub-events-page .hub-events-card-meta i {
    color: var(--hub-primary);
    flex-shrink: 0;
}
.hub-events-page .hub-events-card-route {
    font-size: 0.86rem;
    color: var(--text-caption);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0.4rem;
}
.hub-events-page .hub-events-route-pin {
    color: rgba(var(--accent-rgb), 0.85);
    line-height: 1.2;
}
.hub-events-page .hub-events-route-pin--end {
    color: rgba(var(--accent-2-rgb, var(--accent-rgb)), 0.9);
}
.hub-events-page .hub-events-route-text {
    line-height: 1.35;
}
.hub-events-page .hub-events-route-arrow {
    color: var(--hub-primary);
    margin: 0 0.2rem;
    font-weight: 700;
}

.hub-events-page .hub-events-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.62rem 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #041018;
    background: linear-gradient(135deg, var(--hub-primary), var(--hub-primary-2));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 24px rgba(var(--accent-rgb), 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hub-events-page .hub-events-join-btn:hover {
    color: #020a10;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22),
        0 0 36px rgba(var(--accent-rgb), 0.65),
        0 8px 24px rgba(var(--accent-rgb), 0.25);
}
.hub-events-page .hub-events-join-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: var(--hub-primary);
    text-decoration: none;
    font-weight: 600;
}
.hub-events-page .hub-events-join-link:hover {
    color: var(--hub-primary-2);
}

.hub-events-page .hub-events-empty {
    border: 1px dashed rgba(var(--accent-rgb), 0.28);
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(var(--accent-rgb), 0.04);
    color: var(--hub-muted);
}
.hub-events-page .hub-events-empty i {
    font-size: 2.5rem;
    color: var(--hub-primary);
    filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.45));
    display: block;
    margin-bottom: 0.75rem;
}

.hub-events-page .hub-events-past-fold {
    margin-top: 2.5rem;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 16px;
    background: rgba(8, 16, 32, 0.35);
    backdrop-filter: blur(8px);
    overflow: hidden;
}
.hub-events-page .hub-events-past-fold > summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    user-select: none;
}
.hub-events-page .hub-events-past-fold > summary::-webkit-details-marker {
    display: none;
}
.hub-events-page .hub-events-past-fold > summary::after {
    content: '+';
    color: var(--hub-primary);
    font-size: 1.25rem;
    font-weight: 800;
    transition: transform 0.2s ease;
}
.hub-events-page .hub-events-past-fold[open] > summary::after {
    content: '−';
}
.hub-events-page .hub-events-past-inner {
    padding: 0 1.15rem 1.15rem;
    border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.hub-event-mgmt-page .hub-event-mgmt-stats {
    margin-top: 0.25rem;
}

.hub-event-mgmt-page .hub-event-mgmt-stat {
    border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.hub-event-mgmt-page .hub-event-mgmt-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.1;
}

.hub-event-mgmt-page .hub-event-mgmt-tab-group {
    margin-top: 0.5rem;
}

.hub-event-mgmt-page .hub-event-mgmt-tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.hub-event-mgmt-page .hub-event-mgmt-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 14px;
    background: rgba(8, 16, 32, 0.35);
    color: var(--text-heading);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hub-event-mgmt-page .hub-event-mgmt-tab:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
}

.hub-event-mgmt-page .hub-event-mgmt-tab.is-active {
    border-color: rgba(var(--accent-rgb), 0.65);
    background: rgba(var(--accent-rgb), 0.12);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.15);
}

.hub-event-mgmt-page .hub-event-mgmt-tab-pane {
    display: none;
}

.hub-event-mgmt-page .hub-event-mgmt-tab-pane.is-active {
    display: block;
}

.hub-events-page .hub-events-past-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .hub-events-page .hub-events-past-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .hub-events-page .hub-events-past-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* -------------------------------------------------------------------------- */
/* Statistics — Command Center */
/* -------------------------------------------------------------------------- */
.hub-stats-page {
    display: flex;
    flex-direction: column;
    gap: var(--gap-grid);
}

.hub-stats-page .dash-stat-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-progress-end);
    font-size: 2.5rem;
}

.hub-stats-page .dashboard-stats-grid--lifetime {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.hub-stats-page .dashboard-stats-grid--monthly {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .hub-stats-page .dashboard-stats-grid--monthly {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hub-stats-page .dashboard-stats-grid--monthly {
        grid-template-columns: 1fr;
    }
}

.hub-stats-page .hub-stats-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-grid);
}

@media (min-width: 992px) {
    .hub-stats-page .hub-stats-charts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hub-stats-page .hub-stats-month-card {
    padding: 1.15rem 1.25rem;
}

.hub-stats-page .hub-stats-month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.hub-stats-page .hub-stat-rank {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.55);
}

.hub-stats-page .hub-stat-rank--gold {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.12);
}

.hub-stats-page .hub-stat-rank--silver {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.12);
}

.hub-stats-page .hub-stat-rank--bronze {
    color: #fdba74;
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(251, 146, 60, 0.1);
}

.hub-stats-page .hub-stats-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.hub-stats-page .hub-stats-chart-wrap {
    position: relative;
    min-height: 260px;
    flex: 1 1 auto;
}

.hub-stats-page .hub-stats-chart-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.hub-stats-page .hub-stats-insight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-grid);
}

@media (min-width: 768px) {
    .hub-stats-page .hub-stats-insight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hub-stats-page .hub-stats-insight-item {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-card);
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-soft);
}

.hub-stats-page .hub-stats-insight-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.hub-stats-page .hub-stats-insight-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-heading);
    word-break: break-word;
}

.hub-stats-page .hub-stats-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.hub-stats-page .hub-stats-empty-icon {
    font-size: 2.5rem;
    color: rgba(var(--accent-rgb), 0.55);
}

.hub-stats-page .dash-metric-value--cc {
    color: var(--accent-progress-end);
    text-shadow: 0 0 16px rgba(var(--accent-2-rgb), 0.35);
}

.hub-stats-page .dash-metric-value--currency {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Banner management & profile customize */
.hub-banner-upload-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-banner-admin-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.hub-banner-admin-preview {
    aspect-ratio: 1200 / 500;
    background: rgba(0, 0, 0, 0.35);
}

.hub-banner-admin-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-profile-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hub-banner-pick-card {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    text-align: left;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-banner-pick-card:hover,
.hub-banner-pick-card.is-selected {
    border-color: rgba(var(--accent-rgb), 0.85);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}

.hub-banner-pick-preview {
    display: block;
    aspect-ratio: 1200 / 500;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    margin-bottom: 0.5rem;
}

.hub-banner-pick-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-banner-pick-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.hub-banner-pick-badge {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--accent-progress-end);
}

.hub-banner-pick-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.hub-banner-pick-card-form {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.hub-banner-pick-selected-mark {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #1c6071;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 0 12px rgba(28, 96, 113, 0.55);
    z-index: 2;
}

.hub-profile-settings-panel {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
}

.hub-profile-settings-panel-head {
    margin-bottom: 1rem;
}

.hub-profile-settings-label {
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 600;
}

.hub-profile-settings-input,
.hub-profile-settings-textarea {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    border-radius: 10px;
}

.hub-profile-settings-input:focus,
.hub-profile-settings-textarea:focus {
    border-color: #1c6071 !important;
    box-shadow: 0 0 0 0.2rem rgba(28, 96, 113, 0.35) !important;
    outline: none;
}

.hub-profile-settings-input::placeholder,
.hub-profile-settings-textarea::placeholder {
    color: rgba(248, 250, 252, 0.45);
}

.hub-profile-settings-input:disabled,
.hub-profile-settings-input[readonly] {
    opacity: 0.75;
}

.hub-profile-settings-avatar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.hub-profile-settings-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(28, 96, 113, 0.55);
    background: rgba(15, 23, 42, 0.65);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-profile-settings-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-profile-settings-avatar-fallback {
    font-size: 2rem;
    font-weight: 700;
    color: #1c6071;
}

.hub-profile-settings-save {
    background: #1c6071;
    border: 1px solid rgba(28, 96, 113, 0.85);
    color: #f8fafc;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

.hub-profile-settings-save:hover,
.hub-profile-settings-save:focus {
    background: #237a8f;
    color: #f8fafc;
    box-shadow: 0 0 18px rgba(28, 96, 113, 0.45);
}

.hub-profile-settings-banner-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 1200 / 500;
    background: rgba(0, 0, 0, 0.35);
}

.hub-profile-settings-banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-profile-settings-banner-refresh {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
}

.hub-profile-settings-alert {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.hub-modal-glass {
    background: rgba(12, 18, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: #e8eef5;
}

/* -------------------------------------------------------------------------- */
/* Public home (logged-out landing) */
/* -------------------------------------------------------------------------- */
.hub-public-top {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem clamp(1rem, 3vw, 2rem);
    margin: 0;
    background: rgba(15, 23, 42, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hub-public-top__brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.hub-public-top__nav {
    display: flex;
    align-items: center;
    gap: 0.35rem 1rem;
    flex-wrap: wrap;
}

.hub-public-top__link {
    color: var(--text-nav);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.hub-public-top__link:hover,
.hub-public-top__link.active {
    color: var(--accent-primary);
}

.hub-public-top__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hub-public-home {
    margin: 0 -2rem;
}

.hub-public-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hub-public-hero__bg {
    position: absolute;
    inset: 0;
    background-color: var(--bg-soft);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hub-public-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.85) 60%, var(--bg-soft) 100%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.35) 0%, rgba(28, 96, 113, 0.12) 50%, rgba(15, 23, 42, 0.35) 100%);
}

.hub-public-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    max-width: 44rem;
}

.hub-public-hero__eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-nav);
    background: var(--card-bg-glass);
    border: 1px solid var(--border-default);
}

.hub-public-hero__title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hub-public-hero__subtitle {
    margin: 1rem auto 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-nav);
    max-width: 36rem;
}

.hub-public-hero__cta {
    margin-top: 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-public-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 96, 113, 0.28);
}

.hub-public-cards {
    max-width: 1200px;
    margin: -3rem auto 0;
    padding: 0 2rem 3rem;
    position: relative;
    z-index: 3;
}

.hub-public-cards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.hub-public-card {
    text-align: center;
    padding: 2rem 1.5rem !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hub-public-card:hover {
    transform: translateY(-3px);
    border-color: rgba(28, 96, 113, 0.35) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.hub-public-card__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.15rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-primary);
    background: rgba(28, 96, 113, 0.18);
    border: 1px solid rgba(28, 96, 113, 0.28);
}

.hub-public-card__title {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
}

.hub-public-card__text {
    margin: 0 0 1.35rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.hub-public-card__btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-public-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 96, 113, 0.28);
}

@media (max-width: 768px) {
    .hub-public-top {
        padding: 0.75rem 1rem;
    }

    .hub-public-home {
        margin: 0 -1rem;
    }

    .hub-public-cards {
        margin-top: -2.25rem;
        padding: 0 1rem 2rem;
    }

    .hub-public-hero {
        min-height: 300px;
    }
}

/* Logged-in VTC drivers (/vtc-drivers) — legacy card grid */
.vtc-drivers-page .vtc-drivers-container {
    max-width: 1400px;
    margin: 0 auto;
}

.vtc-drivers-page .vtc-drivers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.vtc-drivers-page .vtc-drivers-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--hub-text, #e2e8f0);
    margin: 0;
}

.vtc-drivers-page .vtc-drivers-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.vtc-drivers-page .vtc-drivers-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--hub-text, #e2e8f0);
    font-size: 14px;
    outline: none;
}

.vtc-drivers-page .vtc-drivers-search input:focus {
    border-color: #1c6071;
}

.vtc-drivers-page .vtc-drivers-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.vtc-drivers-page .vtc-drivers-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.vtc-drivers-page .vtc-driver-card,
.vtc-drivers-page .driver-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 14px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vtc-drivers-page .driver-avatar-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.vtc-drivers-page .driver-roles-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 15px;
    width: 100%;
    min-height: 0;
}

.vtc-drivers-page .role-badge-pill {
    background: rgba(28, 96, 113, 0.15);
    border: 1px solid rgba(28, 96, 113, 0.4);
    color: #1abc9c;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
}

.vtc-drivers-page .role-badge-pill--founder {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(220, 38, 38, 0.45);
    color: #fca5a5;
}

.vtc-drivers-page .role-badge-pill--driver {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--hub-text, #e2e8f0);
}

.vtc-drivers-page .driver-card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.vtc-drivers-page .distance-info {
    width: 100%;
}

.vtc-drivers-page .action-btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.vtc-drivers-page .vtc-driver-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.vtc-drivers-page .vtc-driver-card .avatar-wrap {
    margin: 0 auto 14px !important;
    width: 72px !important;
    height: 72px !important;
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
}

.vtc-drivers-page .vtc-driver-card .avatar-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

.vtc-drivers-page .vtc-driver-card .avatar-img,
.vtc-drivers-page .vtc-driver-card .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.vtc-drivers-page .vtc-driver-card .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1c6071, #2d8fa8);
    color: white;
    font-weight: 700;
}

.vtc-drivers-page .vtc-driver-username {
    font-size: 15px;
    font-weight: 700;
    color: var(--hub-text, #e2e8f0);
    margin-bottom: 0;
    line-height: 1.25;
    position: relative;
    z-index: 10;
}

.vtc-drivers-page .vtc-driver-role {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.vtc-drivers-page .vtc-driver-role-founder {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.vtc-drivers-page .vtc-driver-role-staff {
    background: #1c6071;
    color: white;
    border-color: #1c6071;
}

.vtc-drivers-page .vtc-driver-role-driver {
    background: rgba(15, 23, 42, 0.8);
    color: var(--hub-text, #e2e8f0);
}

.vtc-drivers-page .vtc-driver-distance {
    font-size: 15px;
    font-weight: 600;
    color: #1c6071;
    margin-bottom: 4px;
    position: relative;
    z-index: 10;
}

.vtc-drivers-page .vtc-driver-distance-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.vtc-drivers-page .vtc-driver-view-btn {
    display: inline-block;
    padding: 7px 14px;
    background: rgba(30, 41, 59, 0.8);
    color: var(--hub-text, #e2e8f0);
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
    transition: all 0.2s;
}

.vtc-drivers-page .vtc-driver-view-btn:hover {
    border-color: #1c6071;
    color: #1c6071;
    transform: translateY(-1px);
}

.vtc-drivers-page .vtc-drivers-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.vtc-drivers-page .vtc-drivers-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .vtc-drivers-page .vtc-drivers-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .vtc-drivers-page .vtc-drivers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .vtc-drivers-page .vtc-drivers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .vtc-drivers-page .vtc-drivers-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .vtc-drivers-page .vtc-drivers-grid {
        grid-template-columns: 1fr;
    }
}

.hub-discord-staff-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.hub-discord-staff-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    background: rgba(28, 96, 113, 0.25);
    color: #7dd3fc;
    border: 1px solid rgba(28, 96, 113, 0.55);
}

.hub-profile-banner-meta .hub-discord-staff-badges {
    justify-content: center;
}

/* Trainee review (HR) */
.trainee-review-page .trainee-review-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gap-grid, 1rem);
}

.trainee-review-page .trainee-review-stats-grid > .dashboard-stat-card:nth-child(-n+3) {
    grid-column: span 2;
}

.trainee-review-page .trainee-review-stats-grid > .dashboard-stat-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.trainee-review-page .trainee-review-stats-grid > .dashboard-stat-card:nth-child(5) {
    grid-column: 4 / span 2;
}

@media (max-width: 768px) {
    .trainee-review-page .trainee-review-stats-grid {
        grid-template-columns: 1fr;
    }

    .trainee-review-page .trainee-review-stats-grid > .dashboard-stat-card {
        grid-column: auto !important;
    }
}

.trainee-review-page .hub-page-panel {
    overflow: hidden;
    min-width: 0;
}

.trainee-review-page .hub-page-panel > .hub-table-wrap {
    width: 100%;
    max-width: 100%;
}

.trainee-review-page .hub-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.trainee-review-page .trainee-review-table {
    width: 100%;
    min-width: 68rem;
    table-layout: fixed;
}

.trainee-review-page .trainee-review-table th,
.trainee-review-page .trainee-review-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.trainee-review-page .trainee-review-table .trainee-review-actions-col {
    width: 12.5rem;
    min-width: 12.5rem;
    max-width: 12.5rem;
    vertical-align: top;
    overflow: hidden;
    box-sizing: border-box;
}

.trainee-review-page .tr-progress-block {
    min-width: 0;
    max-width: 100%;
}

.trainee-review-page .tr-actions-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.trainee-review-page .tr-promote-btn,
.trainee-review-page .tr-early-exam-btn,
.trainee-review-page .tr-review-exam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

.trainee-review-page .tr-promote-btn {
    border: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #ecfdf5;
    background: linear-gradient(135deg, #1abc9c, #1c6071);
}

.trainee-review-page .tr-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--hub-muted, #94a3b8);
    margin-bottom: 0.35rem;
}

.trainee-review-page .tr-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.trainee-review-page .tr-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1c6071, #2d8fa3);
    transition: width 0.4s ease;
}

.trainee-review-page .tr-progress-fill--convoy {
    background: linear-gradient(90deg, #0d9488, #34d399);
}

.trainee-review-page .tr-date {
    font-variant-numeric: tabular-nums;
}

.trainee-review-page .tr-date--alert {
    color: #fb923c;
    font-weight: 600;
}

.trainee-review-page .tr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.trainee-review-page .tr-badge--trial {
    background: rgba(251, 146, 60, 0.15);
    border: 1px solid rgba(251, 146, 60, 0.35);
    color: #fb923c;
}

.trainee-review-page .tr-badge--ready {
    background: linear-gradient(135deg, rgba(28, 96, 113, 0.5), rgba(52, 211, 153, 0.35));
    border: 1px solid rgba(52, 211, 153, 0.55);
    color: #ecfdf5;
}

.trainee-review-page .tr-badge--exam-neutral {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

.trainee-review-page .tr-badge--exam-pass {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
}

.trainee-review-page .tr-badge--exam-fail {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

.trainee-review-page .tr-badge--exam-early {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #bfdbfe;
}

.trainee-review-page .tr-notified--yes {
    color: #34d399;
}

.trainee-review-page .tr-status-hint {
    display: block;
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.35;
    word-break: break-word;
    color: var(--hub-muted, #94a3b8);
}

.trainee-review-page .tr-status-hint--ok {
    color: #6ee7b7;
}

.trainee-review-page .tr-status-hint--warn {
    color: #fbbf24;
}

.trainee-review-page .tr-promote-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.trainee-review-page .tr-promote-btn--bypass {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.trainee-review-page .tr-promote-btn:disabled,
.trainee-review-page .tr-early-exam-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.trainee-review-page .tr-early-exam-btn {
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.15);
}

.trainee-review-page .tr-early-exam-btn.is-revoke {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.12);
}

.trainee-review-page .tr-promote-spinner {
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ecfdf5;
    border-radius: 50%;
    animation: tr-promote-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes tr-promote-spin {
    to { transform: rotate(360deg); }
}

.trainee-review-page .trainee-review-howto-summary {
    cursor: pointer;
    list-style: none;
}

.trainee-review-page .trainee-review-howto-summary::-webkit-details-marker {
    display: none;
}

.trainee-review-page .trainee-review-howto-body ol {
    margin-bottom: 0;
}

body.tr-exam-modal-open {
    overflow: hidden;
}

.tr-exam-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tr-exam-modal[hidden] {
    display: none !important;
}

.tr-exam-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
}

.tr-exam-modal-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    padding: 1.25rem 1.5rem;
}

.tr-exam-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.tr-exam-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tr-exam-q {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.tr-exam-q--correct {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.08);
}

.tr-exam-q--wrong {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.08);
}

.tr-exam-q-title {
    font-weight: 600;
    margin-bottom: 0.65rem;
    line-height: 1.45;
}

.tr-exam-q-options {
    list-style: none;
    padding: 0;
    margin: 0 0 0.65rem;
}

.tr-exam-q-option {
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.tr-exam-q-option.is-correct {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.12);
}

.tr-exam-q-option.is-wrong.is-submitted {
    color: #fecaca;
    background: rgba(248, 113, 113, 0.15);
}

.tr-exam-q-foot strong {
    color: inherit;
}

.hub-impersonation-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: #b45309;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    z-index: 10050;
    box-sizing: border-box;
}

.hub-impersonation-banner__form {
    display: inline-flex;
}

.hub-impersonation-banner__exit {
    background: #fff;
    color: #b45309;
    border: none;
    font-weight: 600;
}

.hub-impersonation-banner__exit:hover,
.hub-impersonation-banner__exit:focus {
    background: #fef3c7;
    color: #92400e;
}

/* -------------------------------------------------------------------------- */
/* Exam management — question pool table                                       */
/* -------------------------------------------------------------------------- */
.exam-pool-table-wrap {
    border-radius: var(--radius-card);
}

.exam-pool-table th:nth-child(2) {
    min-width: 18rem;
}

.exam-pool-table th:nth-child(3) {
    width: 9.5rem;
}

.exam-pool-question-col {
    min-width: 0;
    max-width: 42rem;
}

.exam-question-lang-block {
    margin-bottom: 1.25rem;
}

.exam-question-lang-block:last-child {
    margin-bottom: 0;
}

.exam-question-text {
    margin-bottom: 0.65rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-heading);
}

.exam-question-lang-badge {
    display: inline-block;
    margin-right: 0.45rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    vertical-align: middle;
    color: var(--text-nav-active);
    background: rgba(var(--accent-rgb), 0.18);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 4px;
}

.exam-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1.25rem;
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text-muted);
    background: rgba(2, 6, 23, 0.22);
    border: 1px solid var(--border-default);
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.exam-option-item {
    min-width: 0;
}

.exam-option-item strong {
    color: var(--text-primary);
    margin-right: 0.25rem;
}

.exam-pool-correct-col {
    width: 9.5rem;
    max-width: 11rem;
}

.exam-correct-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.45);
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.exam-correct-text {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-nav-section);
    opacity: 0.85;
    margin-top: 0.35rem;
}

.exam-correct-text:first-of-type {
    margin-top: 0.5rem;
}

.exam-correct-text-lang {
    display: inline-block;
    margin-right: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-caption);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .exam-options-grid {
        grid-template-columns: 1fr;
    }

    .exam-pool-correct-col {
        max-width: none;
    }
}

/* Monthly leaderboard */
.hub-lb-page {
    --hub-lb-accent: #10b981;
    --hub-lb-accent-soft: rgba(16, 185, 129, 0.16);
    --hub-lb-gold: #fbbf24;
    --hub-lb-bg: #0b0b0f;
}

.hub-lb-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.hub-lb-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 10rem;
}

.hub-lb-filter-group--period {
    flex: 1 1 16rem;
    max-width: 22rem;
}

.hub-lb-filter-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hub-lb-filter-select {
    min-width: 10rem;
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--text-primary);
}

.hub-lb-podium-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap-grid);
}

.hub-lb-podium-card {
    position: relative;
    padding: 1.25rem 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(11, 11, 15, 0.92));
    border: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.08);
    text-align: center;
    overflow: hidden;
}

.hub-lb-podium-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.75rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    color: var(--hub-lb-gold);
    font-size: 1.15rem;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.25);
}

.hub-lb-podium-card__label {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hub-lb-podium-card__driver {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.hub-lb-podium-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(16, 185, 129, 0.45);
}

.hub-lb-podium-card__avatar--fallback {
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, 0.18);
    color: var(--hub-lb-accent);
    font-weight: 700;
}

.hub-lb-podium-card__name {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.hub-lb-podium-card__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hub-lb-accent);
}

.hub-lb-podium-card__empty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hub-lb-table-panel {
    overflow: hidden;
    background: rgba(11, 11, 15, 0.72);
    border: 1px solid rgba(16, 185, 129, 0.14);
}

.hub-lb-table-wrap {
    overflow-x: auto;
}

.hub-lb-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.hub-lb-table thead {
    background: rgba(15, 23, 42, 0.72);
}

.hub-lb-table th,
.hub-lb-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.hub-lb-table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hub-lb-table th a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
}

.hub-lb-sortable.is-active a,
.hub-lb-sortable a:hover {
    color: var(--hub-lb-accent);
}

.hub-lb-col-rank {
    width: 4rem;
    text-align: center;
}

.hub-lb-col-metric {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hub-lb-rank {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.hub-lb-row--top-1 .hub-lb-rank {
    color: #78350f;
    background: rgba(251, 191, 36, 0.22);
}

.hub-lb-row--top-2 .hub-lb-rank {
    color: #475569;
    background: rgba(148, 163, 184, 0.22);
}

.hub-lb-row--top-3 .hub-lb-rank {
    color: #9a3412;
    background: rgba(251, 146, 60, 0.18);
}

.hub-lb-driver {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 14rem;
}

.hub-lb-driver__avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.hub-lb-driver__avatar--fallback {
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, 0.15);
    color: var(--hub-lb-accent);
    font-weight: 700;
}

.hub-lb-driver__name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

a.hub-lb-driver__name:hover {
    color: var(--hub-lb-accent);
}

.hub-lb-driver__roles {
    margin-top: 0.25rem;
}

.hub-lb-god-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.18);
}

.hub-lb-podium-card--self {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.04));
    box-shadow:
        inset 0 0 0 1px rgba(16, 185, 129, 0.35),
        0 0 24px rgba(16, 185, 129, 0.12);
}

.hub-lb-podium-card--self .hub-lb-podium-card__avatar {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.85), 0 0 18px rgba(16, 185, 129, 0.35);
}

.hub-lb-row {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.hub-lb-row:hover {
    background: rgba(16, 185, 129, 0.06);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.hub-lb-row--god-mode {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.03));
    box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.85);
}

.hub-lb-row--god-mode:hover {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.16), rgba(16, 185, 129, 0.05));
    box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.95), 0 0 18px rgba(251, 191, 36, 0.12);
}

.hub-lb-row--self {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.03));
    box-shadow: inset 3px 0 0 rgba(16, 185, 129, 0.85);
}

.hub-lb-row--self:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.05));
    box-shadow: inset 3px 0 0 rgba(16, 185, 129, 0.95), 0 0 18px rgba(16, 185, 129, 0.14);
}

.hub-lb-row--self .hub-lb-driver__avatar {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.75);
}

.hub-lb-row--self.hub-lb-row--god-mode {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(16, 185, 129, 0.08));
    box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.85), inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.hub-lb-mobile-card--self {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.03));
    box-shadow: inset 3px 0 0 rgba(16, 185, 129, 0.85);
}

.hub-lb-mobile-card--self .hub-lb-driver__avatar {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.75);
}

.hub-lb-mobile-card--god-mode {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.03));
    box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.85);
}

.hub-lb-mobile-cards {
    display: none;
    padding: 1rem;
    gap: 0.85rem;
}

.hub-lb-mobile-card {
    padding: 1rem;
}

.hub-lb-mobile-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.hub-lb-mobile-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.hub-lb-mobile-card__stats div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hub-lb-mobile-card__stats dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hub-lb-mobile-card__stats dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.hub-lb-empty {
    padding: 2.5rem 1.5rem;
}

@media (max-width: 1200px) {
    .hub-lb-podium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hub-lb-podium-grid {
        grid-template-columns: 1fr;
    }

    .hub-lb-table-wrap {
        display: none;
    }

    .hub-lb-mobile-cards {
        display: grid;
    }

    .hub-lb-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-lb-filter-group,
    .hub-lb-filter-select {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}
