/* ═══════════════════════════════════════════
   NASCAR Race Predictor — Calm Intelligence
   Web3-inspired glassmorphic design
   Mobile-first responsive
   ═══════════════════════════════════════════ */

:root {
    --mw-bg-deep: #000000;
    --mw-bg-surface: #0a0a0a;
    --mw-bg-card: rgba(10, 10, 10, 0.8);
    --mw-glass-border: rgba(255, 255, 255, 0.08);
    --mw-glass-border-hover: rgba(255, 255, 255, 0.15);
    --mw-text-primary: #f1f5f9;
    --mw-text-secondary: #94a3b8;
    --mw-text-muted: #64748b;
    --mw-accent-cyan: #22d3ee;
    --mw-accent-cyan-dim: rgba(34, 211, 238, 0.15);
    --mw-glow-cyan: 0 0 30px rgba(34, 211, 238, 0.2);
    --mw-glow-cyan-strong: 0 0 40px rgba(34, 211, 238, 0.35);
    --mw-accent-green: #34d399;
    --mw-accent-red: #f87171;
    --mw-accent-yellow: #fbbf24;
    --mw-radius-sm: 8px;
    --mw-radius-md: 12px;
    --mw-radius-lg: 16px;
    --mw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mw-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mw-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--mw-font);
    background: var(--mw-bg-deep);
    color: var(--mw-text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px 32px;
}

.app-header {
    text-align: center;
    margin-bottom: 32px;
}

.app-header h1 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mw-text-secondary);
    margin-bottom: 4px;
}

.app-header .subtitle {
    font-size: 12px;
    color: var(--mw-text-muted);
    letter-spacing: 1px;
}

/* ─── Track Record Badge ─── */

.track-record {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 8px 16px;
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    font-size: 12px;
    color: var(--mw-text-secondary);
}

.track-record .record-label {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 10px;
    color: var(--mw-text-muted);
}

.track-record .record-value {
    font-family: var(--mw-font-mono);
    font-weight: 600;
    color: var(--mw-accent-cyan);
}

.track-record .record-detail {
    font-size: 11px;
    color: var(--mw-text-muted);
}

/* ─── View States ─── */

.view {
    display: none;
}

.view.active {
    display: block;
    animation: viewFadeIn 0.4s ease;
}

@keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Race Selection ─── */

.next-up-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mw-accent-cyan);
    margin-bottom: 12px;
}

.next-up-card {
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-accent-cyan);
    border-radius: var(--mw-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    box-shadow: var(--mw-glow-cyan);
    cursor: pointer;
    transition: var(--mw-transition);
}

.next-up-card:hover {
    box-shadow: var(--mw-glow-cyan-strong);
    border-color: var(--mw-accent-cyan);
    transform: translateY(-2px);
}

.next-up-card:active {
    transform: translateY(0);
}

.next-up-card .race-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.next-up-card .race-meta {
    font-size: 13px;
    color: var(--mw-text-secondary);
    margin-bottom: 16px;
}

.next-up-card .race-meta span {
    display: inline-block;
    margin-right: 16px;
}

.predict-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--mw-accent-cyan);
    color: var(--mw-accent-cyan);
    padding: 10px 24px;
    border-radius: var(--mw-radius-sm);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--mw-transition);
}

.predict-btn:hover {
    background: var(--mw-accent-cyan-dim);
}

/* Custom Race Input */

.custom-race-section {
    margin-bottom: 40px;
}

.custom-input-row {
    display: flex;
    gap: 10px;
}

.custom-input {
    flex: 1;
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-glass-border-hover);
    border-radius: var(--mw-radius-sm);
    padding: 14px 18px;
    color: var(--mw-text-primary);
    font-size: 15px;
    font-family: var(--mw-font);
    outline: none;
    transition: var(--mw-transition);
    backdrop-filter: blur(20px);
}

.custom-input::placeholder {
    color: var(--mw-text-secondary);
}

.custom-input:focus {
    border-color: var(--mw-accent-cyan);
    box-shadow: 0 0 0 1px var(--mw-accent-cyan), var(--mw-glow-cyan);
}

.custom-predict-btn {
    background: transparent;
    border: 1px solid var(--mw-accent-cyan);
    color: var(--mw-accent-cyan);
    padding: 14px 24px;
    border-radius: var(--mw-radius-sm);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--mw-transition);
    white-space: nowrap;
}

.custom-predict-btn:hover {
    background: var(--mw-accent-cyan-dim);
}

/* Season Grid — Quick Picks */

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mw-text-muted);
    margin-bottom: 12px;
}

.season-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 32px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.season-grid::-webkit-scrollbar { display: none; }

.race-card {
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-glass-border);
    border-radius: var(--mw-radius-md);
    padding: 18px;
    backdrop-filter: blur(20px);
    transition: var(--mw-transition);
    cursor: pointer;
    min-width: 200px;
    max-width: 220px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.race-card:hover {
    border-color: var(--mw-glass-border-hover);
    transform: translateY(-1px);
}

.race-card:active {
    transform: translateY(0);
}

.race-card.completed {
    opacity: 0.7;
}

.race-card .week-num {
    font-size: 11px;
    color: var(--mw-text-muted);
    margin-bottom: 6px;
}

.race-card .race-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.race-card .track-name {
    font-size: 12px;
    color: var(--mw-text-secondary);
    margin-bottom: 8px;
}

.race-card .winner-tag {
    font-size: 11px;
    color: var(--mw-accent-cyan);
}

.race-card .track-type-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mw-text-muted);
    border: 1px solid var(--mw-glass-border);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Prediction Result on completed cards */

.race-card .prediction-result {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--mw-glass-border);
    font-size: 11px;
    line-height: 1.6;
}

.race-card .prediction-result .pred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.race-card .prediction-result .pred-label {
    color: var(--mw-text-muted);
}

.race-card .prediction-result .pred-value {
    color: var(--mw-text-secondary);
    font-weight: 500;
}

.race-card .prediction-result .pred-correct {
    color: var(--mw-accent-green);
}

.race-card .prediction-result .pred-miss {
    color: #ff4444;
}

.race-card .prediction-result .winner-rank {
    font-size: 10px;
    color: var(--mw-text-muted);
    margin-top: 2px;
}

/* ─── Upcoming Races List ─── */

.upcoming-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mw-text-muted);
    margin-bottom: 12px;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 32px;
}

.upcoming-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-glass-border);
    border-radius: var(--mw-radius-sm);
    cursor: pointer;
    transition: var(--mw-transition);
}

.upcoming-row:hover {
    border-color: var(--mw-glass-border-hover);
}

.upcoming-row:active {
    border-color: var(--mw-accent-cyan);
}

.upcoming-row .upcoming-info {
    flex: 1;
    min-width: 0;
}

.upcoming-row .upcoming-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-row .upcoming-meta {
    font-size: 11px;
    color: var(--mw-text-muted);
    margin-top: 2px;
}

.upcoming-row .upcoming-date {
    font-size: 12px;
    color: var(--mw-text-muted);
    white-space: nowrap;
    margin-left: 16px;
}

.upcoming-row .upcoming-badge {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mw-text-muted);
    border: 1px solid var(--mw-glass-border);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 12px;
    white-space: nowrap;
}

/* ─── Loading View ─── */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.ledo-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
}

.ledo-avatar-pulse {
    animation: ledoPulse 1.5s ease-in-out infinite;
}

@keyframes ledoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.loading-text {
    font-size: 14px;
    color: var(--mw-text-secondary);
    margin-bottom: 12px;
}

.loading-track {
    font-size: 12px;
    color: var(--mw-text-muted);
    margin-bottom: 20px;
}

.ledo-typing-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.ledo-typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--mw-text-muted);
    border-radius: 50%;
    animation: ledoTyping 1.4s infinite ease-in-out both;
}

.ledo-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ledo-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.ledo-typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes ledoTyping {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ─── Results View ─── */

.results-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--mw-text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    transition: var(--mw-transition);
}

.back-btn:hover {
    color: var(--mw-text-secondary);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--mw-glass-border-hover);
    color: var(--mw-text-secondary);
    padding: 8px 18px;
    border-radius: var(--mw-radius-sm);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--mw-transition);
}

.share-btn:hover {
    border-color: var(--mw-accent-cyan);
    color: var(--mw-accent-cyan);
}

/* Copy toast notification */

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--mw-accent-cyan);
    color: #000;
    padding: 10px 24px;
    border-radius: var(--mw-radius-sm);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Ledo's Pick Card */

.pick-card {
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-accent-cyan);
    border-radius: var(--mw-radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    backdrop-filter: blur(20px);
    box-shadow: var(--mw-glow-cyan);
}

.pick-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mw-accent-cyan);
    margin-bottom: 14px;
}

.pick-driver {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pick-team {
    font-size: 13px;
    color: var(--mw-text-secondary);
    margin-bottom: 18px;
}

.pick-prob-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.pick-prob-fill {
    height: 100%;
    background: var(--mw-accent-cyan);
    border-radius: 3px;
    transition: width 1s ease;
}

.pick-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pick-stat {
    font-size: 13px;
}

.pick-stat .label {
    color: var(--mw-text-muted);
    font-size: 11px;
    display: block;
    margin-bottom: 2px;
}

.pick-stat .value {
    font-weight: 600;
}

.confidence-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid;
}

.confidence-badge.high {
    color: var(--mw-accent-green);
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.1);
}

.confidence-badge.moderate {
    color: var(--mw-accent-yellow);
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.1);
}

.confidence-badge.toss-up {
    color: var(--mw-accent-red);
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.1);
}

.pick-reasoning {
    font-size: 13px;
    color: var(--mw-text-secondary);
    line-height: 1.5;
    margin-top: 14px;
}

.bet-now-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--mw-accent-cyan);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--mw-radius-sm);
    transition: var(--mw-transition);
}

.bet-now-btn:hover {
    background: #06b6d4;
    box-shadow: var(--mw-glow-cyan-strong);
}

.bet-now-btn:active {
    transform: scale(0.98);
}

/* Pick card action row */

.pick-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pick-actions .bet-now-btn {
    margin-top: 0;
}

.share-pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--mw-glass-border-hover);
    color: var(--mw-text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--mw-radius-sm);
    cursor: pointer;
    transition: var(--mw-transition);
}

.share-pick-btn:hover {
    border-color: var(--mw-accent-cyan);
    color: var(--mw-accent-cyan);
}

/* Contenders List */

.contenders-section {
    margin-bottom: 28px;
}

.contender-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mw-glass-border);
}

.contender-row:last-child {
    border-bottom: none;
}

.contender-rank {
    font-size: 12px;
    color: var(--mw-text-muted);
    width: 20px;
    text-align: right;
    font-family: var(--mw-font-mono);
}

.contender-info {
    flex: 1;
    min-width: 0;
}

.contender-name {
    font-size: 14px;
    font-weight: 500;
}

.contender-team {
    font-size: 11px;
    color: var(--mw-text-muted);
}

.contender-bar-container {
    flex: 1;
    max-width: 120px;
}

.contender-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.contender-bar-fill {
    height: 100%;
    background: var(--mw-accent-cyan);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.contender-pct {
    font-size: 12px;
    font-family: var(--mw-font-mono);
    color: var(--mw-text-secondary);
    width: 50px;
    text-align: right;
}

/* Expandable Sections */

.expandable-section {
    margin-bottom: 8px;
}

.expand-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-glass-border);
    border-radius: var(--mw-radius-sm);
    padding: 14px 16px;
    color: var(--mw-text-secondary);
    font-size: 13px;
    font-family: var(--mw-font);
    cursor: pointer;
    transition: var(--mw-transition);
}

.expand-toggle:hover {
    border-color: var(--mw-glass-border-hover);
    color: var(--mw-text-primary);
}

.expand-toggle .arrow {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.expandable-section.open .expand-toggle .arrow {
    transform: rotate(180deg);
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.expandable-section.open .expand-content {
    max-height: 2000px;
}

.expand-inner {
    padding: 16px;
    background: var(--mw-bg-card);
    border: 1px solid var(--mw-glass-border);
    border-top: none;
    border-radius: 0 0 var(--mw-radius-sm) var(--mw-radius-sm);
}

/* Full Field Table */

.field-table {
    width: 100%;
    font-size: 12px;
}

.field-table th {
    text-align: left;
    color: var(--mw-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 1px solid var(--mw-glass-border);
}

.field-table td {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.field-table td.pct {
    font-family: var(--mw-font-mono);
    text-align: right;
    color: var(--mw-text-secondary);
}

/* Chaos Stats */

.chaos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.chaos-stat {
    text-align: center;
}

.chaos-stat .value {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--mw-font-mono);
    color: var(--mw-accent-cyan);
}

.chaos-stat .label {
    font-size: 11px;
    color: var(--mw-text-muted);
    margin-top: 4px;
}

/* Manufacturer Bars */

.mfg-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mfg-name {
    width: 80px;
    font-size: 13px;
    color: var(--mw-text-secondary);
}

.mfg-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.mfg-bar-fill {
    height: 100%;
    background: var(--mw-accent-cyan);
    border-radius: 2px;
}

.mfg-pct {
    width: 50px;
    text-align: right;
    font-size: 12px;
    font-family: var(--mw-font-mono);
    color: var(--mw-text-secondary);
}

/* ─── Sim Meta ─── */

.sim-meta {
    text-align: center;
    font-size: 11px;
    color: var(--mw-text-muted);
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--mw-glass-border);
}

/* ─── Footer ─── */

.app-footer {
    text-align: center;
    padding: 24px 16px 32px;
    border-top: 1px solid var(--mw-glass-border);
    max-width: 800px;
    margin: 0 auto;
}

.app-footer .footer-link {
    display: inline-block;
    font-size: 13px;
    color: var(--mw-accent-cyan);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--mw-transition);
    margin-bottom: 8px;
}

.app-footer .footer-link:hover {
    color: var(--mw-text-primary);
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.app-footer .footer-copy {
    font-size: 11px;
    color: var(--mw-text-muted);
    letter-spacing: 0.5px;
}

/* ─── Desktop (min-width: 640px) ─── */

@media (min-width: 640px) {
    .app-container {
        padding: 40px 20px 48px;
    }

    .app-header {
        margin-bottom: 48px;
    }

    .next-up-card {
        padding: 28px;
    }

    .next-up-card .race-name {
        font-size: 22px;
    }


    .pick-card {
        padding: 32px;
    }

    .pick-driver {
        font-size: 28px;
    }

    .contender-bar-container {
        max-width: 200px;
    }

    .expand-toggle {
        padding: 14px 20px;
    }

    .expand-inner {
        padding: 16px 20px;
    }

    .field-table {
        font-size: 13px;
    }

    .chaos-stat .value {
        font-size: 24px;
    }
}

/* ─── Race Day ─── */

.race-day-label {
    color: #ff4444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: race-day-pulse 2s ease-in-out infinite;
}

@keyframes race-day-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.race-day-card {
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.08);
}

/* ─── Refresh & Timestamp ─── */

.sim-timestamp {
    margin-top: 4px;
    font-size: 11px;
    color: var(--mw-text-muted);
}

.refresh-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--mw-border);
}

.refresh-btn {
    padding: 8px 20px;
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mw-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.refresh-hint {
    font-size: 11px;
    color: var(--mw-text-muted);
}

/* ─── Qualifying Badge ─── */

.qual-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.qual-pos {
    text-align: center;
    color: var(--mw-text-muted);
    font-size: 12px;
}
