/* ═══════════════════════════════════════════════════════════════
   ROX CULT — DASHBOARD DESIGN SYSTEM
   Font: Inter (consensus best for dashboard readability)
   Palette: derived from rox (Holo) sticker colors
     - Indigo:  #5B4FE8  (primary)
     - Magenta: #E84FA0  (accent)
     - Holo:    #7DF0A0  (positive)
     - Blue:    #4F8FE8  (secondary)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-0:    #08090c;
    --bg-1:    #0d0f14;
    --bg-2:    #12141c;
    --bg-3:    #191c28;
    --border:  rgba(255,255,255,0.06);
    --indigo:      #5B4FE8;
    --indigo-dim:  rgba(91,79,232,0.15);
    --indigo-glow: rgba(91,79,232,0.25);
    --magenta:      #E84FA0;
    --magenta-dim:  rgba(232,79,160,0.12);
    --magenta-glow: rgba(232,79,160,0.25);
    --holo:    #7DF0A0;
    --blue:    #4F8FE8;
    --text:    rgba(255,255,255,0.92);
    --text-2:  rgba(255,255,255,0.55);
    --text-3:  rgba(255,255,255,0.30);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --radius:   10px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-variant-numeric: tabular-nums;
    background: var(--bg-0);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient glows: sticker palette colors for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 0% 0%, rgba(91,79,232,0.08), transparent),
        radial-gradient(ellipse 500px 400px at 100% 100%, rgba(232,79,160,0.06), transparent),
        radial-gradient(ellipse 600px 300px at 50% 50%, rgba(125,240,160,0.02), transparent);
    pointer-events: none;
    z-index: 0;
}

#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.container {
    position: relative; z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    display: flex; flex-direction: column;
    gap: 1.25rem;
}

/* ── ACCESSIBILITY ── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#shareArea {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── TOPBAR ── */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 0;
}

.topbar-brand {
    font-size: 2rem; font-weight: 900;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--indigo), var(--magenta));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px var(--indigo-glow));
    transition: all 0.3s var(--ease);
    cursor: default;
}

.topbar-brand:hover {
    filter: drop-shadow(0 0 20px var(--indigo-glow)) drop-shadow(0 0 40px rgba(232,79,160,0.15));
    transform: scale(1.04);
}

.topbar-brand span {
    font-weight: 400;
    -webkit-text-fill-color: var(--text-2);
}

.topbar-tagline {
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, var(--indigo), var(--magenta));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.7;
}

/* ── CTA BANNER ── */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: rgba(91,79,232,0.06);
    border: 1px solid rgba(91,79,232,0.20);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.cta-banner:hover {
    background: rgba(91,79,232,0.10);
    border-color: rgba(91,79,232,0.40);
    box-shadow: 0 0 20px rgba(91,79,232,0.08);
}

.cta-banner-icon {
    font-size: 1rem;
    line-height: 1;
}

.cta-banner-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-2);
}

.cta-banner-text strong {
    color: var(--indigo);
    font-weight: 700;
}

.cta-banner:hover .cta-banner-text strong {
    color: var(--text);
}

.cta-banner-arrow {
    font-size: 0.9rem;
    color: var(--indigo);
    transition: transform 0.3s var(--ease);
}

.cta-banner:hover .cta-banner-arrow {
    transform: translateX(3px);
}

.pulse-dot {
    width: 7px; height: 7px;
    background: var(--holo);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(125,240,160,0.4); }
    50%      { box-shadow: 0 0 0 5px rgba(125,240,160,0); }
}

/* ── HERO ── */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(91,79,232,0.06) 0%, rgba(232,79,160,0.04) 50%, rgba(91,79,232,0.06) 100%),
        var(--bg-2);
    border: 2px solid rgba(91,79,232,0.4);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.8rem;
    box-shadow:
        0 0 30px rgba(91,79,232,0.08),
        0 0 60px rgba(91,79,232,0.03),
        inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color 0.4s var(--ease), box-shadow 0.4s;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--magenta), var(--indigo));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0.8;
}

.hero:hover {
    border-color: rgba(91,79,232,0.55);
    box-shadow:
        0 0 40px rgba(91,79,232,0.12),
        0 0 80px rgba(91,79,232,0.05),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--indigo), rgba(232,79,160,0.7));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.hero-share {
    position: absolute;
    top: 0.7rem;
    right: 1.5rem;
    z-index: 5;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.4em 0.85em;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    background: rgba(91,79,232,0.2);
    border: 1px solid var(--indigo);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    box-shadow: 0 0 12px rgba(91,79,232,0.15);
}

.share-btn:hover {
    background: rgba(91,79,232,0.3);
    box-shadow: 0 0 18px rgba(91,79,232,0.25);
}

.share-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.3rem;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 20;
}

.share-dropdown.open { display: flex; flex-direction: column; }

.share-option {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0.65em;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-2);
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.share-option:hover {
    background: rgba(91,79,232,0.12);
    color: var(--text);
}

.share-watermark {
    display: none;
    text-align: center;
    padding: 0.8rem 0 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-3);
    opacity: 0.6;
}

.hero-sticker { position: relative; }

.sticker-img {
    width: 140px; height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(91,79,232,0.35)) drop-shadow(0 0 48px rgba(232,79,160,0.12));
    animation: stickerFloat 5s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s var(--ease), filter 0.3s;
}

.sticker-img:hover {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 0 32px rgba(91,79,232,0.5)) drop-shadow(0 0 60px rgba(232,79,160,0.2));
}

@keyframes stickerFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.hero-data {
    display: flex; flex-direction: column;
    gap: 1.5rem;
}

.hero-current { display: flex; flex-direction: column; gap: 0.4rem; }

.hero-current-badge {
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    text-transform: uppercase;
}

.hero-current-number {
    font-size: clamp(3.5rem, 10vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--indigo) 20%, var(--magenta) 80%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--indigo-glow)) drop-shadow(0 4px 20px rgba(232,79,160,0.15));
}

.hero-current-meta {
    display: flex; align-items: center; gap: 0.8rem;
    font-size: 0.88rem; font-weight: 600;
    color: var(--text);
}

.hero-days {
    font-size: 0.7rem; font-weight: 700;
    color: var(--holo);
    background: rgba(125,240,160,0.1);
    padding: 0.2em 0.7em;
    border-radius: 50px;
    border: 1px solid rgba(125,240,160,0.15);
}

.hero-progress { display: flex; flex-direction: column; gap: 0.35rem; }

.hero-progress-track {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.hero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--indigo), var(--magenta));
    border-radius: 6px;
    width: 0%;
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(91,79,232,0.3);
}

.hero-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-top: 0.15rem;
}

.hero-progress-stat {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-3);
}

.hero-progress-stat strong {
    font-weight: 700;
    color: var(--text);
}

.hero-progress-days {
    font-size: 0.72rem;
    color: var(--text-3);
    margin-left: 0.3em;
}

.hero-projection-value {
    font-size: 1.05rem; font-weight: 800;
    color: var(--magenta);
    filter: drop-shadow(0 0 10px var(--magenta-glow));
}

/* ── Hero Footer (total + source on same row) ── */
.hero-footer {
    border-top: 1px solid rgba(91,79,232,0.2);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.hero-total {
    display: flex; align-items: baseline; gap: 0.6rem;
    flex-wrap: wrap;
}

.hero-total-label {
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-3);
    text-transform: uppercase;
}

.hero-total-number {
    font-size: 2rem; font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.hero-total-delta {
    font-size: 0.8rem; font-weight: 600;
}

.hero-total-delta.positive { color: var(--holo); }
.hero-total-delta.negative { color: var(--magenta); }
.hero-total-delta.neutral  { color: var(--text-3); }

.hero-source {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    font-size: 0.6rem; font-weight: 500;
    color: var(--text-3);
    opacity: 0.6;
    flex-shrink: 0;
}

.hero-source-update {
    font-size: 0.58rem;
    color: var(--text-3);
}

.hero-source-update strong {
    color: var(--text-2);
    font-weight: 600;
}

/* ── STATS ROW ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.stat-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(91,79,232,0.04) 0%, rgba(232,79,160,0.02) 100%),
        var(--bg-2);
    border: 2px solid rgba(91,79,232,0.30);
    border-radius: var(--radius);
    padding: 1rem 1rem 0.9rem;
    text-align: center;
    transition: all 0.3s var(--ease);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(91,79,232,0.03);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--magenta));
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0.5;
}

.stat-card:hover {
    border-color: rgba(232,79,160,0.50);
    box-shadow: 0 0 20px rgba(232,79,160,0.08);
    transform: translateY(-1px);
}

.stat-value {
    font-size: 1.5rem; font-weight: 800;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.stat-label {
    font-size: 0.75rem; font-weight: 500;
    color: var(--text-2);
}

.stat-sub {
    font-size: 0.7rem; font-weight: 500;
    color: var(--text-3);
    margin-top: 0.15rem;
}

/* ── CAPSULE INSIGHT ── */
.capsule-insight {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(91,79,232,0.05) 0%, rgba(232,79,160,0.03) 100%),
        var(--bg-2);
    border: 2px solid rgba(91,79,232,0.30);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s var(--ease);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(91,79,232,0.04);
}

.capsule-insight::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--magenta), var(--indigo));
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0.5;
}

.capsule-insight:hover {
    border-color: rgba(91,79,232,0.50);
    box-shadow: 0 0 25px rgba(91,79,232,0.08);
}

.capsule-img {
    width: 120px; height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 0 16px rgba(91,79,232,0.2)) drop-shadow(0 0 32px rgba(232,79,160,0.08));
    transition: transform 0.3s var(--ease), filter 0.3s;
}

.capsule-img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 20px rgba(91,79,232,0.3)) drop-shadow(0 0 40px rgba(232,79,160,0.12));
}

.capsule-title {
    font-size: 0.9rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.capsule-title-sub {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-3);
}

.capsule-desc {
    font-size: 0.8rem; font-weight: 400;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.capsule-desc strong { color: var(--magenta); font-weight: 700; }

.capsule-stats {
    display: flex; gap: 2rem;
    margin-bottom: 0.8rem;
}

.capsule-stat-value {
    font-size: 1.6rem; font-weight: 800;
    color: var(--text);
}

.capsule-stat-label {
    font-size: 0.72rem; font-weight: 500;
    color: var(--text-2);
}

.capsule-rarity {
    display: flex; align-items: center; gap: 0.5rem;
}

.rarity-badge {
    font-size: 0.75rem; font-weight: 700;
    color: var(--magenta);
    background: var(--magenta-dim);
    padding: 0.25em 0.8em;
    border-radius: 50px;
    border: 1px solid rgba(232,79,160,0.2);
}

.rarity-text {
    font-size: 0.72rem; font-weight: 500;
    color: var(--text-3);
}

/* ── TREND ROW ── */
.trend-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.trend-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(91,79,232,0.04) 0%, rgba(232,79,160,0.02) 100%),
        var(--bg-2);
    border: 2px solid rgba(91,79,232,0.28);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    text-align: center;
    transition: all 0.3s var(--ease);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(91,79,232,0.03);
}

.trend-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--magenta));
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0.4;
}

.trend-card:hover {
    border-color: rgba(91,79,232,0.50);
    box-shadow: 0 0 20px rgba(91,79,232,0.08);
    transform: translateY(-1px);
}

.trend-label {
    font-size: 0.72rem; font-weight: 500;
    color: var(--text-2);
    margin-bottom: 0.3rem;
}

.trend-value {
    font-size: 1.15rem; font-weight: 800;
    color: var(--text);
}

.trend-value.up { color: var(--holo); }
.trend-value.down { color: var(--magenta); }

.trend-sub {
    font-size: 0.65rem; font-weight: 500;
    color: var(--text-3);
    margin-top: 0.15rem;
}

/* ── PANEL (generic card wrapper) ── */
.panel {
    position: relative;
    background:
        linear-gradient(135deg, rgba(91,79,232,0.04) 0%, rgba(232,79,160,0.02) 100%),
        var(--bg-2);
    border: 2px solid rgba(91,79,232,0.28);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.3s var(--ease);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(91,79,232,0.04);
}

.panel::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--magenta));
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0.5;
}

.panel:hover {
    border-color: rgba(91,79,232,0.50);
    box-shadow: 0 0 25px rgba(91,79,232,0.08);
}

.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-title {
    font-size: 0.85rem; font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* ── Chips (filter buttons) ── */
.chart-toolbar { display: flex; gap: 0.3rem; }

.chip {
    font-family: var(--font);
    font-size: 0.72rem; font-weight: 600;
    color: var(--text-3);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.25em 0.9em;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.chip:hover { color: var(--text-2); border-color: var(--indigo-dim); }
.chip.active { color: var(--indigo); border-color: var(--indigo); background: var(--indigo-dim); }

/* ── BAR CHART ── */
.bar-chart-area {
    display: flex;
    gap: 0;
}

.bar-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 180px;
    padding-right: 0.5rem;
    min-width: 32px;
}

.bar-y-tick {
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--text-3);
    line-height: 1;
}

.bar-chart-inner {
    flex: 1;
    min-width: 0;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 180px;
    border-left: 1px solid rgba(255,255,255,0.06);
}

.bar-col {
    flex: 1;
    min-width: 0;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--indigo) 0%, rgba(91,79,232,0.4) 100%);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative;
}

.bar-col:hover {
    background: linear-gradient(180deg, var(--magenta) 0%, rgba(232,79,160,0.5) 100%);
    box-shadow: 0 0 14px var(--magenta-glow);
}

.bar-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%; transform: translateX(-50%);
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3em 0.6em;
    font-size: 0.7rem; font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.15s;
    z-index: 10;
}

.bar-col:hover .bar-tooltip { opacity: 1; }

.bar-labels {
    display: flex; gap: 3px;
    padding-top: 0.4rem;
}

.bar-labels span {
    flex: 1;
    font-size: 0.6rem; font-weight: 500;
    color: var(--text-3);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-source {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-3);
    text-align: right;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* ── LINE CHARTS ── */
.line-chart-wrap {
    height: 160px;
    position: relative;
}

.line-chart-wrap canvas { width: 100%; height: 100%; display: block; }

.chart-range {
    display: flex; justify-content: space-between;
    font-size: 0.7rem; font-weight: 600;
    color: var(--text-3);
    margin-top: 0.4rem;
}

/* ── YEAR COMPARISON ── */
.yoy-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.yoy-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(91,79,232,0.04) 0%, rgba(232,79,160,0.02) 100%),
        var(--bg-3);
    border: 2px solid rgba(91,79,232,0.28);
    border-radius: var(--radius);
    padding: 1rem 0.6rem;
    text-align: center;
    transition: all 0.3s var(--ease);
    overflow: hidden;
}

.yoy-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--magenta));
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0.35;
}

.yoy-card:hover {
    background: rgba(91,79,232,0.08);
    border-color: rgba(91,79,232,0.45);
    box-shadow: 0 0 18px rgba(91,79,232,0.06);
    transform: translateY(-1px);
}

.yoy-year {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--indigo);
    margin-bottom: 0.3rem;
}

.yoy-val {
    font-size: 1.4rem; font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.yoy-bar { height: 3px; background: var(--bg-1); border-radius: 3px; overflow: hidden; margin-bottom: 0.4rem; }
.yoy-fill { height: 100%; background: linear-gradient(90deg, var(--indigo), var(--magenta)); border-radius: 3px; width: 0%; transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1); }

.yoy-delta { font-size: 0.72rem; font-weight: 600; min-height: 1em; }
.yoy-delta.down { color: var(--magenta); }
.yoy-delta.up { color: var(--holo); }

/* ── FEEDBACK BAR ── */
.feedback-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background:
        linear-gradient(135deg, rgba(91,79,232,0.04) 0%, rgba(232,79,160,0.02) 100%),
        var(--bg-2);
    border: 1px solid rgba(91,79,232,0.18);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}

.feedback-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-2);
}

.feedback-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.feedback-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--indigo);
    text-decoration: none;
    padding: 0.35em 1em;
    border: 1px solid rgba(91,79,232,0.25);
    border-radius: 50px;
    transition: all 0.25s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.feedback-link:hover {
    background: var(--indigo-dim);
    border-color: var(--indigo);
    color: var(--text);
    box-shadow: 0 0 12px var(--indigo-glow);
}

.feedback-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ── FOOTER ── */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 0 0 1.5rem;
    text-align: center;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91,79,232,0.25), rgba(232,79,160,0.15), transparent);
    margin-bottom: 0.2rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--indigo), var(--magenta));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo span {
    font-weight: 400;
    -webkit-text-fill-color: var(--text-3);
}

.footer-sep {
    color: rgba(255,255,255,0.12);
    font-size: 0.7rem;
    user-select: none;
}

.footer-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-3);
    margin: 0;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer-link:hover {
    color: var(--indigo);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-3);
}

.footer-seo {
    font-size: 0.58rem;
    font-weight: 400;
    color: rgba(255,255,255,0.12);
    letter-spacing: 0.02em;
}

/* ── RESPONSIVE ── */
/* ── TABLET (≤900px) ── */
@media (max-width: 900px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .trend-row { grid-template-columns: repeat(2, 1fr); }
    .yoy-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── MOBILE (≤700px) ── */
@media (max-width: 700px) {
    .container { padding: 0.75rem 0.8rem 2rem; }

    .topbar-brand { font-size: 1.6rem; }

    .cta-banner { padding: 0.5rem 0.8rem; gap: 0.4rem; }
    .cta-banner-text { font-size: 0.75rem; }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.2rem;
        padding: 1.25rem;
    }
    .hero-sticker { justify-self: center; }
    .sticker-img { width: 90px; height: 90px; }
    .hero-current-number { font-size: 3rem; }
    .hero-current-meta { justify-content: center; }
    .hero-total { justify-content: center; }
    .hero-source { align-items: center; }

    .hero-progress-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
    }

    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .stat-value { font-size: 1.4rem; }

    .capsule-insight {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.25rem;
    }
    .capsule-visual { justify-self: center; }
    .capsule-img { width: 100px; }
    .capsule-stats { justify-content: center; }
    .capsule-rarity { justify-content: center; }
    .capsule-stat-value { font-size: 1.3rem; }

    .trend-row { grid-template-columns: repeat(2, 1fr); }

    .panel { padding: 1rem; }
    .panel-title { font-size: 0.85rem; }

    .yoy-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
    .yoy-val { font-size: 1.1rem; }

    .line-chart-wrap { height: 130px; }
    .bar-chart-wrap { height: 130px; }
}

/* ── SMALL PHONE (≤420px) ── */
@media (max-width: 420px) {
    .container { padding: 0.5rem 0.6rem 1.5rem; }

    .topbar-brand { font-size: 1.4rem; }

    .cta-banner-text { font-size: 0.7rem; }
    .cta-banner-icon { font-size: 0.85rem; }

    .hero { padding: 1rem; }
    .sticker-img { width: 75px; height: 75px; }
    .hero-current-number { font-size: 2.5rem; }
    .hero-total-number { font-size: 1.5rem; }

    .stats-row { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
    .stat-value { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }

    .yoy-grid { grid-template-columns: repeat(2, 1fr); }
    .yoy-val { font-size: 1rem; }

    .chart-toolbar { flex-wrap: wrap; gap: 0.3rem; }
    .chart-btn { font-size: 0.6rem; padding: 0.25em 0.6em; }

    .trend-row { grid-template-columns: 1fr 1fr; }
    .trend-value { font-size: 1.2rem; }
}
