/* ================================================================
   CRYPTORISK AI — BLOOD LEDGER EDITION
   Full rebuild — bitcoin-gold × fresh-blood horror, extreme 3D,
   strict symmetry across every breakpoint.
   ================================================================ */

:root {
    /* === CORE PALETTE === */
    --void: #0a0202;
    --void-deep: #050101;
    --blood-black: #150404;
    --charcoal: #1c0808;
    --ash: #241010;

    --blood-dark: #4d0008;
    --blood: #8c0016;
    --blood-bright: #d4102c;
    --blood-glow: #ff1e3c;
    --blood-light: #ff5470;

    --btc-gold: #f7931a;
    --btc-gold-light: #ffc266;
    --btc-gold-dark: #b3690f;
    --btc-glow: rgba(247, 147, 26, 0.55);

    --bone: #ece4d8;
    --bone-dim: #b9a99a;
    --bone-faint: #7a6c60;

    /* === GLASS / PANEL LAYERS === */
    --glass: rgba(255, 245, 235, 0.03);
    --glass-strong: rgba(255, 245, 235, 0.06);
    --panel: rgba(21, 4, 4, 0.82);
    --panel-2: rgba(28, 8, 8, 0.88);
    --vein-wash: rgba(140, 0, 22, 0.14);

    --line: rgba(212, 16, 44, 0.22);
    --line-strong: rgba(212, 16, 44, 0.5);
    --line-gold: rgba(247, 147, 26, 0.35);

    /* === TEXT === */
    --text-primary: var(--bone);
    --text-secondary: var(--bone-dim);
    --text-muted: var(--bone-faint);

    /* === RISK SCALE (kept semantic, re-tuned to palette) === */
    --risk-low: #3ddc84;
    --risk-moderate: var(--btc-gold);
    --risk-elevated: #ff8a3d;
    --risk-high: #ff4d3d;
    --risk-critical: var(--blood-glow);

    /* === GRADIENTS === */
    --gradient-blood: linear-gradient(135deg, var(--blood-dark) 0%, var(--blood-bright) 50%, var(--blood-glow) 100%);
    --gradient-gold: linear-gradient(135deg, var(--btc-gold-dark) 0%, var(--btc-gold) 50%, var(--btc-gold-light) 100%);
    --gradient-ledger: linear-gradient(90deg, var(--blood-dark) 0%, var(--blood-bright) 45%, var(--btc-gold) 100%);
    --gradient-panel: linear-gradient(160deg, rgba(140, 0, 22, 0.12), rgba(10, 2, 2, 0.6));
    --gradient-void: radial-gradient(ellipse at top, var(--charcoal) 0%, var(--void) 70%);

    /* === SHADOWS (deep, carved) === */
    --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.75);
    --shadow-deep: 0 40px 90px rgba(0, 0, 0, 0.9), 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-carve: 0 10px 0 var(--void-deep), 0 20px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow-blood: 0 0 70px rgba(212, 16, 44, 0.45);
    --shadow-glow-gold: 0 0 70px var(--btc-glow);

    /* === RADIUS — sharper, ritual-carved (not soft SaaS pill everywhere) === */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* === EASING === */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-carve: cubic-bezier(0.65, 0, 0.35, 1);

    /* === TYPE === */
    --font-display: 'Cinzel', 'Iowan Old Style', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* === SYMMETRIC SPACING SCALE (fluid, same scale every breakpoint) === */
    --space-1: clamp(6px, 0.6vw, 8px);
    --space-2: clamp(10px, 1.1vw, 14px);
    --space-3: clamp(16px, 1.8vw, 22px);
    --space-4: clamp(22px, 2.6vw, 32px);
    --space-5: clamp(32px, 4vw, 48px);
    --space-6: clamp(48px, 6vw, 80px);
    --gutter: clamp(20px, 4vw, 48px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body.animations-paused *, body.animations-paused *::before, body.animations-paused *::after {
    animation-play-state: paused !important;
    transition: none !important;
}

body {
    background: var(--void);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.55;
    overflow-x: clip;
    overflow-y: auto;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--blood-bright);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--btc-gold) 0%, var(--blood-bright) 100%);
    border-radius: 10px;
    border: 2px solid var(--void);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--btc-gold) var(--void);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--btc-gold);
    outline-offset: 3px;
}

/* ================================================================
   DRIPPING EDGE — signature reusable device
   A jagged, uneven blood-drip silhouette along the bottom of a panel.
   Applied via ::after on .drip-edge elements.
   ================================================================ */

.drip-edge {
    position: relative;
}

.drip-edge::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -13px;
    height: 22px;
    background: var(--blood-bright);
    opacity: 0.9;
    clip-path: polygon(0% 0%, 4% 0%, 5% 55%, 8% 100%, 11% 45%, 15% 0%,
            22% 0%, 23% 70%, 26% 100%, 29% 30%, 33% 0%,
            41% 0%, 42% 60%, 45% 100%, 48% 40%, 52% 0%,
            60% 0%, 61% 80%, 64% 100%, 67% 20%, 71% 0%,
            79% 0%, 80% 55%, 83% 100%, 86% 35%, 90% 0%,
            96% 0%, 97% 65%, 100% 100%, 100% 0%);
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
    pointer-events: none;
    z-index: 2;
}

/* ================================================================
   AMBIENT BACKGROUND — pulsing vein field
   ================================================================ */

.horror-bg-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--gradient-void);
}

.horror-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(140, 0, 22, 0.45) 0%, rgba(28, 8, 8, 0.9) 65%, var(--void-deep) 100%);
    z-index: 1;
    opacity: 0.8;
}

.horror-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to bottom, rgba(10, 2, 2, 0.5) 0%, rgba(30, 0, 4, 0.65) 50%, rgba(5, 1, 1, 0.97) 100%),
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
}

.ambient-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(212, 16, 44, 0.16), transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 30%, rgba(247, 147, 26, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(140, 0, 22, 0.14), transparent 60%);
    pointer-events: none;
    animation: veinPulse 6s ease-in-out infinite;
}

@keyframes veinPulse {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }
}

.landing-noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-background {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(212, 16, 44, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 16, 44, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 20%, transparent 80%);
    animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 64px 64px, 64px 64px;
    }
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    will-change: transform;
}

.bg-orb-purple {
    width: 520px;
    height: 520px;
    top: -10%;
    left: -8%;
    background: radial-gradient(circle, var(--blood), transparent 70%);
    animation: orbFloat1 22s var(--ease-smooth) infinite;
}

.bg-orb-cyan {
    width: 460px;
    height: 460px;
    top: 30%;
    right: -10%;
    background: radial-gradient(circle, var(--btc-gold-dark), transparent 70%);
    animation: orbFloat2 26s var(--ease-smooth) infinite;
}

.bg-orb-blue {
    width: 400px;
    height: 400px;
    bottom: -12%;
    left: 30%;
    background: radial-gradient(circle, var(--blood-dark), transparent 70%);
    animation: orbFloat3 30s var(--ease-smooth) infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    33% {
        transform: translate3d(60px, 80px, 0) scale(1.15);
    }

    66% {
        transform: translate3d(-40px, 40px, 0) scale(0.9);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-70px, -50px, 0) scale(1.2);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(50px, -60px, 0) scale(1.1);
    }
}

/* ================================================================
   PHYSICS TOKENS — carved bitcoin medallions
   ================================================================ */

.physics-tokens {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    perspective: 1200px;
}

.physics-token {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--btc-gold-light);
    background: radial-gradient(circle at 35% 30%, #2a1200, var(--void-deep) 75%);
    border: 2px solid var(--btc-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-carve), inset 0 2px 0 rgba(255, 195, 100, 0.35), inset 0 -6px 10px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease-out);
}

.token-btc {
    width: 66px;
    height: 66px;
    font-size: 26px;
    top: 18%;
    left: 8%;
    box-shadow: var(--shadow-carve), 0 0 34px var(--btc-glow);
    animation: tokenFloat1 9s var(--ease-smooth) infinite, tokenSpin 18s linear infinite;
}

.token-eth {
    width: 54px;
    height: 54px;
    font-size: 22px;
    top: 62%;
    left: 12%;
    color: var(--blood-light);
    border-color: var(--blood-dark);
    box-shadow: var(--shadow-carve), 0 0 34px rgba(212, 16, 44, 0.5);
    animation: tokenFloat2 11s var(--ease-smooth) infinite, tokenSpin 22s linear infinite reverse;
}

.token-sol {
    width: 48px;
    height: 48px;
    font-size: 18px;
    top: 15%;
    right: 10%;
    box-shadow: var(--shadow-carve), 0 0 30px var(--btc-glow);
    animation: tokenFloat3 10s var(--ease-smooth) infinite, tokenSpin 16s linear infinite;
}

.token-node {
    width: 36px;
    height: 36px;
    font-size: 16px;
    top: 72%;
    right: 16%;
    color: var(--blood-light);
    border-color: var(--blood);
    box-shadow: var(--shadow-carve), 0 0 26px rgba(212, 16, 44, 0.4);
    animation: tokenFloat1 8s var(--ease-smooth) infinite reverse;
}

@keyframes tokenFloat1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateZ(0deg);
    }

    25% {
        transform: translate3d(24px, -34px, 40px) rotateZ(8deg);
    }

    50% {
        transform: translate3d(-14px, -60px, 0) rotateZ(-6deg);
    }

    75% {
        transform: translate3d(-30px, -20px, 30px) rotateZ(4deg);
    }
}

@keyframes tokenFloat2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateZ(0deg);
    }

    30% {
        transform: translate3d(-30px, -40px, 20px) rotateZ(-10deg);
    }

    60% {
        transform: translate3d(20px, -70px, 0) rotateZ(6deg);
    }
}

@keyframes tokenFloat3 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateZ(0deg);
    }

    40% {
        transform: translate3d(-24px, 44px, 30px) rotateZ(10deg);
    }

    70% {
        transform: translate3d(18px, 20px, 0) rotateZ(-8deg);
    }
}

@keyframes tokenSpin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

#meteor-canvas {
    position: fixed;
    inset: 0;
    z-index: -5;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: block;
}

/* ================================================================
   NAVBAR — carved obsidian bar, gold-blood seam
   ================================================================ */

@keyframes brandBorderSpin {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes brandPulse {

    0%,
    100% {
        box-shadow: 0 0 14px rgba(212, 16, 44, 0.5), 0 4px 20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 150, 150, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 16, 44, 0.9), 0 4px 24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 150, 150, 0.3);
    }
}

.landing-navbar,
.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--gutter);
    background: linear-gradient(180deg, rgba(21, 4, 4, 0.96) 0%, rgba(5, 1, 1, 0.86) 100%);
    backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 2px solid var(--line-gold);
    box-shadow: 0 4px 0 rgba(60, 0, 4, 0.5), 0 14px 36px rgba(0, 0, 0, 0.75);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-md);
    background: rgba(10, 2, 2, 0.92);
    border: 1.5px solid transparent;
    background-clip: padding-box;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
    animation: brandPulse 3s ease-in-out infinite;
    text-decoration: none;
}

.brand::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: calc(var(--radius-md) + 1px);
    background: linear-gradient(270deg, var(--blood-dark), var(--blood-glow), var(--btc-gold), var(--blood-glow), var(--blood-dark));
    background-size: 400% 400%;
    animation: brandBorderSpin 4s linear infinite;
    z-index: -1;
    opacity: 0.85;
}

.brand:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-glow-blood), 0 8px 30px rgba(0, 0, 0, 0.75);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0;
    color: var(--btc-gold-light);
    background: radial-gradient(circle at 35% 25%, #2a0d02, #0d0303 75%);
    border: 1px solid var(--btc-gold-dark);
    box-shadow: 0 6px 0 var(--void-deep), 0 8px 16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 190, 120, 0.4);
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
    flex-shrink: 0;
}

.brand:hover .brand-mark {
    transform: rotateY(18deg) rotateX(-8deg) scale(1.12) translateY(-2px);
    box-shadow: 0 10px 0 var(--void-deep), 0 16px 26px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 190, 120, 0.6), 0 0 24px var(--btc-glow);
}

.brand-name,
.brand-copy {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.brand-ai {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    font-weight: 600;
    margin-top: 1px;
    background: var(--gradient-blood);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-name span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-nav-status,
.terminal-status {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding: 6px 14px;
    background: rgba(10, 2, 2, 0.85);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--risk-low);
    box-shadow: 0 0 10px rgba(61, 220, 132, 0.8);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.35);
    }
}

@keyframes logoutGlow {
    0% {
        box-shadow: 0 4px 0 var(--void-deep), 0 8px 16px rgba(0, 0, 0, 0.6), 0 0 8px rgba(212, 16, 44, 0.3), inset 0 1px 0 rgba(255, 120, 120, 0.4);
    }

    100% {
        box-shadow: 0 4px 0 var(--void-deep), 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 24px rgba(212, 16, 44, 0.75), inset 0 1px 0 rgba(255, 150, 150, 0.6);
    }
}

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(180deg, var(--blood-bright) 0%, var(--blood-dark) 100%);
    border: 1px solid var(--blood-glow);
    box-shadow: 0 5px 0 var(--void-deep), 0 8px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 140, 140, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.15s var(--ease-carve), box-shadow 0.15s var(--ease-carve);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: logoutGlow 1.8s ease-in-out infinite alternate;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.logout-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.logout-button:hover {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--void-deep), 0 6px 12px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 16, 44, 0.55), inset 0 1px 0 rgba(255, 120, 120, 0.4);
}

.logout-button:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 var(--void-deep), 0 2px 6px rgba(0, 0, 0, 0.55), inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

/* ================================================================
   HORROR / METEOR EFFECTS
   ================================================================ */

.horror-monster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    opacity: 0.85;
    animation: monsterSway 12s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 24px rgba(212, 16, 44, 0.5));
}

@keyframes monsterSway {
    0% {
        transform: rotate(-1deg) scale(1.02);
    }

    100% {
        transform: rotate(1deg) scale(1.05);
    }
}

.fog-layer {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 120%;
    height: 60%;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.fog-shape {
    position: absolute;
    bottom: 0;
    width: 150%;
    height: 100%;
    background: linear-gradient(to top, var(--void) 0%, rgba(60, 0, 6, 0.4) 40%, transparent 100%);
    filter: blur(40px);
    opacity: 0.7;
    animation: fogDrift 20s linear infinite;
}

.fog-1 {
    left: -20%;
    animation-duration: 25s;
}

.fog-2 {
    left: -10%;
    animation-duration: 35s;
    animation-direction: reverse;
    background: linear-gradient(to top, transparent 0%, rgba(80, 40, 0, 0.18) 50%, transparent 100%);
}

.fog-3 {
    left: -5%;
    animation-duration: 30s;
}

@keyframes fogDrift {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5%);
    }

    100% {
        transform: translateX(0);
    }
}

.meteor-layer {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    z-index: 3;
    pointer-events: none;
}

.bitcoin-meteor {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: meteorFloat 6s ease-in-out infinite;
}

.meteor-coin {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: bold;
    color: var(--btc-gold-light);
    text-shadow: 0 0 44px var(--btc-glow);
    animation: meteorSpin 8s linear infinite;
    z-index: 2;
}

.meteor-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 60px;
    background: linear-gradient(90deg, transparent, var(--blood-glow) 80%, #fff 100%);
    filter: blur(20px);
    transform-origin: right center;
    transform: translate(-100%, -50%) rotate(-30deg);
    opacity: 0.6;
}

.meteor-particles {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.energy-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 2px;
    background: var(--blood-light);
    box-shadow: 0 0 10px var(--blood-glow);
    transform-origin: left center;
    opacity: 0;
    animation: lightningCrackle 4s infinite;
}

.line-1 {
    transform: rotate(0deg);
    animation-delay: 0s;
}

.line-2 {
    transform: rotate(72deg);
    animation-delay: 1s;
}

.line-3 {
    transform: rotate(144deg);
    animation-delay: 2s;
}

.line-4 {
    transform: rotate(216deg);
    animation-delay: 3s;
}

@keyframes lightningCrackle {

    0%,
    90% {
        opacity: 0;
        transform: scaleX(0);
    }

    92% {
        opacity: 1;
        transform: scaleX(1);
    }

    94% {
        opacity: 0;
        transform: scaleX(0);
    }

    96% {
        opacity: 0.8;
        transform: scaleX(0.8);
    }

    98%,
    100% {
        opacity: 0;
        transform: scaleX(0);
    }
}

@keyframes meteorSpin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

@keyframes meteorFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ================================================================
   HERO — symmetric two-column, collapses to centered single column
   ================================================================ */

.hero-section {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
    max-width: 1360px;
    margin: 0 auto;
    padding: clamp(60px, 10vw, 110px) var(--gutter) var(--space-6);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--blood-light);
    padding: 8px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--btc-gold);
    box-shadow: 0 0 10px var(--btc-glow);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.hero-title span {
    display: block;
    background: var(--gradient-ledger);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 30px rgba(212, 16, 44, 0.35));
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 52ch;
    margin-bottom: var(--space-5);
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

/* === CARVED 3D BUTTONS — bitcoin slab pressed into blood === */
.hero-primary-button,
.analyze-button,
.final-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(180deg, var(--blood-bright) 0%, var(--blood-dark) 100%);
    border: 1px solid var(--blood-glow);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s var(--ease-carve), box-shadow 0.15s var(--ease-carve);
    box-shadow: 0 8px 0 var(--void-deep), 0 18px 26px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 140, 140, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    gap: 8px;
}

@keyframes signInPulse {
    0% {
        box-shadow: 0 4px 0 var(--void-deep), 0 8px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 140, 140, 0.5), 0 0 8px rgba(255, 20, 50, 0.4);
    }

    100% {
        box-shadow: 0 4px 0 var(--void-deep), 0 8px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 160, 160, 0.7), 0 0 26px rgba(255, 40, 60, 0.9), 0 0 50px rgba(180, 0, 20, 0.5);
    }
}

.nav-login-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(180deg, var(--blood-glow) 0%, var(--blood-dark) 100%);
    border: 1px solid var(--blood-light);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s var(--ease-carve), box-shadow 0.15s var(--ease-carve);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    gap: 6px;
    box-shadow: 0 0 18px rgba(255, 40, 60, 0.6), 0 5px 0 var(--void-deep);
    animation: signInPulse 1.4s ease-in-out infinite alternate;
    white-space: nowrap;
}

.hero-primary-button::before,
.analyze-button::before,
.nav-login-button::before,
.final-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
    z-index: 1;
}

.hero-primary-button:hover,
.analyze-button:hover,
.nav-login-button:hover,
.final-button:hover {
    transform: translateY(3px) rotateX(4deg);
    box-shadow: 0 5px 0 var(--void-deep), 0 12px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 140, 140, 0.6);
    background: linear-gradient(180deg, var(--blood) 0%, var(--blood-dark) 100%);
}

.hero-primary-button:active,
.analyze-button:active,
.nav-login-button:active,
.final-button:active {
    transform: translateY(7px) rotateX(8deg);
    box-shadow: 0 0 0 var(--void-deep), 0 5px 10px rgba(0, 0, 0, 0.5), inset 0 3px 6px rgba(0, 0, 0, 0.6);
}

.button-glow {
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent, rgba(247, 200, 130, 0.55), transparent 30%);
    animation: rotateGlow 2s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.2s;
}

.hero-primary-button:hover .button-glow {
    opacity: 1;
}

@keyframes rotateGlow {
    to {
        transform: rotate(360deg);
    }
}

.button-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.button-arrow {
    transition: transform 0.3s var(--ease-out);
}

.hero-primary-button:hover .button-arrow {
    transform: translateX(4px);
}

.hero-secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--panel);
    border: 1px solid var(--line-gold);
    transition: all 0.35s var(--ease-out);
}

.hero-secondary-button:hover {
    background: var(--glass-strong);
    border-color: var(--btc-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-gold);
}

.hero-trust-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.trust-icon {
    color: var(--btc-gold);
}

.trust-divider {
    width: 1px;
    height: 14px;
    background: var(--line-strong);
}

/* ================================================================
   HERO TERMINAL — carved obsidian slab, extreme 3D tilt
   ================================================================ */

.hero-visual {
    position: relative;
    perspective: 1400px;
}

.terminal-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(212, 16, 44, 0.32), transparent 65%);
    filter: blur(50px);
    z-index: -1;
    animation: terminalPulse 4s ease-in-out infinite;
}

@keyframes terminalPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.hero-terminal {
    position: relative;
    background: linear-gradient(160deg, rgba(28, 8, 8, 0.92), rgba(10, 2, 2, 0.97));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    transform: rotateY(-16deg) rotateX(8deg);
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-smooth);
    animation: terminalFloat 6s ease-in-out infinite;
}

.hero-visual:hover .hero-terminal {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}

@keyframes terminalFloat {

    0%,
    100% {
        transform: rotateY(-16deg) rotateX(8deg) translateY(0);
    }

    50% {
        transform: rotateY(-16deg) rotateX(8deg) translateY(-16px);
    }
}

.terminal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.terminal-dots span:nth-child(1) {
    background: var(--blood-glow);
}

.terminal-dots span:nth-child(2) {
    background: var(--btc-gold);
}

.terminal-dots span:nth-child(3) {
    background: var(--risk-low);
}

.terminal-body {
    padding: var(--space-4) var(--space-3);
}

.terminal-command {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--btc-gold-light);
    margin-bottom: var(--space-3);
}

.terminal-dollar {
    color: var(--text-muted);
    margin-right: 8px;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--btc-gold-light);
    margin-left: 6px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.terminal-line {
    height: 1px;
    background: var(--line);
    margin-bottom: var(--space-3);
}

.terminal-live-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--risk-low);
    margin-bottom: var(--space-4);
}

.terminal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.terminal-metric {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    transition: transform 0.3s var(--ease-spring);
}

.terminal-metric:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--line-strong);
}

.terminal-metric span {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.terminal-metric strong {
    font-family: var(--font-display);
    font-size: 16px;
}

.metric-high {
    color: var(--risk-high);
}

.terminal-analysis {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    margin-bottom: var(--space-4);
}

.analysis-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--blood-light);
    margin-bottom: 8px;
}

.terminal-analysis p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.terminal-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 30px;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.terminal-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.terminal-bar span {
    display: block;
    height: 100%;
    background: var(--gradient-ledger);
    border-radius: var(--radius-sm);
    animation: barGrow 1.6s var(--ease-out) both;
    box-shadow: 0 0 12px rgba(212, 16, 44, 0.6);
}

@keyframes barGrow {
    from {
        width: 0 !important;
    }
}

.terminal-floating-label {
    position: absolute;
    bottom: -18px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 11px;
    box-shadow: var(--shadow-soft);
    transform: translateZ(40px);
}

/* ================================================================
   SECTION HEADINGS — symmetric, centered
   ================================================================ */

.landing-section {
    position: relative;
    z-index: 5;
    max-width: 1360px;
    margin: 0 auto;
    padding: var(--space-6) var(--gutter);
}

.section-heading-centered {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-6);
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--btc-gold);
    margin-bottom: var(--space-3);
}

.section-heading-centered h2,
.process-header h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.18;
    margin-bottom: var(--space-3);
}

.section-heading-centered h2 span,
.process-header h2 span {
    display: block;
    background: var(--gradient-ledger);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading-centered p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ================================================================
   FEATURE CARDS — carved slabs, symmetric 3-up grid
   ================================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    perspective: 1200px;
}

.feature-card {
    position: relative;
    background: var(--gradient-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    backdrop-filter: blur(16px);
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-spring), border-color 0.4s, box-shadow 0.4s;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-14px) rotateX(8deg) rotateY(-8deg);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-deep), var(--shadow-glow-blood);
}

.feature-card-highlight {
    background: linear-gradient(160deg, rgba(212, 16, 44, 0.16), rgba(247, 147, 26, 0.06));
    border-color: var(--line-gold);
}

.feature-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--glass-strong);
    border: 1px solid var(--line-strong);
    font-size: 22px;
    margin-bottom: var(--space-4);
    transition: transform 0.4s var(--ease-spring);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: var(--shadow-glow-blood);
}

.feature-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--blood-light);
    margin-bottom: var(--space-2);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
}

.feature-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient-ledger);
    transition: width 0.5s var(--ease-out);
}

.feature-card:hover .feature-line {
    width: 100%;
}

/* ================================================================
   PROCESS / PIPELINE — symmetric five-track sequence
   ================================================================ */

.process-section {
    position: relative;
    z-index: 5;
    max-width: 1360px;
    margin: 0 auto;
    padding: var(--space-4) var(--gutter) var(--space-6);
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.process-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 10px 18px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--risk-low);
    height: fit-content;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: var(--space-3);
}

.process-step {
    background: var(--gradient-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-3);
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-glow-gold);
}

.process-step-number {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(247, 147, 26, 0.3);
    margin-bottom: var(--space-2);
}

.process-step-content span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--btc-gold);
}

.process-step-content h3 {
    font-family: var(--font-display);
    font-size: 19px;
    margin: 10px 0;
}

.process-step-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.process-connector {
    width: 40px;
    align-self: center;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blood-bright), transparent);
    position: relative;
}

.process-connector::after {
    content: "→";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--btc-gold);
    font-size: 18px;
}

/* ================================================================
   FINAL CTA
   ================================================================ */

.final-cta {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto var(--space-6);
    padding: var(--space-6) var(--gutter);
    text-align: center;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(212, 16, 44, 0.14), rgba(247, 147, 26, 0.06));
    border: 1px solid var(--line-strong);
    overflow: hidden;
}

.final-cta-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(212, 16, 44, 0.32), transparent 60%);
    animation: terminalPulse 5s ease-in-out infinite;
    z-index: -1;
}

.final-cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.18;
    margin: var(--space-3) 0;
}

.final-cta-content h2 span {
    display: block;
    color: var(--text-secondary);
}

.final-cta-content p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 48ch;
    margin: 0 auto var(--space-4);
}

.final-button {
    margin: 0 auto;
}

/* ================================================================
   FOOTER
   ================================================================ */

.landing-footer,
.dashboard-footer {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--gutter);
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ================================================================
   FLASH MESSAGES
   ================================================================ */

.flash-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--panel);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-deep);
    font-size: 14px;
    animation: flashIn 0.4s var(--ease-spring) both;
}

.flash-success {
    border-color: rgba(61, 220, 132, 0.5);
}

.flash-error {
    border-color: rgba(255, 30, 60, 0.5);
}

@keyframes flashIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================================
   DASHBOARD SHELL
   ================================================================ */

#user-avatar-initial {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--btc-gold);
    text-shadow: 0 0 8px var(--btc-glow);
}

.dashboard-page {
    background: var(--void);
}

.nav-center {
    display: flex;
    align-items: center;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.user-name {
    font-weight: 600;
    font-size: 13.5px;
}

.user-email {
    font-size: 11.5px;
    color: var(--text-muted);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: radial-gradient(circle at 35% 25%, #2a0d02, #0d0303 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--btc-gold-dark);
    box-shadow: 0 0 20px var(--btc-glow), inset 0 0 10px rgba(212, 16, 44, 0.2);
    object-fit: cover;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px var(--btc-glow), inset 0 0 15px rgba(212, 16, 44, 0.3);
}

.dashboard-container {
    position: relative;
    z-index: 5;
    max-width: 1360px;
    margin: 0 auto;
    padding: var(--space-5) var(--gutter) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ================================================================
   TERMINAL HEADER
   ================================================================ */

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--btc-gold);
    margin-bottom: 10px;
}

.terminal-header h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    letter-spacing: 0;
}

.terminal-header h1 span {
    background: var(--gradient-ledger);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.terminal-header p {
    color: var(--text-secondary);
    margin-top: 10px;
    max-width: 44ch;
    font-size: 14.5px;
}

.terminal-meta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.meta-item {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    text-align: center;
    min-width: 90px;
    transition: transform 0.3s var(--ease-spring);
}

.meta-item:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.meta-item span {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.meta-item strong {
    font-family: var(--font-display);
    font-size: 15px;
}

/* ================================================================
   SEARCH / ANALYSIS CARD
   ================================================================ */

.search-card {
    position: relative;
    background: var(--gradient-panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.search-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, transparent, rgba(212, 16, 44, 0.3), transparent 40%);
    animation: rotateGlow 8s linear infinite;
    z-index: -1;
    opacity: 0.65;
}

.search-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--blood-light);
    margin-bottom: 10px;
}

.search-heading h2 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-heading p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 42ch;
}

.scan-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 10px 16px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--risk-low);
    height: fit-content;
}

#analysis-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
}

.form-primary-row {
    display: flex;
    gap: var(--space-3);
    align-items: stretch;
    width: 100%;
}

.contract-input-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.contract-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(21, 4, 4, 0.75) 0%, rgba(10, 2, 2, 0.85) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2px 18px;
    transition: all 0.3s var(--ease-out);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}

.contract-input-wrapper:hover {
    border-color: rgba(212, 16, 44, 0.4);
    background: linear-gradient(135deg, rgba(28, 8, 8, 0.8) 0%, rgba(12, 3, 3, 0.9) 100%);
}

.contract-input-wrapper:focus-within {
    border-color: var(--blood-bright);
    box-shadow: 0 0 0 3px rgba(212, 16, 44, 0.2), 0 4px 20px rgba(212, 16, 44, 0.18), inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.contract-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blood-light);
    opacity: 0.8;
    flex-shrink: 0;
    transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.contract-input-wrapper:focus-within .contract-input-icon {
    color: var(--blood-bright);
    opacity: 1;
    transform: scale(1.05);
}

.contract-input-wrapper input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--bone);
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 500;
    padding: 13px 0;
    letter-spacing: 0.02em;
}

.contract-input-wrapper input::placeholder {
    color: var(--bone-faint);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    opacity: 0.7;
}

.contract-helper-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(90deg, rgba(21, 4, 4, 0.65) 0%, rgba(10, 2, 2, 0.4) 100%);
    border: 1px solid rgba(212, 16, 44, 0.18);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.5;
    color: var(--bone-dim);
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.helper-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blood-light);
    flex-shrink: 0;
    opacity: 0.9;
}

.contract-helper-text .helper-message {
    letter-spacing: 0.01em;
}


.token-input-wrapper {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 4px 20px;
    transition: all 0.3s var(--ease-out);
}

.token-input-wrapper:focus-within {
    border-color: var(--btc-gold);
    box-shadow: 0 0 0 4px rgba(247, 147, 26, 0.18), var(--shadow-glow-gold);
}

.token-prefix {
    font-family: var(--font-mono);
    color: var(--btc-gold-light);
    font-size: 20px;
    font-weight: 700;
}

.token-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    padding: 18px 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.token-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.analyze-button {
    min-width: 190px;
    padding: 17px 34px;
}

.button-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
}

.analyze-button.loading .button-loader {
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

.analyze-button.loading .button-text {
    opacity: 0.7;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================================================
   ENERGY / BLEEDING-LEDGER BEAM
   ================================================================ */

.energy-beam-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.energy-beam {
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--blood-glow), var(--blood-light), #fff);
    width: 0%;
    box-shadow: 0 0 15px var(--blood-glow), 0 0 30px var(--blood-bright);
    border-radius: var(--radius-sm);
    transition: width 0.3s ease-out;
    opacity: 0;
    z-index: 10;
}

.energy-beam::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 60px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 L30,0 L50,15 L70,5 L100,20 L80,10 L60,18 L40,8 Z" fill="%23ffffff" opacity="0.8"/></svg>') no-repeat center right;
    background-size: contain;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 8px var(--blood-glow)) drop-shadow(0 0 15px var(--blood-bright));
    animation: crackle 0.1s infinite alternate;
}

@keyframes crackle {
    0% {
        transform: translateY(-50%) scale(1) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-50%) scale(1.3) rotate(2deg);
        opacity: 1;
        filter: drop-shadow(0 0 12px var(--blood-glow)) drop-shadow(0 0 20px var(--blood-bright));
    }
}

.energy-beam-glow {
    position: absolute;
    bottom: -15px;
    left: 0;
    height: 14px;
    width: 0%;
    background: radial-gradient(circle at right, var(--blood-glow) 0%, transparent 70%);
    opacity: 0;
    transition: width 0.3s ease-out;
}

.energy-beam-wrapper.is-analyzing .energy-beam,
.energy-beam-wrapper.is-analyzing .energy-beam-glow {
    opacity: 1;
}

.energy-beam-wrapper.is-analyzing .analyze-button {
    pointer-events: none;
    opacity: 0.9;
    box-shadow: inset 0 0 30px rgba(212, 16, 44, 0.55);
    border-color: var(--blood-glow);
}

.analysis-error {
    margin-top: var(--space-3);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 30, 60, 0.1);
    border: 1px solid rgba(255, 30, 60, 0.4);
    color: #ffb3c0;
    font-size: 13.5px;
}

/* ================================================================
   PROGRESS BEAM — bleeding ledger fill
   ================================================================ */

.analysis-progress {
    background: var(--gradient-panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-5);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.progress-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-top: 4px;
}

#progress-percent {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    background: var(--gradient-ledger);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.progress-bar {
    position: relative;
    height: 16px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid var(--line);
    margin-bottom: var(--space-4);
}

#progress-fill {
    position: relative;
    display: block;
    height: 100%;
    width: 0%;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--blood-dark) 0%, var(--blood-bright) 45%, var(--btc-gold) 100%);
    box-shadow: 0 0 18px rgba(212, 16, 44, 0.85), 0 0 38px rgba(212, 16, 44, 0.55), 0 0 64px var(--btc-glow);
    transition: width 0.1s linear;
    overflow: visible;
    animation: beamGlow 1.8s ease-in-out infinite;
}

@keyframes beamGlow {

    0%,
    100% {
        box-shadow: 0 0 18px rgba(212, 16, 44, 0.75), 0 0 38px rgba(212, 16, 44, 0.45), 0 0 64px rgba(247, 147, 26, 0.3);
    }

    50% {
        box-shadow: 0 0 28px rgba(212, 16, 44, 0.95), 0 0 56px rgba(212, 16, 44, 0.7), 0 0 88px rgba(247, 147, 26, 0.55);
    }
}

#progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.98));
    filter: blur(5px);
    animation: beamSweep 0.9s ease-in-out infinite;
}

@keyframes beamSweep {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.5);
    }
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 70px;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 90, 110, 0.6), rgba(212, 16, 44, 0.3) 40%, transparent 75%);
    transform: translateY(-50%);
    animation: beamTravel 2s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes beamTravel {
    0% {
        left: -10%;
    }

    100% {
        left: 110%;
    }
}

.progress-stages {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-status {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--text-muted);
    transition: all 0.4s var(--ease-spring);
}

.progress-status.active {
    background: var(--gradient-ledger);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow-blood);
    transform: scale(1.08);
    animation: statusPulse 1s ease-in-out infinite;
}

.progress-status.complete {
    background: rgba(61, 220, 132, 0.15);
    border-color: rgba(61, 220, 132, 0.4);
    color: var(--risk-low);
}

/* ================================================================
   INTELLIGENCE REPORT
   ================================================================ */

.intelligence-report {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    background: var(--gradient-panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
}

.report-identity h2 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 6px 0;
}

.report-outlook {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    background: var(--glass);
    border: 1px solid var(--line-strong);
}

.risk-score-card {
    text-align: center;
    padding: var(--space-3) clamp(20px, 3vw, 34px);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease-spring);
}

.risk-score-card:hover {
    transform: translateY(-8px) rotateX(6deg) scale(1.03);
}

.risk-score-card>span {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.risk-score-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.risk-score-value strong {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 700;
}

.risk-score-value small {
    color: var(--text-muted);
    font-size: 15px;
}

.risk-score-label {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    font-size: 13px;
}

/* ================================================================
   RISK SEVERITY COLOR SYSTEM
   ================================================================ */

.risk-low {
    color: var(--risk-low) !important;
}

.risk-moderate {
    color: var(--risk-moderate) !important;
}

.risk-elevated {
    color: var(--risk-elevated) !important;
}

.risk-high {
    color: var(--risk-high) !important;
}

.risk-critical {
    color: var(--risk-critical) !important;
}

.pillar-bar span.risk-low,
#progress-fill.risk-low {
    background: linear-gradient(90deg, #3ddc84, #2bb5d6) !important;
}

.pillar-bar span.risk-moderate {
    background: linear-gradient(90deg, var(--btc-gold), #ffb347) !important;
}

.pillar-bar span.risk-elevated {
    background: linear-gradient(90deg, #ff8a3d, #ff6b3d) !important;
}

.pillar-bar span.risk-high {
    background: linear-gradient(90deg, #ff6b3d, var(--blood-bright)) !important;
}

.pillar-bar span.risk-critical {
    background: linear-gradient(90deg, var(--blood-bright), var(--blood-glow)) !important;
}

.risk-badge {
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 11.5px;
    font-weight: 700;
    background: var(--glass-strong);
    border: 1px solid var(--line-strong);
}

/* ================================================================
   REPORT SECTIONS — carved slab with drip edge
   ================================================================ */

.report-section {
    background: var(--gradient-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    backdrop-filter: blur(16px);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: var(--space-4);
}

.section-heading h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
}

.section-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.live-data-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* ================================================================
   MARKET GRID — symmetric auto-fit
   ================================================================ */

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-3);
    perspective: 1000px;
}

.market-card {
    background: rgba(255, 245, 235, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    transition: all 0.45s var(--ease-spring);
    transform-style: preserve-3d;
}

.market-card:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(-6deg) scale(1.04);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-glow-blood);
    background: rgba(255, 245, 235, 0.055);
}

.card-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.market-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 6px;
}

.market-change.positive {
    color: var(--risk-low);
}

.market-change.negative {
    color: var(--risk-critical);
}

.card-muted {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================================================
   RISK PILLARS
   ================================================================ */

.risk-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-3);
}

.risk-pillar {
    background: rgba(255, 245, 235, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    transition: all 0.4s var(--ease-spring);
}

.risk-pillar:hover {
    transform: translateY(-8px) rotateX(4deg);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
}

.composite-pillar {
    background: linear-gradient(160deg, rgba(212, 16, 44, 0.16), rgba(247, 147, 26, 0.06));
    border-color: var(--line-gold);
}

.pillar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.pillar-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.pillar-top h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
}

.pillar-top strong {
    font-family: var(--font-mono);
    font-size: 18px;
}

.pillar-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.pillar-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: var(--radius-md);
    background: var(--gradient-ledger);
    transition: width 1s var(--ease-out);
    box-shadow: 0 0 14px rgba(212, 16, 44, 0.55);
}

.risk-pillar p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================================================================
   FORENSIC / RISK DRIVER GRID
   ================================================================ */

.forensic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-3);
}

.forensic-card,
.risk-driver-card {
    background: rgba(255, 245, 235, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    transition: all 0.4s var(--ease-spring);
    position: relative;
}

.forensic-card:hover,
.risk-driver-card:hover {
    transform: translateY(-8px) rotateX(4deg);
    border-color: var(--btc-gold-dark);
    box-shadow: var(--shadow-glow-gold);
}

.forensic-index {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--blood-light);
    margin-bottom: 10px;
}

.forensic-card h4,
.risk-driver-card h4 {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 10px;
}

.forensic-card p,
.risk-driver-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.risk-driver-card span {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--btc-gold-light);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13.5px;
}

/* ================================================================
   STRESS / SCENARIO SECTION
   ================================================================ */

.scenario-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 8px 16px;
    background: rgba(255, 138, 61, 0.14);
    border: 1px solid rgba(255, 138, 61, 0.4);
    color: var(--risk-high);
    border-radius: var(--radius-md);
    height: fit-content;
}

.stress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.stress-card {
    background: rgba(255, 245, 235, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    transition: all 0.4s var(--ease-spring);
}

.stress-card:hover {
    transform: translateY(-8px) rotateX(4deg) scale(1.03);
    border-color: var(--line-strong);
}

.stress-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 23px;
    margin: 8px 0;
}

.stress-card p {
    font-size: 12px;
    color: var(--text-muted);
}

.stress-verdict-card {
    background: linear-gradient(160deg, rgba(212, 16, 44, 0.12), rgba(247, 147, 26, 0.05));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.stress-verdict-card p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================================================
   AI SYNTHESIS / EXECUTIVE SECTION
   ================================================================ */

.autopsy-token {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 8px 16px;
    background: rgba(212, 16, 44, 0.16);
    border: 1px solid rgba(212, 16, 44, 0.4);
    color: var(--blood-light);
    border-radius: var(--radius-md);
    height: fit-content;
}

.autopsy-summary {
    background: rgba(255, 245, 235, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.autopsy-summary p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-primary);
}

/* ================================================================
   DATA QUALITY / MISSING SIGNALS
   ================================================================ */

.data-ok {
    color: var(--risk-low);
    font-size: 13px;
}

#missing-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.missing-signal {
    padding: 6px 12px;
    background: rgba(255, 138, 61, 0.14);
    border: 1px solid rgba(255, 138, 61, 0.4);
    color: var(--risk-high);
    border-radius: var(--radius-md);
    font-size: 11.5px;
}

/* ================================================================
   REPORT ACTIONS
   ================================================================ */

.report-actions {
    display: flex;
    justify-content: flex-end;
}

.danger-button {
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13.5px;
    background: rgba(255, 30, 60, 0.1);
    border: 1px solid rgba(255, 30, 60, 0.4);
    color: var(--risk-critical);
    transition: all 0.3s var(--ease-out);
}

.danger-button:hover:not(:disabled) {
    background: rgba(255, 30, 60, 0.25);
    transform: translateY(-2px);
}

.danger-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================================================================
   HISTORY TABLE
   ================================================================ */

.history-section {
    position: relative;
    background: var(--gradient-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    transition: all 0.35s var(--ease-out);
    overflow: hidden;
}

.history-section:hover {
    border-color: rgba(212, 16, 44, 0.35);
}

.history-section.is-expanded {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-deep), 0 0 35px rgba(212, 16, 44, 0.15);
    padding: var(--space-4);
}

.history-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding: 16px 22px;
    background: linear-gradient(135deg, rgba(32, 8, 8, 0.85) 0%, rgba(14, 3, 3, 0.92) 50%, rgba(24, 6, 8, 0.88) 100%);
    border: 1px solid rgba(212, 16, 44, 0.28);
    border-radius: var(--radius-lg);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 84, 112, 0.12);
    position: relative;
    overflow: hidden;
}

.history-toggle-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(212, 16, 44, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    pointer-events: none;
}

.history-toggle-header:hover {
    background: linear-gradient(135deg, rgba(42, 10, 10, 0.92) 0%, rgba(20, 4, 4, 0.96) 50%, rgba(32, 8, 10, 0.94) 100%);
    border-color: rgba(212, 16, 44, 0.65);
    box-shadow: 0 0 25px rgba(212, 16, 44, 0.25), 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 84, 112, 0.25);
    filter: brightness(1.08);
}

.history-toggle-header:hover::before {
    opacity: 1;
}

.history-toggle-header:active {
    transform: scale(0.998);
}

.history-toggle-header:focus-visible {
    outline: none;
    border-color: var(--blood-bright);
    box-shadow: 0 0 0 3px rgba(212, 16, 44, 0.35), 0 0 30px rgba(212, 16, 44, 0.3);
}

.history-section.is-expanded .history-toggle-header {
    border-color: rgba(212, 16, 44, 0.5);
    background: linear-gradient(135deg, rgba(36, 9, 9, 0.95) 0%, rgba(16, 3, 3, 0.95) 50%, rgba(28, 7, 9, 0.9) 100%);
    box-shadow: 0 4px 25px rgba(212, 16, 44, 0.2), inset 0 1px 0 rgba(255, 84, 112, 0.2);
}

.history-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-header-left .section-label {
    margin-bottom: 0;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--blood-light);
}

.history-header-left h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin: 0;
    transition: color 0.3s var(--ease-out);
}

.history-toggle-header:hover .history-header-left h3 {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 84, 112, 0.3);
}

.history-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.history-counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: rgba(10, 2, 2, 0.7);
    border: 1px solid rgba(212, 16, 44, 0.3);
    padding: 7px 15px;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.history-toggle-header:hover .history-counter {
    border-color: rgba(212, 16, 44, 0.55);
    background: rgba(18, 4, 4, 0.85);
    box-shadow: 0 0 15px rgba(212, 16, 44, 0.2), inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.history-counter span {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--bone);
    line-height: 1;
}

.history-counter small {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    color: var(--blood-light);
    font-weight: 600;
}

.history-chevron-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 245, 235, 0.03);
    border: 1px solid rgba(212, 16, 44, 0.22);
    color: var(--blood-light);
    transition: all 0.35s var(--ease-smooth);
    flex-shrink: 0;
}

.history-toggle-header:hover .history-chevron-wrapper {
    background: rgba(212, 16, 44, 0.15);
    border-color: var(--blood-bright);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(212, 16, 44, 0.35);
}

.history-toggle-chevron {
    width: 18px;
    height: 18px;
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(0deg);
}

.history-section.is-expanded .history-toggle-chevron,
.history-toggle-header[aria-expanded="true"] .history-toggle-chevron {
    transform: rotate(90deg);
    color: var(--btc-gold);
}

.history-section.is-expanded .history-chevron-wrapper,
.history-toggle-header[aria-expanded="true"] .history-chevron-wrapper {
    background: rgba(247, 147, 26, 0.12);
    border-color: rgba(247, 147, 26, 0.45);
    box-shadow: 0 0 16px rgba(247, 147, 26, 0.25);
}

.history-collapse-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.32s ease-in-out,
                margin-top 0.35s var(--ease-out);
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
}

.history-collapse-inner {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-section.is-expanded .history-collapse-content,
.history-collapse-content.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: var(--space-4);
}

.history-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.history-table thead {
    background: rgba(255, 245, 235, 0.04);
}

.history-table th {
    text-align: left;
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.history-table td {
    padding: 16px 18px;
    border-top: 1px solid var(--line);
}

.history-table tbody tr {
    transition: background 0.25s var(--ease-out);
}

.history-table tbody tr:hover {
    background: rgba(255, 245, 235, 0.03);
}

.empty-history {
    text-align: center;
    color: var(--text-muted);
    padding: 30px !important;
}

@media (max-width: 768px) {

    .history-table,
    .history-table tbody,
    .history-table tr,
    .history-table td {
        display: block;
        width: 100%;
    }

    .history-table thead {
        display: none;
    }

    .history-table tr {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        padding: 16px;
        position: relative;
    }

    .history-table td {
        border: none;
        padding: 8px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
    }

    .history-table td::before {
        font-family: var(--font-mono);
        font-size: 11px;
        color: var(--text-muted);
        text-transform: uppercase;
        margin-right: 16px;
    }

    .history-table td:nth-child(1)::before {
        content: "Asset";
    }

    .history-table td:nth-child(2)::before {
        content: "Risk";
    }

    .history-table td:nth-child(3)::before {
        content: "Outlook";
    }

    .history-table td:nth-child(4)::before {
        content: "Score";
    }

    .history-table td:nth-child(5)::before {
        content: "Date";
    }

    .history-table td:last-child {
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--line);
        justify-content: flex-end;
    }

    .history-toggle-header {
        padding: 14px 16px;
    }

    .history-header-left h3 {
        font-size: 17px;
    }

    .history-header-right {
        gap: 10px;
    }

    .history-counter {
        padding: 5px 11px;
    }

    .history-counter span {
        font-size: 14px;
    }

    .history-chevron-wrapper {
        width: 30px;
        height: 30px;
    }
}

.history-view,
.history-delete {
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    transition: all 0.3s var(--ease-out);
}

.history-view {
    background: rgba(247, 147, 26, 0.16);
    border: 1px solid rgba(247, 147, 26, 0.4);
    color: var(--btc-gold-light);
}

.history-view:hover {
    background: rgba(247, 147, 26, 0.3);
    transform: translateY(-2px);
}

.history-delete {
    background: rgba(255, 30, 60, 0.1);
    border: 1px solid rgba(255, 30, 60, 0.35);
    color: var(--risk-critical);
}

.history-delete:hover {
    background: rgba(255, 30, 60, 0.25);
    transform: translateY(-2px);
}

/* ================================================================
   PARTICLE BURST (JS-driven utility)
   ================================================================ */

.particle-burst {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blood-bright);
    pointer-events: none;
    z-index: 9999;
    animation: particleExplode 0.7s var(--ease-out) forwards;
}

@keyframes particleExplode {
    to {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

/* ================================================================
   ANALYSIS BEAM OVERLAY — full-screen bleeding ledger
   ================================================================ */

.analysis-beam-container {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.analysis-beam-container.active {
    opacity: 1;
}

.analysis-beam-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 1, 1, 0.94);
    backdrop-filter: blur(20px);
}

.analysis-beam-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.beam-progress-track {
    position: relative;
    height: 60px;
    background: rgba(212, 16, 44, 0.1);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(212, 16, 44, 0.25), inset 0 0 20px rgba(212, 16, 44, 0.12);
}

.beam-progress-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--blood-dark) 0%, var(--blood-bright) 50%, var(--btc-gold) 100%);
    background-size: 200% 100%;
    border-radius: var(--radius-md);
    transition: width 0.3s ease;
    box-shadow: 0 0 30px rgba(212, 16, 44, 0.55);
    animation: fireShimmer 2s linear infinite;
}

@keyframes fireShimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.beam-currency-stream {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
}

.beam-currency-symbol {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--btc-gold-light);
    text-shadow: 0 0 24px var(--btc-glow);
    animation: currencyFloat 2s ease-in-out infinite;
    opacity: 0.75;
}

.beam-currency-symbol:nth-child(odd) {
    color: var(--blood-light);
    text-shadow: 0 0 24px rgba(212, 16, 44, 0.7);
}

@keyframes currencyFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.1);
    }
}

.beam-status-text {
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--blood-light);
    letter-spacing: 0.05em;
}

.beam-particles-canvas {
    position: absolute;
    inset: -50px;
    pointer-events: none;
}

.beam-particle-canvas {
    width: 100%;
    height: 100%;
}

.analysis-beam-container.wealth-burst .beam-progress-fill {
    animation: wealthBurst 0.6s ease-out;
}

@keyframes wealthBurst {
    0% {
        box-shadow: 0 0 30px rgba(212, 16, 44, 0.5);
    }

    50% {
        box-shadow: 0 0 80px var(--btc-glow), 0 0 120px rgba(212, 16, 44, 0.6);
    }

    100% {
        box-shadow: 0 0 30px rgba(212, 16, 44, 0.5);
    }
}

.beam-percentage-display {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--btc-gold-light);
    text-shadow: 0 0 30px var(--btc-glow), 0 0 60px rgba(212, 16, 44, 0.5);
    margin-bottom: var(--space-3);
    animation: percentagePulse 1s ease-in-out infinite;
}

@keyframes percentagePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

/* ================================================================
   FIRE / BLOOD HOVER EFFECTS
   ================================================================ */

.fire-hover {
    position: relative;
    overflow: hidden;
}

.fire-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 16, 44, 0.32) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.fire-hover:hover::after {
    opacity: 1;
}

/* ================================================================
   TICKER TAPE
   ================================================================ */

.ticker-tape-container {
    position: relative;
    z-index: 5;
    width: 100%;
    overflow: hidden;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.ticker-tape {
    display: flex;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.ticker-symbol {
    color: var(--blood-light);
    font-weight: 700;
}

.ticker-price {
    color: var(--text-primary);
    font-weight: 600;
}

.ticker-change.positive {
    color: var(--risk-low);
}

.ticker-change.negative {
    color: var(--risk-critical);
}

/* ================================================================
   CINEMATIC OVERLAYS & PARALLAX
   ================================================================ */

.cinematic-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle at center, transparent 30%, rgba(6, 1, 1, 0.82) 100%);
}

.cinematic-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212, 16, 44, 0.025) 2px, rgba(212, 16, 44, 0.025) 4px);
    opacity: 0.5;
    mix-blend-mode: overlay;
}

.parallax-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--void);
    perspective: 1000px;
}

.parallax-layer {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    will-change: transform;
    display: flex;
    justify-content: center;
    align-items: center;
}

.float-item {
    position: absolute;
    will-change: transform, opacity;
}

.float-coin {
    width: 80px;
    height: 80px;
    fill: var(--btc-gold);
    filter: drop-shadow(0 0 16px var(--btc-glow));
    animation: driftUp 25s infinite linear, spin3D 8s infinite linear;
}

.float-cash {
    width: 100px;
    height: 60px;
    fill: var(--blood-bright);
    filter: drop-shadow(0 0 16px rgba(212, 16, 44, 0.5));
    animation: driftUp 30s infinite linear, sway 10s infinite ease-in-out;
}

.float-particle {
    width: 4px;
    height: 4px;
    background: var(--blood-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(212, 16, 44, 0.5);
    animation: driftUp 15s infinite linear;
}

body.report-active .parallax-container {
    opacity: 0.05;
    transition: opacity 1.5s var(--ease-out);
}

@keyframes driftUp {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes spin3D {
    from {
        transform: rotateY(0deg) rotateZ(10deg);
    }

    to {
        transform: rotateY(360deg) rotateZ(10deg);
    }
}

@keyframes sway {

    0%,
    100% {
        transform: rotateZ(-15deg);
    }

    50% {
        transform: rotateZ(15deg);
    }
}

/* ================================================================
   CARD GLASSMORPHISM & EXTREME 3D TILT
   ================================================================ */

.market-card,
.risk-pillar,
.stress-card,
.stress-verdict-card,
.driver-card {
    background: var(--panel) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6) !important;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-carve);
}

.market-card:hover,
.risk-pillar:hover,
.stress-card:hover,
.stress-verdict-card:hover,
.driver-card:hover {
    border-color: var(--line-strong) !important;
    box-shadow: 0 16px 52px rgba(212, 16, 44, 0.22) !important;
}

.market-card *,
.risk-pillar *,
.stress-card *,
.stress-verdict-card *,
.driver-card * {
    pointer-events: none;
}

body.report-active .parallax-container {
    opacity: 0.1 !important;
    filter: grayscale(100%) blur(4px);
    transition: opacity 1.5s ease, filter 1.5s ease;
}

body.report-active .intelligence-report {
    background: rgba(10, 2, 2, 0.4);
    box-shadow: inset 0 0 100px rgba(212, 16, 44, 0.12);
    padding: 20px;
    border-radius: var(--radius-md);
}

body.report-active .market-card,
body.report-active .risk-pillar,
body.report-active .stress-card,
body.report-active .stress-verdict-card,
body.report-active .driver-card {
    background: rgba(10, 2, 2, 0.85) !important;
    border-color: rgba(212, 16, 44, 0.25) !important;
}

@media (min-width: 981px) {

    .search-card,
    .market-card,
    .risk-pillar,
    .stress-card,
    .process-step {
        transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
        backdrop-filter: blur(16px);
    }

    .search-card:hover,
    .market-card:hover,
    .risk-pillar:hover,
    .stress-card:hover,
    .process-step:hover {
        transform: perspective(1000px) rotateX(6deg) rotateY(-6deg) scale(1.03);
        box-shadow: 0 20px 50px rgba(212, 16, 44, 0.22), 0 0 26px rgba(247, 147, 26, 0.14);
        border-color: var(--blood) !important;
    }
}

/* ================================================================
   ENERGY BEAM LOADER (analyze button charge state)
   ================================================================ */

.energy-beam-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.energy-beam {
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-md) + 90px);
    background: transparent;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.energy-beam::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 200%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--btc-gold-light), transparent);
    transform: translateY(-50%);
    box-shadow: 0 0 15px var(--btc-glow);
    opacity: 0;
}

.energy-beam-glow {
    position: absolute;
    inset: -10px;
    border-radius: calc(var(--radius-md) + 96px);
    background: radial-gradient(circle, rgba(212, 16, 44, 0.7) 0%, transparent 60%);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.is-analyzing .energy-beam {
    opacity: 1;
}

.is-analyzing .energy-beam::before {
    opacity: 1;
    animation: beamCharge 2s var(--ease-carve) infinite;
}

.is-analyzing .energy-beam-glow {
    animation: beamPulse 2s var(--ease-carve) infinite;
}

@keyframes beamCharge {
    0% {
        left: -100%;
    }

    50% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

@keyframes beamPulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.is-analyzing .button-content {
    opacity: 0;
}

.analyze-button.complete .energy-beam-glow {
    background: radial-gradient(circle, var(--blood-light) 0%, transparent 80%);
    opacity: 1;
    animation: beamFlash 0.5s ease-out forwards;
}

@keyframes beamFlash {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    30% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

/* ================================================================
   RESPONSIVE — symmetric collapse, matched paddings every step
   ================================================================ */

@media (max-width: 980px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: clamp(48px, 12vw, 80px) var(--gutter);
        overflow-x: hidden;
        text-align: center;
        justify-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-trust-row {
        justify-content: center;
    }

    .horror-monster-img {
        object-fit: contain;
        object-position: top center;
        height: 60vh;
        margin-top: -60px;
    }

    .landing-navbar,
    .top-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-2) var(--gutter);
    }

    .landing-navbar .nav-login-button {
        padding: 10px 18px;
        font-size: 12px;
        box-shadow: 0 4px 0 var(--void-deep), 0 5px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 140, 140, 0.6);
    }

    .landing-navbar .nav-login-button:active {
        transform: translateY(4px);
        box-shadow: 0 0 0 var(--void-deep), 0 2px 5px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.55);
    }

    .landing-nav-status {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-connector {
        width: 2px;
        height: 30px;
        margin: 0 auto;
    }

    .landing-navbar,
    .top-nav {
        padding: var(--space-3) var(--gutter);
    }

    .landing-section,
    .process-section {
        padding: var(--space-5) var(--gutter);
    }

    .dashboard-container {
        padding: var(--space-4) var(--gutter) var(--space-5);
    }

    .top-nav {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-user {
        gap: 8px;
    }

    .user-info {
        display: none;
    }

    .logout-button {
        padding: 7px 12px;
        font-size: 11px;
    }

    .report-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .search-heading {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    #analysis-form {
        flex-direction: column;
    }

    .form-primary-row {
        flex-direction: column;
    }

    .contract-helper-text {
        width: 100%;
    }

    .analyze-button {
        width: 100%;
    }

    .progress-stages {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 10px var(--space-2);
        gap: 8px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .brand-name,
    .brand-copy {
        font-size: 14px;
    }

    .brand-ai {
        font-size: 8px;
    }

    .logout-button {
        padding: 6px 10px;
        font-size: 10px;
    }

    .nav-center {
        display: none;
    }

    .physics-tokens {
        display: none;
    }

    .analysis-beam-content {
        width: 95%;
    }

    .beam-currency-symbol {
        font-size: 18px;
    }

    .beam-status-text {
        font-size: 12px;
    }

    .beam-percentage-display {
        font-size: 34px;
    }

    .ticker-item {
        font-size: 11px;
        padding: 0 16px;
    }
}

@media (max-width: 560px) {
    .terminal-metrics {
        grid-template-columns: 1fr;
    }

    .risk-score-value strong {
        font-size: 34px;
    }

    .report-identity h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .physics-tokens {
        display: none;
    }

    .analysis-beam-content {
        width: 95%;
    }

    .beam-currency-symbol {
        font-size: 20px;
    }

    .beam-status-text {
        font-size: 12px;
    }
}