/* ============================================
   Dashboard Styles
   Landing, Leaderboard, Points Ranking, Charts
   ============================================ */

/* ============================================
   Landing Section
   ============================================ */

.landing {
    margin-top: 14px;
    border-radius: 30px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(900px 420px at 15% 25%, rgba(255, 77, 141, .16), transparent 60%),
        radial-gradient(900px 520px at 85% 30%, rgba(124, 92, 255, .14), transparent 60%),
        radial-gradient(900px 520px at 55% 120%, rgba(255, 176, 32, .10), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
    min-height: 72vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform:
        perspective(1200px) rotateY(calc(var(--mx, 0) * 3deg)) rotateX(calc(var(--my, 0) * -3deg));
    transition: transform 120ms ease-out;
}

.landing::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, .00), rgba(0, 0, 0, .12), rgba(0, 0, 0, .00));
    opacity: .55;
}

.landing::before {
    background:
        radial-gradient(560px 360px at 18% 25%, rgba(255, 77, 141, .16), transparent 60%),
        radial-gradient(620px 420px at 85% 30%, rgba(124, 92, 255, .14), transparent 60%),
        radial-gradient(900px 520px at 55% 120%, rgba(255, 176, 32, .10), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, .06) 0px,
            rgba(255, 255, 255, .06) 1px,
            transparent 1px,
            transparent 54px),
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, .05) 0px,
            rgba(255, 255, 255, .05) 1px,
            transparent 1px,
            transparent 54px);
    background-blend-mode: normal, normal, normal, normal, overlay, overlay;
    animation: gridDrift 14s linear infinite;
}

@keyframes gridDrift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 0 0, 0 0, 0 0, 0 0, 120px 60px, 60px 120px;
    }
}

.landing:not(.intro-done) {
    transform: none !important;
}

.landing-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    align-items: start;
    position: relative;
    z-index: 1;
}

@media (max-width: 980px) {
    .landing {
        padding: 22px;
        min-height: auto;
    }

    .landing-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .landing {
        padding: 18px;
        margin-top: 10px;
        border-radius: 22px;
    }
    
    .landing-copy {
        max-width: 100%;
    }
    
    .landing-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .landing-subtitle {
        font-size: 0.95rem;
    }
    
    .landing-panel {
        padding: 16px;
        border-radius: 18px;
    }
    
    .panel-v {
        font-size: 1.3rem;
    }
    
    .panel-metric {
        padding: 12px 0;
    }
}

@media (max-width: 520px) {
    .landing {
        padding: 14px;
        margin-top: 8px;
        border-radius: 18px;
    }
    
    .landing-eyebrow {
        font-size: 0.68rem;
        padding: 6px 10px;
    }
    
    .landing-title {
        font-size: 1.65rem;
        margin: 12px 0 10px;
    }
    
    .landing-subtitle {
        font-size: 0.88rem;
        line-height: 1.5;
    }
    
    .landing-cta {
        flex-direction: column;
        gap: 8px;
    }
    
    .landing-cta .btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
    
    .landing-badges {
        justify-content: center !important;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .landing-badges .badge {
        padding: 8px 12px;
        font-size: 0.72rem;
        white-space: nowrap;
        flex: 1;
        justify-content: center;
    }
    
    .landing-panel {
        padding: 14px;
        border-radius: 16px;
    }
    
    .panel-title {
        font-size: 1rem;
    }
    
    .panel-sub {
        font-size: 0.85rem;
    }
    
    .panel-k {
        font-size: 0.85rem;
    }
    
    .panel-v {
        font-size: 1.15rem;
    }
    
    .panel-foot {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .landing {
        padding: 12px;
        border-radius: 14px;
    }
    
    .landing-title {
        font-size: 1.45rem;
    }
    
    .landing-subtitle {
        font-size: 0.82rem;
    }
    
    .badge {
        padding: 6px 8px;
        font-size: 0.72rem;
    }
}

.landing-copy {
    max-width: 70ch;
}

.landing-eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255, 255, 255, .72);
}

.landing-title {
    margin: 16px 0 12px;
    font-size: 3.1rem;
    line-height: 1.02;
    letter-spacing: -.055em;
}

@media (max-width: 520px) {
    .landing-title {
        font-size: 2.25rem;
    }
}

.landing-subtitle {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, .74);
    line-height: 1.6;
}

.landing-cta {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.landing-badges {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

/* Ensure both rows start at the same position */
.landing-cta,
.landing-badges {
    padding-left: 0;
    margin-left: 0;
}

/* Landing Right Column */
.landing-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
}

/* Landing Panel */
.landing-panel {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 12, 26, .50);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .45);
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-sub {
    margin-top: 6px;
    color: rgba(255, 255, 255, .62);
    font-size: .95rem;
}

.panel-metrics {
    margin-top: 14px;
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.panel-metric {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.panel-metric-last,
.panel-metric:last-child {
    border-bottom: none;
}

.panel-k {
    color: rgba(255, 255, 255, .62);
}

.panel-v {
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -.03em;
}

.panel-v-positive {
    color: #4ade80;
}

.panel-foot {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: .95rem;
}

.panel-metric-link {
    cursor: pointer;
    transition: all 200ms ease;
}

.panel-metric-link:hover {
    background: rgba(139, 92, 246, .08);
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

.panel-metric-link:hover .panel-k {
    color: rgba(255, 255, 255, .85);
}

.panel-metric-link:hover .panel-arrow {
    color: rgba(139, 92, 246, .9);
    transform: translateX(3px);
}

.panel-arrow {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .4);
    transition: all 200ms ease;
}

/* Hide the about link in card on mobile - it's in the hamburger menu */
@media (max-width: 768px) {
    .panel-metric-link {
        display: none;
    }
    
    /* When about link is hidden, the previous metric becomes the last visible one */
    .panel-metric:nth-last-child(2) {
        border-bottom: none;
    }
}

/* Landing Newsletter */
.landing-newsletter {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(10, 12, 26, .45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 20px;
}

.landing-newsletter-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    line-height: 1.45;
    margin-bottom: 12px;
}

.landing-newsletter-header svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.landing-newsletter-form {
    width: 100%;
}

.landing-newsletter-input-group {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .25);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.landing-newsletter-input-group:focus-within {
    border-color: rgba(124, 92, 255, .45);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, .10);
}

.landing-newsletter-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, .90);
    padding: 11px 16px;
    font-size: 0.88rem;
    outline: none;
    min-width: 0;
}

.landing-newsletter-input::placeholder {
    color: rgba(255, 255, 255, .30);
}

.landing-newsletter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 11px 18px;
    cursor: pointer;
    transition: all 200ms ease;
    position: relative;
    overflow: hidden;
}

.landing-newsletter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, transparent 50%);
    pointer-events: none;
}

.landing-newsletter-btn:hover {
    filter: brightness(1.15);
}

.landing-newsletter-btn:active {
    transform: scale(0.95);
}

.landing-newsletter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
}

.landing-newsletter-btn svg {
    transition: transform 200ms ease;
}

.landing-newsletter-btn:hover svg {
    transform: translateX(3px);
}

@media (max-width: 980px) {
    .landing-right {
        gap: 14px;
    }
}

@media (max-width: 620px) {
    .landing-newsletter {
        display: none;
    }
}


.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--success, #00E676);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, .45);
    animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, .35);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(0, 230, 118, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

.hide-on-landing {
    display: none !important;
}

/* ============================================
   Leaderboard Section
   ============================================ */

.leaderboard-card {
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(900px 420px at 20% 10%, rgba(124, 92, 255, .10), transparent 60%),
        radial-gradient(900px 420px at 75% 10%, rgba(255, 77, 141, .10), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    box-shadow: 0 26px 80px rgba(0, 0, 0, .55);
}

.leaderboard-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 12px;
}

.leaderboard-title .card-title {
    margin: 0;
}

.leaderboard-title .card-subtitle {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .55);
    font-size: .92rem;
}

.leaderboard-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
}

#leaderboard-table-wrap.no-fade .table-fade {
    opacity: 0 !important;
}

/* Mobile expand toggle - hidden by default, shown on mobile */
.mobile-expand-toggle {
    display: none;
}

@media (max-width: 768px) {
    .leaderboard-card {
        padding: 14px;
        border-radius: 20px;
    }
    
    .leaderboard-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .leaderboard-title {
        text-align: center;
    }
    
    .leaderboard-title .card-title {
        font-size: 1.1rem;
    }
    
    .leaderboard-controls {
        width: 100%;
        justify-content: stretch;
    }
    
    .ctrl {
        min-width: calc(50% - 5px);
        flex: 1;
    }

    .ctrl-wide {
        min-width: 100%;
    }
    
    #toggle-leaderboard {
        display: none;
    }
    
    /* Show the bottom toggle on mobile (hidden by default above) */
    .mobile-expand-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: absolute;
        bottom: 16px;
        left: 0;
        right: 0;
        color: #667eea;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        pointer-events: auto;
        text-shadow: 0 0 12px rgba(102, 126, 234, 0.5), 0 0 24px rgba(118, 75, 162, 0.3);
    }
    
    #leaderboard-table-wrap.is-expanded .mobile-expand-toggle {
        bottom: 8px;
    }
    
    .mobile-expand-toggle:active {
        color: #8b9cf0;
        text-shadow: 0 0 16px rgba(102, 126, 234, 0.7), 0 0 32px rgba(118, 75, 162, 0.5);
    }
    
    .mobile-expand-toggle .toggle-icon {
        font-weight: 600;
        font-size: 0.9rem;
    }
}

@media (max-width: 520px) {
    .leaderboard-card {
        padding: 12px;
        border-radius: 16px;
    }
    
    .leaderboard-title .card-title {
        font-size: 1rem;
    }
    
    .leaderboard-title .card-subtitle {
        font-size: 0.8rem;
    }
    
    .ctrl {
        min-width: 100%;
    }
    
    .ctrl-label {
        font-size: 0.68rem;
    }
    
    .ctrl-input {
        height: 38px;
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}

@media (max-width: 380px) {
    .leaderboard-card {
        padding: 10px;
        border-radius: 14px;
    }
    
    .leaderboard-title .card-title {
        font-size: 0.95rem;
    }
}

/* ============================================
   Collapsible Table
   ============================================ */

.table-wrap {
    position: relative;
}

#leaderboard-table-wrap {
    max-height: 560px;
    overflow: hidden;
    transition: max-height 520ms var(--ease-out, cubic-bezier(.16, 1, .3, 1));
}

#leaderboard-table-wrap.is-expanded {
    max-height: 2000px;
}

.table-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(to bottom, rgba(10, 12, 26, 0), rgba(10, 12, 26, .96));
    opacity: 1;
    transition: opacity 220ms ease;
    pointer-events: none;
}

#leaderboard-table-wrap.is-expanded .table-fade {
    background: transparent;
    height: 50px;
}

@media (max-width: 768px) {
    #leaderboard-table-wrap.is-expanded .table-container {
        padding-bottom: 36px;
    }
}

/* When there are few rows, no need to expand - hide fade */
#leaderboard-table-wrap.no-expand .table-fade {
    opacity: 0;
}

/* Hide toggle when no expansion is needed */
#leaderboard-table-wrap.no-expand .mobile-expand-toggle {
    display: none !important;
}

/* Leaderboard table scrollbar styling */
#leaderboard-table-wrap .table-container::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

#leaderboard-table-wrap .table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
    border-radius: 999px;
    margin: 8px;
}

#leaderboard-table-wrap .table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124, 92, 255, .55), rgba(255, 77, 141, .45));
    border-radius: 999px;
    border: 2px solid rgba(10, 12, 26, .75);
}

#leaderboard-table-wrap .table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(124, 92, 255, .75), rgba(255, 77, 141, .65));
}

/* Disabled expand button (when there are few rows) */
#toggle-leaderboard.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   Tables
   ============================================ */

.table-container {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 12, 26, .35);
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-container {
        border-radius: 14px;
        margin: 0 -4px;
    }
}

@media (max-width: 520px) {
    .table-container {
        border-radius: 12px;
        margin: 0 -2px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead {
    background: var(--bg-secondary);
}

.table-container thead th {
    background: rgba(255, 255, 255, .03);
}

th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    position: relative;
}

th:hover {
    background: var(--bg-hover);
}

th.sortable::after {
    content: '↕';
    margin-left: 8px;
    opacity: 0.3;
}

th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

th.sort-desc::after {
    content: '↓';
    opacity: 1;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background: var(--bg-hover);
}

/* Mobile table styles */
@media (max-width: 768px) {
    table {
        font-size: 0.88rem;
    }
    
    th, td {
        padding: 12px 10px;
    }
    
    th {
        font-size: 0.7rem;
    }
}

@media (max-width: 520px) {
    table {
        font-size: 0.82rem;
        min-width: 550px;
    }
    
    th, td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    th {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
    
    th.sortable::after {
        margin-left: 4px;
    }
}

@media (max-width: 380px) {
    table {
        font-size: 0.78rem;
        min-width: 480px;
    }
    
    th, td {
        padding: 8px 6px;
    }
}

.table-container th {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .60);
}

.table-container td {
    color: rgba(255, 255, 255, .86);
}

.positive-cell {
    color: var(--success);
    font-weight: 600;
}

.negative-cell {
    color: var(--danger);
    font-weight: 600;
}

/* ============================================
   Glass Card (shared by Points Ranking & Top Picks)
   ============================================ */

.glass-card {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(900px 420px at 20% 10%, rgba(124, 92, 255, .10), transparent 60%),
        radial-gradient(900px 420px at 75% 10%, rgba(255, 77, 141, .10), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    box-shadow: 0 26px 80px rgba(0, 0, 0, .55);
}

.glass-card:hover {
    border-color: rgba(124, 92, 255, .22);
}

.glass-table-container {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0d0f1a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
    padding: 0;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.glass-card table {
    border-collapse: separate;
    border-spacing: 0;
}

.glass-card thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #12141f;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.glass-card thead th:first-child {
    border-top-left-radius: 0;
}

.glass-card thead th:last-child {
    border-top-right-radius: 0;
}

.glass-table-container::-webkit-scrollbar {
    width: 10px;
}

.glass-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
    border-radius: 999px;
    margin: 8px;
}

.glass-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124, 92, 255, .55), rgba(255, 77, 141, .45));
    border-radius: 999px;
    border: 2px solid rgba(10, 12, 26, .75);
}

.glass-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(124, 92, 255, .75), rgba(255, 77, 141, .65));
}

.glass-card tbody tr {
    transition: background 180ms ease;
}

.glass-card tbody tr:hover {
    background: rgba(124, 92, 255, .06);
}

/* Rank cell styling */
.glass-card .rank-cell {
    text-align: center;
    vertical-align: middle;
    width: 50px;
    color: rgba(255, 255, 255, .40);
    font-weight: 700;
}

.glass-card .font-mono {
    color: rgba(124, 92, 255, .95);
    font-weight: 700;
    letter-spacing: .02em;
    transition: color 150ms ease;
}

.glass-card tbody tr:hover .font-mono {
    color: #ff4d8d;
}

/* Medal icons in points ranking */
.glass-card .medal-icon {
    display: inline-block;
    vertical-align: middle;
}

.glass-card .medal-gold {
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4));
}

.glass-card .medal-silver {
    filter: drop-shadow(0 2px 4px rgba(156, 163, 175, 0.4));
}

.glass-card .medal-bronze {
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.4));
}

/* Ranking Section (grid container) */
.ranking-section {
    max-width: 100%;
    overflow: visible;
}

@media (max-width: 768px) {
    .ranking-section {
        gap: 16px;
    }

    .glass-card {
        padding: 16px;
        border-radius: 20px;
    }

    .glass-table-container {
        border-radius: 14px;
        padding: 0;
    }

    .glass-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .ranking-section {
        gap: 14px;
    }

    .glass-card {
        padding: 12px;
        border-radius: 16px;
    }

    .glass-card .card-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .glass-card .card-title {
        font-size: 0.95rem;
    }

    .glass-table-container {
        border-radius: 12px;
        padding: 0;
        overflow-x: auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .glass-card table {
        min-width: 380px;
        font-size: 0.78rem;
    }

    .glass-card th,
    .glass-card td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    .glass-card th {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 380px) {
    .glass-card {
        padding: 10px;
    }

    .glass-card .card-title {
        font-size: 0.88rem;
    }

    .glass-table-container {
        margin: 0 -6px;
        width: calc(100% + 12px);
        border-radius: 10px;
    }

    .glass-card table {
        min-width: 340px;
        font-size: 0.72rem;
    }

    .glass-card th,
    .glass-card td {
        padding: 6px 4px;
    }
}

/* ============================================
   Charts
   ============================================ */

.chart-container {
    height: 350px;
    position: relative;
}

@media (max-width: 768px) {
    .chart-container {
        height: 280px;
    }
}

@media (max-width: 520px) {
    .chart-container {
        height: 220px;
    }
}

.card:has(#leaderboard-chart) {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(900px 420px at 20% 10%, rgba(124, 92, 255, .12), transparent 60%),
        radial-gradient(900px 420px at 75% 10%, rgba(255, 77, 141, .10), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    box-shadow: 0 26px 80px rgba(0, 0, 0, .55);
}

.card:has(#leaderboard-chart) .chart-container {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 12, 26, .32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
    padding: 10px;
}

/* Chart Card Mobile Responsiveness */
@media (max-width: 768px) {
    .card:has(#leaderboard-chart) {
        padding: 16px;
        border-radius: 20px;
    }
    
    .card:has(#leaderboard-chart) .chart-container {
        border-radius: 14px;
        padding: 8px;
        height: 280px;
    }
    
    .card:has(#leaderboard-chart) .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .card:has(#leaderboard-chart) {
        padding: 12px;
        border-radius: 16px;
    }
    
    .card:has(#leaderboard-chart) .card-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .card:has(#leaderboard-chart) .card-title {
        font-size: 0.95rem;
    }
    
    .card:has(#leaderboard-chart) .chart-container {
        border-radius: 12px;
        padding: 4px;
        height: 240px;
        margin: 0 -4px;
        width: calc(100% + 8px);
    }
}

@media (max-width: 380px) {
    .card:has(#leaderboard-chart) {
        padding: 10px;
    }
    
    .card:has(#leaderboard-chart) .card-title {
        font-size: 0.88rem;
    }
    
    .card:has(#leaderboard-chart) .chart-container {
        height: 200px;
        margin: 0 -6px;
        width: calc(100% + 12px);
    }
}

/* ============================================
   Motion & Animations
   ============================================ */

.motion-in {
    opacity: 0;
    transform: translateY(14px);
    animation: motionIn 900ms var(--ease-out) forwards;
}

@keyframes motionIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d-1 {
    animation-delay: 80ms;
}

.d-2 {
    animation-delay: 160ms;
}

.d-3 {
    animation-delay: 240ms;
}

.d-4 {
    animation-delay: 320ms;
}

.d-5 {
    animation-delay: 400ms;
}

.reveal-section {
    opacity: 0;
    transform: translateY(18px) scale(.99);
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: 900ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
    .motion-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .landing::before {
        animation: none !important;
    }

    .reveal-section {
        opacity: 1 !important;
        transform: none !important;
    }

    .reveal-section.revealed {
        transition: none !important;
    }
}

/* ============================================
   Top Picks Card (Dashboard)
   ============================================ */

.top-picks-table-container {
    max-height: 340px;
}

.top-picks-table-container table {
    min-width: 0;
}

.top-picks-table-container th,
.top-picks-table-container td {
    text-align: center;
}

.top-picks-table-container td:first-child {
    color: rgba(255, 255, 255, .40);
    font-weight: 700;
}

.top-pick-count {
    color: #00e676;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 230, 118, .35);
}

/* CTA Button */
.top-picks-cta {
    padding: 18px 20px 8px;
    text-align: center;
}

.top-picks-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 12px;
    border: 1px solid rgba(124, 92, 255, .25);
    background: linear-gradient(180deg, rgba(124, 92, 255, .10) 0%, rgba(124, 92, 255, .04) 100%);
    color: rgba(255, 255, 255, .88);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms ease;
    position: relative;
    overflow: hidden;
}

.top-picks-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, transparent 50%);
    pointer-events: none;
}

.top-picks-cta-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 92, 255, .50);
    background: linear-gradient(180deg, rgba(124, 92, 255, .18) 0%, rgba(124, 92, 255, .08) 100%);
    box-shadow: 0 4px 16px rgba(124, 92, 255, .15);
    color: #fff;
}

.top-picks-cta-btn:active {
    transform: translateY(0);
}

.top-picks-cta-btn svg {
    transition: transform 200ms ease;
}

.top-picks-cta-btn:hover svg {
    transform: translateX(3px);
}