:root {
  --bg: #07111f;
  --bg-2: #091827;
  --panel: rgba(13, 28, 45, .82);
  --panel-solid: #0d1c2d;
  --panel-soft: rgba(20, 38, 59, .68);
  --line: rgba(157, 190, 219, .13);
  --line-strong: rgba(157, 190, 219, .23);
  --text: #eef8ff;
  --muted: #8fa7bd;
  --mint: #39f5c7;
  --mint-soft: rgba(57, 245, 199, .12);
  --blue: #5eb9ff;
  --blue-soft: rgba(94, 185, 255, .12);
  --violet: #a17cff;
  --violet-soft: rgba(161, 124, 255, .12);
  --amber: #ffcc66;
  --amber-soft: rgba(255, 204, 102, .12);
  --danger: #ff6f8b;
  --danger-soft: rgba(255, 111, 139, .12);
  --success: #47e9b2;
  --shadow: 0 26px 80px rgba(0, 0, 0, .28);
  --radius: 22px;
  --radius-sm: 14px;
  --sidebar: 270px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background:
  radial-gradient(circle at 20% -10%, rgba(57,245,199,.08), transparent 34%),
  radial-gradient(circle at 95% 10%, rgba(161,124,255,.08), transparent 30%),
  linear-gradient(145deg, var(--bg) 0%, #071523 48%, #091321 100%); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
svg { display: block; }
::selection { background: rgba(57,245,199,.28); color: white; }

.app-shell { display: flex; overflow-x: hidden; }
.ambient { position: fixed; border-radius: 999px; filter: blur(90px); pointer-events: none; opacity: .18; z-index: -1; }
.ambient-one { width: 360px; height: 360px; background: var(--mint); top: 35%; left: 12%; }
.ambient-two { width: 340px; height: 340px; background: var(--violet); right: -120px; top: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 26px 18px 18px; background: rgba(6, 17, 30, .88); border-right: 1px solid var(--line); backdrop-filter: blur(22px); z-index: 30; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 13px; padding: 4px 8px 25px; }
.brand-mark { width: 44px; height: 44px; border: 1px solid rgba(57,245,199,.3); border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(57,245,199,.13), rgba(94,185,255,.05)); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 12px 35px rgba(57,245,199,.08); }
.brand-mark svg { width: 28px; fill: none; stroke: url(#none); stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 18px; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.nav-stack { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.nav-label { color: #607b94; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; padding: 18px 12px 8px; }
.admin-label { margin-top: 10px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 13px; border-radius: 13px; color: #9eb3c6; font-size: 14px; font-weight: 600; transition: .2s ease; border: 1px solid transparent; }
.nav-item:hover { color: white; background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.04); transform: translateX(2px); }
.nav-item.active { color: #eafff9; background: linear-gradient(90deg, rgba(57,245,199,.13), rgba(57,245,199,.035)); border-color: rgba(57,245,199,.14); box-shadow: inset 3px 0 var(--mint); }
.nav-icon { width: 19px; height: 19px; color: currentColor; opacity: .9; }
.nav-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active .nav-icon { color: var(--mint); }
.sidebar-footer { margin-top: auto; padding: 18px 8px 4px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.profile-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; color: #052018; background: linear-gradient(135deg, var(--mint), #a6ffe9); font-weight: 900; box-shadow: 0 9px 25px rgba(57,245,199,.18); flex: 0 0 auto; }
.avatar.small { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.profile-copy { min-width: 0; display: flex; flex-direction: column; }
.profile-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.profile-copy small { color: var(--muted); font-size: 10px; }
.icon-button, .mobile-menu { border: 0; background: transparent; color: var(--muted); width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.icon-button:hover, .mobile-menu:hover { background: rgba(255,255,255,.06); color: white; }
.icon-button svg, .mobile-menu svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logout-form { margin: 0; }
.main-column { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 72px; border-bottom: 1px solid var(--line); background: rgba(7,17,31,.63); backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; position: sticky; top: 0; z-index: 20; }
.topbar-copy, .topbar-right { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(57,245,199,.08), 0 0 18px rgba(57,245,199,.75); display: inline-block; animation: breathe 2s infinite; }
.time-chip, .role-chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,.025); font-size: 11px; letter-spacing: .04em; }
.role-chip { color: var(--blue); }
.mobile-menu { display: none; }
.content { width: min(1520px, 100%); margin: 0 auto; padding: 35px 36px 70px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.page-head.compact { max-width: 780px; margin-inline: auto; }
.page-head h1 { margin: 8px 0 7px; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
.page-head p { margin: 0; color: var(--muted); max-width: 720px; line-height: 1.65; font-size: 14px; }
.eyebrow, .card-kicker { color: var(--mint); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.card { background: linear-gradient(145deg, rgba(16,33,52,.88), rgba(10,25,41,.82)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 25px 18px; }
.card-head h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.02em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { position: relative; overflow: hidden; min-height: 166px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(16,34,54,.86), rgba(10,24,39,.9)); box-shadow: 0 18px 55px rgba(0,0,0,.18); }
.metric-card::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -72px; top: -72px; opacity: .16; filter: blur(8px); }
.metric-card.accent-mint::after { background: var(--mint); }
.metric-card.accent-blue::after { background: var(--blue); }
.metric-card.accent-violet::after { background: var(--violet); }
.metric-card.accent-amber::after { background: var(--amber); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; position: relative; z-index: 1; }
.metric-top svg, .metric-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.metric-card.accent-mint .metric-top svg, .metric-card.accent-mint .metric-icon { color: var(--mint); }
.metric-card.accent-blue .metric-top svg, .metric-card.accent-blue .metric-icon { color: var(--blue); }
.metric-card.accent-violet .metric-top svg, .metric-card.accent-violet .metric-icon { color: var(--violet); }
.metric-card.accent-amber .metric-top svg, .metric-card.accent-amber .metric-icon { color: var(--amber); }
.metric-card > strong { display: block; margin: 18px 0 18px; font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -.04em; position: relative; z-index: 1; }
.metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; position: relative; z-index: 1; }
.metric-foot b { color: #cfe2f2; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .75fr); gap: 20px; margin-bottom: 20px; }
.lower-grid { grid-template-columns: minmax(0, 1.25fr) minmax(350px, .85fr); }
.market-card { min-height: 420px; overflow: hidden; }
.mini-live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.market-graph { padding: 0 25px 24px; }
.graph-labels { display: grid; grid-template-columns: repeat(4, 1fr); color: #617f98; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; padding: 0 0 9px; }
.graph-labels span:not(:first-child) { text-align: center; }
.market-graph svg { width: 100%; height: 250px; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 100% 25%, 12.5% 100%; }
.dash-area { fill: url(#dashFill); }
.dash-line { fill: none; stroke: url(#dashLine); stroke-width: 3; filter: drop-shadow(0 0 8px rgba(57,245,199,.35)); }
.graph-meta { display: flex; gap: 18px; align-items: center; padding-top: 15px; color: var(--muted); font-size: 10px; }
.graph-meta i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.graph-meta i.mint { background: var(--mint); }
.graph-meta i.violet { background: var(--violet); }
.graph-note { margin-left: auto; }
.layer-list { padding: 2px 21px 22px; }
.layer-row { display: grid; grid-template-columns: 42px 1fr 12px; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.layer-row:last-child { border-bottom: 0; }
.layer-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--panel-soft); font-size: 10px; font-weight: 900; border: 1px solid var(--line); }
.layer-mark.success { color: var(--mint); background: var(--mint-soft); }
.layer-mark.blue { color: var(--blue); background: var(--blue-soft); }
.layer-mark.violet { color: var(--violet); background: var(--violet-soft); }
.layer-mark.danger { color: var(--danger); background: var(--danger-soft); }
.layer-row div { min-width: 0; }
.layer-row strong { display: block; font-size: 12px; }
.layer-row small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.success { background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.status-dot.danger { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 31px; padding: 0 12px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; border: 1px solid; white-space: nowrap; }
.status-pill.tiny { min-height: 25px; padding: 0 9px; font-size: 8px; }
.status-pill.success { color: var(--mint); background: var(--mint-soft); border-color: rgba(57,245,199,.2); }
.status-pill.warning { color: var(--amber); background: var(--amber-soft); border-color: rgba(255,204,102,.2); }
.status-pill.danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(255,111,139,.2); }
.status-pill.neutral { color: var(--muted); background: rgba(255,255,255,.035); border-color: var(--line); }
.status-led { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { text-align: left; color: #6f8ba3; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; padding: 12px 20px; border-bottom: 1px solid var(--line); }
td { padding: 15px 20px; border-bottom: 1px solid rgba(157,190,219,.08); font-size: 11px; color: #cbdbe8; vertical-align: middle; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(255,255,255,.02); }
tbody tr:last-child td { border-bottom: 0; }
.compact-table table { min-width: 500px; }
.ticker-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 8px; background: rgba(94,185,255,.08); border: 1px solid rgba(94,185,255,.14); color: #bfe2ff; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.cell-sub { display: block; color: var(--muted); margin-top: 4px; font-size: 9px; }
.timeline-list, .ledger-list { padding: 1px 22px 22px; }
.timeline-item, .ledger-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 14px 3px; border-bottom: 1px solid var(--line); }
.timeline-item:last-child, .ledger-row:last-child { border-bottom: 0; }
.timeline-side, .ledger-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.timeline-side.buy { color: var(--mint); background: var(--mint-soft); }
.timeline-side.sell { color: var(--danger); background: var(--danger-soft); }
.timeline-item strong, .ledger-row strong { font-size: 11px; }
.timeline-item small, .ledger-row small { display: block; color: var(--muted); margin-top: 3px; font-size: 9px; }
.ledger-icon.success { color: var(--mint); background: var(--mint-soft); }
.ledger-icon.warning { color: var(--amber); background: var(--amber-soft); }
.ledger-icon.danger { color: var(--danger); background: var(--danger-soft); }
.ledger-value { text-align: right; }
.empty-state { min-height: 130px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.empty-state span { font-size: 27px; color: #52738d; }
.empty-state p { margin: 8px 0; font-size: 11px; }
.action-banner { border-radius: 17px; border: 1px solid; margin-bottom: 18px; padding: 16px 18px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; }
.action-banner.warning-banner { background: var(--amber-soft); border-color: rgba(255,204,102,.19); }
.action-banner.danger-banner { background: var(--danger-soft); border-color: rgba(255,111,139,.19); }
.banner-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(0,0,0,.12); color: var(--amber); font-weight: 900; }
.banner-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.action-banner strong { font-size: 12px; }
.action-banner p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.primary-button, .secondary-button, .danger-button, .ghost-button, .mini-button { border-radius: 12px; border: 1px solid transparent; min-height: 40px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 800; transition: .18s ease; }
.primary-button { color: #041d17; background: linear-gradient(135deg, var(--mint), #a6ffe9); box-shadow: 0 12px 28px rgba(57,245,199,.15); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 15px 34px rgba(57,245,199,.24); }
.secondary-button { color: #cfe2f2; background: rgba(255,255,255,.035); border-color: var(--line-strong); }
.secondary-button:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.danger-button { color: white; background: linear-gradient(135deg, #e95172, #ff7890); box-shadow: 0 12px 28px rgba(255,111,139,.14); }
.danger-button:hover { transform: translateY(-1px); }
.ghost-button { color: var(--muted); background: transparent; border-color: var(--line); }
.mini-button { min-height: 30px; padding: 0 11px; border-radius: 9px; color: #cfe2f2; background: rgba(255,255,255,.04); border-color: var(--line); font-size: 9px; }
.mini-button:hover { background: rgba(255,255,255,.08); }
.mini-button.success { color: var(--mint); border-color: rgba(57,245,199,.25); }
.mini-button.danger { color: var(--danger); border-color: rgba(255,111,139,.25); }
.mini-button.disabled { pointer-events: none; opacity: .35; }
.full { width: 100%; }
.text-link { color: var(--blue); font-size: 10px; font-weight: 700; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 20px; align-items: start; }
.settings-main { padding-bottom: 25px; }
.settings-aside { display: grid; gap: 14px; }
.info-card { padding: 21px; }
.info-card h3 { margin: 14px 0 7px; font-size: 13px; }
.info-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.info-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 10px; font-weight: 900; }
.info-icon.mint, .info-icon.success { color: var(--mint); background: var(--mint-soft); }
.info-icon.blue { color: var(--blue); background: var(--blue-soft); }
.info-icon.violet { color: var(--violet); background: var(--violet-soft); }
.info-icon.danger { color: var(--danger); background: var(--danger-soft); }
.form-grid { display: grid; gap: 18px; padding: 5px 25px 0; }
.form-grid.single { grid-template-columns: 1fr; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 5px; }
.field { display: grid; gap: 8px; color: #a9bed0; font-size: 10px; font-weight: 700; }
.field > span { display: flex; align-items: center; justify-content: space-between; }
.field em { color: #5d7990; font-style: normal; font-weight: 500; }
.field small { color: #6f899f; font-size: 9px; font-weight: 500; line-height: 1.5; }
.plain-input, select.plain-input, textarea.plain-input { width: 100%; min-height: 45px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--text); background: rgba(4,14,25,.55); outline: none; padding: 0 14px; transition: .18s ease; }
textarea.plain-input { padding-top: 12px; resize: vertical; }
.plain-input:focus { border-color: rgba(57,245,199,.55); box-shadow: 0 0 0 4px rgba(57,245,199,.07); }
.plain-input:disabled { opacity: .5; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; }
.money-input { display: grid; grid-template-columns: 42px 1fr; align-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(4,14,25,.55); }
.money-input span { display: grid; place-items: center; color: var(--mint); font-weight: 900; }
.money-input .plain-input { border: 0; background: transparent; }
.inline-alert { margin: 0 25px 18px; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 10px; line-height: 1.5; }
.inline-alert.warning { color: #ffe0a0; background: var(--amber-soft); border-color: rgba(255,204,102,.18); }
.inline-alert.danger { color: #ffd1db; background: var(--danger-soft); border-color: rgba(255,111,139,.18); }
.inline-alert.success { color: #c8ffef; background: var(--mint-soft); border-color: rgba(57,245,199,.18); }
.inline-alert span { color: var(--muted); }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); background: var(--mint-soft); border: 1px solid rgba(57,245,199,.18); border-radius: 999px; min-height: 28px; padding: 0 10px; font-size: 9px; font-weight: 800; }
.secure-badge svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.toolbar { min-height: 68px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.search-form { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; }
.search-form svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; margin-left: 4px; }
.search-form input, .filter-form select { flex: 1; min-height: 40px; border: 0; outline: 0; color: var(--text); background: transparent; }
.filter-form { display: flex; align-items: center; gap: 10px; }
.filter-form label { color: var(--muted); font-size: 10px; }
.filter-form select { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; min-width: 250px; background: #0b1b2c; }
.toolbar-note { color: var(--muted); font-size: 9px; display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.allowed { background: var(--mint); }
.legend-dot.blocked { background: var(--danger); margin-left: 12px; }
.table-card { overflow: hidden; }
.settings-table { min-width: 860px; }
.blocked-row { background: rgba(255,111,139,.025); }
.inline-setting-form { display: flex; align-items: center; gap: 8px; }
.table-input { width: 105px; min-height: 31px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.14); color: var(--text); padding: 0 9px; font-size: 9px; }
.switch { display: inline-flex; }
.switch input { display: none; }
.switch span { width: 35px; height: 20px; border-radius: 999px; background: rgba(255,111,139,.23); position: relative; transition: .18s ease; }
.switch span::after { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #b9c7d3; transition: .18s ease; }
.switch input:checked + span { background: rgba(57,245,199,.26); }
.switch input:checked + span::after { transform: translateX(15px); background: var(--mint); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.side-pill { min-width: 36px; min-height: 25px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 8px; font-weight: 900; }
.side-pill.buy { color: var(--mint); background: var(--mint-soft); }
.side-pill.sell { color: var(--danger); background: var(--danger-soft); }
.resolve-actions { display: flex; gap: 5px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.narrow-card { max-width: 720px; margin: 0 auto; padding-bottom: 25px; }
.password-rules { display: flex; flex-wrap: wrap; gap: 7px; }
.password-rules span { color: #7c96ab; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; font-size: 8px; }
.security-grid { display: grid; grid-template-columns: minmax(310px,.7fr) minmax(350px,1fr); gap: 20px; max-width: 1050px; }
.mfa-card { text-align: center; }
.qr-shell { margin: 3px auto 15px; background: white; border-radius: 18px; padding: 13px; width: 220px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.qr-shell img { width: 100%; display: block; }
.copy-row { display: flex; gap: 8px; }
.copy-row code { flex: 1; display: flex; align-items: center; padding: 0 13px; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; color: var(--blue); background: rgba(0,0,0,.18); overflow: hidden; }
.otp-input { letter-spacing: .45em; text-align: center; font-size: 18px; }
.wallet-layout { grid-template-columns: minmax(320px,.65fr) minmax(400px,1.1fr); }
.wallet-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell strong, .user-cell small { display: block; }
.user-cell small { color: var(--muted); margin-top: 2px; font-size: 9px; }
.form-card { max-width: 1050px; padding-bottom: 25px; }
.user-edit-layout { grid-template-columns: minmax(0,1.35fr) minmax(280px,.55fr); }
.top-gap { margin-top: 20px; }
.kill-card { padding: 25px; }
.kill-card.armed { border-color: rgba(255,111,139,.28); box-shadow: 0 25px 80px rgba(255,111,139,.07); }
.kill-card.safe { border-color: rgba(57,245,199,.2); }
.kill-visual { display: flex; align-items: center; gap: 20px; margin-bottom: 17px; }
.kill-ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); box-shadow: inset 0 0 25px rgba(255,255,255,.025); }
.kill-ring i { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 9px rgba(57,245,199,.08), 0 0 30px rgba(57,245,199,.55); }
.armed .kill-ring i { background: var(--danger); box-shadow: 0 0 0 9px rgba(255,111,139,.08), 0 0 30px rgba(255,111,139,.55); }
.kill-visual div { display: flex; flex-direction: column; gap: 5px; }
.kill-visual span { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.kill-visual strong { font-size: 29px; letter-spacing: -.04em; }
.kill-card > p { color: var(--muted); font-size: 11px; line-height: 1.65; margin-bottom: 20px; }
.admin-symbol-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.admin-symbol-grid .card { padding-bottom: 22px; }
.upload-box { min-height: 115px; border: 1px dashed rgba(94,185,255,.3); border-radius: 15px; background: var(--blue-soft); display: grid; place-items: center; align-content: center; gap: 5px; color: var(--blue); cursor: pointer; }
.upload-box input { display: none; }
.upload-box span { font-size: 11px; font-weight: 800; }
.upload-box small { color: var(--muted); }
.json-chip, .hash-chip { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9db7ca; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; font-size: 8px; }
.hash-chip { color: var(--mint); }
.toast { position: fixed; right: 28px; top: 88px; z-index: 80; width: min(390px, calc(100vw - 40px)); border-radius: 15px; padding: 15px; display: grid; grid-template-columns: 35px 1fr 25px; gap: 11px; align-items: center; backdrop-filter: blur(18px); box-shadow: 0 22px 65px rgba(0,0,0,.35); animation: toastIn .35s ease both; }
.toast-success { background: rgba(10,44,38,.94); border: 1px solid rgba(57,245,199,.28); }
.toast-danger { background: rgba(55,20,34,.94); border: 1px solid rgba(255,111,139,.28); }
.toast-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--mint); background: var(--mint-soft); font-weight: 900; }
.toast-danger .toast-icon { color: var(--danger); background: var(--danger-soft); }
.toast strong { font-size: 11px; }
.toast p { margin: 3px 0 0; color: #9fb3c4; font-size: 9px; line-height: 1.4; }
.toast-close { border: 0; background: transparent; color: var(--muted); font-size: 18px; }
.toast-out { animation: toastOut .35s ease both; }
.sidebar-scrim { display: none; }
.no-scroll { overflow: hidden; }

/* Login */
.login-page { min-height: 100vh; overflow-x: hidden; background: #06101c; }
.login-grid { position: fixed; inset: 0; background-image: linear-gradient(rgba(133,174,203,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(133,174,203,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, black, transparent 80%); }
.login-orb { position: fixed; border-radius: 50%; filter: blur(100px); opacity: .2; }
.orb-a { width: 420px; height: 420px; background: var(--mint); left: 20%; top: 15%; }
.orb-b { width: 470px; height: 470px; background: var(--violet); right: -180px; bottom: -120px; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(430px,.85fr); position: relative; z-index: 1; }
.login-story { padding: 45px 7vw 48px; display: flex; flex-direction: column; min-height: 100vh; }
.login-brand { display: flex; align-items: center; gap: 12px; width: fit-content; }
.login-brand > span:last-child { display: flex; flex-direction: column; }
.login-brand strong { font-size: 18px; }
.login-brand small { color: var(--muted); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; margin-top: 3px; }
.story-copy { margin: auto 0 40px; max-width: 760px; }
.story-copy .eyebrow { display: flex; align-items: center; gap: 9px; }
.story-copy h1 { margin: 20px 0; font-size: clamp(48px,6.3vw,90px); line-height: .98; letter-spacing: -.065em; }
.story-copy h1 span { color: transparent; background: linear-gradient(90deg,var(--mint),var(--blue) 55%,var(--violet)); background-clip: text; -webkit-background-clip: text; }
.story-copy p { max-width: 650px; color: #90a7ba; font-size: 15px; line-height: 1.75; }
.signal-viz { border: 1px solid var(--line); border-radius: 20px; padding: 17px 20px; background: rgba(8,23,38,.55); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.signal-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.signal-head strong { color: var(--mint); }
.signal-viz svg { width: 100%; height: 160px; margin-top: 10px; }
.area-path { fill: url(#fillGlow); }
.line-path { fill: none; stroke: url(#lineGlow); stroke-width: 3; filter: drop-shadow(0 0 10px rgba(57,245,199,.4)); stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.2s .2s ease forwards; }
.pulse-dot { fill: var(--mint); filter: drop-shadow(0 0 10px var(--mint)); animation: breathe 1.5s infinite; }
.signal-stats { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; border-top: 1px solid var(--line); padding-top: 12px; }
.signal-stats b { color: white; margin-right: 4px; }
.login-panel-wrap { min-height: 100vh; padding: 28px 4vw; display: grid; place-items: center; border-left: 1px solid var(--line); background: rgba(5,14,25,.42); backdrop-filter: blur(16px); }
.login-panel { width: min(470px,100%); position: relative; overflow: hidden; border: 1px solid rgba(151,188,217,.16); border-radius: 25px; background: linear-gradient(145deg, rgba(17,34,52,.92), rgba(8,22,37,.94)); box-shadow: 0 35px 110px rgba(0,0,0,.45); padding: 38px; }
.panel-topline { position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg,transparent,var(--mint),transparent); box-shadow: 0 0 24px var(--mint); }
.login-heading { margin-bottom: 25px; }
.login-heading h2 { margin: 18px 0 8px; font-size: 27px; letter-spacing: -.04em; }
.login-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.auth-form { display: grid; gap: 18px; }
.input-shell { min-height: 49px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(2,11,21,.42); transition: .18s ease; }
.input-shell:focus-within { border-color: rgba(57,245,199,.5); box-shadow: 0 0 0 4px rgba(57,245,199,.06); }
.input-shell svg { width: 17px; margin: 0 auto; fill: none; stroke: #66829a; stroke-width: 1.6; }
.input-shell input { min-width: 0; height: 47px; border: 0; outline: 0; background: transparent; color: white; font-size: 12px; }
.input-shell input::placeholder { color: #4f6b82; }
.password-toggle { border: 0; background: transparent; color: var(--blue); font-size: 9px; padding-right: 13px; }
.primary-button.large { min-height: 50px; margin-top: 3px; justify-content: space-between; padding: 0 19px; }
.login-footnote { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; gap: 10px; color: #6f899f; font-size: 9px; line-height: 1.5; }
.login-footnote p { margin: 0; }
.lock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-top: 4px; box-shadow: 0 0 10px var(--mint); flex: 0 0 auto; }

@keyframes breathe { 50% { opacity: .55; transform: scale(.86); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes toastIn { from { transform: translateY(-12px) translateX(20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
  .settings-layout, .user-edit-layout { grid-template-columns: 1fr; }
  .login-story { padding-left: 5vw; padding-right: 5vw; }
}
@media (max-width: 920px) {
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 30px 0 80px rgba(0,0,0,.45); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
  .sidebar-scrim.show { display: block; }
  .main-column { margin-left: 0; width: 100%; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 20px; }
  .topbar-copy { display: none; }
  .content { padding: 28px 20px 55px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 30px 25px; }
  .story-copy { margin: 80px 0 35px; }
  .story-copy h1 { font-size: clamp(45px,11vw,72px); }
  .signal-viz { display: none; }
  .login-panel-wrap { min-height: auto; border-left: 0; padding: 25px 20px 55px; }
  .login-panel { width: min(560px,100%); }
}
@media (max-width: 680px) {
  .content { padding-inline: 14px; }
  .topbar { height: 62px; padding-inline: 14px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .head-actions { justify-content: flex-start; }
  .metric-grid, .wallet-metrics, .admin-symbol-grid, .security-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 145px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-form { max-width: none; }
  .filter-form { flex-wrap: wrap; }
  .filter-form select { min-width: 0; width: 100%; }
  .action-banner { grid-template-columns: 38px 1fr; }
  .action-banner .secondary-button { grid-column: 1 / -1; }
  .graph-note { display: none; }
  .market-graph svg { height: 200px; }
  .login-panel { padding: 27px 20px; }
  .story-copy { margin-top: 60px; }
  .story-copy p { font-size: 13px; }
  .signal-stats { flex-direction: column; gap: 7px; }
  .toast { right: 14px; top: 72px; }
}

/* One-time credential result */
.one-time-secret-card { max-width: 780px; margin-inline: auto; }
.secret-output-row { display: flex; align-items: center; gap: 14px; padding: 18px; margin: 18px 0; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(5,15,27,.72); }
.secret-output-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 700 17px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .035em; color: var(--mint); }
.compact-banner { margin-top: 16px; }
@media (max-width: 680px) { .secret-output-row { align-items: stretch; flex-direction: column; } }
