/* ═══════════════ TORNADO AI — WEB ═══════════════ */
:root {
  --bg: #070a13;
  --bg2: #0b0f1c;
  --card: #0d1220;
  --card2: #131b31;
  --inset: #080c17;
  --line: rgba(86, 170, 255, .22);
  --line-s: rgba(86, 170, 255, .10);
  --line2: rgba(255, 255, 255, .07);
  --gold: #3fe0ff;
  --gold2: #6d8bff;
  --gold-ink: #05101f;
  --gold-grad: linear-gradient(135deg, #34e0ff 0%, #6d8bff 100%);
  --text: #eaf0ff;
  --mut: #98a4c0;
  --dim: #65708c;
  --green: #3ddc97;
  --green-bg: rgba(61, 220, 151, .13);
  --red: #ff6b81;
  --red-bg: rgba(255, 107, 129, .14);
  --blue: #8aa4ff;
  --shadow: 0 12px 34px rgba(0, 0, 0, .55);
  --glow: inset 0 1px 0 rgba(255, 255, 255, .045);
  --r: 18px;
  --font-h: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-b: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef2fb;
  --bg2: #e4eaf8;
  --card: #ffffff;
  --card2: #f6f8ff;
  --inset: #eef2fb;
  --line: rgba(40, 90, 200, .25);
  --line-s: rgba(40, 90, 200, .12);
  --line2: rgba(10, 20, 60, .09);
  --gold: #0b79b8;
  --gold2: #4b5bd6;
  --text: #0e1630;
  --mut: #55607e;
  --dim: #8a94b0;
  --green: #0e9f66;
  --green-bg: rgba(14, 159, 102, .12);
  --red: #d6334f;
  --red-bg: rgba(214, 51, 79, .10);
  --shadow: 0 8px 24px rgba(30, 50, 110, .13);
  --glow: none;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font-b); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--gold); text-decoration: none; }
svg.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.hide { display: none !important; }
.mut { color: var(--mut); } .dim { color: var(--dim); }
.up { color: var(--green); } .down { color: var(--red); } .gold { color: var(--gold); }
.mono { font-variant-numeric: tabular-nums; }
.h { font-family: var(--font-h); }

/* ───────── shell ───────── */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: 78px minmax(0, 1fr); min-height: 100vh; }
.topbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; padding: 0 22px 0 18px;
  background: linear-gradient(180deg, #0c1224, #080c18); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
:root[data-theme="light"] .topbar { background: linear-gradient(180deg, #ffffff, #e9effc); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 232px; }
.brand svg { width: 52px; height: 52px; filter: drop-shadow(0 0 10px rgba(63, 224, 255, .35)); }
.brand .t1 { font-family: var(--font-h); font-weight: 800; font-size: 30px; letter-spacing: .5px; line-height: 1; }
.brand .t1 b { color: var(--gold); font-weight: 900; }
.brand .t2 { font-size: 11px; letter-spacing: 2.4px; color: var(--mut); margin-top: 4px; font-weight: 500; }
.tagline { display: flex; gap: 18px; align-items: center; font-family: var(--font-h); font-weight: 600; font-size: 12px; letter-spacing: 3px; color: var(--mut); flex: 1; }
.tagline i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); display: inline-block; }
.top-r { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.status-box {
  display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.status-box svg { width: 24px; height: 24px; color: var(--gold); }
.status-box .l { font-size: 11px; color: var(--mut); }
.status-box .v { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.warn { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot.off { background: var(--red); }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); color: var(--text); }
.icon-btn:hover { border-color: var(--line); color: var(--gold); }
.icon-btn .n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ff3b3b; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.user-box { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: left; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #25335a, #101830); border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-family: var(--font-h); font-weight: 800; }
.user-box .nm { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.user-box .id { font-size: 11px; color: var(--mut); }
.vip { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 800; font-size: 11px; letter-spacing: .5px; }
.menu-btn { display: none; }

.side {
  background: linear-gradient(180deg, #0c1224, #080c18); border-right: 1px solid var(--line-s); padding: 22px 0 0; display: flex; flex-direction: column;
  position: sticky; top: 78px; height: calc(100vh - 78px); height: calc(100dvh - 78px); overflow-y: auto;
}
:root[data-theme="light"] .side { background: linear-gradient(180deg, #ffffff, #e6edfb); }
.nav { display: flex; flex-direction: column; gap: 4px; padding: 0 0 0 0; }
.nav a {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 26px; color: var(--text); font-weight: 500; font-size: 15px; position: relative; opacity: .92;
  border-left: 3px solid transparent;
}
.nav a svg { width: 24px; height: 24px; color: var(--mut); }
.nav a:hover { background: rgba(63, 224, 255, .06); }
.nav a.act { background: linear-gradient(90deg, rgba(63, 224, 255, .22), rgba(63, 224, 255, .03)); border-left-color: var(--gold); font-weight: 700; color: var(--gold); opacity: 1; }
.nav a.act svg { color: var(--gold); }
.nav a .sub { font-size: 14px; line-height: 1.25; }
.side-foot { margin-top: auto; } .side-art { margin-top: auto; padding: 18px 20px 0; position: relative; text-align: center; }
.side-art svg { width: 110px; height: 110px; filter: drop-shadow(0 0 16px rgba(63, 224, 255, .35)); }
.side-art .tx { font-family: var(--font-h); font-weight: 800; font-size: 18px; line-height: 1.1; transform: rotate(-7deg); text-align: left; margin: -6px 0 6px 6px; color: var(--text); }
.side-art .tx b { color: var(--gold); display: block; }
.side-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; margin-top: 8px; border-top: 1px solid var(--line-s); font-size: 13px; }
.side-foot .l { display: flex; align-items: center; gap: 8px; color: var(--text); }
.main { padding: 16px 18px 18px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.page-title { font-family: var(--font-h); font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.page-sub { color: var(--mut); margin-top: 2px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ───────── generic ───────── */
.card {
  background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--glow);
  padding: 16px 18px; position: relative; min-width: 0;
}
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-h .ico { width: 34px; height: 34px; color: var(--gold); display: grid; place-items: center; }
.card-h .ico svg { width: 30px; height: 30px; }
.card-h h3 { font-family: var(--font-h); font-weight: 700; font-size: 17px; }
.card-h .sub { font-size: 12px; color: var(--mut); }
.card-h .r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.link { color: var(--gold); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text); transition: transform .08s, filter .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-gold { background: var(--gold-grad); color: var(--gold-ink); border-color: #7aeaff; box-shadow: 0 2px 14px rgba(63, 224, 255, .25); }
.btn-gold:hover { filter: brightness(1.06); border-color: #a6f1ff; }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: rgba(255, 90, 90, .45); }
.btn-danger:hover { border-color: var(--red); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line2); background: var(--inset); }
.pill.ok { color: var(--green); border-color: rgba(34, 215, 131, .45); background: var(--green-bg); }
.pill.off { color: var(--mut); }
.pill.warn { color: var(--gold); border-color: var(--line); }
.pill.bad { color: var(--red); border-color: rgba(255, 90, 90, .4); background: var(--red-bg); }
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .4px; }
.tag.call { color: var(--green); background: var(--green-bg); border: 1px solid rgba(34, 215, 131, .35); }
.tag.put { color: var(--red); background: var(--red-bg); border: 1px solid rgba(255, 90, 90, .35); }
.chip { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--green-bg); color: var(--green); border: 1px solid rgba(34, 215, 131, .35); }
.chip.neutral { background: var(--inset); color: var(--mut); border-color: var(--line2); }
.chip.bad { background: var(--red-bg); color: var(--red); border-color: rgba(255, 90, 90, .35); }
.chip.gold { background: rgba(63, 224, 255, .12); color: var(--gold); border-color: var(--line); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp { flex: 1; }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 13px; color: var(--mut); font-weight: 500; }
.input, .select, textarea.input {
  width: 100%; background: var(--inset); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .15s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--gold); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a39d90' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input-wrap { position: relative; }
.input-wrap .pre { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); display: grid; }
.input-wrap .pre svg { width: 17px; height: 17px; }
.input-wrap .input { padding-left: 40px; }
.input-wrap .post { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; color: var(--mut); }
.broker-console { width: min(100%, 820px); margin: 10px auto 0; padding: clamp(22px, 4vw, 42px); overflow: hidden; position: relative; border: 1px solid rgba(73, 196, 255, .2); border-radius: 24px; background: radial-gradient(ellipse at 95% 0%, rgba(41, 136, 220, .14), transparent 38%), linear-gradient(145deg, rgba(17, 27, 49, .98), rgba(8, 13, 26, .98)); box-shadow: 0 28px 80px rgba(0, 0, 0, .28), inset 0 1px rgba(255,255,255,.035); }
:root[data-theme="light"] .broker-console { background: radial-gradient(ellipse at 95% 0%, rgba(41, 136, 220, .1), transparent 38%), linear-gradient(145deg,#fff,#f3f7ff); }
.broker-console__top,.broker-console__brand,.broker-status,.broker-account,.broker-field__control,.broker-console__foot,.broker-otp__actions { display:flex; align-items:center; }
.broker-console__top { justify-content:space-between; gap:18px; }
.broker-console__brand { gap:16px; }
.broker-console__mark img { width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit; }
.broker-console__mark { width:54px;height:54px;display:grid;place-items:center;overflow:hidden;padding:0;border:1px solid rgba(63,224,255,.32);border-radius:17px;background:linear-gradient(145deg,rgba(63,224,255,.16),rgba(109,139,255,.1));color:var(--gold);font:700 27px var(--font-h);box-shadow:inset 0 1px rgba(255,255,255,.08); }
.broker-console h2 { margin-top:2px;font:700 22px var(--font-h);letter-spacing:-.5px; }
.broker-console__brand p,.broker-form__intro p { color:var(--mut);font-size:13px;margin-top:3px; }
.eyebrow { display:block;color:var(--dim);font-size:10px;font-weight:700;letter-spacing:1.35px; }
.broker-status { gap:9px;padding:9px 13px;border:1px solid var(--line2);border-radius:999px;background:rgba(5,10,22,.38);font-size:12px;font-weight:650;color:var(--mut);white-space:nowrap; }
.broker-status i { width:8px;height:8px;border-radius:50%;background:var(--dim);box-shadow:0 0 0 4px rgba(101,112,140,.1); }
.broker-status[data-state="connected"] { color:var(--green);border-color:rgba(61,220,151,.25); }.broker-status[data-state="connected"] i { background:var(--green);box-shadow:0 0 12px var(--green); }
.broker-status[data-state="connecting"] i { background:var(--gold);animation:broker-pulse 1.1s ease-in-out infinite; }
.broker-status[data-state="failed"],.broker-status[data-state="expired"] { color:var(--red);border-color:rgba(255,107,129,.28); }.broker-status[data-state="failed"] i,.broker-status[data-state="expired"] i { background:var(--red); }
.broker-account { gap:12px;margin-top:24px;padding:14px 16px;border:1px solid rgba(61,220,151,.22);border-radius:14px;background:var(--green-bg); }
.broker-balance { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:15px 17px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(110deg,rgba(63,224,255,.07),rgba(109,139,255,.04)); }.broker-balance[hidden] { display:none; }.broker-balance strong { display:block;margin-top:4px;font:700 23px var(--font-h); }.broker-balance>small { color:var(--mut);font-size:11px; }
.broker-account[hidden] { display:none; }.broker-account__icon { color:var(--green); }.broker-account__icon svg { width:20px;height:20px; }.broker-account strong,.broker-account small { display:block; }.broker-account strong { margin-top:3px;font-size:14px; }.broker-account small { color:var(--mut);margin-top:2px; }
.broker-console__rule { height:1px;margin:25px 0;background:linear-gradient(90deg,transparent,var(--line),transparent); }
.broker-form { display:flex;flex-direction:column;gap:17px;max-width:570px;margin:0 auto; }.broker-form__intro { margin-bottom:1px; }.broker-form__intro h3 { margin-top:6px;font:650 21px var(--font-h);letter-spacing:-.4px; }.broker-form__intro p { max-width:470px;line-height:1.6; }
.broker-field { display:flex;flex-direction:column;gap:8px;color:var(--text);font-size:12px;font-weight:600; }
.broker-field__control { position:relative;min-height:51px;border:1px solid rgba(130,164,213,.19);border-radius:12px;background:rgba(4,9,19,.58);transition:border-color .18s,box-shadow .18s,background .18s; }
:root[data-theme="light"] .broker-field__control { background:rgba(240,245,255,.8); }
.broker-field__control:focus-within { border-color:var(--gold);box-shadow:0 0 0 3px rgba(63,224,255,.1);background:rgba(5,12,25,.84); }
.broker-field__control input { width:100%;height:49px;min-width:0;padding:0 14px 0 44px;border:0;outline:0;background:transparent;color:var(--text);font-size:14px; }
.broker-field__control input::placeholder { color:var(--dim); }.broker-field__icon { position:absolute;left:14px;display:grid;color:var(--dim);pointer-events:none; }.broker-field__icon svg { width:17px;height:17px; }
.password-toggle { position:absolute;right:8px;width:35px;height:35px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--mut);cursor:pointer; }.password-toggle:hover { background:var(--line-s);color:var(--gold); }.password-toggle svg { width:18px;height:18px; }
.broker-field:has(#bk-password) input { padding-right:48px; }.broker-field__error { min-height:0;color:var(--red);font-size:11px;font-weight:500; }.broker-field__error:empty { display:none; }
.broker-form__error { color:var(--red);font-size:12px;line-height:1.5; }.broker-form__error:empty { display:none; }
.broker-connect { min-height:52px;width:100%;display:flex;align-items:center;justify-content:center;gap:11px;position:relative;padding:0 46px;border:1px solid rgba(150,244,255,.6);border-radius:12px;background:linear-gradient(110deg,#35d9f1,#6498ff 70%,#7a83ff);color:#04101e;font-size:14px;font-weight:750;letter-spacing:.1px;cursor:pointer;box-shadow:0 9px 26px rgba(49,174,245,.2),inset 0 1px rgba(255,255,255,.38);transition:transform .18s,filter .18s,box-shadow .18s; }.broker-connect:hover { transform:translateY(-1px);filter:brightness(1.07);box-shadow:0 12px 30px rgba(49,174,245,.28); }.broker-connect:focus-visible { outline:3px solid rgba(63,224,255,.35);outline-offset:3px; }.broker-connect:disabled { cursor:wait;opacity:.78;transform:none; }.broker-connect__arrow { position:absolute;right:17px;display:grid; }.broker-connect__arrow svg { width:18px;height:18px; }.broker-connect__spinner { display:none;width:16px;height:16px;border:2px solid rgba(4,16,30,.3);border-top-color:#04101e;border-radius:50%; }.broker-connect.is-loading .broker-connect__spinner { display:block;animation:broker-spin .7s linear infinite; }
.broker-otp { padding-top:3px; }.broker-otp__actions { gap:10px; }.broker-otp__actions .broker-connect { flex:1; }.broker-console__foot { justify-content:space-between;gap:12px;margin-top:25px;padding-top:15px;border-top:1px solid var(--line2);color:var(--dim);font-size:11px; }.broker-console__foot span:first-child { display:flex;align-items:center;gap:7px;color:var(--mut); }.broker-console__foot svg { width:14px;height:14px;color:var(--gold); }
.broker-console__disconnect { display:flex;justify-content:flex-end;margin-top:12px; }
@keyframes broker-spin { to { transform:rotate(360deg); } } @keyframes broker-pulse { 50% { opacity:.45;box-shadow:0 0 0 6px rgba(63,224,255,.08); } }
.hint { font-size: 12px; color: var(--dim); }
.amount-box { display: flex; align-items: center; background: var(--inset); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.amount-box button { width: 40px; height: 42px; color: var(--text); display: grid; place-items: center; }
.amount-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-weight: 700; font-size: 16px; text-align: left; padding: 0 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { min-width: 48px; padding: 8px 12px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line2); font-weight: 600; font-size: 13px; }
.chips button.on { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: rgba(63, 224, 255, .08); }
.seg { display: inline-flex; background: var(--inset); border: 1px solid var(--line2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--mut); }
.seg button.on { background: var(--gold-grad); color: var(--gold-ink); }
.seg.real button.on[data-v="REAL"] { background: linear-gradient(180deg, #ff8a9c, #e0405c); color: #fff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--inset); font-size: 12px; font-weight: 600; color: var(--mut); }
.tabs button.on { background: var(--gold-grad); color: var(--gold-ink); border-color: transparent; }
.toggle { position: relative; width: 54px; height: 30px; border-radius: 15px; background: #1b2542; border: 1px solid var(--line2); transition: background .15s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #c3cdea; transition: transform .15s, background .15s; }
.toggle.on { background: var(--gold-grad); border-color: transparent; }
.toggle.on::after { transform: translateX(24px); background: #fff; }
.toggle-lbl { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--gold); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days button { min-width: 44px; padding: 7px 8px; border-radius: 6px; background: var(--inset); border: 1px solid var(--line2); font-size: 12px; color: var(--mut); font-weight: 600; }
.days button.on { background: var(--gold-grad); color: var(--gold-ink); border-color: transparent; }
.inset { background: var(--inset); border: 1px solid var(--line2); border-radius: 12px; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 600; color: var(--mut); font-size: 12px; padding: 9px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
.empty { text-align: center; color: var(--dim); padding: 26px 10px; font-size: 13px; }
.asset { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.coin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #111; flex: none; letter-spacing: -.3px; }

/* ───────── dashboard ───────── */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.d-welcome { grid-column: 1 / 6; }
.d-balance { grid-column: 6 / 10; }
.d-tag { grid-column: 10 / 13; }
.d-auto { grid-column: 1 / 10; }
.d-right { grid-column: 10 / 13; grid-row: 2 / 4; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.d-res { grid-column: 1 / 6; } .d-sch { grid-column: 6 / 10; }
.welcome { display: flex; align-items: center; gap: 18px; min-height: 150px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 50%, rgba(63, 224, 255, .17), transparent 55%), linear-gradient(180deg, var(--card2), var(--card)); }
.welcome .logo { width: 128px; height: 128px; flex: none; filter: drop-shadow(0 0 18px rgba(63, 224, 255, .45)); }
.welcome h2 { font-family: var(--font-h); font-weight: 600; font-size: 21px; }
.welcome h1 { font-family: var(--font-h); font-weight: 800; font-size: 31px; display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.welcome h1 svg { color: var(--gold); width: 28px; height: 28px; }
.welcome p { color: var(--mut); margin: 6px 0 12px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badges .pill { padding: 6px 12px; font-size: 12px; background: rgba(0, 0, 0, .35); border-color: var(--line); color: var(--text); }
.badges .pill svg { color: var(--gold); width: 14px; height: 14px; }
.balance { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.bal-top { display: flex; align-items: center; gap: 14px; }
.bal-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--gold-grad); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.bal-ico svg { width: 30px; height: 30px; }
.bal-lbl { font-family: var(--font-h); font-weight: 600; font-size: 14px; }
.bal-amt { font-family: var(--font-h); font-weight: 800; font-size: 34px; line-height: 1.1; display: flex; align-items: center; gap: 12px; }
.bal-amt button { color: var(--mut); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line2); }
.bal-chg { font-size: 12px; font-weight: 600; }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--inset); }
.mini3 > div { padding: 9px 12px; border-right: 1px solid var(--line-s); }
.mini3 > div:last-child { border-right: 0; }
.mini3 .l { font-size: 11px; color: var(--mut); }
.mini3 .v { font-family: var(--font-h); font-weight: 700; font-size: 17px; margin-top: 2px; }
.tagcard { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; overflow: hidden;
  background: radial-gradient(90% 90% at 50% 30%, rgba(63, 224, 255, .16), transparent 65%), linear-gradient(180deg, var(--card2), var(--card)); }
.tagcard svg.tg { width: 52px; height: 52px; color: var(--gold); }
.tagcard .a { font-family: var(--font-h); font-weight: 700; font-size: 20px; line-height: 1.2; }
.tagcard .b { font-family: var(--font-h); font-weight: 800; font-size: 22px; color: var(--gold); line-height: 1.15; }
.tagcard .c { font-family: "Brush Script MT", "Segoe Script", cursive; font-style: italic; color: var(--gold); font-size: 17px; align-self: flex-end; opacity: .85; }
.auto-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 0; border: 1px solid var(--line2); border-radius: 12px; background: var(--inset); }
.auto-grid > div { padding: 12px 14px; border-right: 1px solid var(--line2); display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.auto-grid > div:last-child { border-right: 0; }
.auto-btns { display: grid; grid-template-columns: 1.3fr 1.1fr auto; gap: 12px; margin-top: 12px; }
.sel-btn { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: var(--inset); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.sel-btn .sp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn svg { color: var(--mut); width: 15px; height: 15px; }
.mtg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sig-list { display: flex; flex-direction: column; }
.sig-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 50px auto; align-items: center; gap: 8px; padding: 10px 2px; border-bottom: 1px solid var(--line2); }
.sig-item:last-child { border-bottom: 0; }
.sig-item .nm { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-item .tm { font-size: 12px; color: var(--mut); text-align: right; }
.res-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.tile { border: 1px solid var(--line); border-radius: 9px; padding: 8px 4px; text-align: center; background: var(--inset); min-width: 0; }
.tile .v { font-family: var(--font-h); font-weight: 800; font-size: 18px; }
.tile .l { font-size: 11px; color: var(--mut); }
.tile.g { border-color: rgba(34, 215, 131, .45); } .tile.g .v { color: var(--green); }
.tile.r { border-color: rgba(255, 90, 90, .45); } .tile.r .v { color: var(--red); }
.tile.y .v { color: var(--gold); }
.mini-trades .it { display: grid; grid-template-columns: 26px minmax(0, 1fr) 40px 56px 50px; gap: 6px; align-items: center; padding: 6px 0; font-size: 12px; border-bottom: 1px solid var(--line2); }
.mini-trades .it:last-child { border-bottom: 0; }
.donut { position: relative; width: 124px; height: 124px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .c b { font-family: var(--font-h); font-size: 22px; font-weight: 800; }
.donut .c span { font-size: 11px; color: var(--mut); }
.ana-body { display: flex; gap: 14px; align-items: center; }
.kv { display: grid; gap: 7px; font-size: 12px; flex: 1; min-width: 0; }
.kv > div { display: flex; flex-direction: column; }
.kv .l { color: var(--mut); font-size: 11px; } .kv .v { font-weight: 700; font-size: 15px; }
.perf { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(63, 224, 255, .06); font-size: 12px; font-weight: 600; }
.perf svg { color: var(--gold); width: 22px; height: 22px; }
.time-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--inset); border: 1px solid var(--line2); border-radius: 10px; margin-top: 4px; }
.time-row svg { color: var(--gold); }
.time-row input { background: none; border: 0; outline: none; flex: 1; font-weight: 600; font-size: 14px; color-scheme: dark; }
:root[data-theme="light"] .time-row input { color-scheme: light; }
.broker-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; background: var(--inset); }
.broker-logo { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #18233f, #080c17); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-h); font-weight: 900; font-size: 22px; color: var(--gold); flex: none; }
.mm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; padding-top: 10px; border-top: 1px solid var(--line2); }
.mm-row .l { font-size: 10.5px; color: var(--mut); } .mm-row .v { font-weight: 700; font-size: 14px; }
.footer-strip { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1fr; gap: 14px; align-items: center; padding: 12px 20px; }
.foot-it { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--mut); }
.foot-it b { display: block; color: var(--text); font-size: 13px; }
.foot-it .ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); background: rgba(63, 224, 255, .06); flex: none; }
.foot-it .ic svg { width: 22px; height: 22px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand svg { width: 42px; height: 42px; }
.foot-brand b { font-family: var(--font-h); font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.foot-quote { font-family: "Brush Script MT", "Segoe Script", cursive; font-style: italic; color: var(--gold); text-align: right; font-size: 18px; line-height: 1.1; }

/* ───────── pages ───────── */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, var(--card2), var(--card)); }
.stat .l { font-size: 12px; color: var(--mut); } .stat .v { font-family: var(--font-h); font-weight: 800; font-size: 24px; margin-top: 2px; }
.banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.banner .big { font-family: var(--font-h); font-weight: 800; font-size: 20px; }
.log { background: var(--inset); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; max-height: 300px; overflow-y: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.log .ln { display: flex; gap: 10px; } .log .ts { color: var(--dim); flex: none; }
.log .ln.ok { color: var(--green); } .log .ln.error { color: var(--red); } .log .ln.warn { color: var(--gold); }
.disclaimer { font-size: 12px; color: var(--mut); border: 1px solid rgba(255, 90, 90, .3); background: var(--red-bg); border-radius: 10px; padding: 10px 14px; }
.disclaimer b { color: var(--red); }
.paste textarea { min-height: 190px; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; }
.prev-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line2); font-size: 13px; }
.prev-row.exp { opacity: .55; }
.ign { font-size: 12px; color: var(--dim); margin-top: 8px; }
.ign summary { cursor: pointer; }
.ign div { padding: 2px 0 2px 12px; border-left: 2px solid var(--line2); margin: 4px 0; word-break: break-word; }
.st { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mut); background: var(--inset); text-transform: capitalize; }
.st.win { color: var(--green); background: var(--green-bg); border-color: rgba(34, 215, 131, .4); }
.st.loss, .st.error { color: var(--red); background: var(--red-bg); border-color: rgba(255, 90, 90, .4); }
.st.queued, .st.trading { color: var(--gold); border-color: var(--line); background: rgba(63, 224, 255, .1); }
.st.pending { color: var(--blue); border-color: rgba(90, 162, 255, .4); background: rgba(90, 162, 255, .1); }
canvas.chart { width: 100%; height: 230px; display: block; }
.bar-list .br { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; padding: 6px 0; font-size: 12px; }
.bar-list .bar { height: 8px; background: var(--inset); border-radius: 4px; overflow: hidden; position: relative; }
.bar-list .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }

/* ───────── overlays ───────── */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); backdrop-filter: blur(3px); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.modal h3 { font-family: var(--font-h); font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.modal .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; max-height: 46vh; overflow: auto; padding: 2px; }
.mkt-grid button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; background: var(--inset); border: 1px solid var(--line2); font-size: 12px; font-weight: 600; text-align: left; }
.mkt-grid button.on { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.pop { position: absolute; z-index: 60; right: 0; top: 52px; width: 340px; max-width: calc(100vw - 24px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; max-height: 70vh; overflow: auto; }
.pop .it { display: flex; gap: 10px; padding: 10px; border-radius: 10px; }
.pop .it:hover { background: rgba(63, 224, 255, .06); }
.pop .it.unread { background: rgba(63, 224, 255, .07); }
.pop .it .d { margin-top: 5px; }
.pop .it b { font-size: 13px; display: block; } .pop .it span { font-size: 12px; color: var(--mut); }
.pop .menu-a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 10px; font-weight: 600; text-align: left; }
.pop .menu-a:hover { background: rgba(63, 224, 255, .08); }
.rel { position: relative; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 11px 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 13px; max-width: 340px; animation: tin .18s ease-out; }
.toast.err { border-color: rgba(255, 90, 90, .6); color: var(--red); } .toast.ok { border-color: rgba(34, 215, 131, .55); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ───────── login ───────── */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 0%, rgba(63, 224, 255, .16), transparent 70%), var(--bg);
}
.login .ghost { position: absolute; width: min(760px, 120vw); height: min(760px, 120vw); opacity: .06; left: 50%; top: 50%; transform: translate(-50%, -48%); pointer-events: none; }
.login-card { width: min(430px, 100%); position: relative; padding: 30px 28px 26px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 80px rgba(63, 224, 255, .07);
  background: linear-gradient(180deg, var(--card2), var(--card)); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 20px; text-align: center; }
.login-brand svg { width: 86px; height: 86px; filter: drop-shadow(0 0 18px rgba(63, 224, 255, .5)); }
.login-brand .t1 { font-family: var(--font-h); font-weight: 800; font-size: 32px; letter-spacing: .5px; }
.login-brand .t1 b { color: var(--gold); font-weight: 900; }
.login-brand .t2 { font-size: 11px; letter-spacing: 3px; color: var(--mut); }
.login h2 { font-family: var(--font-h); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.login .lead { color: var(--mut); font-size: 13px; margin-bottom: 18px; }
.login .err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--red-bg); border: 1px solid rgba(255, 90, 90, .4); color: var(--red); font-size: 13px; }
.login .sec { margin-top: 16px; display: flex; gap: 10px; font-size: 12px; color: var(--dim); align-items: flex-start; }
.login .sec svg { color: var(--gold); width: 18px; height: 18px; margin-top: 1px; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(0, 0, 0, .25); border-top-color: #000; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot svg { width: 70px; height: 70px; animation: sp 1.4s linear infinite; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--mut); cursor: pointer; }
.chk input { margin-top: 2px; accent-color: #3fe0ff; width: 16px; height: 16px; flex: none; }

/* ───────── responsive ───────── */
@media (max-width: 1280px) {
  .tagline { display: none; }
  .d-welcome { grid-column: 1 / 7; } .d-balance { grid-column: 7 / 13; } .d-tag { display: none; }
  .d-auto { grid-column: 1 / 13; }
  .d-right { grid-column: 1 / 13; grid-row: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-res { grid-column: 1 / 7; } .d-sch { grid-column: 7 / 13; }
  .footer-strip { grid-template-columns: repeat(2, 1fr); }
  .foot-quote { display: none; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .menu-btn { display: grid; }
  .side { position: fixed; z-index: 70; left: 0; top: 78px; width: 270px; height: calc(100vh - 78px); height: calc(100dvh - 78px); transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .brand { min-width: 0; }
  .status-box, .user-box .meta { display: none; }
  .d-res, .d-sch { grid-column: 1 / 13; }
  .d-right { grid-template-columns: 1fr; }
  .d-welcome, .d-balance { grid-column: 1 / 13; }
  .auto-grid { grid-template-columns: 1fr; } .auto-grid > div { border-right: 0; border-bottom: 1px solid var(--line2); } .auto-grid > div:last-child { border-bottom: 0; }
  .auto-btns { grid-template-columns: 1fr 1fr; } .auto-btns .btn-adv { grid-column: 1 / 3; }
  .grid2, .grid3 { grid-template-columns: 1fr !important; } .grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 561px) and (max-width: 760px) { .broker-console { padding:26px 22px; }.broker-console__foot { align-items:flex-start;flex-direction:column; } }
@media (max-width: 560px) {
  .broker-console { margin-top:0;padding:20px 16px;border-radius:18px; }.broker-console__top { align-items:flex-start;flex-wrap:wrap; }.broker-console__brand { gap:12px; }.broker-console__mark { width:46px;height:46px;border-radius:14px; }.broker-status { margin-left:58px; }.broker-console__top > .btn { margin-left:auto; }.broker-console__foot { align-items:flex-start;flex-direction:column; }
  .brand .t1 { white-space: nowrap; } .brand { flex: 1; min-width: 0; } .top-r { gap: 8px; margin-left: 0; }
  .icon-btn { width: 38px; height: 38px; } .user-box { padding: 4px 6px 4px 4px; } .user-box > svg { display: none; }
  .topbar { padding: 0 12px; gap: 10px; } .brand .t1 { font-size: 23px; } .brand svg { width: 42px; height: 42px; } .brand .t2 { display: none; }
  .welcome { flex-direction: column; text-align: center; } .welcome .logo { width: 96px; height: 96px; } .badges { justify-content: center; }
  .welcome h1 { font-size: 25px; justify-content: center; }
  .bal-amt { font-size: 28px; }
  .footer-strip { grid-template-columns: 1fr; }
  .res-tiles { grid-template-columns: repeat(2, 1fr); }
  .ana-body { flex-direction: column; align-items: flex-start; }
  .prev-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; font-size: 12px; } .prev-row .asset { min-width: 0; overflow: hidden; white-space: nowrap; } .prev-row > :last-child { grid-column: 1 / -1; justify-self: start; }
  .main { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* dashboard (balance + guide) */
.hero-mini { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.hero-mini .avatar { width: 46px; height: 46px; font-size: 18px; flex: none; }
.legend { display: grid; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--mut); }
.legend b { color: var(--text); }
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.guide-it { display: flex; align-items: center; gap: 14px; color: var(--text); padding: 14px 16px; transition: border-color .15s; }
.guide-it:hover { border-color: var(--gold); }
.guide-it .gi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(63, 224, 255, .1); border: 1px solid var(--line); color: var(--gold); flex: none; }
.guide-it .gi svg { width: 22px; height: 22px; }
.guide-it b { font-family: var(--font-h); font-size: 15px; }
.guide-it p { color: var(--mut); font-size: 12.5px; margin-top: 2px; }
.guide-it > svg { color: var(--dim); }
.tips { padding-left: 18px; display: grid; gap: 8px; color: var(--mut); font-size: 13px; }
.tips b { color: var(--text); }
.hero-mini .badges { justify-content: flex-start !important; } .hero-mini .sp { text-align: left; }

/* profile */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 84px; height: 84px; font-size: 32px; flex: none; }
.prof-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kv { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); min-height: 46px; }
.kv .v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* support center */
.sc-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; position: relative; padding: 4px 0; }
.sc-hero::after { content: ''; position: absolute; right: -6px; top: -16px; width: 230px; height: 94px; pointer-events: none; opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90' fill='none'%3E%3Cpath d='M0 88C60 70 120 40 220 2' stroke='%233fe0ff' stroke-opacity='.5' stroke-width='1.4'/%3E%3Cpath d='M20 90C80 78 140 50 220 14' stroke='%236d8bff' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E") no-repeat right top / contain; }
.sc-ico, .sc-live-ico { border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, rgba(63, 224, 255, .18), rgba(63, 224, 255, .03) 70%); box-shadow: 0 0 28px rgba(63, 224, 255, .16), inset 0 0 18px rgba(63, 224, 255, .08); flex: none; }
.sc-ico { width: 72px; height: 72px; } .sc-ico svg { width: 34px; height: 34px; }
.sc-live-ico { width: 56px; height: 56px; } .sc-live-ico svg { width: 26px; height: 26px; }
.sc-title { font-family: var(--font-h); font-weight: 800; font-size: 30px; line-height: 1.1; } .sc-title b { color: var(--gold); font-weight: 800; }
.sc-sub { color: var(--mut); margin-top: 4px; }
.sc-live { margin-bottom: 16px; border-color: rgba(63, 224, 255, .45); background: linear-gradient(180deg, rgba(63, 224, 255, .07), transparent 60%), var(--card); box-shadow: 0 8px 30px rgba(63, 224, 255, .08); }
.sc-live-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; } .sc-live-top > svg { color: var(--mut); width: 20px; height: 20px; }
.sc-h { font-family: var(--font-h); font-weight: 700; font-size: 19px; }
.sc-cta { padding: 14px; font-size: 16px; }
.sc-grid { margin-bottom: 16px; align-items: start; }
.sc-stat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-s); } .sc-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.sc-cats { margin: 12px 0 4px; }
.faq-i { border: 1px solid var(--line2); background: var(--inset); border-radius: 12px; margin-top: 8px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; font-weight: 600; font-size: 14px; color: var(--text); }
.faq-q svg { width: 18px; height: 18px; color: var(--mut); transition: transform .2s; }
.faq-i.open { border-color: var(--line); } .faq-i.open .faq-q svg { transform: rotate(90deg); color: var(--gold); }
.faq-a { display: none; padding: 0 16px 14px; color: var(--mut); font-size: 13px; line-height: 1.65; } .faq-i.open .faq-a { display: block; } .faq-a b { color: var(--text); }
@media (max-width: 560px) { .sc-title { font-size: 25px; } .sc-ico { width: 60px; height: 60px; } .sc-hero::after { width: 150px; height: 62px; } }

/* auto trade balances */
.bal-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bal { padding: 14px 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--inset); transition: border-color .2s, box-shadow .2s; }
.bal .l { font-size: 12px; color: var(--mut); }
.bal .v { font-family: var(--font-h); font-weight: 800; font-size: 22px; margin-top: 2px; }
.bal .t { font-size: 11px; color: var(--mut); margin-top: 4px; min-height: 14px; }
.bal.active { border-color: rgba(61, 220, 151, .55); background: var(--green-bg); box-shadow: 0 0 0 1px rgba(61, 220, 151, .25); }
.bal.active .t { color: var(--green); font-weight: 600; }

/* admin badge + plan banner */
.vip.adm { color: #1b1200; background: linear-gradient(135deg, #ffd45a, #ff9f1a); padding: 1px 8px; border-radius: 999px; box-shadow: 0 0 10px rgba(255, 170, 40, .45); }
.vip.adm svg { color: #1b1200; }
.lim-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); font-size: 13px; }
.lim-bar b { color: var(--gold); }
