/* memeii.com — design system (brand: #7C3AED · #3B82F6 · #0B0F1A · #F8FAFC, Pretendard) */
:root {
  --bg: #0b0f1a;
  --bg-2: #0e1322;
  --panel: #121829;
  --panel-2: #171e33;
  --line: rgba(148, 163, 184, 0.12);
  --line-2: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --violet: #7c3aed;
  --blue: #3b82f6;
  --grad: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --green: #22c55e;
  --red: #f43f5e;
  --gold: #f5b83d;
  --gold-grad: linear-gradient(135deg, #f8d27a 0%, #d9a23a 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.55);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; color: var(--text); }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }

/* ── Brand ── */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 26px; }
.brand .word { font-size: 20px; }
.brand .ii { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.lg img { width: 64px; height: 48px; }
.brand.lg .word { font-size: 40px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; white-space: nowrap; flex: none;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-gold { background: var(--gold-grad); color: #1a1205; box-shadow: 0 8px 24px rgba(245, 184, 61, 0.25); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(148, 163, 184, 0.08); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(148, 163, 184, 0.14); }
.btn-sm { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Login ── */
.login {
  min-height: 100%; display: grid; place-items: center; padding: 32px 16px;
  background:
    radial-gradient(1200px 600px at 50% 120%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(800px 500px at 15% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
    var(--bg);
  position: relative; overflow: hidden;
}
.login::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -55vh; height: 80vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 23, 42, 0.9), rgba(11, 15, 26, 1));
  box-shadow: 0 -2px 60px rgba(96, 165, 250, 0.55), inset 0 2px 0 rgba(147, 197, 253, 0.6);
}
.login-card { position: relative; z-index: 1; width: 100%; max-width: 420px; text-align: center; }
.login-card .tagline { margin-top: 14px; color: #cbd5e1; font-size: 16px; }
.login-card .tagline-ko { margin-top: 6px; color: var(--muted); font-size: 14px; }
.login-box {
  margin-top: 40px; padding: 28px; border-radius: 20px;
  background: rgba(18, 24, 41, 0.72); border: 1px solid var(--line-2); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.login-box .gbtn { display: flex; justify-content: center; min-height: 44px; }
.login-box .note { margin-top: 14px; font-size: 12px; color: var(--muted); }
.login-feats { display: flex; justify-content: center; gap: 22px; margin-top: 28px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.login-feats span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.login-feats svg { width: 16px; height: 16px; color: #a5b4fc; }
.login-card .about { margin: 18px auto 0; max-width: 360px; color: var(--dim); font-size: 13px; }
.legal-links { position: relative; z-index: 1; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.legal-links a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(18, 24, 41, 0.6); color: #cbd5e1; font-size: 13px; font-weight: 600; }
.legal-links a:hover { color: #fff; border-color: rgba(124, 58, 237, 0.6); }
.login-foot { position: relative; z-index: 1; margin-top: 36px; font-size: 12px; color: var(--dim); }
.login-foot a { color: var(--muted); }

/* ── App shell ── */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100%; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1220, #0b0f1a); display: flex; flex-direction: column; gap: 6px;
}
.side .brand { padding: 4px 10px 22px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: #cbd5e1; font-weight: 600; transition: background .15s ease;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: rgba(148, 163, 184, 0.08); }
.nav-item.active { background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(59, 130, 246, 0.2)); color: #fff; box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.4); }
.nav-item .tag { margin-left: auto; font-size: 11px; color: var(--dim); }
.nav-item .tag.on { color: var(--green); }
.side .spacer { flex: 1; }
.side .member {
  padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.side .member b { display: block; color: var(--text); font-size: 13px; margin-bottom: 4px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 28px;
  background: rgba(11, 15, 26, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.top .menu { display: none; }
.search {
  flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; }
.top .spacer { flex: 1; }
.user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cbd5e1; }
.user img, .user .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.content { padding: 28px; display: flex; flex-direction: column; gap: 22px; max-width: 1360px; width: 100%; }

/* ── Cards ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px 20px 0; }
.card-h h3 { font-size: 15px; font-weight: 700; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 16px 20px 20px; }

.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 36px 40px; min-height: 200px;
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(59, 130, 246, 0.35), transparent 70%),
    linear-gradient(135deg, #1b1446 0%, #121a3a 55%, #0e1730 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.hero h1 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; max-width: 520px; position: relative; z-index: 1; }
.hero p { margin-top: 12px; color: #cbd5e1; max-width: 460px; position: relative; z-index: 1; }
.hero svg.art { position: absolute; right: 0; bottom: 0; width: 55%; height: 100%; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi .label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.kpi .label i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.kpi .value { margin-top: 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.kpi .sub { margin-top: 2px; font-size: 12px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* ── Table ── */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--dim); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(148, 163, 184, 0.04); }
.tbl .r { text-align: right; }
.coin { display: flex; align-items: center; gap: 10px; }
.coin img, .coin .ph { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; }
.coin .ph { display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #a5b4fc; }
.coin b { font-weight: 700; }
.coin small { display: block; color: var(--dim); font-size: 11px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.score { display: inline-flex; align-items: center; gap: 8px; }
.score .bar { width: 54px; height: 6px; border-radius: 3px; background: rgba(148, 163, 184, 0.15); overflow: hidden; }
.score .bar span { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(148, 163, 184, 0.1); color: #cbd5e1; }
.pill.live { background: rgba(244, 63, 94, 0.15); color: #fda4af; }
.pill.ok { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.pill.vio { background: rgba(124, 58, 237, 0.18); color: #c4b5fd; }
.pill.gold { background: rgba(245, 184, 61, 0.16); color: #fcd34d; }
.empty { padding: 28px; text-align: center; color: var(--dim); font-size: 13px; }

/* ── Lists ── */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.list-row:last-child { border-bottom: 0; }
.list-row .right { margin-left: auto; text-align: right; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.input {
  height: 42px; padding: 0 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); outline: 0; width: 100%;
}
.input:focus { border-color: rgba(124, 58, 237, 0.7); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: rgba(148, 163, 184, 0.25); transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--violet); }
.switch.on::after { transform: translateX(20px); }

/* ── Lock overlay ── */
.locked { position: relative; overflow: hidden; }
.locked .lock-veil {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 24px;
  background: linear-gradient(180deg, rgba(18, 24, 41, 0.55), rgba(18, 24, 41, 0.92)); backdrop-filter: blur(6px);
}
.lock-veil h4 { font-size: 17px; margin: 10px 0 6px; }
.lock-veil p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.lock-icon { width: 46px; height: 46px; margin: 0 auto; border-radius: 14px; display: grid; place-items: center; background: var(--grad); }
.lock-icon svg { width: 22px; height: 22px; }

/* ── Modal ── */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(2, 6, 23, 0.7); backdrop-filter: blur(6px); animation: fade .2s ease;
}
.modal {
  position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 32px); overflow: auto;
  background: linear-gradient(180deg, #151c31, #10162a); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow);
  animation: pop .25s ease;
}
.modal.sm { max-width: 480px; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.modal .x:hover { background: rgba(148, 163, 184, 0.1); color: #fff; }
.modal-h { padding: 28px 28px 0; }
.modal-h .title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; }
.modal-h p { margin-top: 6px; color: var(--muted); }
.modal-b { padding: 22px 28px 28px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; }
.offer { padding: 22px; border-radius: 18px; background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124, 58, 237, 0.4); display: flex; flex-direction: column; }
.offer.gold { background: rgba(245, 184, 61, 0.07); border-color: rgba(245, 184, 61, 0.4); }
.offer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0 22px; }
.offer li { display: flex; gap: 8px; font-size: 14px; color: #e2e8f0; }
.offer li::before { content: "✓"; color: #a78bfa; font-weight: 800; }
.offer.gold li::before { color: var(--gold); }
.offer .price { font-size: 28px; font-weight: 800; margin-top: auto; }
.offer .price small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin: 2px 0 14px; }
.offer .req { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.video {
  position: relative; border-radius: 18px; overflow: hidden; background: #070a13; border: 1px solid var(--line-2); min-height: 260px;
  display: flex; flex-direction: column;
}
.video iframe, .video video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.video .poster {
  position: relative; flex: 1; min-height: 220px; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(400px 200px at 70% 30%, rgba(59, 130, 246, 0.35), transparent), linear-gradient(135deg, #1a1440, #0b1226);
}
.video .poster svg.chart { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; opacity: .7; }
.video .play { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.video .cap { padding: 14px 16px; }
.video .cap b { display: block; }
.video .cap span { font-size: 12px; color: var(--muted); }
.slides { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.slides div { animation: fade .5s ease; }
.slides h5 { font-size: 20px; font-weight: 800; }
.slides p { color: #cbd5e1; margin-top: 6px; font-size: 13px; }

/* ── Pay steps ── */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.step h5 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.step h5 i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--grad); }
.step.done h5 i { background: var(--green); }
.addr { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(148, 163, 184, 0.07); font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }
.msg { font-size: 13px; color: var(--muted); }
.msg.err { color: #fda4af; }
.msg.ok { color: #86efac; }

/* ── Toast ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; padding: 12px 18px; border-radius: 12px; background: #1e293b; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; animation: pop .2s ease; }

/* ── Tier banners ── */
.tier-hero { border-radius: 20px; padding: 28px 32px; display: flex; align-items: center; gap: 18px; border: 1px solid rgba(124, 58, 237, 0.35); background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(59, 130, 246, 0.12)); }
.tier-hero.gold { border-color: rgba(245, 184, 61, 0.4); background: linear-gradient(135deg, rgba(245, 184, 61, 0.16), rgba(124, 58, 237, 0.1)); }
.tier-hero h1 { font-size: 26px; font-weight: 800; }
.tier-hero p { color: var(--muted); }
.tier-hero .crown { width: 54px; height: 54px; flex: none; }
.tier-hero .right { margin-left: auto; text-align: right; font-size: 13px; color: var(--muted); }
.locked-page { min-height: 520px; filter: blur(5px) saturate(.6); pointer-events: none; user-select: none; opacity: .55; }

/* ── Footer ── */
.foot { padding: 24px 28px 32px; color: var(--dim); font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.foot a:hover { color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s ease; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .top { padding: 0 16px; }
  .top .menu { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--panel); }
  .user .email { display: none; }
  .content { padding: 16px; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 22px; }
  .hero svg.art { opacity: .35; width: 100%; }
  .intro { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .tier-hero { flex-wrap: wrap; padding: 22px; }
  .tier-hero .right { margin-left: 0; text-align: left; }
  .brand.lg .word { font-size: 32px; }
  .brand.lg img { width: 52px; height: 39px; }
}

/* ── Policy documents ── */
.doc-top { position: static; }
.doc { max-width: 760px; margin: 0 auto; padding: 36px 20px 64px; line-height: 1.75; font-size: 15px; color: #cbd5e1; }
.doc h1 { font-size: 28px; color: var(--text); letter-spacing: -0.02em; }
.doc .meta { margin: 6px 0 28px; color: var(--dim); font-size: 13px; }
.doc h2 { font-size: 17px; color: var(--text); margin: 32px 0 10px; }
.doc p, .doc ul, .doc ol, .doc table { margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); }
.doc a { color: #a5b4fc; text-decoration: underline; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--panel); color: var(--text); }
.doc .box { padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.doc .nav { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; font-size: 14px; }

/* ── Board: controls / status ── */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 20px; }
.toolbar .field { min-width: 120px; }
.toolbar .input { height: 38px; }
.toolbar .actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.status { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.status.ok .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.status.err .dot { background: var(--red); }
.status b { color: var(--text); font-weight: 700; }
.status .clock { margin-left: auto; }
.watch-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.watch-strip .chip-w { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(245, 184, 61, 0.1); border: 1px solid rgba(245, 184, 61, 0.35); color: #fcd34d; font-size: 12px; font-weight: 700; cursor: pointer; }
.kpis.k5 { grid-template-columns: repeat(5, 1fr); }
.kpi.sm { padding: 14px 16px; }
.kpi.sm .value { font-size: 20px; margin-top: 6px; }

/* ── Signal chips / cards ── */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; background: rgba(148, 163, 184, 0.1); color: #cbd5e1; white-space: nowrap; }
.chip.x { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
.chip.tg { background: rgba(34, 211, 238, 0.14); color: #67e8f9; }
.chip.web { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.chip.live { background: rgba(244, 63, 94, 0.16); color: #fda4af; }
.chip.risk { background: rgba(244, 63, 94, 0.22); color: #fecdd3; }
.chip.brand { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.chip.zone { background: rgba(245, 184, 61, 0.14); color: #fcd34d; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sig-card { padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.sig-card.hot { border-color: rgba(124, 58, 237, 0.55); box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2), 0 10px 30px rgba(124, 58, 237, 0.12); }
.sig-card .head { display: flex; align-items: center; gap: 10px; }
.ring { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none;
  background: conic-gradient(#7c3aed calc(var(--p) * 1%), rgba(148, 163, 184, 0.15) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel-2); }
.ring span { position: relative; }
.sig-card .meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.sig-card .meta b { color: var(--text); }
.sig-card .acts { display: flex; gap: 6px; }
.sig-card .acts .btn { flex: 1; }
.btn-star.on { color: #fcd34d; border-color: rgba(245, 184, 61, 0.5); }
.links a { color: #a5b4fc; font-size: 12px; font-weight: 600; margin-right: 8px; }
.links a:hover { text-decoration: underline; }

/* ── Auto paper trading ── */
.hist { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin: 8px 0 2px; }
.hist div { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad); position: relative; min-height: 2px; }
.hist div.neg { background: linear-gradient(180deg, #fb7185, #be123c); }
.hist div span { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.hist-l { display: flex; gap: 6px; }
.hist-l span { flex: 1; text-align: center; font-size: 9px; color: var(--dim); }
.sum4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.sum4 div { padding: 10px; border-radius: 10px; background: var(--bg-2); text-align: center; }
.sum4 small { display: block; font-size: 11px; color: var(--muted); }
.sum4 b { font-size: 15px; }
.trade { padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 8px; }
.trade.win { border-left: 3px solid var(--green); }
.trade.loss { border-left: 3px solid var(--red); }
.trade .row1 { display: flex; align-items: center; gap: 8px; }
.trade .row1 b.pnl { margin-left: auto; }
.trade .sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.trade .legs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.trade svg { width: 100%; height: 32px; margin-top: 6px; display: block; }

/* ── Macro / news ── */
.tickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tickers div { padding: 10px; border-radius: 10px; background: var(--bg-2); }
.tickers small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.tickers b { display: block; font-size: 15px; margin: 2px 0; }
.news a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.news a:last-child { border-bottom: 0; }
.news a:hover b { text-decoration: underline; }
.news small { display: block; color: var(--dim); font-size: 11px; margin-bottom: 2px; }
.news span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ── Weights modal ── */
.wrow { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; gap: 12px; padding: 8px 0; }
.wrow label { font-weight: 600; font-size: 13px; }
.wrow small { display: block; color: var(--dim); font-size: 11px; font-weight: 500; }
.wrow input[type="range"] { width: 100%; accent-color: #7c3aed; }
.wrow b { text-align: right; font-variant-numeric: tabular-nums; }
.wsum { font-weight: 800; }
.wsum.bad { color: var(--red); }

@media (max-width: 1180px) { .kpis.k5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .kpis.k5 { grid-template-columns: repeat(2, 1fr); }
  .toolbar .actions { margin-left: 0; width: 100%; }
  .toolbar .field { flex: 1 1 40%; min-width: 0; }
  .wrow { grid-template-columns: 90px 1fr 44px; }
}
.sig-card .acts .btn-star { flex: none; width: 40px; }

/* ── Validated signals ── */
.vbanner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.vbanner > div { padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.06)); border: 1px solid rgba(34, 197, 94, 0.25); }
.vbanner small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.vbanner b { font-size: 20px; }
.vbanner .note { grid-column: 1 / -1; background: none; border: 0; padding: 0; font-size: 12px; color: var(--dim); }
.guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-size: 12px; }
.guide div { padding: 6px 8px; border-radius: 8px; background: var(--bg-2); }
.guide small { display: block; color: var(--dim); font-size: 10.5px; }
.guide b { font-variant-numeric: tabular-nums; }
.vstat { font-size: 11.5px; color: var(--muted); }
.vstat b { color: var(--text); }
.progress { height: 8px; border-radius: 4px; background: rgba(148, 163, 184, 0.15); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad); }
.chart { width: 100%; height: 160px; display: block; }
.heat td { text-align: center; font-variant-numeric: tabular-nums; font-size: 12px; }
@media (max-width: 860px) { .vbanner { grid-template-columns: repeat(2, 1fr); } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.grid-2 > * { min-width: 0; }
