/* Logged-in dashboard summary: real account data at the top of #platform. */
.dash-summary { margin: 1rem 0 1.25rem; }
.dash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
    gap: 16px;
    align-items: stretch;
}
.dash-intro {
    padding: 20px 22px !important;
    background: linear-gradient(135deg, rgba(214,170,69,.13), rgba(18,19,23,.96) 62%) !important;
    border-color: rgba(214,170,69,.34) !important;
}
.dash-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #D6AA45;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.dash-intro h2 { margin: 0 0 6px !important; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }
.dash-intro h2 span { color: #f0d98a; }
.dash-intro p { margin: 0; color: #A3AAB5; font-size: 13px; line-height: 1.65; }
.dash-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.dash-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
    border: 1px solid rgba(214,170,69,.38); color: #f0d98a; background: rgba(214,170,69,.12);
}
.dash-badge.winner { border-color: rgba(81,207,102,.38); color: #8fe6a0; background: rgba(81,207,102,.1); }
.dash-badge.staff { border-color: rgba(234,84,85,.38); color: #ffb4b4; background: rgba(234,84,85,.1); }
.dash-badge.trader { border-color: rgba(50,136,255,.4); color: #9dc2ff; background: rgba(50,136,255,.1); }
.dash-badge.new, .dash-badge.member { border-color: rgba(163,170,181,.3); color: #c7ced8; background: rgba(255,255,255,.05); }

.dash-balance {
    display: flex; flex-direction: column; justify-content: center;
    padding: 20px !important; text-align: center;
    border-color: rgba(214,170,69,.5) !important;
    background: radial-gradient(circle at 50% 0%, rgba(214,170,69,.18), rgba(18,19,23,.97) 70%) !important;
}
.dash-balance .label { color: #A3AAB5; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.dash-balance .value { margin: 6px 0 4px; color: #f0d98a; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; }
.dash-balance .value em { color: #A3AAB5; font-size: .5em; font-style: normal; }
.dash-balance .meta { color: #8b929d; font-size: 11px; line-height: 1.6; }
.dash-balance a { color: #f0d98a; text-decoration: underline; text-underline-offset: 3px; }

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.dash-stat {
    padding: 13px 14px;
    border: 1px solid rgba(214,170,69,.2);
    border-radius: 11px;
    background: rgba(22,25,30,.92);
}
.dash-stat .label { color: #8b929d; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dash-stat .value { display: block; margin-top: 4px; color: #fff; font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.dash-stat .meta { color: #7f8895; font-size: 10.5px; }
.dash-stat.loyalty { border-color: rgba(81,207,102,.35); background: rgba(81,207,102,.07); }
.dash-stat.loyalty .value { color: #8fe6a0; }

.dash-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dash-link {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px; padding: 7px 12px; border-radius: 9px;
    border: 1px solid rgba(214,170,69,.28); background: rgba(214,170,69,.09);
    color: #f0d98a; font-size: 12px; font-weight: 700; text-decoration: none;
    transition: transform .16s, border-color .16s, background .16s;
}
.dash-link:hover, .dash-link:focus-visible { transform: translateY(-1px); border-color: #D6AA45; background: rgba(214,170,69,.17); text-decoration: none; }
.dash-link.green { border-color: rgba(81,207,102,.3); background: rgba(81,207,102,.09); color: #8fe6a0; }
.dash-link.green:hover, .dash-link.green:focus-visible { border-color: #51cf66; background: rgba(81,207,102,.17); }
.dash-link.plain { border-color: rgba(163,170,181,.22); background: rgba(255,255,255,.04); color: #c7ced8; }

/* Tidy the existing dashboard tab strip without changing its behaviour. */
#mainContent > .tabs {
    gap: 6px !important;
    padding: 6px !important;
    border: 1px solid rgba(214,170,69,.22) !important;
    border-radius: 10px !important;
    background: rgba(14,16,20,.8) !important;
}
#mainContent > .tabs .tab {
    padding: 8px 11px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}
#mainContent > .tabs .tab.active {
    background: rgba(214,170,69,.16) !important;
    box-shadow: inset 0 -2px 0 rgba(214,170,69,.65);
}

@media (max-width: 760px) {
    .dash-hero { grid-template-columns: 1fr; }
    .dash-balance { padding: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .dash-link { transition: none; }
}
