/* =========================================================
   MORX — design system (light + dark)
   ========================================================= */
:root, [data-theme="dark"] {
  --bg: #0b0d12;
  --bg-elev: #0e1117;
  --surface: #12151c;
  --surface-2: #161a23;
  --surface-3: #1d222d;
  --border: #222734;
  --border-strong: #2d3344;
  --text: #e8ebf1;
  --muted: #8c94a8;
  --faint: #5f687c;
  --primary: #7b83ff;
  --primary-ink: #0b0d1a;
  --primary-soft: rgba(123, 131, 255, .12);
  --green: #2fca7f;
  --green-soft: rgba(47, 202, 127, .12);
  --red: #f25767;
  --red-soft: rgba(242, 87, 103, .12);
  --gold: #d6b066;
  --gold-soft: rgba(214, 176, 102, .13);
  --blue: #7b83ff;
  --blue-soft: rgba(123, 131, 255, .12);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.5);
  --header-bg: rgba(11, 13, 18, .8);
  --grid-line: rgba(255,255,255,.035);
  --glow: rgba(123, 131, 255, .16);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --surface-3: #f0f2f5;
  --border: #e5e8ee;
  --border-strong: #d6dae2;
  --text: #0f1422;
  --muted: #5a6376;
  --faint: #8c94a6;
  --primary: #4b53d6;
  --primary-ink: #ffffff;
  --primary-soft: rgba(75, 83, 214, .09);
  --green: #0f9d63;
  --green-soft: rgba(15, 157, 99, .09);
  --red: #d7263d;
  --red-soft: rgba(215, 38, 61, .08);
  --gold: #a57b22;
  --gold-soft: rgba(165, 123, 34, .10);
  --blue: #4b53d6;
  --blue-soft: rgba(75, 83, 214, .09);
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.05);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.12);
  --header-bg: rgba(255, 255, 255, .85);
  --grid-line: rgba(15,20,34,.045);
  --glow: rgba(75, 83, 214, .10);
  color-scheme: light;
}
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px;
  --r-sm: 8px; --r: 10px; --r-lg: 14px; --r-xl: 20px;
  --safe-top: env(safe-area-inset-top); --safe-bottom: env(safe-area-inset-bottom);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', 'IBM Plex Sans Arabic', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html { overflow-x: hidden; }
body { min-height: 100dvh; overscroll-behavior-y: none; transition: background .2s ease, color .2s ease; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: 15px; }
p { margin: 0; }
.num, code, .mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
code { background: var(--surface-3); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.green { color: var(--green); } .red { color: var(--red); } .gold { color: var(--gold); } .primary { color: var(--primary); }
.hidden { display: none !important; }
.small { font-size: 12.5px; }
::selection { background: var(--primary-soft); }

button, .btn, .tappable { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: var(--s4); }
@media (min-width: 900px) { .container { padding-inline: var(--s5); } }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: var(--s4); }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); padding-top: var(--safe-top); }
.site-header .container { display: flex; align-items: center; gap: var(--s5); height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--text); color: var(--bg); display: grid; place-items: center; }
.brand-mark svg { width: 17px; height: 17px; }
.brand-logo { height: 32px; width: 32px; object-fit: cover; border-radius: 8px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .08em; direction: ltr; color: var(--text); }
.wordmark b { color: var(--primary); font-weight: 800; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-3); }
.nav a.active { color: var(--text); }
.header-actions { margin-inline-start: auto; display: flex; gap: var(--s2); align-items: center; }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 38px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s, opacity .15s; white-space: nowrap; color: var(--text); background: var(--surface-3); }
.btn:hover { background: var(--border); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary); filter: brightness(1.08); }
.btn-gold { background: var(--gold); color: #fff; }
[data-theme="dark"] .btn-gold { color: #1a1305; }
.btn-gold:hover { background: var(--gold); filter: brightness(1.06); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-success { background: var(--green-soft); color: var(--green); }
.btn-success:hover { background: var(--green-soft); border-color: var(--green); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-lg { min-height: 46px; font-size: 14.5px; padding: 0 22px; border-radius: var(--r); }
.btn-sm { min-height: 32px; font-size: 12.5px; padding: 0 10px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: var(--r-sm); background: transparent; border: 1px solid var(--border-strong); color: var(--muted); cursor: pointer; flex: none; transition: color .15s, background .15s; }
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.icon-btn svg { width: 17px; height: 17px; }
@media (max-width: 700px) { .btn { min-height: 44px; } .btn-sm { min-height: 36px; } .icon-btn { width: 44px; height: 44px; } }

/* theme toggle icon swap */
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); }
.card-sm { padding: var(--s4); border-radius: var(--r); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.card-head h3 { font-size: 14.5px; }
.card-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.section-head { margin-bottom: var(--s5); }
.section-head h2 { font-size: clamp(20px, 3vw, 26px); }
.section-head p { color: var(--muted); margin-top: var(--s2); max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s2); font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--border-strong); background: var(--surface); padding: 4px 12px 4px 10px; border-radius: 999px; margin-bottom: var(--s4); }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat .value { font-size: 22px; font-weight: 600; margin-top: 6px; font-family: var(--mono); direction: ltr; text-align: end; letter-spacing: -.01em; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); white-space: nowrap; line-height: 1.6; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.blue { background: var(--primary-soft); color: var(--primary); }

/* ---------- forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
label.field .hint { font-size: 11.5px; color: var(--faint); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--r-sm); min-height: 40px; padding: 8px 12px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: var(--bg); }
textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type=number], input.ltr { direction: ltr; text-align: end; font-family: var(--mono); font-size: 13.5px; }
input[type=file] { padding: 7px; font-size: 13px; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--primary); flex: none; }
@media (max-width: 700px) { input, select, textarea, input[type=number], input.ltr { font-size: 16px; min-height: 46px; } }
.check { display: flex; align-items: center; gap: var(--s2); color: var(--text); font-size: 13.5px; min-height: 36px; cursor: pointer; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 12px 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .t { font-weight: 600; font-size: 13.5px; }
.switch-row .d { color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; min-height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(-16px); }
[dir=ltr] .switch input:checked + span::after { transform: translateX(16px); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--r-sm); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button.on.buy { background: var(--green); color: #fff; }
.seg button.on.sell { background: var(--red); color: #fff; }
@media (max-width: 700px) { .seg button { min-height: 38px; } }
.form-error { color: var(--red); font-size: 13px; min-height: 18px; }
.secret-state { font-size: 11.5px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }

/* ---------- signal card ---------- */
.sig { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); position: relative; box-shadow: var(--shadow); }
.sig-head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.sig-sym { font-weight: 600; font-size: 15px; font-family: var(--mono); direction: ltr; }
.sig-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.lvl { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 7px 10px; }
.lvl .k { font-size: 11px; color: var(--muted); }
.lvl .v { font-family: var(--mono); direction: ltr; text-align: end; font-weight: 600; font-size: 13px; }
.lvl.hit { background: var(--green-soft); border-color: transparent; } .lvl.hit .v { color: var(--green); }
.lvl.stop .v { color: var(--red); }
.lvl.entry .v { color: var(--primary); }
.sig img { border-radius: var(--r-sm); width: 100%; height: auto; background: var(--surface-2); border: 1px solid var(--border); cursor: zoom-in; }
.sig.locked .blur { filter: blur(6px); user-select: none; pointer-events: none; }

/* ---------- toast / modal ---------- */
.toast-host { position: fixed; inset-inline: 0; bottom: calc(var(--s5) + var(--safe-bottom)); display: grid; justify-items: center; gap: var(--s2); z-index: 100; pointer-events: none; padding-inline: var(--s4); }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 500; max-width: 520px; animation: toast-in .2s ease-out; pointer-events: auto; }
.toast.err { background: var(--red); color: #fff; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
@media (max-width: 900px) { .toast-host { bottom: calc(84px + var(--safe-bottom)); } }
.modal-back { position: fixed; inset: 0; background: rgba(8,10,16,.55); backdrop-filter: blur(3px); z-index: 90; display: grid; place-items: center; padding: var(--s4); animation: fade .15s; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s5); width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal-lg { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.modal-head h3 { font-size: 16px; }
@media (max-width: 600px) { .modal-back { place-items: end stretch; padding: 0; } .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: calc(var(--s5) + var(--safe-bottom)); } }

/* ---------- app shell (member + admin) ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100dvh; }
.side { background: var(--bg-elev); border-inline-end: 1px solid var(--border); padding: var(--s4) var(--s3); position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: var(--s4); overflow-y: auto; }
.side .brand { padding: 4px 8px 8px; }
.side-label { font-size: 11px; font-weight: 600; color: var(--faint); padding: 12px 10px 4px; letter-spacing: .02em; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; font-size: 13.5px; cursor: pointer; transition: background .12s, color .12s; }
.side nav a svg { width: 17px; height: 17px; flex: none; opacity: .9; }
.side nav a:hover { background: var(--surface-3); color: var(--text); }
.side nav a.active { background: var(--primary-soft); color: var(--primary); }
.side nav a .count { margin-inline-start: auto; background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center; line-height: 18px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s2); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.main { min-width: 0; padding: var(--s6) var(--s6) var(--s8); max-width: 1320px; width: 100%; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); flex-wrap: wrap; }
.page-title h1 { font-size: 20px; }
.page-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.mbar { display: none; }
.tabbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 45; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: calc(8px + var(--safe-top)) var(--s4) 8px; }
  .main { padding: var(--s4); padding-bottom: calc(96px + var(--safe-bottom)); }
  .tabbar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 4px 4px calc(4px + var(--safe-bottom)); overflow-x: auto; scrollbar-width: none; }
  .tabbar a { flex: 1 0 68px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; font-size: 10.5px; color: var(--muted); border-radius: var(--r-sm); position: relative; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.active { color: var(--primary); }
  .tabbar a .count { position: absolute; top: 4px; inset-inline-end: 16px; background: var(--red); color: #fff; font-size: 10px; border-radius: 999px; padding: 0 5px; }
}
.view { display: none; } .view.active { display: block; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } }

/* settings layout */
.settings { display: grid; grid-template-columns: 200px 1fr; gap: var(--s5); align-items: start; }
.settings-nav { position: sticky; top: var(--s5); display: flex; flex-direction: column; gap: 1px; }
.settings-nav button { text-align: start; min-height: 36px; padding: 0 12px; border: 1px solid transparent; background: transparent; border-radius: var(--r-sm); font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.settings-nav button svg { width: 16px; height: 16px; }
.settings-nav button:hover { background: var(--surface-3); color: var(--text); }
.settings-nav button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); border-color: var(--border); }
.settings-pane { display: none; } .settings-pane.on { display: flex; flex-direction: column; gap: var(--s4); }
.save-bar { position: sticky; bottom: var(--s4); display: flex; justify-content: flex-end; align-items: center; gap: var(--s2); padding: var(--s3); background: var(--header-bg); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-top: var(--s4); }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; } .settings-nav button { white-space: nowrap; } .save-bar { bottom: calc(76px + var(--safe-bottom)); } }
.gw { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.gw-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); }
.gw-logo { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; background: var(--surface-3); color: var(--text); font-family: var(--display); }
.gw-body { padding: 0 var(--s4) var(--s4); display: grid; gap: var(--s3); }
.gw:not(.on) .gw-body { display: none; }
.copy-field { display: flex; gap: 6px; align-items: center; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); padding: 6px 6px 6px 10px; }
.copy-field code { flex: 1; background: none; padding: 0; overflow-wrap: anywhere; font-size: 12px; }

/* pay method cards (member) */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s3); }
.pay-method { display: flex; align-items: center; gap: var(--s3); text-align: start; padding: 14px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; min-height: 64px; }
.pay-method:hover { border-color: var(--primary); }
.pay-method.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.pay-method .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; flex: none; color: var(--primary); }
.pay-method .ic svg { width: 18px; height: 18px; }
.pay-method strong { display: block; font-size: 13.5px; }
.pay-method span { font-size: 12px; color: var(--muted); }

/* ---------- landing ---------- */
.hero2 { position: relative; padding-block: var(--s8); overflow: hidden; border-bottom: 1px solid var(--border); }
.hero2::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%); pointer-events: none; }
.hero2::after { content: ''; position: absolute; width: 900px; height: 520px; inset-inline-start: 50%; top: -260px; transform: translateX(50%); background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.hero2 .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s7); align-items: center; }
.hero2 h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.25; letter-spacing: -.01em; }
.hero2 h1 em { font-style: normal; color: var(--primary); }
.hero2 .lead { color: var(--muted); font-size: clamp(14.5px, 1.5vw, 16px); line-height: 1.85; margin-top: var(--s4); max-width: 540px; }
.hero2 .cta { display: flex; gap: var(--s2); margin-top: var(--s5); flex-wrap: wrap; }
.trust { display: flex; gap: var(--s6); margin-top: var(--s6); flex-wrap: wrap; }
.trust .v { font-family: var(--mono); font-size: 20px; font-weight: 600; direction: ltr; text-align: start; }
.trust .k { font-size: 12px; color: var(--muted); }
@media (max-width: 960px) { .hero2 .container { grid-template-columns: 1fr; } .hero2 { padding-block: var(--s6); } }

.terminal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); background: var(--surface-2); }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.terminal-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; display: inline-block; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,202,127,.45); } 70% { box-shadow: 0 0 0 7px rgba(47,202,127,0); } 100% { box-shadow: 0 0 0 0 rgba(47,202,127,0); } }
.result-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3); padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); }
.result-row .sym { font-family: var(--mono); font-weight: 600; direction: ltr; font-size: 13px; }

.sec { padding-block: var(--s9) 0; }
.sec-last { padding-bottom: var(--s9); }
.kicker { font-size: 12px; font-weight: 600; color: var(--primary); display: inline-block; margin-bottom: var(--s2); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: end; margin-bottom: var(--s6); }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.3; }
.sec-head p { color: var(--muted); line-height: 1.85; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; gap: var(--s2); } .sec { padding-top: var(--s8); } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.pillars > div { padding: var(--s6) var(--s5); border-inline-start: 1px solid var(--border); }
.pillars > div:first-child { border-inline-start: 0; }
.pillars .n { font-family: var(--mono); color: var(--primary); font-size: 12px; }
.pillars h3 { font-size: 16px; margin-block: var(--s3) var(--s2); }
.pillars p { color: var(--muted); font-size: 13.5px; line-height: 1.85; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr !important; } .pillars > div { border-inline-start: 0; border-top: 1px solid var(--border); padding: var(--s5); } .pillars > div:first-child { border-top: 0; } }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.feat-grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.feat-grid > div:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feat-grid h3 { font-size: 15px; margin-block: var(--s4) 6px; }
.feat-grid p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.feat-grid .ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.feat-grid .ic svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

.markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); }
.market { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); background: var(--surface); box-shadow: var(--shadow); }
.market .code { font-family: var(--mono); font-size: 11px; color: var(--faint); direction: ltr; text-align: end; }
.market strong { display: block; margin-top: var(--s4); font-size: 14px; }
.market span { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .markets { grid-template-columns: repeat(2, 1fr); } }

.plan { display: flex; flex-direction: column; gap: var(--s4); position: relative; }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow); }
.plan .price { font-size: 34px; font-weight: 600; font-family: var(--mono); direction: ltr; text-align: start; letter-spacing: -.02em; }
.plan .old { text-decoration: line-through; color: var(--faint); font-family: var(--mono); font-size: 13px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.plan li { display: flex; gap: var(--s2); align-items: flex-start; color: var(--muted); }
.plan li::before { content: ''; width: 16px; height: 16px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2 2 5-5' stroke='%232fca7f' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.plan .ribbon { position: absolute; top: -11px; inset-inline-start: var(--s5); }

.cta-band { border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s7) var(--s6); background: radial-gradient(ellipse at 90% 0%, var(--glow), transparent 60%), var(--surface); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(20px, 2.6vw, 26px); }
@media (max-width: 600px) { .cta-band { padding: var(--s5); } }

details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0 var(--s4); }
details.faq summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; margin-inline-start: auto; font-size: 18px; color: var(--muted); }
details.faq[open] summary::after { content: '−'; }
details.faq p { color: var(--muted); padding-bottom: var(--s4); line-height: 1.85; }

.footer2 { border-top: 1px solid var(--border); padding-block: var(--s7) calc(var(--s6) + var(--safe-bottom)); background: var(--bg-elev); }
.footer2 .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); }
.footer2 h4 { font-size: 12.5px; color: var(--text); margin-bottom: var(--s3); }
.footer2 a { display: block; color: var(--muted); font-size: 13px; padding-block: 5px; }
.footer2 a:hover { color: var(--text); }
.footer2 .legal { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--border); color: var(--faint); font-size: 12px; line-height: 1.85; }
@media (max-width: 820px) { .footer2 .cols { grid-template-columns: 1fr 1fr; } .footer2 .cols > :first-child { grid-column: 1 / -1; } }
.disclaimer { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); border-radius: var(--r); padding: var(--s3) var(--s4); font-size: 12.5px; line-height: 1.8; }

.ticker { border-bottom: 1px solid var(--border); background: var(--surface); min-height: 46px; }

/* auth */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: var(--s4); padding-top: calc(var(--s4) + var(--safe-top)); position: relative; }
.auth-card { width: 100%; max-width: 400px; }

/* studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s4); align-items: start; }
@media (max-width: 1150px) { .studio { grid-template-columns: 1fr; } }
.tv-box { height: min(72vh, 640px); min-height: 420px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
@media (max-width: 600px) { .tv-box { height: 440px; min-height: 0; } }
.preview-msg { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--r); padding: var(--s4); font-size: 13px; line-height: 1.75; border: 1px solid var(--border); }
.preview-msg code { background: var(--surface-3); }
.img-slot { border: 1px dashed var(--border-strong); border-radius: var(--r); background: var(--surface-2); min-height: 120px; display: grid; place-items: center; color: var(--faint); font-size: 12.5px; overflow: hidden; }
.img-slot img { width: 100%; height: auto; }

.empty { text-align: center; color: var(--muted); padding: var(--s7) var(--s4); }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); min-height: 110px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---------- connection status ---------- */
.conn-bar { display: flex; align-items: center; gap: var(--s3); padding: 10px 14px; margin-bottom: var(--s4); border: 1px solid var(--red); background: var(--red-soft); border-radius: var(--r-lg); font-size: 13px; flex-wrap: wrap; }
.conn-bar.warn { border-color: var(--gold); background: var(--gold-soft); }
.conn-bar .items { display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; flex: 1; }
.conn-bar .it { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.dot.ok { background: var(--green); } .dot.bad { background: var(--red); } .dot.warn { background: var(--gold); }
.pub-status { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.pub-status:empty { display: none; }
.pub-status.ok { color: var(--green); }
.pub-status.bad { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.pub-status .dot { margin-top: 5px; }
.pub-status a { text-decoration: underline; }

/* ---------- reports charts ---------- */
.chart { position: relative; }
.chart svg { width: 100%; height: 200px; display: block; overflow: visible; }
.chart .bar { fill: var(--primary); transition: opacity .12s; }
.chart .bar:hover, .chart .bar.hl { opacity: .75; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--faint); font-size: 10.5px; font-family: var(--mono); }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(50%, -110%); opacity: 0; transition: opacity .1s; z-index: 5; box-shadow: var(--shadow-lg); }
.chart-tip.on { opacity: 1; }
.chart-tip b { font-family: var(--mono); }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar .top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.hbar .track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hbar .fill { height: 100%; background: var(--primary); border-radius: 4px; }
.split { height: 10px; border-radius: 5px; overflow: hidden; display: flex; gap: 2px; background: var(--surface-3); }
.split .w { background: var(--green); } .split .l { background: var(--red); }
#rpKpis, #rpSigKpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1200px) { #rpKpis { grid-template-columns: repeat(3, 1fr); } #rpSigKpis { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   Public sub-pages (shared chrome + page hero)
   ========================================================= */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding-block: var(--s7) var(--s6); }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 90% at 70% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 90% at 70% 0%, #000 10%, transparent 70%); pointer-events: none; }
.page-hero::after { content: ''; position: absolute; width: 700px; height: 380px; inset-inline-start: 0; top: -220px; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; }
.page-hero p.lead { color: var(--muted); margin-top: var(--s2); max-width: 620px; line-height: 1.85; font-size: 14.5px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--faint); margin-bottom: var(--s3); }
.crumbs a:hover { color: var(--text); }
.page-body { padding-block: var(--s6) var(--s8); }
.page-hero .hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }

/* calculator */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-result { position: sticky; top: 84px; }
.calc-hero { border-radius: var(--r-lg); padding: var(--s5); background: radial-gradient(ellipse at 100% 0%, var(--glow), transparent 70%), var(--surface-2); border: 1px solid var(--border); }
.calc-hero .k { color: var(--muted); font-size: 12.5px; }
.calc-hero .v { font-family: var(--mono); font-size: 40px; font-weight: 600; direction: ltr; text-align: end; line-height: 1.2; margin-top: 4px; }
.calc-hero .u { font-size: 14px; color: var(--muted); font-weight: 500; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv .v { font-family: var(--mono); font-weight: 600; direction: ltr; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; border-radius: 3px; }
.rules { counter-reset: r; display: flex; flex-direction: column; gap: 2px; }
.rules li { counter-increment: r; list-style: none; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.rules li:last-child { border-bottom: 0; }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--primary); background: var(--primary-soft); border-radius: 6px; height: 22px; display: grid; place-items: center; margin-top: 2px; }
.rules strong { color: var(--text); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 700px) { .chip { min-height: 38px; } }

/* news */
.news-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.news-feature .img { background: var(--surface-3); min-height: 260px; }
.news-feature .img img { width: 100%; height: 100%; object-fit: cover; }
.news-feature .body { padding: var(--s6) var(--s5); display: flex; flex-direction: column; gap: var(--s3); justify-content: center; }
.news-feature h2 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; }
@media (max-width: 800px) { .news-feature { grid-template-columns: 1fr; } .news-feature .img { min-height: 180px; } }
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.news-card:hover, .news-feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.news-card .img { aspect-ratio: 16 / 9; background: var(--surface-3); }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .ph, .news-feature .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--faint); background: radial-gradient(ellipse at 100% 0%, var(--glow), transparent 70%), var(--surface-2); font-family: var(--display); font-weight: 800; letter-spacing: .1em; font-size: 20px; }
.news-card .body { padding: var(--s4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card h3 { font-size: 15px; line-height: 1.5; }
.news-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--faint); }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.4; }
.article .cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); margin-block: var(--s5); }
.article .content { font-size: 16px; line-height: 2; white-space: pre-wrap; color: var(--text); }
.share { display: flex; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s5); margin-top: var(--s6); border-top: 1px solid var(--border); align-items: center; }

/* performance */
.equity svg { width: 100%; height: 220px; display: block; }
.equity .area { fill: var(--primary-soft); }
.equity .line { fill: none; stroke: var(--primary); stroke-width: 2; }
.equity .zero { stroke: var(--border-strong); stroke-dasharray: 4 4; }
.equity .axis { fill: var(--faint); font-size: 10.5px; font-family: var(--mono); }

/* auth split */
.auth-split { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; overflow: hidden; background: var(--bg-elev); border-inline-end: 1px solid var(--border); padding: var(--s7); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s6); }
.auth-aside::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 20%, transparent 75%); }
.auth-aside::after { content: ''; position: absolute; width: 600px; height: 500px; inset-inline-end: -200px; top: -200px; background: radial-gradient(closest-side, var(--glow), transparent 70%); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
.auth-points { display: flex; flex-direction: column; gap: var(--s4); }
.auth-points div { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.auth-points svg { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
.auth-points strong { display: block; color: var(--text); font-size: 14px; }
.auth-main { display: grid; place-items: center; padding: var(--s6) var(--s4); padding-top: calc(var(--s6) + var(--safe-top)); position: relative; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* trader profile */
.trader { display: grid; grid-template-columns: 340px 1fr; gap: 0; padding: 0; overflow: hidden; }
.trader-card { position: relative; padding: var(--s6) var(--s5); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 70%), var(--surface-2); border-inline-end: 1px solid var(--border); }
.trader-photo { width: 148px; height: 148px; border-radius: 50%; overflow: hidden; background: var(--surface-3); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong), 0 16px 40px rgba(0,0,0,.25); display: grid; place-items: center; }
.trader-photo img { width: 100%; height: 100%; object-fit: cover; }
.trader-photo .mono { font-family: var(--display); font-weight: 800; font-size: 54px; color: var(--primary); }
.trader-card h3 { font-size: 22px; }
.trader-card .title { color: var(--muted); font-size: 13.5px; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; }
.verified svg { width: 14px; height: 14px; }
.trader-body { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.trader-body h2 { font-size: clamp(22px, 3vw, 30px); }
.trader-body .bio { color: var(--muted); line-height: 2; font-size: 15px; }
.trader-quote { margin: 0; padding: var(--s4) var(--s5); border-inline-start: 3px solid var(--primary); background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; font-size: 15px; line-height: 1.9; }
[dir=rtl] .trader-quote { border-radius: var(--r) 0 0 var(--r); }
.trader-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.trader-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.trader-stats > div { padding: 14px 16px; border-inline-start: 1px solid var(--border); }
.trader-stats > div:first-child { border-inline-start: 0; }
.trader-stats .v { font-family: var(--mono); font-size: 20px; font-weight: 600; direction: ltr; text-align: start; }
.trader-stats .k { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .trader { grid-template-columns: 1fr; } .trader-card { border-inline-end: 0; border-bottom: 1px solid var(--border); } .trader-body { padding: var(--s5); } }
@media (max-width: 480px) { .trader-stats .v { font-size: 16px; } .trader-stats > div { padding: 12px 10px; } }

/* verification timeline */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); position: relative; }
.proof > div { position: relative; padding: var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.proof .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: var(--s4); }
.proof .ic svg { width: 20px; height: 20px; }
.proof h3 { font-size: 15px; margin-bottom: 6px; }
.proof p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.proof .step { position: absolute; top: var(--s5); inset-inline-end: var(--s5); font-family: var(--mono); font-size: 12px; color: var(--faint); }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .proof { grid-template-columns: 1fr; } }

/* gold focus */
.gold-word { color: var(--gold); }
.gold-mini { height: 190px; margin: -4px -4px 0; }
.gold-focus { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s4); }
.gold-main { display: flex; flex-direction: column; gap: var(--s4); border-color: var(--gold); background: radial-gradient(ellipse at 100% 0%, var(--gold-soft), transparent 65%), var(--surface); }
.gold-main h3 { font-size: 22px; }
.gold-main p { line-height: 1.9; }
.gold-main .btn { align-self: flex-start; }
.gold-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.gold-facts > div { padding: 12px 14px; border-inline-start: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.gold-facts > div:first-child { border-inline-start: 0; }
.gold-facts .k { font-size: 12px; color: var(--muted); }
.gold-facts .v { font-weight: 600; font-size: 14px; }
.markets-side { display: flex; flex-direction: column; gap: var(--s3); }
.markets-side .market strong { margin-top: 6px; }
@media (max-width: 900px) { .gold-focus { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .gold-facts { grid-template-columns: 1fr; } .gold-facts > div { border-inline-start: 0; border-top: 1px solid var(--border); } .gold-facts > div:first-child { border-top: 0; } }

/* plans v2 */
.plans2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); align-items: stretch; max-width: 820px; }
.plan2 { position: relative; display: flex; flex-direction: column; gap: var(--s4); text-align: start; padding: var(--s6) var(--s5) var(--s5); border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); color: inherit; font: inherit; overflow: hidden; }
.plan2.featured { border-color: var(--gold); background: radial-gradient(ellipse at 100% 0%, var(--gold-soft), transparent 60%), var(--surface); box-shadow: 0 0 0 1px var(--gold), var(--shadow-lg); }
.plan2-flag { position: absolute; top: 0; inset-inline: 0; height: 30px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--gold); letter-spacing: .02em; }
[data-theme="dark"] .plan2-flag { color: #1a1305; }
.plan2.featured { padding-top: calc(var(--s6) + 22px); }
.plan2-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.plan2-head h3 { font-size: 17px; }
.plan2 .pill { font-size: 12px; color: var(--muted); background: var(--surface-3); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.plan2-price { display: flex; align-items: flex-start; gap: 4px; direction: ltr; justify-content: flex-end; line-height: 1; }
.plan2-price .cur { font-size: 20px; font-weight: 600; margin-top: 6px; color: var(--muted); }
.plan2-price .amt { font-family: var(--mono); font-size: 48px; font-weight: 600; letter-spacing: -.03em; }
.plan2-price .was { font-family: var(--mono); font-size: 15px; color: var(--faint); text-decoration: line-through; align-self: flex-end; margin-inline-start: 8px; margin-bottom: 6px; order: -1; margin-inline-end: auto; }
.plan2-sub { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 26px; }
.plan-per { font-size: 13px; color: var(--muted); }
.save { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 10px; border-radius: 999px; }
.plan2 ul { list-style: none; margin: 0; padding: var(--s4) 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; flex: 1; }
.plan2 li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.plan2 li::before { content: ''; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2 2 5-5' stroke='%232fca7f' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
button.plan2 { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; padding-bottom: var(--s4); }
button.plan2:hover { border-color: var(--primary); }
button.plan2.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow); }
button.plan2 ul { display: none; }
.plan2-check { align-self: stretch; text-align: center; font-size: 13px; font-weight: 600; padding: 8px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--muted); }
button.plan2.selected .plan2-check { background: var(--primary); color: var(--primary-ink); }
@media (max-width: 600px) { .plans2 { grid-template-columns: 1fr; } .plan2-price .amt { font-size: 42px; } }
.plans2 { margin-inline: auto; }

/* studio v2 */
.chart-card { padding: 0; overflow: hidden; margin-bottom: var(--s4); }
.chart-bar { display: flex; align-items: center; gap: var(--s4); padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; background: var(--surface-2); }
.sym-block { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.sel-sm { width: auto; min-height: 36px; padding: 4px 10px; font-size: 13px; }
.sym-input { width: 110px; min-height: 36px; font-weight: 600; text-align: center; }
.live { display: flex; flex-direction: column; line-height: 1.2; }
.live .px { font-size: 20px; font-weight: 600; }
.chart-card .tv-box { border: 0; border-radius: 0; height: min(70vh, 680px); min-height: 460px; }
.chart-card.fs { position: fixed; inset: 0; z-index: 95; margin: 0; border-radius: 0; display: flex; flex-direction: column; }
.chart-card.fs .tv-box { flex: 1; height: auto; }
.studio2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
@media (max-width: 1100px) { .studio2 { grid-template-columns: 1fr; } }
.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.levels .lv-entry input { border-inline-start: 3px solid var(--primary); }
.levels .lv-tp input { border-inline-start: 3px solid var(--green); }
.levels .lv-sl input { border-inline-start: 3px solid var(--red); }
@media (max-width: 700px) { .chart-bar { gap: var(--s3); } .chart-card .tv-box { height: 420px; min-height: 0; } .sym-input { width: 96px; } }

/* signal card v2 */
.sig { gap: 14px; padding: 18px; }
.sig-head { gap: 12px; flex-wrap: nowrap; }
.dir { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.dir.buy { background: var(--green-soft); color: var(--green); }
.dir.sell { background: var(--red-soft); color: var(--red); }
.sig-title { display: flex; flex-direction: column; min-width: 0; }
.sig-title .sig-sym { font-size: 17px; line-height: 1.2; }
.sig-meta { font-size: 12px; color: var(--muted); }
.lvl .d { font-family: var(--mono); font-size: 11px; color: var(--faint); direction: ltr; text-align: end; }
.lvl.tp { border-top: 2px solid var(--green-soft); }
.lvl.entry { border-top: 2px solid var(--primary-soft); }
.lvl.stop { border-top: 2px solid var(--red-soft); }
.sig-progress { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); }
.sig-progress .track { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(to left, var(--red), var(--gold) 45%, var(--green)); opacity: .9; }
[dir=rtl] .sig-progress .track { background: linear-gradient(to right, var(--green), var(--gold) 55%, var(--red)); }
.sig-progress .marker { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--text); transform: translate(50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.sig-progress .entry-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .5; transform: translateX(50%); border-radius: 1px; }
.sig-note { font-size: 13.5px; color: var(--muted); line-height: 1.8; padding-inline-start: 10px; border-inline-start: 2px solid var(--border-strong); margin: 0; }
.sig-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.sig-actions { display: flex; gap: 6px; }
.lock-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sig.locked { background: radial-gradient(ellipse at 100% 0%, var(--gold-soft), transparent 60%), var(--surface); }

/* member home */
.member-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: var(--s6) var(--s5); margin-bottom: var(--s4); border: 1px solid var(--border); background: radial-gradient(ellipse at 0% 0%, var(--glow), transparent 55%), var(--surface); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.member-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 60% 100% at 0% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 100% at 0% 0%, #000 10%, transparent 70%); pointer-events: none; }
.member-hero > * { position: relative; }
.member-hero h1 { font-size: clamp(20px, 2.6vw, 26px); }
.member-hero p { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.sub-box { min-width: 240px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); }
.sub-box.vip { border-color: var(--gold); background: radial-gradient(ellipse at 100% 0%, var(--gold-soft), transparent 70%), var(--surface-2); }
.sub-box .big { font-family: var(--mono); font-size: 26px; font-weight: 600; direction: ltr; text-align: start; }
.days-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.days-bar span { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; overflow: hidden; margin-bottom: var(--s4); }
.checklist > div { padding: var(--s4); display: flex; gap: 12px; align-items: flex-start; border-inline-start: 1px solid var(--border); }
.checklist > div:first-child { border-inline-start: 0; }
.checklist .tick { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid var(--border-strong); color: var(--faint); }
.checklist .done .tick { background: var(--green); border-color: var(--green); color: #fff; }
.checklist .t { font-weight: 600; font-size: 13.5px; }
.checklist .done .t { color: var(--muted); text-decoration: line-through; }
.checklist .d { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
@media (max-width: 800px) { .checklist { grid-template-columns: 1fr; } .checklist > div { border-inline-start: 0; border-top: 1px solid var(--border); } .checklist > div:first-child { border-top: 0; } }
.member-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s4); align-items: start; }
.member-grid > aside { position: sticky; top: var(--s4); display: flex; flex-direction: column; gap: var(--s4); }
@media (max-width: 1100px) { .member-grid { grid-template-columns: 1fr; } .member-grid > aside { position: static; } }
.sig-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s4); }
.profile-head { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 24px; }
@media (max-width: 800px) { .checklist > div.done { display: none; } .checklist > div:not(.done) ~ div:not(.done) { border-top: 1px solid var(--border); } .member-hero { padding: var(--s5) var(--s4); } .sub-box { width: 100%; } }

/* admin overview */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s4); margin-top: var(--s4); }
@media (max-width: 1000px) { .ov-grid { grid-template-columns: 1fr; } }
.kpi-grid .stat { position: relative; }
.kpi-grid .stat .ic { position: absolute; top: 14px; inset-inline-end: 14px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.kpi-grid .stat .ic svg { width: 16px; height: 16px; }
.kpi-grid .stat.hl .ic { background: var(--gold-soft); color: var(--gold); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row .avatar { width: 34px; height: 34px; font-size: 13px; }
.list-row .main-t { flex: 1; min-width: 0; }
.list-row .main-t strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .main-t span { font-size: 12px; color: var(--muted); }
.empty-row { padding: 20px 0; text-align: center; color: var(--muted); font-size: 13px; }
#kpis.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { #kpis.kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* filters */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .search { width: 240px; min-height: 36px; margin-inline-start: auto; font-size: 13px; }
.filter-bar .sel-sm { min-height: 36px; }
@media (max-width: 700px) { .filter-bar .search { width: 100%; margin: 0; } }
.cnt { font-family: var(--mono); font-size: 11px; background: var(--surface-3); border-radius: 999px; padding: 0 6px; margin-inline-start: 4px; }
.cnt:empty { display: none; }
.seg button.on .cnt { background: var(--primary-soft); color: var(--primary); }

/* signals table */
.sym-cell { display: flex; align-items: center; gap: 10px; }
.sym-cell .dir { width: 34px; height: 34px; border-radius: 9px; font-size: 11px; }
.sym-cell strong { font-family: var(--mono); display: block; }
.sym-cell span { font-size: 11.5px; color: var(--muted); }
.tp-dots { display: inline-flex; gap: 4px; }
.tp-dots i { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-family: var(--mono); background: var(--surface-3); color: var(--faint); }
.tp-dots i.on { background: var(--green); color: #fff; }
tr.clickable { cursor: pointer; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick .btn { min-height: 30px; font-size: 12px; padding: 0 10px; }

/* payment review cards */
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s4); }
.pay-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.pay-card .top { display: flex; align-items: center; gap: 12px; }
.pay-card .top .avatar { width: 40px; height: 40px; }
.pay-card .who { flex: 1; min-width: 0; }
.pay-card .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-card .who span { font-size: 12px; color: var(--muted); }
.pay-card .amt { font-family: var(--mono); font-size: 22px; font-weight: 600; direction: ltr; }
.pay-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.pay-facts > div { padding: 9px 12px; border-inline-start: 1px solid var(--border); font-size: 12.5px; }
.pay-facts > div:first-child { border-inline-start: 0; }
.pay-facts .k { color: var(--muted); font-size: 11.5px; display: block; }
.proof { border-radius: var(--r); border: 1px dashed var(--border-strong); background: var(--surface-2); overflow: hidden; }
.proof img { width: 100%; max-height: 260px; object-fit: contain; background: var(--surface-3); cursor: zoom-in; }
.proof .tx { padding: 10px 12px; display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.proof .tx code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; padding: 0; }
.proof .note { padding: 10px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); }
.pay-card .acts { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.method-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.method-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); font-size: 12.5px; text-align: center; }
.more-item svg { width: 22px; height: 22px; color: var(--primary); }
.more-item:active { transform: scale(.97); }
@media (max-width: 900px) { .tabbar a { flex: 1 1 0; min-width: 0; } }
/* collapsible connection bar + compact KPIs on phones */
details.conn-bar { display: block; }
details.conn-bar summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; min-height: 28px; }
details.conn-bar summary::-webkit-details-marker { display: none; }
details.conn-bar summary::after { content: '▾'; margin-inline-start: auto; color: var(--muted); transition: transform .15s; }
details.conn-bar[open] summary::after { transform: rotate(180deg); }
details.conn-bar .items { margin-block: 10px; flex-direction: column; gap: 6px; }
@media (min-width: 901px) { details.conn-bar[open] { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } details.conn-bar[open] .items { flex-direction: row; margin: 0; } details.conn-bar[open] summary::after { display: none; } details.conn-bar[open] summary { pointer-events: none; } }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; } }
@media (max-width: 600px) {
  .kpi-grid .stat { padding: 12px; }
  .kpi-grid .stat .value { font-size: 18px; }
  .kpi-grid .stat .ic { display: none; }
  .page-title .btn { min-height: 38px; }
  .review-list { grid-template-columns: 1fr; }
  .pay-card .acts { grid-template-columns: 1fr 1fr; }
}
.review-list > *, .sig-list > *, .pay-card > *, .proof .tx > * { min-width: 0; }
.proof .tx { flex-wrap: wrap; }
.proof .tx code { flex: 1 1 140px; }
@media (max-width: 600px) { .review-list { grid-template-columns: minmax(0, 1fr); } .sig-list { grid-template-columns: minmax(0, 1fr); } }
.pay-card .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pay-card .amt { flex: none; }

/* users list */
.user-list { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.u-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .9fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.u-row:last-child { border-bottom: 0; }
.u-row:hover { background: var(--surface-2); }
.u-row.head { cursor: default; background: var(--surface-2); font-size: 12px; color: var(--muted); font-weight: 600; padding-block: 10px; }
.u-row.head:hover { background: var(--surface-2); }
.u-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.u-who .avatar { width: 38px; height: 38px; }
.u-who strong { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.u-who strong span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-who .em { display: block; font-size: 12px; color: var(--muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: end; }
.u-sub .top { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; }
.u-sub .days-bar { margin-top: 6px; height: 5px; }
.u-sub .days-bar span.red { background: var(--red); }
.u-paid strong { font-family: var(--mono); display: block; font-size: 13.5px; }
.u-paid span, .u-date { font-size: 12px; color: var(--muted); }
.avatar.vip { background: var(--gold-soft); color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
@media (max-width: 900px) {
  .u-row.head { display: none; }
  .u-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who act" "sub sub" "meta meta"; gap: 10px; padding: 14px; }
  .u-row .u-who { grid-area: who; } .u-row .u-sub { grid-area: sub; } .u-row .u-act { grid-area: act; }
  .u-row .u-tg, .u-row .u-paid, .u-row .u-date { display: none; }
  .u-row .u-meta { grid-area: meta; display: flex !important; gap: 8px; flex-wrap: wrap; }
}
.u-meta { display: none !important; }

/* user profile modal */
.prof-head { display: flex; align-items: center; gap: 14px; }
.prof-head .avatar { width: 56px; height: 56px; font-size: 22px; }
.prof-head h3 { font-size: 18px; }
.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.prof-stats > div { padding: 10px 12px; border-inline-start: 1px solid var(--border); }
.prof-stats > div:first-child { border-inline-start: 0; }
.prof-stats .k { font-size: 11.5px; color: var(--muted); display: block; }
.prof-stats .v { font-weight: 600; font-size: 14px; }
@media (max-width: 600px) { .prof-stats { grid-template-columns: 1fr 1fr; } .prof-stats > div:nth-child(3) { border-inline-start: 0; } .prof-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); } }
.prof-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.prof-sec > strong { font-size: 13px; }

/* plans admin */
.plan-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--s4); align-items: start; }
.plan-admin { display: flex; flex-direction: column; gap: 10px; }
.plan-admin.off .plan2 { opacity: .5; filter: grayscale(.6); }
.plan-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.plan-stats > div { padding: 9px 12px; border-inline-start: 1px solid var(--border); }
.plan-stats > div:first-child { border-inline-start: 0; }
.plan-stats .k { font-size: 11.5px; color: var(--muted); display: block; }
.plan-stats .v { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.plan-new { min-height: 320px; border: 2px dashed var(--border-strong); border-radius: var(--r-xl); display: grid; place-items: center; color: var(--muted); background: transparent; font: inherit; cursor: pointer; gap: 8px; align-content: center; }
.plan-new:hover { border-color: var(--primary); color: var(--primary); }
.plan-new b { font-size: 34px; font-weight: 300; line-height: 1; }
.plan-edit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.plan-edit .preview { position: sticky; top: 0; }
@media (max-width: 760px) { .plan-edit { grid-template-columns: 1fr; } .plan-edit .preview { position: static; order: -1; } }

/* news admin */
.news-admin { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.news-admin > .stack { position: sticky; top: var(--s4); }
@media (max-width: 1000px) { .news-admin { grid-template-columns: 1fr; } .news-admin > .stack { position: static; } }
.drop { display: grid; place-items: center; min-height: 110px; border: 2px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); color: var(--muted); font-size: 13px; cursor: pointer; overflow: hidden; text-align: center; padding: 12px; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop img { max-height: 200px; width: 100%; object-fit: cover; border-radius: var(--r); }
.tg-bubble { background: #eef4fa; color: #0f1422; border-radius: 14px 14px 4px 14px; padding: 10px 12px; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; max-width: 100%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
[data-theme="dark"] .tg-bubble { background: #182533; color: #e9eef4; }
.tg-bubble img { border-radius: 10px; margin: -4px -6px 8px; width: calc(100% + 12px); max-width: none; }
.tg-bubble a { color: #3a86d4; }
.tg-chat { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23888' opacity='.12'/%3E%3C/svg%3E"); border-radius: var(--r); padding: 14px; }
.tg-chat .ch { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.tg-chat .ch i { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); display: inline-block; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s4); }
.news-grid > * { min-width: 0; }
.news-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-item .img { aspect-ratio: 16/8; background: var(--surface-3); }
.news-item .img img { width: 100%; height: 100%; object-fit: cover; }
.news-item .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-item h3 { font-size: 14.5px; line-height: 1.5; }
.news-item .acts { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--border); }
.steps-list { display: flex; flex-direction: column; }
.step-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: 0; }
.step-item .tick { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 2px solid var(--border-strong); color: var(--faint); }
.step-item.done .tick { background: var(--green); border-color: var(--green); color: #fff; }
.step-item .t { font-weight: 600; font-size: 13.5px; }
.step-item .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step-item:not(.done) .d { color: var(--red); }
.brand-prev { display: flex; flex-direction: column; gap: 10px; }
.brand-prev-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--header-bg); }
.settings-nav .dot { width: 7px; height: 7px; }
.news-admin > *, .news-admin .card, #newsDest { min-width: 0; max-width: 100%; }

/* broadcast */
.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aud { display: flex; flex-direction: column; gap: 2px; text-align: start; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.aud:hover { border-color: var(--primary); }
.aud.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.aud strong { font-size: 13.5px; }
.aud .n { font-family: var(--mono); font-size: 20px; font-weight: 600; direction: ltr; text-align: start; }
.aud span { font-size: 12px; color: var(--muted); }
.hist { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.hist:last-child { border-bottom: 0; }
.hist p { font-size: 13px; line-height: 1.7; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* reports */
.rp-summary { margin-bottom: 16px; font-size: 14.5px; line-height: 2; background: radial-gradient(ellipse at 0% 0%, var(--glow), transparent 60%), var(--surface); }
.rp-summary b { font-family: var(--mono); }
#rpKpis.kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { #rpKpis.kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.rp-wrap-table td:first-child { font-weight: 600; }
tr.gold-row td { background: var(--gold-soft); }
