/* ===========================================================================
   Bentic CK — Theme dark phong cách bảng giá / nền tảng chứng khoán
   Quy ước màu giá theo TTCK Việt Nam:
     tham chiếu = vàng, tăng = xanh lá, giảm = đỏ, trần = tím, sàn = xanh lơ
   =========================================================================== */
:root {
  --bg: #0b0e14;
  --bg-2: #0f1420;
  --panel: #131a26;
  --panel-2: #18202e;
  --border: #232c3b;
  --border-2: #2c3850;
  --text: #e6edf3;
  --muted: #8a94a6;
  --muted-2: #5c6677;
  --accent: #2f81f7;
  --accent-2: #1f6feb;

  --up: #26c281;
  --down: #f0616d;
  --ref: #f5c451;
  --ceil: #c061f0;
  --floor: #2bd1d1;

  --up-bg: rgba(38, 194, 129, .12);
  --down-bg: rgba(240, 97, 109, .12);

  --radius: 10px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #5ca0ff; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, #0f1420, #0b0e14);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 0 16px; height: 52px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 17px; color: #fff; white-space: nowrap;
}
.brand .logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #2f81f7, #26c281);
  display: grid; place-items: center; color: #fff; font-size: 15px;
}

.search { position: relative; flex: 0 1 320px; }
.search input {
  width: 100%; height: 34px; padding: 0 12px 0 34px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); outline: none;
}
.search input:focus { border-color: var(--accent); }
.search .ico { position: absolute; left: 11px; top: 8px; color: var(--muted); }
.search .results {
  position: absolute; top: 38px; left: 0; right: 0; z-index: 50;
  background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 8px;
  max-height: 320px; overflow-y: auto; display: none;
}
.search .results a { display: flex; justify-content: space-between; padding: 8px 12px; color: var(--text); border-bottom: 1px solid var(--border); }
.search .results a:hover { background: #1d293b; }
.search .results b { font-weight: 800; }

.topbar .spacer { flex: 1; }
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border-2); background: var(--panel);
  color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600;
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }

/* ---------- Nav ---------- */
.mainnav { background: var(--bg-2); border-bottom: 1px solid var(--border); overflow-x: auto; }
.mainnav-inner { display: flex; gap: 2px; padding: 0 10px; }
.mainnav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 14px; color: var(--muted); font-weight: 600;
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--text); }
.mainnav a.active { color: #fff; border-bottom-color: var(--accent); }

/* ---------- Ticker tape ---------- */
.tape {
  display: flex; gap: 22px; padding: 7px 16px; overflow-x: auto;
  background: var(--panel); border-bottom: 1px solid var(--border);
  font-size: 12.5px; white-space: nowrap;
}
.tape .tk { display: inline-flex; gap: 7px; align-items: baseline; }
.tape .tk b { color: var(--text); }

/* ---------- Layout containers ---------- */
.container-fluid { padding: 16px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.page-head h1 { font-size: 20px; margin: 0; font-weight: 700; }
.page-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid var(--border); font-weight: 700;
}
.panel-body { padding: 14px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-chart { grid-template-columns: 1fr 320px; }
@media (max-width: 1100px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr);} .grid-chart { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Price colors ---------- */
.c-up { color: var(--up) !important; }
.c-down { color: var(--down) !important; }
.c-ref { color: var(--ref) !important; }
.c-ceil { color: var(--ceil) !important; }
.c-floor { color: var(--floor) !important; }

/* ---------- Price board table ---------- */
.board-wrap { overflow-x: auto; }
table.board { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.board th, table.board td { padding: 5px 8px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.board thead th {
  position: sticky; top: 0; background: var(--panel-2); color: var(--muted);
  font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: .03em;
  border-bottom: 1px solid var(--border-2); z-index: 2;
}
table.board th.grp { text-align: center; color: var(--muted-2); }
table.board td.sym { text-align: left; font-weight: 800; color: var(--text); }
table.board td.sym a { color: inherit; }
table.board tbody tr:hover { background: #16202f; }
.cell-flash { animation: flash .6s ease; }
@keyframes flash { 0% { background: rgba(47,129,247,.25);} 100% { background: transparent; } }

.badge { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
.badge.live { color: var(--up); border-color: rgba(38,194,129,.4); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--up); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(38,194,129,.5);} 70%{box-shadow:0 0 0 6px rgba(38,194,129,0);} 100%{box-shadow:0 0 0 0 rgba(38,194,129,0);} }

/* ---------- Index cards ---------- */
.index-cards { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.index-card { min-width: 190px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.index-card .name { color: var(--muted); font-size: 12px; font-weight: 600; }
.index-card .val { font-size: 22px; font-weight: 800; margin: 3px 0; }
.index-card .chg { font-size: 13px; font-weight: 700; }

/* ---------- Stock detail ---------- */
.stock-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.stock-head .tk { font-size: 30px; font-weight: 800; }
.stock-head .price { font-size: 30px; font-weight: 800; }
.stock-head .meta { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: #fff; border-bottom-color: var(--accent); }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }

.stat-row { display: flex; gap: 22px; flex-wrap: wrap; }
.stat .lbl { color: var(--muted); font-size: 11.5px; }
.stat .num { font-size: 16px; font-weight: 700; }

/* ---------- Chart ---------- */
.chart-box { width: 100%; height: 460px; }
.chart-toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); cursor: pointer; font-weight: 600; }
.chip.active { color: #fff; border-color: var(--accent); background: rgba(47,129,247,.15); }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.note { background: var(--panel-2); border: 1px dashed var(--border-2); border-radius: 8px; padding: 14px; color: var(--muted); }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--panel-2); border:1px solid var(--border); color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
table.simple { width:100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.simple th, table.simple td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: right; }
table.simple th:first-child, table.simple td:first-child { text-align: left; }
table.simple thead th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; }
.scroll-y { max-height: 600px; overflow-y: auto; }
.heat { display:grid; grid-template-columns: repeat(auto-fill, minmax(96px,1fr)); gap:6px; }
.heat .cell { border-radius:6px; padding:10px 6px; text-align:center; font-weight:700; color:#fff; }
footer.foot { padding: 18px 16px; color: var(--muted-2); border-top: 1px solid var(--border); margin-top: 20px; font-size: 12px; }

/* ---------- Modal chi tiết mã ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 8, 14, .72); backdrop-filter: blur(2px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 32px 16px; overflow: hidden;
}
.modal-overlay.open { display: flex; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative; width: 100%; max-width: 1180px; max-height: calc(100vh - 64px);
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6); display: flex; flex-direction: column;
  animation: popIn .18s ease;
}
@keyframes popIn { from { transform: translateY(12px) scale(.99); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-body { overflow-y: auto; padding: 22px 24px 26px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border-2); color: var(--text); font-size: 15px;
}
.modal-close:hover { border-color: var(--accent); color: #fff; }
.modal-loading { padding: 60px; text-align: center; color: var(--muted); }

/* ---------- Bar chart (BCTC) & stacked bar (cổ đông) ---------- */
.barchart { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, #3a92ff, #1f6feb); border-radius: 5px 5px 0 0; min-height: 3px; }
.bar.bar-green { background: linear-gradient(180deg, #2fd99a, #1ba673); }
.bar-lbl { margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.stacked-bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.stacked-bar > div { height: 100%; }

/* ---------- Rich chart toolbar ---------- */
.rc-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.rc-grp { display: inline-flex; gap: 5px; }
.rc-grp[data-role="ind"] { padding-left: 14px; border-left: 1px solid var(--border); }
.rc-ohlc { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12px; }
.rc-main, .rc-rsi, .rc-macd { width: 100%; }
.rc-rsi, .rc-macd { border-top: 1px solid var(--border); margin-top: 4px; }

/* ---------- Thanh cuộn mảnh, tinh tế ---------- */
* { scrollbar-width: thin; scrollbar-color: #2c3850 transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a3446; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3a475e; background-clip: padding-box; }
.modal-body::-webkit-scrollbar { width: 11px; }

/* ---------- Modal: đổi tab mượt ---------- */
.stock-tab-content { transition: opacity .14s ease; }
.stock-tab-content.switching { opacity: .35; }
.modal-body .stock-detail > .tabs { position: sticky; top: 0; background: var(--bg); z-index: 3; }

/* ---------- Tổng quan ---------- */
.ov-grid { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
@media (max-width: 820px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 14px 18px; }
.ov-stats .lbl { color: var(--muted); font-size: 11.5px; }
.ov-stats .num { font-size: 15px; font-weight: 700; }

.ob-panel { display: flex; flex-direction: column; }
.ob-tabs { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.ob-tab { padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 12px; color: var(--muted); cursor: pointer; }
.ob-tab.active { color: #fff; background: rgba(47,129,247,.16); border: 1px solid var(--accent); }
.ob-body { padding: 6px 10px 12px; }
table.ob-book td { padding: 4px 8px; }
tr.ob-match td { background: rgba(47,129,247,.08); border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
.ob-tot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.ob-tot > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.ob-tot b { font-size: 14px; }

/* ---------- Cộng đồng ---------- */
.comm-stats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 10px 14px; margin-bottom: 14px; }
.comm-stats .cs-item { display: flex; gap: 7px; align-items: baseline; }
.comm-stats .cs-bar { flex: 1; min-width: 120px; height: 8px; border-radius: 6px; background: var(--down); overflow: hidden; }
.comm-stats .cs-bar > div { height: 100%; background: var(--up); }
.comm-compose { background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 12px; margin-bottom: 16px; }
.comm-compose textarea { width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 10px; resize: vertical; outline: none; font-family: inherit; }
.comm-compose textarea:focus { border-color: var(--accent); }
.comm-compose-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.comm-taginput { width: 120px; height: 30px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 7px; color: var(--text); padding: 0 10px; outline: none; }
.comm-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cm-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(47,129,247,.12); border: 1px solid rgba(47,129,247,.3); border-radius: 6px; padding: 1px 8px; }
.cm-tag a { color: var(--muted); cursor: pointer; }
.btn.active { border-color: var(--accent); color: #fff; }

.comm-feed { display: flex; flex-direction: column; gap: 12px; }
.cm-post { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.cm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cm-ava { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex: none; }
.cm-text { margin-bottom: 8px; line-height: 1.55; }
.cm-img { height: 180px; border-radius: 8px; margin-bottom: 8px; background: linear-gradient(120deg, #1b2940, #243a2e, #3a2a40); background-size: 200% 200%; }
.cm-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cm-actions { display: flex; gap: 18px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.cm-actions span { cursor: pointer; }
.cm-like.on { color: var(--accent); }
.cm-comments { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.cm-comment { display: flex; gap: 9px; }
.cm-comment .cm-ava { width: 28px; height: 28px; font-size: 12px; }
.cm-cbody { background: var(--panel-2); border-radius: 9px; padding: 8px 11px; flex: 1; }
.cm-cactions { margin-top: 4px; color: var(--muted); font-size: 12px; }
.cm-cactions .cm-like { cursor: pointer; }
.cm-reply { display: flex; gap: 8px; }
.cm-reply input { flex: 1; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 0 12px; height: 34px; outline: none; }
.cm-reply input:focus { border-color: var(--accent); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.auth-brand { font-weight: 800; font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.auth-brand .logo { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #2f81f7, #26c281); display: grid; place-items: center; color: #fff; }
.auth-card h1 { font-size: 22px; margin: 0 0 4px; }
.auth-card label { display: block; color: var(--muted); font-size: 12.5px; margin: 12px 0 5px; }
.auth-input { width: 100%; height: 40px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 0 12px; outline: none; }
.auth-input:focus { border-color: var(--accent); }
textarea.auth-input { height: auto; padding: 10px 12px; }
.auth-btn { width: 100%; justify-content: center; height: 42px; margin-top: 18px; }
.auth-foot { margin-top: 16px; color: var(--muted); text-align: center; }
.auth-err { background: rgba(240,97,109,.12); border: 1px solid rgba(240,97,109,.4); color: #ff9aa3; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.auth-ok { background: rgba(38,194,129,.12); border: 1px solid rgba(38,194,129,.4); color: #6ee7b0; border-radius: 8px; padding: 9px 12px; font-size: 13px; margin: 8px 0; }

/* ---------- Notifications & user menu ---------- */
.notif-wrap, .user-wrap { position: relative; }
.notif-btn { position: relative; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--down); color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-panel, .user-menu { position: absolute; right: 0; top: 42px; width: 320px; background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 10px; box-shadow: 0 16px 50px rgba(0,0,0,.5); display: none; z-index: 200; overflow: hidden; }
.notif-panel.open { display: block; }
.notif-head { padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 700; }
.notif-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.notif-item:hover { background: #1d293b; }
.notif-item.unread { background: rgba(47,129,247,.07); }
.user-menu { width: 200px; }
.user-wrap:hover .user-menu { display: block; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 10px 14px; color: var(--text); background: none; border: none; border-bottom: 1px solid var(--border); cursor: pointer; font: inherit; }
.user-menu a:hover, .user-menu button:hover { background: #1d293b; }
.user-btn { gap: 8px; }
.user-ava { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 12px; }

/* ---------- Watchlist star ---------- */
.wl-star { cursor: pointer; color: var(--muted); font-size: 22px; vertical-align: middle; margin-left: 4px; }
.wl-star.on, .wl-star:hover { color: var(--ref); }
.wl-remove { cursor: pointer; color: var(--muted); font-weight: 700; }
.wl-remove:hover { color: var(--down); }

/* ---------- News ---------- */
.news-feature { display: grid; grid-template-columns: 420px 1fr; gap: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; color: var(--text); }
.news-feature-img, .news-card-img { background: linear-gradient(120deg, #16314f, #1d3b2e, #3a2440); }
.news-feature-img { min-height: 230px; }
.news-feature-body { padding: 20px; }
.news-feature-body h2 { margin: 10px 0; font-size: 22px; }
.news-meta { color: var(--muted); font-size: 12px; margin: 8px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .news-feature { grid-template-columns: 1fr; } }
.news-card { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; color: var(--text); }
.news-card:hover { border-color: var(--accent); }
.news-card-img { height: 130px; }
.news-card-body { padding: 14px; }
.news-card-body h3 { font-size: 15px; margin: 8px 0; line-height: 1.4; }
.news-card-body p { font-size: 12.5px; margin: 0 0 8px; }

/* ---------- Admin ---------- */
.admin-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .admin-wrap { grid-template-columns: 1fr; } }
.admin-nav { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; border-left: 2px solid transparent; }
.admin-nav a:hover { color: var(--text); background: var(--panel); }
.admin-nav a.active { color: #fff; background: var(--panel); border-left-color: var(--accent); }
.admin-content h1 { font-size: 20px; margin: 0 0 6px; }
.adm-stat .n { font-size: 28px; font-weight: 800; }
.adm-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.adm-form label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.adm-form .auth-input { height: 36px; }
.lnk-danger { background: none; border: none; color: var(--down); cursor: pointer; font: inherit; margin-left: 10px; }
.lnk-danger:hover { text-decoration: underline; }

/* ---------- Home hero ---------- */
.hero { background: radial-gradient(1200px 240px at 20% -40%, rgba(47,129,247,.25), transparent), radial-gradient(900px 220px at 90% -60%, rgba(38,194,129,.18), transparent); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.hero h1 { font-size: 24px; margin: 0 0 4px; }
.hero .sub { color: var(--muted); }
.breadth-bar { height: 12px; border-radius: 8px; overflow: hidden; display: flex; margin-top: 8px; background: var(--panel-2); }
.breadth-bar > div { height: 100%; }
