@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --bg: #080b0a;
    --panel: #101412;
    --panel-2: #151a17;
    --line: rgba(255, 255, 255, .1);
    --text: #f4f7f4;
    --muted: #8d9991;
    --accent: #a6ff3d;
    --accent-dark: #75c51d;
    --danger: #ff626d;
    --success: #8bf22c;
    --radius: 18px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font: 14px/1.5 Inter, Arial, sans-serif;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font: 800 19px/1 Manrope, sans-serif;
    letter-spacing: -.7px;
}
.brand span { color: var(--accent); }
.brand small { margin-left: 8px; color: var(--muted); font-size: 9px; letter-spacing: 1.6px; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.muted { color: var(--muted); }

.button {
    display: inline-flex;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: #1a211d;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); }
.button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.button-primary { color: #091005; border-color: var(--accent); background: var(--accent); }
.button-primary:hover { background: #b8ff64; }
.button-danger { color: #ff9ba2; border-color: rgba(255, 98, 109, .25); background: rgba(255, 98, 109, .08); }
.button-delete { color: #ff7c85; border-color: rgba(255,98,109,.22); background: transparent; }
.button-delete:hover { color: #fff; border-color: var(--danger); background: var(--danger); }
.button-ghost { color: var(--muted); background: transparent; }
.button-small { min-height: 32px; padding: 0 10px; border-radius: 7px; font-size: 12px; }
.button-wide { width: 100%; min-height: 55px; }

input, select {
    width: 100%;
    min-height: 47px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    color: var(--text);
    background: rgba(255,255,255,.035);
    transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus { border-color: rgba(166,255,61,.65); box-shadow: 0 0 0 3px rgba(166,255,61,.08); }
input[aria-invalid="true"] { border-color: var(--danger); }
label > span { display: block; margin-bottom: 7px; color: #c4ccc7; font-size: 12px; font-weight: 600; }
label > span em { float: right; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 400; }
label > small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }

/* Landing */
.landing-body { position: relative; overflow-x: hidden; background: #070a08; }
.ambient-grid {
    position: fixed; inset: 0; pointer-events: none; opacity: .25;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 42%, black, transparent 72%);
}
.ambient-grid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 47%, rgba(166,255,61,.06) 49%, transparent 51%); }
.ambient-orb { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; filter: blur(120px); opacity: .12; background: var(--accent); }
.orb-one { left: -220px; top: 20%; }
.orb-two { right: -260px; bottom: -100px; }
.landing-header, .landing-footer {
    position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    width: min(1180px, calc(100% - 44px)); margin: 0 auto;
}
.landing-header { height: 76px; border-bottom: 1px solid var(--line); }
.landing-footer { min-height: 65px; color: #566159; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.live-pill { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.access-shell { position: relative; z-index: 1; display: grid; width: 100%; min-height: calc(100vh - 184px); padding: 45px 20px; grid-template-columns: minmax(0, 1fr); place-items: center; }
.access-card { width: 100%; max-width: 430px; min-width: 0; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: rgba(12,16,13,.86); box-shadow: 0 28px 90px rgba(0,0,0,.48); backdrop-filter: blur(16px); }
.access-card h1, .terminal-heading h1 { margin: 0; font: 700 clamp(38px, 6vw, 57px)/.98 Manrope, sans-serif; letter-spacing: -3px; }
.access-card h1 em, .terminal-heading h1 em { color: var(--accent); font-style: normal; }
.access-copy { max-width: 330px; margin: 20px 0 28px; color: var(--muted); }
.access-icon { position: relative; display: grid; width: 43px; height: 43px; margin-bottom: 31px; border: 1px solid rgba(166,255,61,.25); border-radius: 11px; background: rgba(166,255,61,.06); place-items: center; }
.access-icon::before { content: ''; width: 13px; height: 11px; border: 2px solid var(--accent); border-radius: 3px; }
.access-icon span { position: absolute; top: 9px; width: 10px; height: 9px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 7px 7px 0 0; }
.access-form label { display: block; margin-bottom: 8px; color: #b8c1bb; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.key-input-wrap { position: relative; }
.key-input-wrap input { min-height: 54px; padding-right: 46px; font-family: monospace; letter-spacing: .8px; text-transform: uppercase; }
.key-input-wrap span { position: absolute; top: 50%; right: 17px; color: var(--accent); transform: translateY(-50%); }
.access-form .button { margin-top: 7px; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.form-error { min-height: 21px; margin: 5px 0 0; color: #ff858d; font-size: 11px; }
.button-loader { display: none; width: 16px; height: 16px; margin: auto; border: 2px solid rgba(0,0,0,.25); border-top-color: #061002; border-radius: 50%; animation: spin .7s linear infinite; }
.button.is-loading .button-label { display: none; }
.button.is-loading .button-loader { display: block; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; color: #667069; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.security-note span { color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Terminal */
.terminal-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 44px)); min-height: calc(100vh - 184px); margin: 0 auto; padding: 58px 0; }
.terminal-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 38px; }
.terminal-heading h1 { font-size: clamp(38px, 6vw, 66px); }
.terminal-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; }
.terminal-card { position: relative; min-height: 210px; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15,19,16,.9); }
.terminal-card h2 { margin: 12px 0 18px; font: 700 24px/1.1 Manrope, sans-serif; }
.card-kicker { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.card-kicker span { color: var(--accent); }
.market-card select { position: relative; z-index: 2; max-width: 220px; background-color: #151a17; }
.fake-chart { position: absolute; right: 0; bottom: 0; left: 0; height: 135px; opacity: .72; pointer-events: none; }
.fake-chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-area { fill: url(#chart-fill); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.signal-card { display: flex; flex-direction: column; justify-content: space-between; }
.signal-value small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.signal-value strong { display: block; margin-top: 4px; font: 800 clamp(35px, 5vw, 52px)/1 Manrope, sans-serif; letter-spacing: -2px; }
.signal-value.up strong { color: var(--accent); }
.signal-value.down strong { color: var(--danger); }
.signal-value.loading strong { animation: pulse 1s ease infinite; color: var(--muted); }
.signal-card p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
@keyframes pulse { 50% { opacity: .35; } }
.settings-card { min-height: 155px; }
.duration-picker { display: flex; gap: 8px; }
.duration-picker button { min-height: 39px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.duration-picker button.active { color: #0b1008; border-color: var(--accent); background: var(--accent); font-weight: 700; }
.action-card { display: flex; min-height: 155px; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(120deg, #121813, #192317); }
.action-card h2 { margin: 0; font-size: 19px; }
.action-card .button { min-width: 190px; }
.action-card .button span { margin-left: 12px; }
.demo-disclaimer { max-width: 820px; margin: 18px 0 0; color: #5e6961; font-size: 10px; }

/* Admin authentication */
.admin-body { background: radial-gradient(circle at 50% 0, #18201a 0, #090c0a 42%, #070907 100%); }
.auth-shell { display: grid; width: 100%; min-height: 100vh; padding: 25px; grid-template-columns: minmax(0, 1fr); place-items: center; }
.auth-card { width: 100%; max-width: 440px; min-width: 0; padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: rgba(14,18,15,.94); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.auth-card .brand { margin-bottom: 42px; }
.auth-card h1 { margin: 0 0 10px; font: 700 30px/1.1 Manrope, sans-serif; letter-spacing: -1px; }
.auth-card > .muted { margin: 0 0 28px; }
.stack-form { display: grid; gap: 17px; margin-top: 26px; }
.quiet-link { display: block; margin-top: 22px; color: var(--muted); font-size: 12px; text-align: center; }
.quiet-link:hover { color: var(--text); }

/* Admin */
.admin-header { position: sticky; top: 0; z-index: 10; display: flex; min-height: 67px; padding: 0 max(25px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; background: rgba(8,11,9,.88); backdrop-filter: blur(18px); }
.admin-header nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 12px; }
.admin-header nav a:hover, .link-button:hover { color: var(--text); }
.admin-header nav form { margin: 0; }
.link-button { padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.admin-main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 50px 0 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 31px; }
.page-heading h1 { margin: 0; font: 700 clamp(33px, 5vw, 50px)/1 Manrope, sans-serif; letter-spacing: -2px; }
.page-heading p:last-child { margin: 10px 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 17px; }
.metric-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.metric-card span { display: block; color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; margin-top: 6px; font: 700 30px/1 Manrope, sans-serif; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.panel-heading { display: flex; min-height: 78px; padding: 19px 23px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font: 700 17px/1.2 Manrope, sans-serif; }
.panel-heading p { margin: 5px 0 0; font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 16px; color: #68736b; background: rgba(255,255,255,.015); font-size: 9px; letter-spacing: 1.2px; text-align: left; text-transform: uppercase; }
td { padding: 17px 16px; border-top: 1px solid rgba(255,255,255,.065); color: #c9d0cb; vertical-align: middle; }
tbody tr:hover { background: rgba(255,255,255,.014); }
td > strong, td > small, td > .key-preview { display: block; }
td > small { margin-top: 4px; max-width: 300px; overflow: hidden; color: #68736b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
code { color: #b8c2bb; font-family: Consolas, monospace; }
.key-preview { margin-top: 5px; color: var(--accent); font-size: 11px; }
.key-copy-row { display: flex; margin-top: 5px; align-items: center; gap: 9px; }
.key-copy-row .key-preview { margin-top: 0; }
.copy-key-button { padding: 3px 6px; border: 1px solid rgba(166,255,61,.18); border-radius: 5px; color: var(--accent); background: rgba(166,255,61,.05); cursor: pointer; font-size: 8px; font-weight: 700; }
.copy-key-button:hover { border-color: rgba(166,255,61,.45); }
.copy-key-button:disabled { color: var(--muted); border-color: var(--line); background: transparent; cursor: not-allowed; }
.inline-form { display: flex; align-items: center; gap: 6px; }
.compact-input { width: 72px; min-height: 34px; padding: 0 8px; text-align: center; }
.icon-button { display: inline-flex; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 7px; align-items: center; justify-content: center; color: var(--accent); background: transparent; cursor: pointer; font-size: 16px; line-height: 1; }
.actions-cell { min-width: 268px; vertical-align: middle; }
.key-actions { display: grid; grid-template-columns: repeat(3, minmax(78px, 1fr)); gap: 6px; align-items: stretch; }
.key-actions form { display: flex; margin: 0; }
.key-actions .button { width: 100%; min-height: 34px; padding: 0 11px; }
.signal-limit-form > span { display: flex; align-items: center; gap: 6px; }
.signal-limit-form > small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 100px; font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.status-active { color: var(--success); background: rgba(139,242,44,.08); }
.status-disabled { color: #89928b; background: rgba(255,255,255,.05); }
.status-down { color: var(--danger); background: rgba(255,98,109,.08); }
.empty-state { padding: 72px 25px; color: var(--muted); text-align: center; }
.empty-state span { color: var(--accent); font: 700 12px Manrope, sans-serif; }
.empty-state h3 { margin: 10px 0 3px; color: var(--text); font: 700 20px Manrope, sans-serif; }
.empty-state p { margin: 0; }
.empty-state.compact { padding: 35px 20px; }
.alert { margin-bottom: 16px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 11px; }
.alert-error { color: #ffabb1; border-color: rgba(255,98,109,.23); background: rgba(255,98,109,.07); }
.alert-success { color: #c9ffa0; border-color: rgba(166,255,61,.23); background: rgba(166,255,61,.06); }
.new-key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(166,255,61,.13); }
.new-key-row code { color: var(--accent); font-size: 15px; font-weight: 700; }

/* Dialog */
.modal-dialog { width: min(470px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: #111612; box-shadow: 0 35px 100px rgba(0,0,0,.72); }
.modal-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.dialog-card { display: grid; gap: 18px; padding: 29px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-heading h2 { margin: 0; font: 700 26px Manrope, sans-serif; }
.dialog-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 21px; }
.split-panel { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; }
.split-panel > div + div { border-left: 1px solid var(--line); }
.event-list { max-height: 580px; overflow-y: auto; }
.event-list article { display: flex; gap: 12px; padding: 15px 22px; border-bottom: 1px solid rgba(255,255,255,.055); }
.event-dot { width: 7px; height: 7px; margin-top: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(166,255,61,.5); }
.event-list strong, .event-list small { display: block; }
.event-list small { max-width: 420px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

/* Live market additions */
.market-background { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 1; pointer-events: none; }
.market-ticker { position: relative; z-index: 3; display: grid; height: 44px; grid-template-columns: auto minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); background: rgba(7,10,8,.86); backdrop-filter: blur(14px); }
.ticker-label, .ticker-state { display: flex; padding: 0 20px; align-items: center; color: #7d8980; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; white-space: nowrap; }
.ticker-label { gap: 8px; border-right: 1px solid var(--line); }
.ticker-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ticker-state { border-left: 1px solid var(--line); }
.ticker-viewport { display: flex; height: 100%; overflow: hidden; align-items: center; mask-image: linear-gradient(90deg, transparent, black 3%, black 97%, transparent); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: ticker-scroll 34s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-group { display: flex; height: 100%; flex-shrink: 0; align-items: center; }
.ticker-item { display: inline-flex; height: 100%; padding: 0 21px; align-items: center; gap: 9px; line-height: 1; white-space: nowrap; }
.ticker-item b { font-size: 10px; letter-spacing: .5px; }
.ticker-item em { color: #a9b3ac; font: normal 10px Consolas, monospace; }
.ticker-item i { margin-left: 9px; color: var(--accent); font-style: normal; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

.terminal-meta { display: flex; margin-bottom: 17px; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.plan-badge { padding: 5px 8px; border: 1px solid rgba(166,255,61,.3); border-radius: 5px; color: var(--accent); background: rgba(166,255,61,.07); font-weight: 800; letter-spacing: .8px; }
.market-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14,18,15,.88); }
.market-overview article { padding: 15px 18px; border-right: 1px solid var(--line); }
.market-overview article:last-child { border-right: 0; }
.market-overview span, .market-overview strong { display: block; }
.market-overview span { margin-bottom: 4px; color: var(--muted); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.market-overview strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.market-overview strong i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.terminal-grid-v2 { grid-template-columns: 1.15fr .85fr; }
.terminal-grid-v2 .settings-card { min-height: 190px; }
.analytics-card { min-height: 190px; }
.analytics-heading { display: flex; align-items: center; justify-content: space-between; }
.analysis-state { padding: 4px 7px; border-radius: 4px; color: var(--accent); background: rgba(166,255,61,.08); font: 700 8px Inter, sans-serif; letter-spacing: 1px; }
.insight-card { margin-top: 18px; padding: 17px 18px; border: 1px solid rgba(166,255,61,.13); border-radius: 11px; background: linear-gradient(135deg, rgba(166,255,61,.045), rgba(255,255,255,.018)); }
.insight-meta, .insight-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.insight-meta span { padding: 4px 7px; border-radius: 4px; color: var(--accent); background: rgba(166,255,61,.08); font-size: 8px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.insight-meta small { color: #667069; font: 9px Consolas, monospace; }
.insight-card h3 { margin: 13px 0 7px; font: 700 17px/1.25 Manrope, sans-serif; }
.insight-card > p { min-height: 66px; margin: 0 0 14px; color: #c5cec7; font-size: 12px; line-height: 1.65; }
.insight-footer { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.insight-footer small { max-width: 55%; color: #667069; font-size: 8px; }
.insight-footer button { padding: 5px 0; border: 0; color: var(--accent); background: transparent; cursor: pointer; font-size: 9px; font-weight: 700; }
.insight-footer button:hover { color: #c5ff82; }
.insight-footer button:disabled { opacity: .45; cursor: wait; }
.candlestick-chart { position: absolute; right: 15px; bottom: 16px; left: 280px; display: flex; height: 120px; align-items: flex-end; justify-content: space-between; opacity: .72; }
.candlestick-chart::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 100% 24px; }
.candlestick-chart i { position: relative; width: 6px; height: var(--h); margin-bottom: var(--y); border-radius: 1px; background: var(--accent); box-shadow: 0 0 9px rgba(166,255,61,.16); }
.candlestick-chart i::before { content: ''; position: absolute; top: -9px; bottom: -9px; left: 50%; width: 1px; background: inherit; transform: translateX(-50%); }
.candlestick-chart i.bear { background: var(--danger); box-shadow: 0 0 9px rgba(255,98,109,.13); }
.terminal-grid-v2 .action-card, .terminal-grid-v2 .statistics-card { grid-column: 1 / -1; }
.statistics-card { display: flex; min-height: 150px; align-items: center; justify-content: space-between; gap: 30px; }
.statistics-card.is-complete { border-color: rgba(166,255,61,.35); background: linear-gradient(125deg, #111712, #182418); box-shadow: inset 0 0 50px rgba(166,255,61,.03); }
.stats-copy h2 { margin-bottom: 7px; }
.stats-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.stats-numbers { display: grid; min-width: 470px; grid-template-columns: repeat(4, 1fr); }
.stats-numbers div { padding: 8px 22px; border-left: 1px solid var(--line); }
.stats-numbers span, .stats-numbers strong { display: block; }
.stats-numbers span { color: var(--muted); font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }
.stats-numbers strong { margin-top: 4px; font: 700 27px Manrope, sans-serif; }
.stats-numbers .positive { color: var(--accent); }
.stats-numbers .negative { color: var(--danger); }
.trader-contact { position: relative; z-index: 2; display: flex; width: min(1180px, calc(100% - 44px)); margin: 20px auto 0; padding: 29px 32px; border: 1px solid rgba(166,255,61,.2); border-radius: 16px; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(110deg, rgba(166,255,61,.08), rgba(15,20,16,.95) 45%); }
.trader-contact h2 { margin: 0 0 4px; font: 700 24px Manrope, sans-serif; }
.trader-contact p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.trader-button { display: inline-flex; min-width: 180px; align-items: center; justify-content: center; }
.trader-button span { margin-left: 11px; }
.settings-panel { margin-top: 17px; }
.settings-form { display: flex; padding: 20px 23px; gap: 10px; }
.settings-form input { flex: 1; }
.settings-form .button { flex: 0 0 auto; }
.plan-picker { display: grid; margin: 0; padding: 0; border: 0; gap: 8px; }
.plan-picker legend { margin-bottom: 7px; color: #c4ccc7; font-size: 12px; font-weight: 600; }
.plan-picker label { position: relative; display: block; cursor: pointer; }
.plan-picker input { position: absolute; opacity: 0; pointer-events: none; }
.plan-picker label > span { display: block; margin: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }
.plan-picker label > span strong, .plan-picker label > span small { display: block; }
.plan-picker label > span small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.plan-picker input:checked + span { border-color: rgba(166,255,61,.65); background: rgba(166,255,61,.07); box-shadow: 0 0 0 2px rgba(166,255,61,.06); }

/* Exhausted signal package */
.limit-dialog { width: 460px; max-width: calc(100vw - 28px); padding: 0; border: 1px solid rgba(166,255,61,.25); border-radius: 20px; color: var(--text); background: #0e130f; box-shadow: 0 35px 110px rgba(0,0,0,.8); }
.limit-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.limit-dialog-card { position: relative; padding: 36px; text-align: center; }
.limit-dialog-card h2 { margin: 0 0 13px; font: 700 28px/1.12 Manrope, sans-serif; letter-spacing: -1px; }
.limit-dialog-card > p:not(.eyebrow) { margin: 0 0 24px; color: var(--muted); line-height: 1.65; }
.limit-dialog-icon { display: grid; width: 50px; height: 50px; margin: 0 auto 22px; border: 1px solid rgba(166,255,61,.35); border-radius: 50%; place-items: center; color: var(--accent); background: rgba(166,255,61,.08); font: 800 22px Manrope, sans-serif; }
.limit-dialog-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 20px; }

@media (max-width: 900px) {
    .terminal-grid { grid-template-columns: 1fr; }
    .terminal-grid-v2 .action-card, .terminal-grid-v2 .statistics-card { grid-column: auto; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .split-panel { grid-template-columns: 1fr; }
    .split-panel > div + div { border-top: 1px solid var(--line); border-left: 0; }
    .market-overview { grid-template-columns: 1fr 1fr; }
    .market-overview article:nth-child(2) { border-right: 0; }
    .market-overview article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .statistics-card { align-items: stretch; flex-direction: column; }
    .stats-numbers { min-width: 0; }
}

@media (max-width: 620px) {
    .landing-header, .landing-footer, .terminal-shell { width: min(100% - 28px, 1180px); }
    .market-ticker { grid-template-columns: minmax(0, 1fr); }
    .ticker-label, .ticker-state { display: none; }
    .live-pill { display: none; }
    .access-shell { padding: 28px 14px; }
    .access-card { padding: 30px 23px; }
    .auth-shell { padding: 14px; }
    .auth-card { padding: 30px 23px; }
    .terminal-heading, .page-heading { align-items: flex-start; flex-direction: column; }
    .terminal-card { padding: 22px; }
    .action-card { align-items: flex-start; flex-direction: column; }
    .action-card .button { width: 100%; }
    .admin-header { padding: 0 17px; }
    .admin-main { width: min(100% - 24px, 1240px); padding-top: 32px; }
    .admin-header nav a { display: none; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-card { padding: 17px; }
    .metric-card strong { font-size: 24px; }
    .new-key-row { align-items: stretch; flex-direction: column; }
    .market-overview { grid-template-columns: 1fr 1fr; }
    .candlestick-chart { left: 45%; }
    .stats-numbers { grid-template-columns: 1fr 1fr; }
    .stats-numbers div:nth-child(3) { border-top: 1px solid var(--line); }
    .stats-numbers div:nth-child(4) { border-top: 1px solid var(--line); }
    .trader-contact { width: min(100% - 28px, 1180px); align-items: stretch; flex-direction: column; }
    .settings-form { align-items: stretch; flex-direction: column; }
    .limit-dialog-card { padding: 32px 22px 24px; }
    .limit-dialog-card h2 { font-size: 24px; }
}
