:root {
    --bg: #04050a;
    --bg-alt: #0b0f1d;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --stroke: rgba(255, 255, 255, 0.12);
    --text: #f4f6fb;
    --muted: #a5afc7;
    --accent: #9efcff;
    --accent-2: #9d7bff;
    --accent-3: #ffb45e;
    --danger: #ff8fb1;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 15% 20%, rgba(158, 252, 255, 0.05), transparent 30%),
                radial-gradient(circle at 70% -10%, rgba(255, 180, 94, 0.06), transparent 26%),
                radial-gradient(circle at 70% 80%, rgba(157, 123, 255, 0.06), transparent 34%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
    margin: 0;
}

.cursor-glow {
    position: fixed;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(158, 252, 255, 0.55) 0%, rgba(157, 123, 255, 0.35) 35%, rgba(255, 180, 94, 0.22) 60%, transparent 78%);
    filter: blur(28px);
    mix-blend-mode: screen;
    box-shadow: 0 0 140px rgba(158, 252, 255, 0.25), 0 0 90px rgba(157, 123, 255, 0.2);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0.82;
    z-index: 2;
}
.cursor-glow::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
    filter: blur(18px);
    opacity: 0.6;
}

.alon-pointer {
    position: absolute;
    left: -280px;
    top: 28vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
    will-change: transform;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

body:has(.modal.active) .alon-pointer,
body:has(.loading-overlay.active) .alon-pointer {
    opacity: 0.3;
    filter: brightness(0.5);
}

.alon-image {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(158, 252, 255, 0.4));
    transition: transform 0.3s ease;
}

.alon-text {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(158, 252, 255, 0.15), rgba(157, 123, 255, 0.15));
    border: 1px solid rgba(158, 252, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(158, 252, 255, 0.2);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

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

@media (max-width: 992px) {
    .alon-pointer {
        left: -210px;
        top: 26vh;
    }
    .alon-image {
        width: 180px;
    }
    .alon-text {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 640px) {
    .alon-pointer {
        left: -140px;
        top: 24vh;
    }
    .alon-image {
        width: 140px;
    }
    .alon-text {
        font-size: 0.75rem;
        padding: 5px 10px;
        white-space: normal;
        max-width: 90px;
    }
}

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}

.grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.blur {
    position: absolute;
    width: 420px;
    height: 420px;
    filter: blur(140px);
    opacity: 0.6;
}

.blur-a {
    top: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(158, 252, 255, 0.5), transparent 65%);
}

.blur-b {
    bottom: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(157, 123, 255, 0.55), transparent 65%);
}

.grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.7), transparent 72%);
    z-index: -1;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 20px 96px;
    position: relative;
}

.recap-btn {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 32px auto 32px;
    display: block;
    padding: 24px 40px;
    background: linear-gradient(135deg, rgba(158, 252, 255, 0.35), rgba(157, 123, 255, 0.4), rgba(255, 180, 94, 0.3));
    border: 3px solid rgba(158, 252, 255, 0.6);
    border-radius: 24px;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 
                0 0 50px rgba(158, 252, 255, 0.3),
                0 0 100px rgba(157, 123, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    animation: pulse-glow 2s ease-in-out infinite;
}

.recap-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(158, 252, 255, 0.2), rgba(157, 123, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: shimmer 3s infinite;
}

.recap-btn::after {
    content: '👈';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 
                    0 0 50px rgba(158, 252, 255, 0.3),
                    0 0 100px rgba(157, 123, 255, 0.2);
    }
    50% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                    0 0 70px rgba(158, 252, 255, 0.5),
                    0 0 130px rgba(157, 123, 255, 0.35);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.recap-btn:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 
                0 0 80px rgba(158, 252, 255, 0.5),
                0 0 150px rgba(157, 123, 255, 0.4);
    border-color: rgba(158, 252, 255, 0.9);
    background: linear-gradient(135deg, rgba(158, 252, 255, 0.45), rgba(157, 123, 255, 0.5), rgba(255, 180, 94, 0.4));
}

.recap-btn:hover::before {
    opacity: 1;
}

.recap-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow);
}

.modal-content h3 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.modal-subtitle {
    color: var(--muted);
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.wallet-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', monospace;
}

.wallet-input:focus {
    outline: none;
    border-color: rgba(158, 252, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(158, 252, 255, 0.1);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(158, 252, 255, 0.2), rgba(157, 123, 255, 0.2));
    color: var(--text);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 10, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(158, 252, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-content h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.loading-text {
    color: var(--muted);
    margin: 0 0 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(158, 252, 255, 0.8), rgba(157, 123, 255, 0.8));
    border-radius: 999px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(158, 252, 255, 0.5);
}

.progress-text {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.recap-section {
    margin-top: 48px;
    margin-bottom: 48px;
    animation: fadeInUp 0.45s ease-out;
}

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

.recap-container {
    background: #0f1627;
    border: 1px solid #1f2b44;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.recap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.recap-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: #121b2f;
    color: #c1cce0;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid #22314d;
}

.recap-actions {
    display: flex;
    gap: 8px;
}

.btn-tertiary {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #22314d;
    background: #121b2f;
    color: #e9edf5;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tertiary:hover {
    border-color: rgba(158, 252, 255, 0.45);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.recap-title {
    margin: 0 0 6px;
    font-size: 2.7rem;
    letter-spacing: -0.02em;
}

.recap-subtitle {
    margin: 0 0 28px;
    color: #c1cce0;
    font-size: 1rem;
}

.recap-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
    padding: 20px;
    background: #111a2f;
    border: 1px solid #22314d;
    border-radius: 16px;
    margin-bottom: 20px;
}

.recap-hero-text .recap-value {
    font-size: 2.8rem;
    margin: 6px 0;
}

.recap-note {
    color: #c1cce0;
    margin: 0;
    font-size: 0.95rem;
}

.recap-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.recap-mini-card {
    background: #0f1627;
    border: 1px solid #22314d;
    border-radius: 12px;
    padding: 12px;
}

.recap-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

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

.recap-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.recap-card.clean {
    background: #111a2f;
    border: 1px solid #22314d;
    border-radius: 14px;
    padding: 16px;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.recap-label {
    color: #c1cce0;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 8px;
    font-weight: 700;
}

.recap-row-small {
    margin-top: 8px;
}

.recap-bar {
    margin-top: 12px;
    background: #162038;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #22314d;
}

.recap-bar.thin {
    height: 8px;
}

.bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.bar-fill.win { background: linear-gradient(90deg, #36d399, #16a34a); }
.bar-fill.loss { background: linear-gradient(90deg, #f87171, #dc2626); }
.bar-fill.neutral { background: linear-gradient(90deg, #94a3b8, #64748b); }

.recap-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #0f1627;
    border: 1px solid #22314d;
    color: #c1cce0;
    font-size: 0.9rem;
}

.recap-chip.win { color: #36d399; }
.recap-chip.loss { color: #f87171; }
.recap-chip.neutral { color: #cbd5e1; }

.recap-value {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.recap-value.positive { color: #36d399; }
.recap-value.negative { color: #f87171; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 12px 16px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02), rgba(158, 252, 255, 0.05));
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.logo-mark .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    box-shadow: 0 0 16px rgba(158, 252, 255, 0.8);
}

.logo-mark .word {
    font-size: 0.95rem;
    text-transform: uppercase;
}

.logo-mark .tagline {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--stroke);
    color: var(--muted);
    font-size: 0.9rem;
}

.twitter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    transition: all 0.2s ease;
    text-decoration: none;
}

.twitter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(158, 252, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.twitter-btn svg {
    width: 18px;
    height: 18px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 32px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015), rgba(158, 252, 255, 0.04));
    border: 1px solid var(--stroke);
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.hero__copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin: 10px 0 12px;
}

.hero__copy .lede {
    color: var(--muted);
    max-width: 640px;
    margin: 0 0 18px;
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 12px;
}

.pill {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(158, 252, 255, 0.08));
    color: var(--text);
    font-size: 0.95rem;
}

.pill--quiet {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.metric {
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric__label {
    color: var(--muted);
    font-size: 0.9rem;
}

.metric__value {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero__panel {
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02), rgba(255, 180, 94, 0.05));
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.hero__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(158, 252, 255, 0.14), transparent 40%);
    pointer-events: none;
}

.theme-toggle {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(158, 252, 255, 0.12));
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(158, 252, 255, 0.4);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(158, 252, 255, 0.2);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-light {
    --bg: #f7f9fc;
    --bg-alt: #ffffff;
    --text: #0f1627;
    --muted: #4b566c;
    --stroke: rgba(15, 22, 39, 0.08);
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
    background: radial-gradient(circle at 20% 25%, rgba(158, 252, 255, 0.2), transparent 45%),
                radial-gradient(circle at 75% 10%, rgba(255, 180, 94, 0.18), transparent 40%),
                radial-gradient(circle at 60% 78%, rgba(157, 123, 255, 0.18), transparent 42%),
                #ffffff;
}

.panel__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.panel__kicker {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.86rem;
}

.panel__meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.panel__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.panel__stat {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
}

.panel__stat .label {
    color: var(--muted);
    font-size: 0.9rem;
}

.panel__stat .value {
    display: block;
    margin-top: 4px;
    font-size: 1.2rem;
    font-weight: 700;
}

.panel__stat.muted .value {
    font-weight: 500;
    color: var(--muted);
}

.section {
    margin-top: 48px;
}

.section__head {
    margin-bottom: 22px;
}

.section__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
}

.section__head h2 {
    margin: 10px 0 8px;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.section__description {
    color: var(--muted);
    max-width: 760px;
    margin: 0;
    line-height: 1.5;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.018), rgba(255, 180, 94, 0.04));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(158, 252, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.stat-card.highlight {
    border-color: rgba(158, 252, 255, 0.6);
    background: linear-gradient(180deg, rgba(158, 252, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.stat-card .label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.86rem;
    margin: 0 0 6px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.stat-card .note {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.coin-card {
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(157, 123, 255, 0.05));
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.coin-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--stroke);
    padding-bottom: 10px;
}

.coin-card .rank {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    color: #03040a;
    font-weight: 800;
}

.coin-card .label {
    color: var(--muted);
    margin: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.coin-card .value {
    margin: 2px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.coin-card__body {
    display: flex;
    gap: 12px;
}

.coin-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: #0a0c13;
    flex-shrink: 0;
}

.coin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.coin-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.coin-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.coin-note {
    margin: 0;
    color: var(--muted);
}

.section--split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.drain-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    align-items: stretch;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01), rgba(255, 180, 94, 0.05));
    box-shadow: var(--shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.drain-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(255, 180, 94, 0.12), transparent 45%);
    pointer-events: none;
}

.drain-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drain-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.drain-card .label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin: 0;
}

.drain-card .value {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.drain-card .figure {
    margin: 0;
    color: var(--danger);
    font-weight: 700;
}

.drain-card .note {
    margin: 0;
    color: var(--muted);
}

.footnotes .foot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.foot-card {
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.foot-card .label {
    color: var(--muted);
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.86rem;
}

.foot-card .value {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 700;
}

.foot-card .note {
    margin: 0;
    color: var(--muted);
}

.ca-section {
    margin-top: 48px;
    margin-bottom: 32px;
}

.ca-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    justify-content: center;
}

.ca-label {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 0;
}

.ca-value {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 992px) {
    .page {
        padding: 64px 18px 84px;
    }
    .recap-btn {
        font-size: 1.1rem;
        padding: 18px 24px;
    }
    .recap-btn::after {
        display: none;
    }
    .recap-container {
        padding: 32px;
    }
    .recap-title {
        font-size: 2.4rem;
    }
    .recap-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .recap-stats-row.hero {
        grid-template-columns: 1fr;
    }
    .recap-hero-card .recap-value {
        font-size: 2.8rem;
    }
    .hero {
        grid-template-columns: 1fr;
    }
    .hero__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .drain-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .recap-btn {
        font-size: 1rem;
        padding: 16px 20px;
        margin-bottom: 24px;
    }
    .recap-btn::after {
        display: none;
    }
    .recap-stats-row {
        grid-template-columns: 1fr;
    }
    .recap-container {
        padding: 24px;
    }
    .recap-title {
        font-size: 2rem;
    }
    .recap-subtitle {
        font-size: 0.95rem;
    }
    .recap-hero-card {
        padding: 24px;
    }
    .recap-hero-card .recap-value {
        font-size: 2.2rem;
    }
    .recap-value {
        font-size: 1.8rem;
    }
    .recap-card {
        padding: 20px;
    }
    .modal-content {
        padding: 24px;
    }
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .topbar-actions {
        width: 100%;
        gap: 8px;
    }
    .hero {
        padding: 20px;
    }
    .hero__metrics {
        grid-template-columns: 1fr;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .coin-card__body {
        flex-direction: column;
    }
}
