:root {
    --bg-top: #0b1f3a;
    --bg-bottom: #152c4a;
    --card: #0f2744cc;
    --card-solid: #132f52;
    --line: #2b4f76;
    --text: #e8f0ff;
    --muted: #a8bbd9;
    --ok: #2cc27d;
    --warn: #ffb347;
    --bad: #ff6f7d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 80% 10%, #2c4d74 0%, transparent 35%),
        radial-gradient(circle at 10% 90%, #254464 0%, transparent 40%),
        linear-gradient(145deg, var(--bg-top), var(--bg-bottom));
}

.hero-wrap,
.dash-wrap {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 4rem 0;
}

.hero-card {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.3fr 1fr;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(3px);
}

.kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero-copy h1 {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.08;
}

.hero-copy p {
    color: var(--muted);
    max-width: 52ch;
}

.ticker-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.ticker-line span {
    border: 1px solid var(--line);
    background: #18365a;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.login-panel {
    display: grid;
    gap: 0.6rem;
    background: var(--card-solid);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.4rem;
}

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

input {
    width: 100%;
    border: 1px solid #3c5d84;
    background: #0f2744;
    color: var(--text);
    border-radius: 10px;
    padding: 0.72rem 0.82rem;
    outline: none;
}

input:focus {
    border-color: #7ca7d6;
}

button,
.logout {
    margin-top: 0.35rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #40d39f, #2ea87e);
    color: #032016;
    font-weight: 700;
    padding: 0.78rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.hint {
    color: var(--muted);
    font-size: 0.74rem;
}

.text-link {
    color: #9dc6ff;
    font-size: 0.86rem;
    text-decoration: none;
    margin-top: 0.25rem;
}

.text-link:hover,
.text-link:focus {
    text-decoration: underline;
}

.msg {
    border-radius: 10px;
    padding: 0.6rem 0.72rem;
    font-size: 0.9rem;
}

.msg.error {
    border: 1px solid #9d3a48;
    background: #4f2028;
    color: #ffd5da;
}

.msg.ok {
    border: 1px solid #1f7a54;
    background: #174d38;
    color: #cffff0;
}

.dash-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.2rem;
}

.panel-actions {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.settings-grid h3 {
    margin: 0.7rem 0 0.2rem;
}

.span-2 {
    grid-column: span 2;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.4rem;
}

.check-row input {
    width: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.card {
    grid-column: span 4;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
}

.card.chart {
    grid-column: span 12;
}

.value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.value.positive {
    color: var(--ok);
}

.value.warning {
    color: var(--warn);
}

.sub,
.dash-foot {
    color: var(--muted);
}

.landing-body {
    background:
        radial-gradient(1200px 500px at 95% -5%, #1f3f6dcc 0%, transparent 55%),
        radial-gradient(700px 500px at -5% 115%, #0f4c4a99 0%, transparent 56%),
        linear-gradient(135deg, #061427 0%, #0d2544 35%, #0a1f35 100%);
}

.landing-v2 {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.exchange-shell {
    width: min(1220px, 94vw);
    margin: 0 auto;
    padding: 2.2rem 0 3.2rem;
}

.exchange-topbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eyebrow {
    margin: 0;
    color: #8fafd4;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.exchange-topbar h1 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.02em;
}

.market-clock {
    margin: 0;
    color: #9ab9de;
    font-size: 0.9rem;
}

.tape {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tape span {
    border: 1px solid #3f607f;
    background: #0d243f;
    border-radius: 999px;
    padding: 0.36rem 0.7rem;
    font-size: 0.82rem;
    color: #d8e6fa;
}

.exchange-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.4fr 0.9fr 1fr;
    grid-template-areas:
        "main side login";
}

.terminal-main {
    grid-area: main;
    border: 1px solid #3b5f85;
    border-radius: 18px;
    padding: 1.4rem;
    background: linear-gradient(160deg, #0f2744ea 0%, #13355aea 55%, #0d2b4cea 100%);
    box-shadow: 0 24px 60px #050e1cb0;
}

.terminal-main h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    line-height: 1.12;
    margin-bottom: 0.6rem;
}

.terminal-main p {
    color: #a7bfde;
    max-width: 50ch;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-top: 1rem;
}

.metrics-row div {
    background: #0c234099;
    border: 1px solid #395a7f;
    border-radius: 12px;
    padding: 0.7rem;
}

.metrics-row small {
    display: block;
    color: #8fb1d7;
    margin-bottom: 0.3rem;
}

.metrics-row strong {
    font-size: 1.05rem;
}

.heat-bars {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
}

.heat-bars span {
    display: block;
    height: 11px;
    width: 64%;
    border-radius: 999px;
    background: linear-gradient(90deg, #112a45, #53f2c2);
    animation: sweep 900ms ease both;
}

.heat-bars .bar.b1 {
    width: 72%;
    background: linear-gradient(90deg, #112a45, #3de0ac);
}

.heat-bars .bar.b2 {
    width: 58%;
    background: linear-gradient(90deg, #112a45, #f2c25f);
}

.heat-bars .bar.b3 {
    width: 80%;
    background: linear-gradient(90deg, #112a45, #43d2fa);
}

.heat-bars .bar.b4 {
    width: 66%;
    background: linear-gradient(90deg, #112a45, #8ab8ff);
}

.terminal-side {
    grid-area: side;
    display: grid;
    gap: 0.8rem;
}

.side-card {
    border: 1px solid #3b5f85;
    border-radius: 14px;
    padding: 0.9rem;
    background: linear-gradient(170deg, #102a47ed, #0f2f51ed);
}

.side-card p {
    margin: 0;
    color: #86a8ce;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.side-card h3 {
    margin: 0.3rem 0;
}

.side-card small {
    color: #9db7d8;
}

.exchange-login {
    grid-area: login;
    border: 1px solid #41658c;
    background: linear-gradient(165deg, #142f50f2, #123355f2);
    box-shadow: 0 22px 48px #030c18a8;
}

@keyframes sweep {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.landing-card {
    border: 1px solid #3b5f85;
    background: linear-gradient(145deg, #0d2948d9 0%, #112f4ed9 58%, #173253d9 100%);
    box-shadow: 0 22px 70px #020b17a3;
}

.landing-copy h1 {
    max-width: 20ch;
    text-wrap: balance;
    font-size: clamp(2.1rem, 4.2vw, 3.5rem);
    letter-spacing: 0.01em;
}

.market-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.market-tile {
    border: 1px solid #3b5f85;
    border-radius: 12px;
    background: #0a243fd1;
    padding: 0.8rem;
}

.tile-label {
    margin-bottom: 0.2rem;
    color: #8eb1d8;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tile-value {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.market-tile small {
    color: #9fb9d8;
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.35rem;
    align-items: end;
    height: 96px;
    margin-top: 1.2rem;
    padding: 0.55rem;
    border: 1px solid #3b5f85;
    border-radius: 12px;
    background: linear-gradient(180deg, #102d4f96, #0b223d);
}

.signal-strip span {
    height: var(--h);
    border-radius: 6px;
    background: linear-gradient(180deg, #53f2c2, #2ab18a);
    animation: rise 900ms ease both;
}

.signal-strip span:nth-child(2n) {
    animation-delay: 80ms;
}

.signal-strip span:nth-child(3n) {
    animation-delay: 160ms;
}

.landing-login {
    border: 1px solid #41658c;
    background: linear-gradient(165deg, #142f50f0, #123355f0);
    box-shadow: inset 0 1px 0 #ffffff0f;
}

.login-sub {
    color: #9eb9d8;
    margin-bottom: 0.5rem;
}

@keyframes rise {
    from {
        transform: translateY(16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
    }

    .card {
        grid-column: span 12;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .panel-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .exchange-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "side"
            "login";
    }

    .exchange-topbar {
        flex-direction: column;
        align-items: start;
    }

    .metrics-row {
        grid-template-columns: 1fr;
    }

    .market-board {
        grid-template-columns: 1fr;
    }
}

/* ── Landing v3 · allegoría trading / opciones ── */
.landing-v3 {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    position: relative;
    overflow-x: hidden;
}

.gate-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.gate-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(64, 120, 180, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 120, 180, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.gate-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.gate-glow-call {
    top: 10%;
    left: -8%;
    background: #2cc27d;
}

.gate-glow-put {
    bottom: 5%;
    right: -6%;
    background: #ff6f7d;
}

.gate-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 94vw);
    margin: 0 auto;
    padding: 2rem 0 2.5rem;
}

.gate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.gate-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gate-mark {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Courier New", monospace;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #3b5f85;
    border-radius: 10px;
    background: #0a2038cc;
    box-shadow: 0 0 24px #05152580;
}

.mark-call {
    color: var(--ok);
    text-shadow: 0 0 12px rgba(44, 194, 125, 0.5);
}

.mark-put {
    color: var(--bad);
    text-shadow: 0 0 12px rgba(255, 111, 125, 0.45);
}

.mark-sep {
    color: #4a6a8a;
    font-weight: 400;
}

.gate-header h1 {
    margin: 0.15rem 0 0;
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    letter-spacing: 0.04em;
}

.gate-tagline {
    margin: 0;
    color: #8eb1d4;
    font-size: 0.88rem;
    font-style: italic;
    letter-spacing: 0.03em;
}

.gate-tape {
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid #2f5070;
    border-radius: 999px;
    background: #081828e6;
    padding: 0.45rem 0;
}

.tape-track {
    display: flex;
    gap: 1.8rem;
    white-space: nowrap;
    animation: tape-scroll 28s linear infinite;
    padding-left: 100%;
}

.tape-track span {
    font-family: "Courier New", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: #9eb9d8;
}

.tape-track .t-call {
    color: var(--ok);
}

.tape-track .t-put {
    color: var(--bad);
}

@keyframes tape-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.gate-stage {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 1.25rem;
    align-items: start;
}

.gate-visual {
    border: 1px solid #3b5f85;
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
    background: linear-gradient(155deg, #0c2340eb 0%, #102d4ef0 45%, #0a223ceb 100%);
    box-shadow: 0 28px 64px #030a14b0, inset 0 1px 0 #ffffff0a;
}

.gate-visual h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    line-height: 1.2;
    margin-bottom: 0.65rem;
    max-width: 28ch;
}

.gate-visual h2 em {
    font-style: normal;
    color: #7ecfff;
}

.gate-lead {
    color: #a7bfde;
    max-width: 48ch;
    line-height: 1.55;
    font-size: 0.95rem;
}

.candle-field {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.55rem;
    height: 100px;
    margin: 1.4rem 0 1.2rem;
    padding: 0.75rem 1rem;
    border: 1px solid #2f5070;
    border-radius: 12px;
    background: linear-gradient(180deg, #081828 0%, #0a2035 100%);
}

.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 80px;
    animation: candle-rise 800ms ease both;
}

.candle:nth-child(1) {
    --h: 52px;
}

.candle:nth-child(2) {
    --h: 38px;
    animation-delay: 60ms;
}

.candle:nth-child(3) {
    --h: 64px;
    animation-delay: 120ms;
}

.candle:nth-child(4) {
    --h: 44px;
    animation-delay: 180ms;
}

.candle:nth-child(5) {
    --h: 56px;
    animation-delay: 240ms;
}

.candle:nth-child(6) {
    --h: 72px;
    animation-delay: 300ms;
}

.candle:nth-child(7) {
    --h: 34px;
    animation-delay: 360ms;
}

.candle:nth-child(8) {
    --h: 48px;
    animation-delay: 420ms;
}

.candle i {
    display: block;
    width: 2px;
    height: calc(var(--h) * 0.35);
    background: currentColor;
    opacity: 0.85;
}

.candle b {
    display: block;
    width: 14px;
    height: var(--h);
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.candle.up {
    color: var(--ok);
}

.candle.down {
    color: var(--bad);
}

@keyframes candle-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chain-board {
    border: 1px solid #3b5f85;
    border-radius: 12px;
    overflow: hidden;
    font-family: "Courier New", monospace;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.chain-head,
.chain-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    align-items: center;
}

.chain-head {
    background: #071525;
    color: #7a9bc0;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chain-row {
    border-top: 1px solid #2a4560;
    background: #0a1e33;
}

.chain-row.atm {
    background: #0f2844;
    box-shadow: inset 0 0 0 1px #3d6a9444;
}

.chain-row .strike {
    font-weight: 700;
    color: #dce8f8;
}

.chain-row .strike small {
    font-size: 0.65rem;
    color: var(--warn);
    margin-left: 0.35rem;
    letter-spacing: 0.08em;
}

.ch-call {
    color: var(--ok);
}

.ch-put {
    color: var(--bad);
}

.prem.call {
    color: #6de8b0;
}

.prem.put {
    color: #ff9aa5;
}

.prem.dim {
    opacity: 0.25;
}

.gate-symbols {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.gate-symbols li {
    font-size: 0.84rem;
    color: #8faecd;
    padding-left: 0.5rem;
    border-left: 2px solid #3b5f85;
}

.gate-symbols strong {
    font-family: "Courier New", monospace;
    color: #c5daf5;
    margin-right: 0.35rem;
}

.gate-login {
    border: 1px solid #41658c;
    border-radius: 20px;
    background: linear-gradient(165deg, #142f50f5 0%, #0f2844f5 100%);
    box-shadow: 0 24px 52px #020810a0, inset 0 1px 0 #ffffff0c;
    position: relative;
    overflow: hidden;
}

.gate-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ok) 0%, #7ecfff 50%, var(--bad) 100%);
}

.login-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: "Courier New", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
}

.badge-call {
    color: var(--ok);
    border: 1px solid #2a8a5a;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #1a4a3555;
}

.badge-put {
    color: var(--bad);
    border: 1px solid #8a3a45;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #4a1a2255;
}

.badge-x {
    color: #5a7a9a;
}

.gate-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2a4560;
    font-size: 0.78rem;
    color: #6a8aa8;
    letter-spacing: 0.02em;
}

.gate-foot span::before {
    content: "◆ ";
    color: #4a6a88;
    font-size: 0.55rem;
    vertical-align: middle;
}

.positive {
    color: var(--ok);
}

@media (max-width: 900px) {
    .gate-stage {
        grid-template-columns: 1fr;
    }

    .gate-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gate-foot {
        flex-direction: column;
        gap: 0.5rem;
    }

    .candle-field {
        gap: 0.35rem;
    }

    .candle b {
        width: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tape-track {
        animation: none;
        padding-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .candle {
        animation: none;
    }
}

/* ── Dashboard dual · acciones/opciones + cripto ── */
.dash-dual-body {
    background:
        radial-gradient(900px 420px at 15% 0%, #1a3a5c88 0%, transparent 55%),
        radial-gradient(700px 400px at 95% 100%, #1a4a3a66 0%, transparent 50%),
        linear-gradient(145deg, #061427 0%, #0d2544 40%, #0a1f35 100%);
}

.dash-dual {
    width: min(1180px, 94vw);
    padding: 2rem 0 2.5rem;
}

.dash-dual-head {
    align-items: center;
    margin-bottom: 1.5rem;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-brand .gate-mark {
    font-size: 1.15rem;
    padding: 0.4rem 0.6rem;
}

.dash-user {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.pillar-grid-single {
    grid-template-columns: 1fr;
    max-width: 720px;
}

.pillar {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.35rem 1.4rem;
    background: linear-gradient(160deg, #0f2744ea 0%, #13355aea 55%, #0d2b4cea 100%);
    box-shadow: 0 20px 48px #050e1c90;
}

.pillar-equities {
    border-color: #3b6a94;
    box-shadow: 0 20px 48px #050e1c90, inset 0 1px 0 #7ecfff12;
}

.pillar-crypto {
    border-color: #3a7a58;
    box-shadow: 0 20px 48px #050e1c90, inset 0 1px 0 #40d39f12;
}

.pillar-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.pillar-kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8fafd4;
}

.pillar-head h2 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.pillar-engine {
    margin: 0.15rem 0 0;
    font-family: "Courier New", monospace;
    font-size: 0.82rem;
    color: #9ab9de;
}

.pillar-desc {
    color: #a7bfde;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.status-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid;
    font-weight: 600;
}

.status-pending {
    color: var(--warn);
    border-color: #8a6030;
    background: #3a281055;
}

.status-online {
    color: var(--ok);
    border-color: #2a8a5a;
    background: #1a4a3555;
}

.status-stopped {
    color: #9ab9de;
    border-color: #3b5f85;
    background: #0a203855;
}

.status-running {
    color: var(--ok);
    border-color: #2a8a5a;
    background: #1a4a3555;
    animation: pulse-badge 2s ease infinite;
}

@keyframes pulse-badge {
    0%,
    100% {
        box-shadow: 0 0 0 0 #2cc27d44;
    }

    50% {
        box-shadow: 0 0 0 6px #2cc27d00;
    }
}

.pillar-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.pillar-metric {
    border: 1px solid #2f5070;
    border-radius: 10px;
    padding: 0.65rem 0.7rem;
    background: #08182899;
}

.metric-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a9bc0;
    margin-bottom: 0.25rem;
}

.metric-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.metric-sub {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.pillar-meta {
    font-size: 0.82rem;
    color: #8faecd;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px dashed #2f5070;
    border-radius: 10px;
    background: #06152588;
}

.pillar-meta p {
    margin: 0 0 0.4rem;
}

.pillar-meta p:last-child {
    margin-bottom: 0;
}

.pillar-meta code {
    font-family: "Courier New", monospace;
    font-size: 0.78rem;
    color: #c5daf5;
    word-break: break-all;
}

.pillar-note {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: italic;
}

.pillar-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.pillar-btn {
    display: inline-block;
    padding: 0.72rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.pillar-btn-primary {
    background: linear-gradient(135deg, #5eb8ff, #3a8fd4);
    color: #041525;
}

.pillar-btn-primary:hover,
.pillar-btn-primary:focus {
    filter: brightness(1.08);
}

.pillar-btn-disabled {
    background: #1a3050;
    color: #7a9bc0;
    border: 1px solid #2f5070;
    cursor: not-allowed;
}

.pillar-btn-outline {
    background: transparent;
    color: #9dc6ff;
    border: 1px solid #3b6a94;
}

.pillar-btn-live {
    background: #1a4a35;
    color: #6de8b0;
    border: 1px solid #2a8a5a;
}

.dash-bridge {
    margin-bottom: 1rem;
}

.dash-bridge h3 {
    margin-bottom: 0.85rem;
}

.bridge-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.bridge-node {
    border: 1px solid #3b5f85;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-width: 140px;
    text-align: center;
    background: #0a2038;
}

.bridge-node p {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.bridge-equities {
    border-color: #4a7aaa;
}

.bridge-crypto {
    border-color: #3a8a5a;
}

.bridge-tag {
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #dce8f8;
}

.bridge-arrow,
.bridge-plus {
    color: #5a7a9a;
    font-size: 1.2rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .pillar-metrics {
        grid-template-columns: 1fr;
    }

    .dash-dual-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .bridge-flow {
        flex-direction: column;
    }

    .bridge-arrow,
    .bridge-plus {
        transform: rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-running {
        animation: none;
    }
}
