* { box-sizing: border-box; }
:root {
  --bg:#06131f; --panel:rgba(7,22,34,.92); --panel2:rgba(12,29,46,.88);
  --line:rgba(148,163,184,.20); --text:#f8fafc; --muted:#9aa8bc;
  --mint:#5eead4; --green:#22c55e; --red:#ff4d5a; --yellow:#facc15; --orange:#f59e0b;
}
html { scroll-behavior:smooth; }
body {
  margin:0; min-height:100vh;
  background:radial-gradient(circle at 18% -10%,rgba(94,234,212,.12),transparent 30%),radial-gradient(circle at 85% 20%,rgba(56,189,248,.08),transparent 34%),linear-gradient(180deg,#06131f,#03101b 55%,#020812);
  color:var(--text); font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  padding:18px 14px 112px;
}
.app { max-width:980px; margin:0 auto; }
section { margin-bottom:16px; }
.hero,.panel,.status-card {
  background:radial-gradient(circle at top left,rgba(94,234,212,.055),transparent 38%),linear-gradient(180deg,rgba(8,25,38,.96),rgba(4,16,27,.96));
  border:1px solid rgba(94,234,212,.18); border-radius:20px; padding:20px; box-shadow:0 18px 50px rgba(0,0,0,.28);
}
.hero.compact { padding:18px; }
.eyebrow { color:var(--mint); font-size:12px; font-weight:1000; letter-spacing:5px; margin-bottom:14px; }
h1,h2,p { margin-top:0; }
h1 { font-size:clamp(38px,9vw,64px); line-height:.98; letter-spacing:-1.8px; margin-bottom:18px; }
h2 { font-size:clamp(26px,6vw,38px); line-height:1; margin-bottom:16px; }
p { color:var(--muted); font-size:16px; line-height:1.45; font-weight:800; }
button { border:0; min-height:44px; border-radius:14px; padding:0 18px; background:linear-gradient(90deg,var(--mint),#38bdf8); color:#03131f; font-size:15px; font-weight:1000; cursor:pointer; }
button:active { transform:translateY(1px); }
.refresh-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:18px; }
.refresh-meta { display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:12px; font-weight:800; }
.online-status { display:inline-flex; align-items:center; gap:7px; text-transform:uppercase; letter-spacing:.4px; font-size:12px; font-weight:1000; }
.status-dot { width:9px; height:9px; border-radius:999px; background:var(--red); box-shadow:0 0 11px rgba(255,77,90,.75); }
.online-status.online { color:var(--green); }
.online-status.online .status-dot { background:var(--green); box-shadow:0 0 11px rgba(34,197,94,.75); }
.online-status.offline { color:var(--red); }
.status-card { border-color:rgba(255,77,90,.32); }
.status-card h2 { color:var(--red); font-size:clamp(34px,9vw,62px); }
.trade-warning { font-size:clamp(26px,7vw,48px); font-weight:1000; margin-bottom:14px; }
.bar { width:100%; height:10px; background:rgba(148,163,184,.20); border-radius:999px; overflow:hidden; }
.bar.small { height:8px; margin-top:10px; }
.bar span { display:block; height:100%; width:30%; background:linear-gradient(90deg,#ff4d5a,#f59e0b,#22c55e); border-radius:999px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.tile { background:var(--panel2); border:1px solid var(--line); border-radius:16px; padding:13px; min-height:86px; }
.tile.wide { grid-column:1/-1; }
.tile small { display:block; color:var(--muted); font-size:12px; font-weight:900; margin-bottom:7px; }
.tile strong { display:block; font-size:24px; line-height:1.05; font-weight:1000; }
.green,.long,.trade { color:var(--green)!important; }
.red,.short,.avoid { color:var(--red)!important; }
.yellow { color:var(--orange)!important; }
.table-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.table-head h2 { margin-bottom:12px; }
.table-head button { min-height:auto; background:transparent; color:var(--mint); padding:0; }
table { width:100%; border-collapse:collapse; table-layout:fixed; }
th { color:var(--muted); font-size:10.5px; letter-spacing:1.4px; text-transform:uppercase; text-align:left; padding:9px 4px; border-bottom:1px solid var(--line); cursor:pointer; }
th::after { content:" ↕"; opacity:.45; }
th.asc::after { content:" ▲"; color:var(--mint); opacity:1; }
th.desc::after { content:" ▼"; color:var(--mint); opacity:1; }
td { font-size:13px; font-weight:950; padding:10px 4px; border-bottom:1px solid rgba(148,163,184,.14); white-space:nowrap; }
tbody tr { cursor:pointer; }
tbody tr:nth-child(even) td { background:rgba(15,31,48,.20); }
tbody tr:active td { background:rgba(94,234,212,.12); }
th:nth-child(1),td:nth-child(1){width:8%;color:#cbd5e1} th:nth-child(2),td:nth-child(2){width:27%} th:nth-child(3),td:nth-child(3){width:12%} th:nth-child(4),td:nth-child(4){width:17%} th:nth-child(5),td:nth-child(5){width:17%;color:var(--yellow)} th:nth-child(6),td:nth-child(6){width:13%;color:var(--red)} th:nth-child(7),td:nth-child(7){width:6%;color:var(--muted)}
.watch-card { display:flex; justify-content:space-between; gap:12px; align-items:center; background:var(--panel2); border:1px solid var(--line); border-radius:16px; padding:14px; margin-bottom:10px; }
.watch-card strong { display:block; font-size:18px; }
.watch-card small { display:block; color:var(--muted); margin-top:5px; font-weight:800; }
.watch-card button { min-height:38px; font-size:13px; }
#coinModal { position:fixed; inset:0; z-index:20000; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.66); backdrop-filter:blur(8px); padding:12px; }
#coinModal.open { display:flex; }
.coin-modal-card { width:100%; max-width:760px; max-height:90vh; overflow-y:auto; background:radial-gradient(circle at top left,rgba(94,234,212,.10),transparent 28%),linear-gradient(180deg,rgba(8,24,36,.99),rgba(3,12,22,.99)); border:1px solid rgba(94,234,212,.28); border-radius:22px; padding:15px; box-shadow:0 28px 80px rgba(0,0,0,.68); }
.coin-modal-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:12px; }
.coin-modal-top h2 { margin:0; font-size:26px; }
.coin-modal-top p { margin:7px 0 0; font-size:13px; line-height:1.25; }
.coin-close { width:44px; height:44px; min-height:44px; border-radius:14px; background:rgba(148,163,184,.13); color:var(--text); font-size:24px; }
.trade-score-card { background:linear-gradient(180deg,rgba(15,31,48,.90),rgba(7,20,32,.92)); border:1px solid rgba(94,234,212,.22); border-radius:18px; padding:14px; margin-bottom:10px; }
.trade-score-row { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
.trade-score-label { color:var(--muted); font-size:11px; font-weight:950; letter-spacing:1.4px; }
.trade-score-value { font-size:30px; font-weight:1000; line-height:1; }
.trade-score-grade { font-size:28px; font-weight:1000; }
.readiness-ring { height:9px; background:rgba(148,163,184,.20); border-radius:999px; overflow:hidden; margin-top:9px; }
.readiness-ring span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#ff4d5a,#f59e0b,#22c55e); }
.level-wait{color:var(--red)!important}.level-watch{color:var(--yellow)!important}.level-ready{color:var(--green)!important}
.trade-workspace-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.trade-workspace-card { background:rgba(13,30,47,.76); border:1px solid rgba(148,163,184,.18); border-radius:15px; padding:11px; }
.trade-workspace-card.wide { grid-column:1/-1; }
.trade-workspace-card small { display:block; color:var(--muted); font-size:10.5px; font-weight:950; margin-bottom:5px; }
.trade-workspace-card strong { font-size:20px; font-weight:1000; }
.workspace-section-title { color:var(--text); font-size:15px; font-weight:1000; margin:2px 0 8px; }
.compact-list { display:grid; gap:7px; }
.compact-item { display:flex; justify-content:space-between; gap:10px; padding:8px 9px; border-radius:11px; background:rgba(2,8,20,.26); border:1px solid rgba(148,163,184,.12); font-size:12px; font-weight:850; }
.compact-item span:first-child { color:#cbd5e1; }
.compact-item span:last-child { font-weight:1000; }
.ai-breakdown { display:grid; gap:8px; }
.ai-meter-row { display:grid; grid-template-columns:86px 1fr 42px; gap:8px; align-items:center; font-size:12px; font-weight:850; color:#cbd5e1; }
.ai-meter { height:7px; border-radius:999px; background:rgba(148,163,184,.18); overflow:hidden; }
.ai-meter span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#ff4d5a,#f59e0b,#22c55e); }
.execution-flow { display:grid; gap:7px; }
.execution-step { padding:8px 10px; border-radius:12px; background:rgba(15,31,48,.75); border:1px solid rgba(148,163,184,.14); color:#cbd5e1; font-size:12.5px; font-weight:850; }
.trade-actions { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.trade-actions button { width:100%; min-height:46px; font-size:13px; border-radius:14px; }
.primary-action { grid-column:1/-1; background:linear-gradient(90deg,#5eead4,#38bdf8); }
.secondary-action { background:rgba(15,31,48,.90); color:#e5e7eb; border:1px solid rgba(148,163,184,.20); }
.bottom-nav { position:fixed; left:14px; right:14px; bottom:18px; z-index:9999; max-width:980px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:8px; background:rgba(2,8,20,.94); border:1px solid rgba(148,163,184,.18); border-radius:18px; padding:8px; backdrop-filter:blur(14px); box-shadow:0 18px 45px rgba(0,0,0,.45); }
.bottom-nav a { min-height:58px; border-radius:14px; color:#cbd5e1; text-decoration:none; display:flex; align-items:center; justify-content:center; gap:3px; flex-direction:column; font-size:22px; font-weight:800; }
.bottom-nav a span { font-size:11px; font-weight:600; }
.bottom-nav a.active { background:rgba(94,234,212,.14); color:var(--mint); border:1px solid rgba(94,234,212,.35); }
@media (min-width:700px){body{padding:24px 28px 124px}.grid{grid-template-columns:repeat(4,1fr)}.grid .wide{grid-column:1/-1}}
@media (max-width:430px){.hero,.panel,.status-card{padding:18px}td{font-size:12.5px}.trade-workspace-grid{gap:8px}.trade-actions{grid-template-columns:1fr}.primary-action{grid-column:auto}}

/* V15 homepage expansion */
.text-link {
  color: #5eead4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 1000;
}

.action-tile {
  background: rgba(13,30,47,.88);
  border: 1px solid rgba(94,234,212,.22);
  border-radius: 16px;
  padding: 18px;
  color: #f8fafc;
  text-decoration: none;
  font-size: 17px;
  font-weight: 1000;
  text-align: center;
}

.action-tile.wide {
  grid-column: 1 / -1;
}

.bottom-nav {
  bottom: 26px !important;
}

body {
  padding-bottom: 150px !important;
}

/* V15 manual setup search */
.search-panel h2 {
  margin-bottom: 12px;
}

.search-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr 1fr;
  gap: 10px;
}

.search-grid input,
.search-grid select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(13,30,47,.88);
  color: #f8fafc;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 900;
  outline: none;
}

.search-grid input::placeholder {
  color: #64748b;
}

.hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

@media(max-width:430px){
  .search-grid {
    grid-template-columns: 1fr;
  }
}

/* V15 live watchlist upgrade */
.watch-live-card {
  background:
    radial-gradient(circle at top left, rgba(94,234,212,.08), transparent 35%),
    linear-gradient(180deg, rgba(13,30,47,.92), rgba(5,17,29,.96));
  border: 1px solid rgba(94,234,212,.20);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.watch-live-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.watch-live-top strong {
  font-size: 21px;
  font-weight: 1000;
}

.watch-status {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  white-space: nowrap;
}

.watch-status.ready {
  color: #22c55e;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
}

.watch-status.near {
  color: #facc15;
  background: rgba(250,204,21,.12);
  border: 1px solid rgba(250,204,21,.25);
}

.watch-status.wait {
  color: #ff4d5a;
  background: rgba(255,77,90,.12);
  border: 1px solid rgba(255,77,90,.25);
}

.watch-readiness {
  margin: 10px 0 12px;
}

.watch-readiness-row {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 7px;
}

.watch-live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.watch-mini {
  background: rgba(2,8,20,.24);
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 13px;
  padding: 10px;
}

.watch-mini small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 5px;
}

.watch-mini strong {
  display: block;
  font-size: 16px;
  font-weight: 1000;
}

.watch-mini.wide {
  grid-column: 1 / -1;
}

.watch-checklist {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.watch-check {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 11px;
  background: rgba(15,31,48,.65);
  border: 1px solid rgba(148,163,184,.12);
  font-size: 12px;
  font-weight: 850;
}

.watch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.watch-actions button {
  min-height: 42px;
  border-radius: 13px;
  font-size: 12px;
}

.watch-actions .danger {
  background: rgba(255,77,90,.13);
  color: #ff6b76;
  border: 1px solid rgba(255,77,90,.25);
}

@media(max-width:430px){
  .watch-actions {
    grid-template-columns: 1fr 1fr;
  }

  .watch-live-top strong {
    font-size: 19px;
  }
}

/* V15 Telegram Test */
.grid button {
  width: 100%;
}

#result {
  color: #94a3b8;
  font-weight: 900;
}

/* V17.1 live dashboard */
.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.mini-online {
  color:#5eead4;
  font-weight:1000;
  font-size:13px;
  letter-spacing:1px;
}

.live-trade-card {
  border:1px solid rgba(94,234,212,.18);
  background:linear-gradient(180deg, rgba(15,31,48,.88), rgba(5,18,28,.92));
  border-radius:24px;
  padding:18px;
  margin-top:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}

.live-trade-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}

.live-symbol {
  font-size:24px;
  font-weight:1000;
  color:#fff;
}

.live-sub {
  margin-top:4px;
  color:#94a3b8;
  font-weight:900;
}

.live-pill {
  border-radius:999px;
  padding:8px 12px;
  font-weight:1000;
  background:#132235;
}

.live-pill.good, .good { color:#22c55e; }
.live-pill.warn, .warn { color:#facc15; }
.live-pill.bad, .bad { color:#ff4d5f; }
.muted { color:#94a3b8; }

.live-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
}

.live-grid div {
  background:rgba(10,25,39,.78);
  border:1px solid rgba(148,163,184,.12);
  border-radius:16px;
  padding:12px;
}

.live-grid span {
  display:block;
  color:#94a3b8;
  font-size:12px;
  font-weight:900;
  margin-bottom:5px;
}

.live-grid b {
  color:#fff;
  font-size:18px;
  font-weight:1000;
}

.live-signal-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

.live-signal-row span {
  background:rgba(15,31,48,.9);
  border:1px solid rgba(148,163,184,.12);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:1000;
}

/* V18 Alert Status */
.alert-status-panel {
  margin-top: 24px;
}

.alert-status-card {
  border: 1px solid rgba(94,234,212,.18);
  background: linear-gradient(180deg, rgba(15,31,48,.88), rgba(5,18,28,.94));
  border-radius: 24px;
  padding: 18px;
  margin-top: 14px;
}

.alert-main-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.alert-symbol {
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
}

.alert-sub {
  color: #94a3b8;
  font-weight: 900;
  margin-top: 4px;
}

.alert-score {
  background: rgba(15,31,48,.95);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 1000;
}

.alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.alert-grid div {
  background: rgba(10,25,39,.8);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 16px;
  padding: 12px;
}

.alert-grid span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.alert-grid b {
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  word-break: break-word;
}

.alert-history-mini {
  margin-top: 14px;
  background: rgba(10,25,39,.7);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 16px;
  padding: 14px;
}

.alert-history-mini h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
}

.alert-history-mini p {
  margin: 0;
  color: #cbd5e1;
  font-weight: 800;
}

.alert-history-mini span {
  color: #94a3b8;
}

.dev-alert-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}

.dev-alert-grid button{
  border:0;
  border-radius:18px;
  padding:14px 10px;
  font-size:15px;
  font-weight:1000;
  color:#00131c;
  background:linear-gradient(90deg,#5eead4,#38bdf8);
}

/* V19 Autonomous Scanner */
.mini-action {
  border:0;
  border-radius:14px;
  padding:10px 14px;
  font-weight:1000;
  color:#00131c;
  background:linear-gradient(90deg,#5eead4,#38bdf8);
}

.v19-table {
  margin-top:14px;
  display:grid;
  gap:8px;
}

.v19-row {
  display:grid;
  grid-template-columns:32px 1fr auto auto;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:14px;
  background:rgba(10,25,39,.78);
  border:1px solid rgba(148,163,184,.12);
}

.v19-row b,
.v19-row span {
  color:#fff;
  font-weight:1000;
}

.v19-row em {
  font-style:normal;
  color:#facc15;
  font-weight:1000;
}

/* V20/V21 grading lifecycle */
.grade-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.grade-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:16px;
  background:rgba(10,25,39,.78);
  border:1px solid rgba(148,163,184,.12);
}
.grade-row b{
  display:block;
  color:#fff;
  font-weight:1000;
  font-size:16px;
}
.grade-row span{
  display:block;
  color:#94a3b8;
  font-weight:900;
  margin-top:4px;
}
.grade-row strong{
  font-weight:1000;
  white-space:nowrap;
}

/* V22 Smart Queue */
.smart-card{
  margin-top:14px;
  border:1px solid rgba(94,234,212,.18);
  background:linear-gradient(180deg,rgba(15,31,48,.9),rgba(5,18,28,.95));
  border-radius:22px;
  padding:16px;
}

.smart-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}

.smart-head span{
  color:#5eead4;
  font-weight:1000;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.smart-head b{
  display:block;
  color:#fff;
  font-size:24px;
  font-weight:1000;
  margin-top:5px;
}

.smart-head em{
  display:block;
  color:#94a3b8;
  font-style:normal;
  font-weight:900;
  margin-top:4px;
}

.smart-head strong{
  white-space:nowrap;
  font-weight:1000;
  font-size:18px;
}

.smart-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.smart-grid div{
  background:rgba(10,25,39,.8);
  border:1px solid rgba(148,163,184,.12);
  border-radius:14px;
  padding:11px;
}

.smart-grid span{
  display:block;
  color:#94a3b8;
  font-size:12px;
  font-weight:900;
  margin-bottom:5px;
}

.smart-grid b{
  color:#fff;
  font-size:15px;
  font-weight:1000;
}

.smart-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.smart-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px 10px;
  align-items:center;
  background:rgba(10,25,39,.78);
  border:1px solid rgba(148,163,184,.12);
  border-radius:14px;
  padding:12px;
}

.smart-row b{
  color:#fff;
  font-weight:1000;
}

.smart-row span{
  color:#94a3b8;
  font-weight:900;
  grid-column:1;
}

.smart-row strong{
  grid-row:1 / span 2;
  grid-column:2;
  font-weight:1000;
}

/* V22 Bull/Bear standout panels */
.smart-queue-longs,
.smart-queue-shorts {
  position: relative;
  overflow: hidden;
  border-radius: 28px !important;
}

.smart-queue-longs {
  border: 1px solid rgba(34,197,94,.95) !important;
  box-shadow: 0 0 24px rgba(34,197,94,.28), inset 0 0 80px rgba(34,197,94,.10) !important;
  background:
    radial-gradient(circle at 85% 20%, rgba(34,197,94,.22), transparent 34%),
    linear-gradient(180deg, rgba(8,45,32,.94), rgba(5,18,28,.96)) !important;
}

.smart-queue-shorts {
  border: 1px solid rgba(255,77,95,.95) !important;
  box-shadow: 0 0 24px rgba(255,77,95,.28), inset 0 0 80px rgba(255,77,95,.10) !important;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,77,95,.24), transparent 34%),
    linear-gradient(180deg, rgba(52,10,18,.96), rgba(5,18,28,.97)) !important;
}

.smart-queue-longs::before,
.smart-queue-shorts::before {
  position: absolute;
  top: 26px;
  left: 28px;
  font-size: 44px;
  opacity: .9;
}

.smart-queue-longs::before {
  content: "🐂";
}

.smart-queue-shorts::before {
  content: "🐻";
}

.smart-queue-longs::after,
.smart-queue-shorts::after {
  content: "";
  position: absolute;
  right: 32px;
  top: 84px;
  width: 180px;
  height: 90px;
  opacity: .22;
  pointer-events: none;
}

.smart-queue-longs::after {
  background:
    linear-gradient(135deg, transparent 45%, rgba(34,197,94,.95) 46%, rgba(34,197,94,.95) 53%, transparent 54%);
  transform: rotate(-8deg);
}

.smart-queue-shorts::after {
  background:
    linear-gradient(45deg, transparent 45%, rgba(255,77,95,.95) 46%, rgba(255,77,95,.95) 53%, transparent 54%);
  transform: rotate(8deg);
}

.smart-queue-longs h2,
.smart-queue-shorts h2 {
  padding-left: 64px;
}

.smart-queue-longs h2,
.smart-queue-longs .mini-online,
.smart-queue-longs .smart-row strong,
.smart-queue-longs .smart-row span {
  color: #22c55e !important;
}

.smart-queue-shorts h2,
.smart-queue-shorts .mini-online,
.smart-queue-shorts .smart-row strong,
.smart-queue-shorts .smart-row span {
  color: #ff4d5f !important;
}

.smart-queue-longs .smart-row {
  border-color: rgba(34,197,94,.35) !important;
  background: rgba(7,30,25,.82) !important;
}

.smart-queue-shorts .smart-row {
  border-color: rgba(255,77,95,.38) !important;
  background: rgba(32,8,15,.84) !important;
}

.smart-queue-longs .smart-row b,
.smart-queue-shorts .smart-row b {
  color: #ffffff !important;
}

.smart-queue-longs .mini-online::before,
.smart-queue-shorts .mini-online::before {
  content: "● ";
}

.smart-queue-longs p {
  color: #86efac !important;
}

.smart-queue-shorts p {
  color: #fca5a5 !important;
}

/* V22 bull/bear refinement */
.smart-queue-longs::before,
.smart-queue-shorts::before {
  top: 34px !important;
  left: 34px !important;
  font-size: 36px !important;
  filter: drop-shadow(0 0 12px currentColor);
}

.smart-queue-longs::before {
  content: "♉" !important;
  color: #22c55e !important;
}

.smart-queue-shorts::before {
  content: "♌" !important;
  color: #ff4d5f !important;
}

.smart-queue-longs h2,
.smart-queue-shorts h2 {
  padding-left: 76px !important;
}

.smart-queue-longs .section-head,
.smart-queue-shorts .section-head {
  align-items: center !important;
  margin-bottom: 14px !important;
}

.smart-queue-longs p,
.smart-queue-shorts p {
  padding-left: 0 !important;
  margin-top: 18px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.smart-queue-longs {
  background:
    radial-gradient(circle at 82% 22%, rgba(34,197,94,.24), transparent 34%),
    linear-gradient(180deg, rgba(7,42,29,.96), rgba(5,18,28,.97)) !important;
}

.smart-queue-shorts {
  background:
    radial-gradient(circle at 82% 22%, rgba(255,77,95,.25), transparent 34%),
    linear-gradient(180deg, rgba(56,9,18,.96), rgba(5,18,28,.98)) !important;
}

.smart-queue-longs .smart-row,
.smart-queue-shorts .smart-row {
  backdrop-filter: blur(10px);
}

.smart-queue-shorts .smart-row span {
  color: #ff4d5f !important;
}

.smart-queue-longs .smart-row span {
  color: #22c55e !important;
}

/* ===== Professional Bull/Bear Headers ===== */

/* Remove old icon */
.smart-queue-longs::before,
.smart-queue-shorts::before{
    content:"" !important;
    display:none !important;
}

/* Small arrows before headings */
.smart-queue-longs h2::before{
    content:"↗";
    color:#22c55e;
    margin-right:12px;
    font-size:34px;
    font-weight:900;
    text-shadow:
        0 0 8px rgba(34,197,94,.9),
        0 0 18px rgba(34,197,94,.7);
}

.smart-queue-shorts h2::before{
    content:"↘";
    color:#ff4d5f;
    margin-right:12px;
    font-size:34px;
    font-weight:900;
    text-shadow:
        0 0 8px rgba(255,77,95,.9),
        0 0 18px rgba(255,77,95,.7);
}

/* Remove left padding previously used for icons */
.smart-queue-longs h2,
.smart-queue-shorts h2{
    padding-left:0 !important;
    display:flex;
    align-items:center;
}

/* Large background arrows */
.smart-queue-longs::after{
    content:"↗";
    position:absolute;
    right:45px;
    bottom:10px;
    font-size:180px;
    color:rgba(34,197,94,.10);
    font-weight:900;
    transform:rotate(-6deg);
    pointer-events:none;
}

.smart-queue-shorts::after{
    content:"↘";
    position:absolute;
    right:45px;
    bottom:10px;
    font-size:180px;
    color:rgba(255,77,95,.10);
    font-weight:900;
    transform:rotate(6deg);
    pointer-events:none;
}

/* Stronger glow */
.smart-queue-longs{
    box-shadow:
        0 0 28px rgba(34,197,94,.30),
        inset 0 0 80px rgba(34,197,94,.10);
}

.smart-queue-shorts{
    box-shadow:
        0 0 28px rgba(255,77,95,.30),
        inset 0 0 80px rgba(255,77,95,.10);
}


/* V22 professional grade badges */
.smart-row strong,
.smart-head strong {
  border-radius: 999px !important;
  padding: 8px 12px !important;
  min-width: 64px;
  text-align: center;
  background: rgba(15,31,48,.95);
  border: 1px solid rgba(148,163,184,.16);
  box-shadow: inset 0 0 18px rgba(255,255,255,.03);
}

.smart-row strong.good,
.smart-head strong.good {
  color: #22c55e !important;
  border-color: rgba(34,197,94,.45);
  background: rgba(9,38,28,.95);
}

.smart-row strong.warn,
.smart-head strong.warn {
  color: #facc15 !important;
  border-color: rgba(250,204,21,.45);
  background: rgba(45,35,8,.92);
}

.smart-row strong.bad,
.smart-head strong.bad {
  color: #ff4d5f !important;
  border-color: rgba(255,77,95,.45);
  background: rgba(55,10,18,.92);
}

.smart-row:hover {
  transform: translateY(-1px);
  transition: .18s ease;
  border-color: rgba(94,234,212,.28) !important;
}

.smart-queue-longs .smart-row:hover {
  border-color: rgba(34,197,94,.65) !important;
}

.smart-queue-shorts .smart-row:hover {
  border-color: rgba(255,77,95,.65) !important;
}

/* V22 clickable setup modal */
.setup-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow:auto;
  padding:34px 14px 120px;
}

.setup-modal{
  position:relative;
  width:min(680px,100%);
  border:1px solid rgba(94,234,212,.30);
  background:linear-gradient(180deg,rgba(10,25,39,.98),rgba(3,10,18,.98));
  border-radius:28px;
  padding:22px;
  box-shadow:0 28px 90px rgba(0,0,0,.55), 0 0 28px rgba(94,234,212,.16);
}

.setup-close{
  position:absolute;
  top:16px;
  right:16px;
  width:48px;
  height:48px;
  border:0;
  border-radius:16px;
  background:rgba(15,31,48,.95);
  color:#fff;
  font-size:32px;
  font-weight:1000;
}

.setup-title{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  padding-right:56px;
}

.setup-title h2{
  margin:0;
  color:#fff;
  font-size:34px;
  line-height:1.05;
}

.setup-title p{
  margin:8px 0 0;
  color:#94a3b8;
  font-weight:1000;
}

.setup-title strong{
  border-radius:999px;
  padding:9px 13px;
  background:rgba(45,35,8,.95);
  border:1px solid rgba(250,204,21,.45);
  color:#facc15;
  font-weight:1000;
  white-space:nowrap;
}

.setup-grid,
.setup-breakdown{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}

.setup-grid div,
.setup-breakdown div{
  background:rgba(10,25,39,.86);
  border:1px solid rgba(148,163,184,.12);
  border-radius:16px;
  padding:13px;
}

.setup-grid span,
.setup-breakdown span{
  display:block;
  color:#94a3b8;
  font-size:12px;
  font-weight:900;
  margin-bottom:6px;
}

.setup-grid b,
.setup-breakdown b{
  color:#fff;
  font-size:18px;
  font-weight:1000;
}

.setup-section{
  margin-top:16px;
  background:rgba(10,25,39,.66);
  border:1px solid rgba(148,163,184,.12);
  border-radius:18px;
  padding:15px;
}

.setup-section h3{
  margin:0 0 10px;
  color:#fff;
  font-size:18px;
}

.setup-section p{
  margin:8px 0;
  color:#cbd5e1;
  font-weight:850;
  line-height:1.35;
}

.warning-box{
  border-color:rgba(250,204,21,.35);
  background:rgba(45,35,8,.24);
}

.setup-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:16px;
}

.setup-actions button{
  border:0;
  border-radius:18px;
  padding:16px;
  font-size:18px;
  font-weight:1000;
  color:#00131c;
  background:linear-gradient(90deg,#5eead4,#38bdf8);
}

.smart-card,
.smart-row{
  cursor:pointer;
}

.market-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:18px;
}

.market-header h2{
font-size:48px;
font-weight:900;
margin:0;
}

.market-header p{
margin-top:6px;
color:#8aa4b8;
font-size:18px;
font-weight:700;
}

.market-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:16px;
}

.market-stat{
background:#0f1c2a;
border:1px solid rgba(255,255,255,.08);
border-radius:18px;
padding:18px;
}

.market-stat label{
display:block;
font-size:14px;
color:#8aa4b8;
margin-bottom:8px;
font-weight:700;
}

.market-value{
font-size:28px;
font-weight:900;
color:white;
}

.market-value.green{
color:#38d66b;
}

.market-value.red{
color:#ff5d73;
}

.market-value.bullish{
color:#38d66b;
}

.market-value.bearish{
color:#ff5d73;
}

.market-value.neutral{
color:#f4c542;
}

.market-engine-loading{
padding:30px;
text-align:center;
font-weight:700;
color:#8aa4b8;
}


/* V22 Live Market Engine Overview */
.market-overview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.market-overview-stat{
  background:rgba(10,25,39,.82);
  border:1px solid rgba(148,163,184,.14);
  border-radius:18px;
  padding:16px;
}

.market-overview-stat.wide{
  grid-column:span 2;
}

.market-overview-stat span{
  display:block;
  color:#94a3b8;
  font-size:13px;
  font-weight:900;
  margin-bottom:8px;
}

.market-overview-stat b{
  color:#fff;
  font-size:24px;
  font-weight:1000;
}

.market-overview-stat b.good,
.market-overview-stat b.bullish{
  color:#22c55e;
}

.market-overview-stat b.bad,
.market-overview-stat b.bearish{
  color:#ff4d5f;
}

.market-overview-stat b.warn,
.market-overview-stat b.neutral{
  color:#facc15;
}

/* Fixed Live Market Engine overview */
.market-overview-panel {
  overflow: hidden !important;
}

.market-overview-panel .live-trade-card {
  display: none !important;
}

.market-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.market-overview-head h2 {
  margin: 0;
  font-size: 34px !important;
  line-height: 1.05;
  color: #fff;
}

.market-overview-head p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 900;
}

.market-overview-head span {
  color: #5eead4;
  font-weight: 1000;
  white-space: nowrap;
  margin-top: 8px;
}

.market-overview-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

.market-overview-grid > div {
  background: rgba(10,25,39,.86);
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 18px;
  padding: 14px;
  min-width: 0;
}

.market-overview-grid > div.wide {
  grid-column: span 2;
}

.market-overview-grid small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.market-overview-grid b {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
  line-height: 1.1;
  word-break: break-word;
}

.market-overview-grid b.bullish {
  color: #22c55e;
}

.market-overview-grid b.bearish {
  color: #ff4d5f;
}

.market-overview-grid b.neutral {
  color: #facc15;
}

/* FINAL V22 Market Overview Override */
.atlas-market-overview-card{
  display:block !important;
  overflow:hidden !important;
}

.atlas-market-head{
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:14px !important;
  margin-bottom:18px !important;
}

.atlas-market-head h2{
  margin:0 !important;
  font-size:36px !important;
  line-height:1.05 !important;
  color:#fff !important;
}

.atlas-market-head p{
  margin:8px 0 0 !important;
  color:#94a3b8 !important;
  font-size:15px !important;
  font-weight:900 !important;
}

.atlas-market-head span{
  color:#5eead4 !important;
  font-size:16px !important;
  font-weight:1000 !important;
  white-space:nowrap !important;
  margin-top:8px !important;
}

.atlas-market-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100% !important;
}

.atlas-market-stat{
  background:rgba(10,25,39,.86) !important;
  border:1px solid rgba(148,163,184,.14) !important;
  border-radius:18px !important;
  padding:14px !important;
  min-width:0 !important;
}

.atlas-market-stat.wide{
  grid-column:span 2 !important;
}

.atlas-market-stat small{
  display:block !important;
  color:#94a3b8 !important;
  font-size:12px !important;
  font-weight:900 !important;
  margin-bottom:8px !important;
}

.atlas-market-stat b{
  display:block !important;
  color:#fff !important;
  font-size:24px !important;
  font-weight:1000 !important;
  line-height:1.1 !important;
  word-break:break-word !important;
}

.atlas-market-stat b.bullish{
  color:#22c55e !important;
}

.atlas-market-stat b.bearish{
  color:#ff4d5f !important;
}

.atlas-market-stat b.neutral{
  color:#facc15 !important;
}

.atlas-market-stat b.good{
  color:#22c55e !important;
}

.atlas-market-stat b.bad{
  color:#ff4d5f !important;
}

/* Compact Live Market Engine */
.atlas-market-overview-card {
  padding: 24px !important;
  margin-bottom: 22px !important;
}

.atlas-market-head {
  margin-bottom: 14px !important;
}

.atlas-market-head h2 {
  font-size: 30px !important;
  line-height: 1.05 !important;
}

.atlas-market-head p {
  font-size: 13px !important;
  margin-top: 6px !important;
}

.atlas-market-head span {
  font-size: 14px !important;
}

.atlas-market-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.atlas-market-stat {
  padding: 12px !important;
  border-radius: 15px !important;
}

.atlas-market-stat.wide {
  grid-column: span 1 !important;
}

.atlas-market-stat small {
  font-size: 11px !important;
  margin-bottom: 6px !important;
}

.atlas-market-stat b {
  font-size: 18px !important;
  line-height: 1.15 !important;
}

@media (max-width: 520px) {
  .atlas-market-head h2 {
    font-size: 28px !important;
  }

  .atlas-market-stat b {
    font-size: 17px !important;
  }
}

/* ===== V23 Institutional Command Center ===== */
.app-shell{
  padding:24px 14px 130px;
  max-width:760px;
  margin:0 auto;
}

.hero-panel h1{
  font-size:42px;
  line-height:1.05;
  margin:12px 0;
}

.hero-panel p,
.muted{
  color:#94a3b8;
  font-weight:900;
}

.hero-panel button,
.section-head button{
  border:0;
  border-radius:18px;
  padding:14px 24px;
  font-size:18px;
  font-weight:1000;
  color:#00131c;
  background:linear-gradient(90deg,#5eead4,#38bdf8);
}

.online-row{
  margin-top:18px;
  color:#22c55e;
  font-weight:1000;
}

.eyebrow{
  color:#5eead4;
  letter-spacing:6px;
  font-weight:1000;
  font-size:13px;
}

.status-panel{
  border-color:rgba(255,77,95,.35)!important;
  background:linear-gradient(180deg,rgba(32,8,15,.92),rgba(5,18,28,.96))!important;
}

.status-panel h2{
  color:#ff4d5f;
  font-size:38px;
  margin:12px 0;
}

.status-rec{
  color:#fff;
  font-size:24px;
  font-weight:1000;
}

.command-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.command-grid div{
  background:rgba(10,25,39,.84);
  border:1px solid rgba(148,163,184,.14);
  border-radius:18px;
  padding:14px;
}

.command-grid small{
  display:block;
  color:#94a3b8;
  font-weight:900;
  margin-bottom:8px;
}

.command-grid b{
  display:block;
  color:#fff;
  font-size:22px;
  font-weight:1000;
  word-break:break-word;
}

.good{color:#22c55e!important}
.bad{color:#ff4d5f!important}
.warn{color:#facc15!important}

.reason-box{
  margin-top:16px;
  padding:16px;
  border-radius:18px;
  background:rgba(10,25,39,.72);
  border:1px solid rgba(148,163,184,.14);
}

.reason-box b{
  color:#fff;
  font-size:18px;
}

.reason-box p{
  color:#cbd5e1;
  font-weight:850;
}

.command-trade-card{
  margin-top:14px;
  border:1px solid rgba(94,234,212,.18);
  background:linear-gradient(180deg,rgba(15,31,48,.9),rgba(5,18,28,.95));
  border-radius:22px;
  padding:16px;
  cursor:pointer;
}

.command-card-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.command-card-head span{
  color:#5eead4;
  font-weight:1000;
  letter-spacing:2px;
  font-size:12px;
}

.command-card-head h3{
  color:#fff;
  font-size:30px;
  margin:8px 0 4px;
}

.command-card-head p{
  color:#94a3b8;
  font-weight:1000;
  margin:0;
}

.command-card-head strong,
.command-row strong{
  border-radius:999px;
  padding:8px 12px;
  background:rgba(45,35,8,.92);
  border:1px solid rgba(250,204,21,.45);
  color:#facc15;
  font-weight:1000;
  white-space:nowrap;
  height:max-content;
}

.command-longs{
  border-color:rgba(34,197,94,.85)!important;
  box-shadow:0 0 24px rgba(34,197,94,.22)!important;
  background:linear-gradient(180deg,rgba(7,42,29,.94),rgba(5,18,28,.97))!important;
}

.command-shorts{
  border-color:rgba(255,77,95,.85)!important;
  box-shadow:0 0 24px rgba(255,77,95,.22)!important;
  background:linear-gradient(180deg,rgba(56,9,18,.95),rgba(5,18,28,.98))!important;
}

.command-longs h2,.command-longs span{color:#22c55e!important}
.command-shorts h2,.command-shorts span{color:#ff4d5f!important}

.command-list{
  display:grid;
  gap:10px;
  margin-top:12px;
}

.command-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:rgba(10,25,39,.80);
  border:1px solid rgba(148,163,184,.14);
  border-radius:16px;
  padding:14px;
  cursor:pointer;
}

.command-row b{
  color:#fff;
  font-weight:1000;
  font-size:18px;
}

.command-row span{
  display:block;
  margin-top:4px;
  color:#94a3b8;
  font-weight:900;
}

.compact-market{
  margin-bottom:30px;
}

.bottom-nav{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:min(92vw,680px);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  background:rgba(2,8,20,.95);
  border:1px solid rgba(148,163,184,.20);
  border-radius:26px;
  padding:10px;
  z-index:999;
}

.bottom-nav a{
  color:#cbd5e1;
  text-decoration:none;
  text-align:center;
  font-weight:900;
  padding:12px 6px;
  border-radius:18px;
  font-size:26px;
}

.bottom-nav a span{
  display:block;
  font-size:13px;
  margin-top:4px;
}

.bottom-nav a.active{
  color:#5eead4;
  background:rgba(94,234,212,.14);
  border:1px solid rgba(94,234,212,.25);
}

/* =====================================================
   V23 COMPACT BOTTOM NAVIGATION
   ===================================================== */

.bottom-nav{
    position:fixed;
    left:50%;
    bottom:12px;
    transform:translateX(-50%);
    width:min(90vw,620px);

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:4px;

    background:rgba(2,8,20,.96);
    backdrop-filter:blur(16px);

    border:1px solid rgba(148,163,184,.18);
    border-radius:22px;

    padding:8px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.45);

    z-index:9999;
}

.bottom-nav a{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    color:#cbd5e1;

    padding:8px 4px;

    border-radius:16px;

    transition:.25s;

    font-size:22px;
    font-weight:700;
}

.bottom-nav a span{
    margin-top:3px;

    font-size:10px;

    font-weight:700;

    letter-spacing:.3px;
}

.bottom-nav a.active{

    background:rgba(94,234,212,.12);

    color:#5eead4;

    border:1px solid rgba(94,234,212,.22);

    box-shadow:
        inset 0 0 18px rgba(94,234,212,.10);
}

.bottom-nav a:active{
    transform:scale(.96);
}


/* =====================================================
   V23.1 COMPACT HERO PANEL
   ===================================================== */

.hero-panel{
    padding:24px;
}

.hero-panel .eyebrow{
    font-size:11px;
    letter-spacing:5px;
    margin-bottom:10px;
    color:#5eead4;
    font-weight:900;
}

.hero-panel h1{
    font-size:52px;
    line-height:0.95;
    margin:0 0 16px;
    font-weight:1000;
}

.hero-panel p{
    font-size:18px;
    line-height:1.5;
    color:#94a3b8;
    margin-bottom:18px;
    max-width:520px;
}

.hero-panel button{
    padding:12px 28px;
    font-size:20px;
    border-radius:16px;
}

.online-row{
    margin-top:16px;
    font-size:16px;
    font-weight:900;
    color:#22c55e;
}

@media (max-width:768px){

    .hero-panel{
        padding:20px;
    }

    .hero-panel h1{
        font-size:34px;
        line-height:1.05;
    }

    .hero-panel p{
        font-size:15px;
        margin-bottom:14px;
    }

    .hero-panel button{
        padding:10px 22px;
        font-size:17px;
    }

    .online-row{
        font-size:14px;
    }
}


/* ===================== V24 CLEAN HOMEPAGE ===================== */

.v24-shell{
  padding-top:16px;
}

.v24-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:20px!important;
}

.v24-header h1{
  margin:8px 0 4px!important;
  font-size:36px!important;
  line-height:1!important;
}

.v24-header p{
  margin:0!important;
  color:#22c55e!important;
  font-weight:900!important;
  font-size:14px!important;
}

.v24-header button{
  border:0;
  border-radius:16px;
  padding:12px 18px;
  font-weight:1000;
  color:#00131c;
  background:linear-gradient(90deg,#5eead4,#38bdf8);
}

.v24-status{
  border-color:rgba(148,163,184,.20)!important;
}

.v24-status.bearish{
  border-color:rgba(255,77,95,.35)!important;
  background:linear-gradient(180deg,rgba(38,9,17,.94),rgba(5,18,28,.98))!important;
}

.v24-status.bullish{
  border-color:rgba(34,197,94,.35)!important;
  background:linear-gradient(180deg,rgba(8,42,28,.94),rgba(5,18,28,.98))!important;
}

.v24-status h2{
  font-size:34px!important;
  line-height:1.05!important;
  margin:12px 0 16px!important;
  color:#fff!important;
}

.v24-status.bearish h2{color:#ff4d5f!important}
.v24-status.bullish h2{color:#22c55e!important}

.v24-status-grid,
.v24-score-row,
.v24-trade-grid,
.v24-ai-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.v24-status-grid div,
.v24-score-row div,
.v24-trade-grid div,
.v24-ai-grid div{
  background:rgba(10,25,39,.84);
  border:1px solid rgba(148,163,184,.14);
  border-radius:16px;
  padding:14px;
}

.v24-status-grid small,
.v24-score-row small,
.v24-trade-grid small,
.v24-ai-grid small{
  display:block;
  color:#94a3b8;
  font-weight:900;
  margin-bottom:7px;
}

.v24-status-grid b,
.v24-score-row b,
.v24-trade-grid b,
.v24-ai-grid b{
  display:block;
  color:#fff;
  font-size:22px;
  font-weight:1000;
  word-break:break-word;
}

.v24-summary{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  background:rgba(10,25,39,.70);
  border:1px solid rgba(148,163,184,.14);
}

.v24-summary h3{
  margin:0 0 10px;
  color:#fff;
}

.v24-summary p{
  margin:8px 0;
  color:#cbd5e1;
  font-weight:850;
  line-height:1.35;
}

.v24-best-card{
  cursor:pointer;
}

.v24-trade-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.v24-trade-top span{
  color:#5eead4;
  font-weight:1000;
  letter-spacing:3px;
  font-size:12px;
}

.v24-trade-top h2{
  color:#fff;
  font-size:42px!important;
  margin:8px 0 4px!important;
  line-height:1!important;
}

.v24-trade-top p{
  color:#94a3b8;
  font-weight:1000;
  margin:0;
}

.v24-trade-top strong,
.v24-mini-row strong{
  border-radius:999px;
  padding:8px 13px;
  height:max-content;
  white-space:nowrap;
  font-weight:1000;
  background:rgba(45,35,8,.95);
  border:1px solid rgba(250,204,21,.45);
}

.grade-good{color:#22c55e!important;border-color:rgba(34,197,94,.55)!important;background:rgba(7,40,26,.95)!important}
.grade-warn{color:#facc15!important}
.grade-bad{color:#ff4d5f!important;border-color:rgba(255,77,95,.50)!important;background:rgba(55,10,18,.95)!important}

.v24-score-row{
  margin-bottom:12px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.v24-open{
  margin-top:14px;
  padding:14px;
  border-radius:16px;
  text-align:center;
  font-weight:1000;
  color:#5eead4;
  background:rgba(94,234,212,.10);
  border:1px solid rgba(94,234,212,.18);
}

.v24-collapse summary{
  list-style:none;
  cursor:pointer;
  font-size:32px;
  color:#fff;
  font-weight:1000;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.v24-collapse summary::-webkit-details-marker{
  display:none;
}

.v24-collapse summary span{
  font-size:18px;
  border-radius:999px;
  padding:6px 10px;
  background:rgba(10,25,39,.8);
}

.v24-short{
  border-color:rgba(255,77,95,.75)!important;
  background:linear-gradient(180deg,rgba(56,9,18,.95),rgba(5,18,28,.98))!important;
}

.v24-short summary,
.v24-short .v24-mini-row span{
  color:#ff4d5f!important;
}

.v24-long{
  border-color:rgba(34,197,94,.75)!important;
  background:linear-gradient(180deg,rgba(7,42,29,.94),rgba(5,18,28,.97))!important;
}

.v24-long summary,
.v24-long .v24-mini-row span{
  color:#22c55e!important;
}

.v24-mini-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.v24-mini-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:rgba(10,25,39,.82);
  border:1px solid rgba(148,163,184,.14);
  border-radius:16px;
  padding:14px;
  cursor:pointer;
}

.v24-mini-row b{
  display:block;
  color:#fff;
  font-size:18px;
  font-weight:1000;
}

.v24-mini-row span{
  display:block;
  margin-top:4px;
  color:#94a3b8;
  font-weight:900;
}

.v24-institutional{
  border-color:rgba(250,204,21,.45)!important;
}

.v24-ai{
  opacity:.92;
}

.v24-green{color:#22c55e!important}
.v24-red{color:#ff4d5f!important}
.v24-gold{color:#facc15!important}
.v24-muted{color:#94a3b8;font-weight:900}

.bottom-nav{
  bottom:12px!important;
  width:min(90vw,620px)!important;
  padding:8px!important;
  border-radius:22px!important;
}

.bottom-nav a{
  font-size:22px!important;
  padding:8px 4px!important;
  border-radius:16px!important;
}

.bottom-nav a span{
  font-size:10px!important;
  margin-top:3px!important;
}

@media(max-width:520px){
  .v24-header h1{font-size:30px!important}
  .v24-status h2{font-size:28px!important}
  .v24-trade-top h2{font-size:34px!important}
  .v24-collapse summary{font-size:28px}
}

/* V25 Trade Analysis */
.v25-trade-shell{
  padding-top:16px;
}

.v25-hero-trade{
  border-color:rgba(94,234,212,.30)!important;
}

.v25-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:16px;
}

.v25-actions button{
  border:0;
  border-radius:18px;
  padding:16px;
  font-size:17px;
  font-weight:1000;
  color:#00131c;
  background:linear-gradient(90deg,#5eead4,#38bdf8);
}

.v25-good{
  color:#22c55e!important;
  font-weight:900;
}

.v25-bad{
  color:#ff4d5f!important;
  font-weight:900;
}

.v25-table{
  display:grid;
  gap:10px;
}

.v25-table div{
  display:flex;
  justify-content:space-between;
  background:rgba(10,25,39,.84);
  border:1px solid rgba(148,163,184,.14);
  border-radius:16px;
  padding:14px;
}

.v25-table b{
  color:#fff;
  font-weight:1000;
}

.v25-table span{
  color:#5eead4;
  font-weight:1000;
}

/* =====================================================
   V26 FRONTEND ONLY — COMPACT UI + TRADE ANALYSIS POLISH
   ===================================================== */

.app-shell{
  padding:12px 12px 92px !important;
}

.panel{
  padding:14px !important;
  border-radius:20px !important;
  margin-bottom:12px !important;
}

h1{font-size:30px !important;}
h2{font-size:24px !important;}
h3{font-size:18px !important;}

.eyebrow{
  font-size:10px !important;
  letter-spacing:4px !important;
}

.v24-header,
.hero-panel,
.v24-header.panel{
  padding:14px !important;
}

.v24-header h1,
.hero-panel h1{
  font-size:26px !important;
  line-height:1.05 !important;
  margin:4px 0 !important;
}

.v24-header p,
.hero-panel p{
  font-size:12px !important;
  line-height:1.35 !important;
}

.v24-header button,
.hero-panel button,
.section-head button,
button{
  padding:9px 14px !important;
  border-radius:13px !important;
  font-size:14px !important;
}

/* Trade page compact layout */
.v25-hero-trade,
.v24-trade-top{
  margin-bottom:10px !important;
}

.v24-trade-top h2{
  font-size:28px !important;
  line-height:1.05 !important;
  margin:5px 0 !important;
}

.v24-trade-top p{
  font-size:13px !important;
}

.v24-trade-top strong{
  font-size:14px !important;
  padding:7px 10px !important;
}

.v24-status-grid,
.v24-score-row,
.v24-trade-grid,
.v24-ai-grid{
  gap:8px !important;
}

.v24-status-grid div,
.v24-score-row div,
.v24-trade-grid div,
.v24-ai-grid div{
  padding:10px !important;
  border-radius:14px !important;
}

.v24-status-grid small,
.v24-score-row small,
.v24-trade-grid small,
.v24-ai-grid small{
  font-size:10px !important;
  margin-bottom:5px !important;
}

.v24-status-grid b,
.v24-score-row b,
.v24-trade-grid b,
.v24-ai-grid b{
  font-size:15px !important;
}

/* Rename confidence visually */
.v24-score-row div:first-child small{
  font-size:0 !important;
}
.v24-score-row div:first-child small::after{
  content:"Atlas Score";
  font-size:10px;
}

/* Compact text sections */
.panel p{
  font-size:13px !important;
  line-height:1.35 !important;
}

/* Progress bars for grading-style blocks */
.v24-status-grid div{
  position:relative;
  overflow:hidden;
}

.v24-status-grid div::after{
  content:"";
  display:block;
  height:6px;
  margin-top:8px;
  border-radius:999px;
  background:linear-gradient(90deg,#5eead4,#22c55e);
  opacity:.55;
}

/* Action buttons */
.v25-actions,
.setup-actions{
  gap:8px !important;
}

.v25-actions button,
.setup-actions button{
  padding:12px !important;
  font-size:14px !important;
  border-radius:15px !important;
}

/* Smaller bottom nav */
.bottom-nav{
  bottom:9px !important;
  padding:6px !important;
  border-radius:18px !important;
  width:min(88vw,600px) !important;
}

.bottom-nav a{
  font-size:18px !important;
  padding:6px 3px !important;
  border-radius:13px !important;
}

.bottom-nav a span{
  font-size:9px !important;
  margin-top:2px !important;
}

/* Homepage compact cards */
.v24-status h2,
.status-panel h2{
  font-size:26px !important;
}

.v24-trade-top h2,
.command-card-head h3{
  font-size:26px !important;
}

.v24-collapse summary{
  font-size:24px !important;
}

.v24-mini-row,
.command-row{
  padding:10px !important;
  border-radius:14px !important;
}

.v24-mini-row b,
.command-row b{
  font-size:15px !important;
}

.v24-mini-row span,
.command-row span{
  font-size:12px !important;
}

/* Mobile tightening */
@media(max-width:520px){
  .app-shell{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .panel{
    padding:13px !important;
  }

  h1{font-size:28px !important;}
  h2{font-size:22px !important;}

  .v24-trade-top h2{
    font-size:25px !important;
  }
}

/* =====================================================
   V26.1 COMPACT HOMEPAGE POLISH
   ===================================================== */

.app-shell{
  padding:10px 10px 88px !important;
}

.panel{
  padding:12px !important;
  margin-bottom:10px !important;
  border-radius:18px !important;
}

.v24-header{
  padding:12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}

.v24-header h1{
  font-size:26px !important;
  margin:4px 0 !important;
}

.v24-header p{
  font-size:12px !important;
  line-height:1.3 !important;
}

.v24-header button{
  padding:9px 13px !important;
  font-size:14px !important;
  border-radius:13px !important;
}

.eyebrow{
  font-size:9px !important;
  letter-spacing:4px !important;
}

.v24-status h2{
  font-size:25px !important;
  line-height:1.05 !important;
  margin:10px 0 12px !important;
}

.v24-status-grid{
  gap:8px !important;
}

.v24-status-grid div{
  padding:9px !important;
  border-radius:13px !important;
}

.v24-status-grid small{
  font-size:10px !important;
  margin-bottom:5px !important;
}

.v24-status-grid b{
  font-size:16px !important;
}

.v24-summary{
  margin-top:10px !important;
  padding:12px !important;
  border-radius:15px !important;
}

.v24-summary h3{
  font-size:18px !important;
  margin-bottom:8px !important;
}

.v24-summary p{
  font-size:13px !important;
  line-height:1.35 !important;
  margin:6px 0 !important;
}

.v24-trade-top h2{
  font-size:28px !important;
}

.v24-trade-grid div{
  padding:9px !important;
  border-radius:13px !important;
}

.v24-trade-grid small{
  font-size:10px !important;
}

.v24-trade-grid b{
  font-size:15px !important;
}

.v24-collapse summary{
  font-size:23px !important;
}

.v24-mini-row{
  padding:9px !important;
  border-radius:13px !important;
}

.v24-mini-row b{
  font-size:15px !important;
}

.v24-mini-row span{
  font-size:12px !important;
}

.bottom-nav{
  bottom:8px !important;
  padding:6px !important;
  border-radius:18px !important;
}

.bottom-nav a{
  font-size:18px !important;
  padding:6px 3px !important;
}

.bottom-nav a span{
  font-size:9px !important;
}


/* =====================================================
   V26.2 CONSISTENT APP-WIDE LOOK AND FEEL
   Home / Scanner / Brain / Watchlist / Trade Analysis
   ===================================================== */

:root{
  --atlas-bg:#020b12;
  --atlas-panel:rgba(5,18,28,.92);
  --atlas-panel-2:rgba(8,25,38,.88);
  --atlas-border:rgba(94,234,212,.18);
  --atlas-border-soft:rgba(148,163,184,.14);
  --atlas-cyan:#5eead4;
  --atlas-blue:#38bdf8;
  --atlas-green:#22c55e;
  --atlas-red:#ff4d5f;
  --atlas-gold:#facc15;
  --atlas-muted:#94a3b8;
  --atlas-white:#ffffff;
}

/* Page shell */
html,body{
  background:
    radial-gradient(circle at 20% 0%, rgba(94,234,212,.12), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(56,189,248,.08), transparent 32%),
    linear-gradient(180deg,#03131d,#020812 55%,#01050b) !important;
  color:var(--atlas-white);
}

.app-shell,
.v24-shell,
.v25-trade-shell{
  max-width:760px !important;
  margin:0 auto !important;
  padding:12px 12px 96px !important;
}

/* Universal cards */
.panel,
.card,
section.panel{
  background:
    linear-gradient(180deg, rgba(8,25,38,.94), rgba(3,13,22,.96)) !important;
  border:1px solid var(--atlas-border) !important;
  border-radius:22px !important;
  padding:16px !important;
  margin-bottom:14px !important;
  box-shadow:
    0 16px 38px rgba(0,0,0,.28),
    inset 0 0 34px rgba(94,234,212,.025) !important;
  overflow:hidden !important;
}

/* Page hero/header - consistent across all pages */
.hero-panel,
.v24-header,
.v26-page-hero{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  min-height:auto !important;
}

.hero-panel > div,
.v24-header > div,
.v26-page-hero > div{
  min-width:0 !important;
}

.eyebrow,
.hero-panel .eyebrow,
.v24-header .eyebrow{
  color:var(--atlas-cyan) !important;
  font-size:10px !important;
  letter-spacing:5px !important;
  font-weight:1000 !important;
  line-height:1.25 !important;
  text-transform:uppercase !important;
  margin-bottom:8px !important;
}

h1,
.hero-panel h1,
.v24-header h1{
  color:#fff !important;
  font-size:34px !important;
  line-height:1.02 !important;
  font-weight:1000 !important;
  margin:4px 0 8px !important;
  letter-spacing:-1px !important;
}

h2{
  color:#fff !important;
  font-size:28px !important;
  line-height:1.08 !important;
  font-weight:1000 !important;
  margin:0 0 12px !important;
}

h3{
  color:#fff !important;
  font-size:20px !important;
  line-height:1.15 !important;
}

p,
.hero-panel p,
.v24-header p,
.muted,
.v24-muted{
  color:var(--atlas-muted) !important;
  font-size:14px !important;
  line-height:1.45 !important;
  font-weight:800 !important;
}

/* Buttons */
button,
.hero-panel button,
.v24-header button,
.section-head button{
  border:0 !important;
  border-radius:16px !important;
  padding:12px 18px !important;
  color:#00131c !important;
  background:linear-gradient(90deg,var(--atlas-cyan),var(--atlas-blue)) !important;
  font-size:15px !important;
  font-weight:1000 !important;
  box-shadow:0 12px 28px rgba(56,189,248,.18) !important;
}

button:active{
  transform:scale(.97);
}

/* Section heads */
.section-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin-bottom:12px !important;
}

.section-head span{
  color:var(--atlas-cyan) !important;
  font-size:14px !important;
  font-weight:1000 !important;
}

/* Universal grid stat boxes */
.v24-status-grid,
.v24-trade-grid,
.v24-score-row,
.v24-ai-grid,
.command-grid,
.v26-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}

.v24-status-grid div,
.v24-trade-grid div,
.v24-score-row div,
.v24-ai-grid div,
.command-grid div,
.v26-grid div{
  background:linear-gradient(180deg,rgba(13,31,47,.92),rgba(5,18,28,.94)) !important;
  border:1px solid var(--atlas-border-soft) !important;
  border-radius:16px !important;
  padding:12px !important;
  min-width:0 !important;
}

.v24-status-grid small,
.v24-trade-grid small,
.v24-score-row small,
.v24-ai-grid small,
.command-grid small,
.v26-grid small{
  display:block !important;
  color:var(--atlas-muted) !important;
  font-size:11px !important;
  font-weight:900 !important;
  margin-bottom:6px !important;
}

.v24-status-grid b,
.v24-trade-grid b,
.v24-score-row b,
.v24-ai-grid b,
.command-grid b,
.v26-grid b{
  display:block !important;
  color:#fff !important;
  font-size:17px !important;
  font-weight:1000 !important;
  line-height:1.15 !important;
  word-break:break-word !important;
}

/* Market Status */
.v24-status{
  border-color:rgba(34,197,94,.45) !important;
}

.v24-status.bearish{
  border-color:rgba(255,77,95,.45) !important;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,77,95,.12), transparent 36%),
    linear-gradient(180deg,rgba(40,8,18,.96),rgba(5,18,28,.98)) !important;
}

.v24-status.bullish,
.v24-status.mixed{
  border-color:rgba(34,197,94,.45) !important;
  background:
    radial-gradient(circle at 85% 10%, rgba(34,197,94,.13), transparent 36%),
    linear-gradient(180deg,rgba(5,45,29,.96),rgba(5,18,28,.98)) !important;
}

.v24-status h2{
  font-size:30px !important;
  line-height:1.02 !important;
  margin:10px 0 14px !important;
}

.v24-status.bullish h2,
.v24-green,
.good{
  color:var(--atlas-green) !important;
}

.v24-status.bearish h2,
.v24-red,
.bad{
  color:var(--atlas-red) !important;
}

.v24-gold,
.warn{
  color:var(--atlas-gold) !important;
}

/* Progress bars under stat boxes */
.v24-status-grid div::after{
  content:"";
  display:block;
  height:6px;
  margin-top:9px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--atlas-cyan),var(--atlas-green));
  opacity:.75;
}

/* Summary / assessment */
.v24-summary,
.reason-box{
  margin-top:12px !important;
  padding:14px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,rgba(13,31,47,.82),rgba(5,18,28,.88)) !important;
  border:1px solid var(--atlas-border-soft) !important;
}

.v24-summary h3,
.reason-box b{
  font-size:20px !important;
  color:#fff !important;
  margin:0 0 10px !important;
}

.v24-summary p,
.reason-box p{
  color:#cbd5e1 !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1.4 !important;
  margin:6px 0 !important;
}

/* Best Opportunity card */
.v24-best-card,
.command-trade-card,
.v26-trade-hero{
  background:
    radial-gradient(circle at 10% 15%, rgba(94,234,212,.09), transparent 30%),
    linear-gradient(180deg,rgba(8,27,40,.95),rgba(4,15,24,.98)) !important;
  border:1px solid var(--atlas-border) !important;
  border-radius:22px !important;
  padding:14px !important;
}

.v24-trade-top,
.command-card-head,
.v26-top{
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:12px !important;
  margin-bottom:12px !important;
}

.v24-trade-top span,
.command-card-head span,
.v26-top span{
  color:var(--atlas-cyan) !important;
  font-size:10px !important;
  letter-spacing:4px !important;
  font-weight:1000 !important;
}

.v24-trade-top h2,
.command-card-head h3,
.v26-top h2{
  color:#fff !important;
  font-size:30px !important;
  line-height:1 !important;
  margin:6px 0 4px !important;
}

.v24-trade-top p,
.command-card-head p,
.v26-top p{
  color:var(--atlas-muted) !important;
  font-size:13px !important;
  font-weight:900 !important;
  margin:0 !important;
}

.v24-trade-top strong,
.command-card-head strong,
.v26-top strong,
.v24-mini-row strong,
.command-row strong{
  border-radius:999px !important;
  padding:8px 12px !important;
  font-size:15px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  font-weight:1000 !important;
}

.grade-good{
  color:var(--atlas-green) !important;
  background:rgba(7,40,26,.95) !important;
  border:1px solid rgba(34,197,94,.55) !important;
}

.grade-warn{
  color:var(--atlas-gold) !important;
  background:rgba(45,35,8,.95) !important;
  border:1px solid rgba(250,204,21,.45) !important;
}

.grade-bad{
  color:var(--atlas-red) !important;
  background:rgba(55,10,18,.95) !important;
  border:1px solid rgba(255,77,95,.50) !important;
}

.v24-open{
  margin-top:12px !important;
  padding:13px !important;
  border-radius:16px !important;
  text-align:center !important;
  color:var(--atlas-cyan) !important;
  font-size:15px !important;
  font-weight:1000 !important;
  background:rgba(94,234,212,.10) !important;
  border:1px solid rgba(94,234,212,.18) !important;
}

/* Top Longs / Shorts */
.v24-collapse{
  padding:14px !important;
}

.v24-collapse summary{
  list-style:none !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:12px !important;
  font-size:28px !important;
  line-height:1.05 !important;
  font-weight:1000 !important;
  cursor:pointer !important;
}

.v24-collapse summary::-webkit-details-marker{
  display:none !important;
}

.v24-collapse summary span{
  background:rgba(2,8,20,.55) !important;
  border-radius:999px !important;
  padding:7px 12px !important;
  font-size:17px !important;
}

.v24-short{
  border-color:rgba(255,77,95,.75) !important;
  background:
    radial-gradient(circle at 90% 10%,rgba(255,77,95,.15),transparent 32%),
    linear-gradient(180deg,rgba(56,9,18,.95),rgba(5,18,28,.98)) !important;
}

.v24-long{
  border-color:rgba(34,197,94,.75) !important;
  background:
    radial-gradient(circle at 90% 10%,rgba(34,197,94,.15),transparent 32%),
    linear-gradient(180deg,rgba(7,42,29,.94),rgba(5,18,28,.97)) !important;
}

.v24-short summary,
.v24-short .v24-mini-row span{
  color:var(--atlas-red) !important;
}

.v24-long summary,
.v24-long .v24-mini-row span{
  color:var(--atlas-green) !important;
}

.v24-mini-list,
.command-list{
  display:grid !important;
  gap:9px !important;
  margin-top:12px !important;
}

.v24-mini-row,
.command-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  background:linear-gradient(180deg,rgba(13,31,47,.90),rgba(5,18,28,.94)) !important;
  border:1px solid var(--atlas-border-soft) !important;
  border-radius:16px !important;
  padding:11px !important;
}

.v24-mini-row b,
.command-row b{
  color:#fff !important;
  font-size:16px !important;
  line-height:1.15 !important;
  font-weight:1000 !important;
}

.v24-mini-row span,
.command-row span{
  display:block !important;
  margin-top:4px !important;
  color:var(--atlas-muted) !important;
  font-size:12px !important;
  font-weight:900 !important;
}

/* Scanner search fields */
input,
select,
textarea{
  width:100% !important;
  box-sizing:border-box !important;
  background:linear-gradient(180deg,rgba(13,31,47,.92),rgba(5,18,28,.94)) !important;
  color:#fff !important;
  border:1px solid var(--atlas-border-soft) !important;
  border-radius:16px !important;
  padding:14px !important;
  font-size:15px !important;
  font-weight:900 !important;
  outline:none !important;
}

input::placeholder{
  color:#64748b !important;
}

/* Tables / live opportunities */
table{
  width:100% !important;
  border-collapse:separate !important;
  border-spacing:0 8px !important;
}

th{
  color:var(--atlas-muted) !important;
  font-size:11px !important;
  letter-spacing:2px !important;
  font-weight:1000 !important;
  text-transform:uppercase !important;
}

td{
  background:rgba(10,25,39,.72) !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:900 !important;
  padding:10px 8px !important;
  border-top:1px solid rgba(148,163,184,.08) !important;
  border-bottom:1px solid rgba(148,163,184,.08) !important;
}

/* Brain / Watchlist stat cards */
.v24-ai-grid b,
.brain-status b,
.watchlist-summary b{
  font-size:20px !important;
}

/* Trade analysis page */
.v26-section h2{
  font-size:22px !important;
  margin-bottom:10px !important;
}

.v26-section p{
  color:#cbd5e1 !important;
  font-size:13px !important;
  line-height:1.4 !important;
  font-weight:800 !important;
}

.v26-grade-list{
  display:grid !important;
  gap:9px !important;
}

.v26-grade-list div{
  background:linear-gradient(180deg,rgba(13,31,47,.92),rgba(5,18,28,.94)) !important;
  border:1px solid var(--atlas-border-soft) !important;
  border-radius:14px !important;
  padding:11px !important;
}

.v26-grade-list b{
  color:#fff !important;
  font-size:14px !important;
  font-weight:1000 !important;
}

.v26-grade-list span{
  float:right !important;
  color:#cbd5e1 !important;
  font-size:13px !important;
  font-weight:1000 !important;
}

.v26-bar{
  clear:both !important;
  height:7px !important;
  margin-top:9px !important;
  border-radius:999px !important;
  background:rgba(148,163,184,.15) !important;
  overflow:hidden !important;
}

.v26-bar i{
  display:block !important;
  height:100% !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,var(--atlas-cyan),var(--atlas-green)) !important;
}

.v26-actions{
  display:grid !important;
  gap:10px !important;
}

.v26-actions button{
  width:100% !important;
}

/* Bottom nav consistent */
.bottom-nav{
  position:fixed !important;
  left:50% !important;
  bottom:9px !important;
  transform:translateX(-50%) !important;
  width:min(90vw,680px) !important;
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:5px !important;
  background:rgba(2,8,20,.96) !important;
  backdrop-filter:blur(16px) !important;
  border:1px solid rgba(148,163,184,.18) !important;
  border-radius:20px !important;
  padding:7px !important;
  z-index:9999 !important;
  box-shadow:0 12px 36px rgba(0,0,0,.5) !important;
}

.bottom-nav a{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:2px !important;
  color:#cbd5e1 !important;
  text-decoration:none !important;
  text-align:center !important;
  font-size:19px !important;
  font-weight:900 !important;
  padding:8px 4px !important;
  border-radius:15px !important;
  min-width:0 !important;
}

.bottom-nav a span{
  display:block !important;
  font-size:10px !important;
  line-height:1 !important;
  margin-top:2px !important;
  font-weight:800 !important;
}

.bottom-nav a.active{
  color:var(--atlas-cyan) !important;
  background:rgba(94,234,212,.13) !important;
  border:1px solid rgba(94,234,212,.25) !important;
  box-shadow:inset 0 0 20px rgba(94,234,212,.10) !important;
}

/* Mobile tightening */
@media(max-width:520px){
  .app-shell,
  .v24-shell,
  .v25-trade-shell{
    padding:10px 10px 92px !important;
  }

  .panel,
  section.panel{
    padding:14px !important;
    margin-bottom:12px !important;
  }

  h1,
  .hero-panel h1,
  .v24-header h1{
    font-size:30px !important;
  }

  h2{
    font-size:24px !important;
  }

  .v24-status h2{
    font-size:28px !important;
  }

  .v24-trade-top h2,
  .command-card-head h3,
  .v26-top h2{
    font-size:26px !important;
  }

  .v24-collapse summary{
    font-size:24px !important;
  }

  .v24-status-grid,
  .v24-trade-grid,
  .v24-score-row,
  .v24-ai-grid,
  .command-grid,
  .v26-grid{
    gap:9px !important;
  }
}

/* ===== ATLAS V32 SCANNER REAL PREMIUM PATCH ===== */

.scanner-page .panel,
.scanner .panel,
#scanner .panel{
  padding:16px !important;
  margin-bottom:14px !important;
  border-radius:22px !important;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.14), transparent 34%),
    linear-gradient(180deg, rgba(7,25,39,.98), rgba(3,12,22,.99)) !important;
  border:1px solid rgba(94,234,212,.28) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.42) !important;
}

.scanner-page h1,
.scanner h1,
#scanner h1{
  font-size:34px !important;
  line-height:1.05 !important;
  letter-spacing:-1px !important;
}

.scanner-page p,
.scanner p,
#scanner p{
  font-size:15px !important;
  color:#9ca8ba !important;
}

.scanner input,
.scanner select,
#scanner input,
#scanner select{
  height:50px !important;
  min-height:50px !important;
  border-radius:16px !important;
  font-size:16px !important;
}

.scanner button,
#scanner button{
  height:52px !important;
  min-height:52px !important;
  border-radius:16px !important;
  font-size:16px !important;
}

.scanner-table,
#scanner table{
  border-spacing:0 6px !important;
}

.scanner-table th,
#scanner table th{
  font-size:10px !important;
  letter-spacing:3px !important;
  padding:5px !important;
}

.scanner-table td,
#scanner table td{
  padding:10px 5px !important;
  font-size:13px !important;
  background:rgba(8,25,39,.92) !important;
}

.scanner-table td:nth-child(2),
#scanner table td:nth-child(2){
  font-size:14px !important;
}


/* ===== RESTORE NEUTRAL DIRECTION TEXT ===== */
.dir-word,
.dir-long,
.dir-short,
.direction-long,
.direction-short,
.trade-long,
.trade-short,
.side-long,
.side-short,
.long,
.short {
  color: inherit !important;
  text-shadow: none !important;
}

/* ===== TODAY MARKET STATISTICS ===== */
#v30-autonomous .v30-card {
  border-radius: 28px !important;
  border: 1px solid rgba(94,234,212,.18) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(94,234,212,.10), transparent 32%),
    linear-gradient(180deg, rgba(9,38,52,.96), rgba(3,15,24,.98)) !important;
}

#v30-autonomous .v30-card-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}

#v30-autonomous .v30-eyebrow {
  color:#73f7df;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.34em;
  margin-bottom:8px;
}

#v30-autonomous h2 {
  margin:0;
  color:#fff;
  font-size:34px;
  font-weight:1000;
  letter-spacing:-.05em;
}

#v30-autonomous .v30-pill {
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  font-weight:1000;
  background:rgba(148,163,184,.12);
}

#v30-autonomous .v30-pill.red {
  color:#ff5570;
  border:1px solid rgba(255,85,112,.36);
  background:rgba(255,85,112,.14);
}

#v30-autonomous .v30-pill.green {
  color:#22c55e;
  border:1px solid rgba(34,197,94,.36);
  background:rgba(34,197,94,.14);
}

#v30-autonomous .v30-pill.amber {
  color:#ffd84a;
  border:1px solid rgba(255,216,74,.36);
  background:rgba(255,216,74,.13);
}

#v30-autonomous .v30-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

#v30-autonomous .v30-stat {
  min-height:86px;
  padding:14px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,.14);
  background:linear-gradient(180deg,rgba(18,48,68,.92),rgba(7,24,36,.96));
}

#v30-autonomous .v30-stat small {
  display:block;
  color:#9ca8b8;
  font-size:13px;
  font-weight:900;
  line-height:1.2;
  margin-bottom:9px;
}

#v30-autonomous .v30-stat b {
  color:#fff;
  font-size:28px;
  font-weight:1000;
  letter-spacing:-.04em;
}

#v30-autonomous .v30-stat b.green { color:#22c55e; }
#v30-autonomous .v30-stat b.red { color:#ff5570; }

@media(max-width:520px){
  #v30-autonomous h2 {
    font-size:31px;
  }

  #v30-autonomous .v30-stat {
    min-height:80px;
    padding:13px;
  }
}

/* ===== TODAY MARKET STATISTICS ===== */
#v30-autonomous .v30-card {
  border-radius: 28px !important;
  border: 1px solid rgba(94,234,212,.18) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(94,234,212,.10), transparent 32%),
    linear-gradient(180deg, rgba(9,38,52,.96), rgba(3,15,24,.98)) !important;
}

#v30-autonomous .v30-card-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}

#v30-autonomous .v30-eyebrow {
  color:#73f7df;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.34em;
  margin-bottom:8px;
}

#v30-autonomous h2 {
  margin:0;
  color:#fff;
  font-size:34px;
  font-weight:1000;
  letter-spacing:-.05em;
}

#v30-autonomous .v30-pill {
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  font-weight:1000;
  background:rgba(148,163,184,.12);
}

#v30-autonomous .v30-pill.red {
  color:#ff5570;
  border:1px solid rgba(255,85,112,.36);
  background:rgba(255,85,112,.14);
}

#v30-autonomous .v30-pill.green {
  color:#22c55e;
  border:1px solid rgba(34,197,94,.36);
  background:rgba(34,197,94,.14);
}

#v30-autonomous .v30-pill.amber {
  color:#ffd84a;
  border:1px solid rgba(255,216,74,.36);
  background:rgba(255,216,74,.13);
}

#v30-autonomous .v30-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

#v30-autonomous .v30-stat {
  min-height:86px;
  padding:14px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,.14);
  background:linear-gradient(180deg,rgba(18,48,68,.92),rgba(7,24,36,.96));
}

#v30-autonomous .v30-stat small {
  display:block;
  color:#9ca8b8;
  font-size:13px;
  font-weight:900;
  line-height:1.2;
  margin-bottom:9px;
}

#v30-autonomous .v30-stat b {
  color:#fff;
  font-size:28px;
  font-weight:1000;
  letter-spacing:-.04em;
}

#v30-autonomous .v30-stat b.green { color:#22c55e; }
#v30-autonomous .v30-stat b.red { color:#ff5570; }

@media(max-width:520px){
  #v30-autonomous h2 {
    font-size:31px;
  }

  #v30-autonomous .v30-stat {
    min-height:80px;
    padding:13px;
  }
}

/* Remove old Autonomous AI card if cached/generated elsewhere */
section:has(h2:first-child:is(:where(*))) {}


/* ===== V30 HOME PREMIUM POLISH ===== */

.v30-card,
.panel {
  border-radius: 28px !important;
  border: 1px solid rgba(94,234,212,.18) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(94,234,212,.10), transparent 34%),
    linear-gradient(180deg, rgba(8,34,48,.96), rgba(3,15,24,.985)) !important;
  box-shadow:
    0 24px 70px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.v30-card h2,
.panel h2 {
  letter-spacing: -0.05em !important;
  font-weight: 1000 !important;
}

.v30-card small,
.panel small {
  color: #9ca8b8 !important;
  font-weight: 900 !important;
}

/* Top Shorts / Top Longs */
#v30-top-shorts,
#v30-top-longs,
.top-shorts,
.top-longs {
  padding: 22px !important;
}

#v30-top-shorts h2,
#v30-top-longs h2,
.top-shorts h2,
.top-longs h2 {
  font-size: 34px !important;
  line-height: 1 !important;
  margin-bottom: 18px !important;
}

#v30-top-shorts li,
#v30-top-longs li,
.top-shorts li,
.top-longs li,
#v30-top-shorts .setup-card,
#v30-top-longs .setup-card,
.top-shorts .setup-card,
.top-longs .setup-card {
  border-radius: 20px !important;
  margin: 10px 0 !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(148,163,184,.14) !important;
  background:
    linear-gradient(180deg, rgba(18,48,68,.92), rgba(7,24,36,.96)) !important;
  box-shadow:
    0 10px 28px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.035) !important;
}

#v30-top-shorts .grade,
.top-shorts .grade {
  border-radius: 999px !important;
  background: rgba(255,85,112,.16) !important;
  border: 1px solid rgba(255,85,112,.38) !important;
  color: #ff5570 !important;
}

#v30-top-longs .grade,
.top-longs .grade {
  border-radius: 999px !important;
  background: rgba(34,197,94,.16) !important;
  border: 1px solid rgba(34,197,94,.38) !important;
  color: #22c55e !important;
}

/* Market stats replacement */
.premium-market-stats {
  margin-top: 22px !important;
  margin-bottom: 120px !important;
}

.premium-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.premium-muted {
  margin: 8px 0 0;
  color: #9ca8b8;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.premium-bias {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 1000;
  white-space: nowrap;
}

.premium-bias.red {
  color: #ff5570;
  border: 1px solid rgba(255,85,112,.36);
  background: rgba(255,85,112,.14);
}

.premium-bias.green {
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.36);
  background: rgba(34,197,94,.14);
}

.premium-bias.amber {
  color: #ffd84a;
  border: 1px solid rgba(255,216,74,.36);
  background: rgba(255,216,74,.13);
}

.premium-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.premium-stat {
  min-height: 84px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(180deg,rgba(18,48,68,.92),rgba(7,24,36,.96));
}

.premium-stat small {
  display: block;
  color: #9ca8b8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 9px;
}

.premium-stat strong {
  color: #fff;
  font-size: 27px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.premium-stat .green,
.premium-stat strong.green { color: #22c55e !important; }

.premium-stat .red,
.premium-stat strong.red { color: #ff5570 !important; }

.premium-stat .blue,
.premium-stat strong.blue { color: #38bdf8 !important; }

@media(max-width:520px){
  #v30-top-shorts,
  #v30-top-longs,
  .top-shorts,
  .top-longs {
    padding: 20px !important;
  }

  #v30-top-shorts h2,
  #v30-top-longs h2,
  .top-shorts h2,
  .top-longs h2 {
    font-size: 31px !important;
  }

  .premium-stat {
    min-height: 78px;
    padding: 13px;
  }

  .premium-stat strong {
    font-size: 25px;
  }
}


/* ===== V30 HOME PREMIUM POLISH ===== */

.v30-card,
.panel {
  border-radius: 28px !important;
  border: 1px solid rgba(94,234,212,.18) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(94,234,212,.10), transparent 34%),
    linear-gradient(180deg, rgba(8,34,48,.96), rgba(3,15,24,.985)) !important;
  box-shadow:
    0 24px 70px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.v30-card h2,
.panel h2 {
  letter-spacing: -0.05em !important;
  font-weight: 1000 !important;
}

.v30-card small,
.panel small {
  color: #9ca8b8 !important;
  font-weight: 900 !important;
}

/* Top Shorts / Top Longs */
#v30-top-shorts,
#v30-top-longs,
.top-shorts,
.top-longs {
  padding: 22px !important;
}

#v30-top-shorts h2,
#v30-top-longs h2,
.top-shorts h2,
.top-longs h2 {
  font-size: 34px !important;
  line-height: 1 !important;
  margin-bottom: 18px !important;
}

#v30-top-shorts li,
#v30-top-longs li,
.top-shorts li,
.top-longs li,
#v30-top-shorts .setup-card,
#v30-top-longs .setup-card,
.top-shorts .setup-card,
.top-longs .setup-card {
  border-radius: 20px !important;
  margin: 10px 0 !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(148,163,184,.14) !important;
  background:
    linear-gradient(180deg, rgba(18,48,68,.92), rgba(7,24,36,.96)) !important;
  box-shadow:
    0 10px 28px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.035) !important;
}

#v30-top-shorts .grade,
.top-shorts .grade {
  border-radius: 999px !important;
  background: rgba(255,85,112,.16) !important;
  border: 1px solid rgba(255,85,112,.38) !important;
  color: #ff5570 !important;
}

#v30-top-longs .grade,
.top-longs .grade {
  border-radius: 999px !important;
  background: rgba(34,197,94,.16) !important;
  border: 1px solid rgba(34,197,94,.38) !important;
  color: #22c55e !important;
}

/* Market stats replacement */
.premium-market-stats {
  margin-top: 22px !important;
  margin-bottom: 120px !important;
}

.premium-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.premium-muted {
  margin: 8px 0 0;
  color: #9ca8b8;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.premium-bias {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 1000;
  white-space: nowrap;
}

.premium-bias.red {
  color: #ff5570;
  border: 1px solid rgba(255,85,112,.36);
  background: rgba(255,85,112,.14);
}

.premium-bias.green {
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.36);
  background: rgba(34,197,94,.14);
}

.premium-bias.amber {
  color: #ffd84a;
  border: 1px solid rgba(255,216,74,.36);
  background: rgba(255,216,74,.13);
}

.premium-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.premium-stat {
  min-height: 84px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(180deg,rgba(18,48,68,.92),rgba(7,24,36,.96));
}

.premium-stat small {
  display: block;
  color: #9ca8b8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 9px;
}

.premium-stat strong {
  color: #fff;
  font-size: 27px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.premium-stat .green,
.premium-stat strong.green { color: #22c55e !important; }

.premium-stat .red,
.premium-stat strong.red { color: #ff5570 !important; }

.premium-stat .blue,
.premium-stat strong.blue { color: #38bdf8 !important; }

@media(max-width:520px){
  #v30-top-shorts,
  #v30-top-longs,
  .top-shorts,
  .top-longs {
    padding: 20px !important;
  }

  #v30-top-shorts h2,
  #v30-top-longs h2,
  .top-shorts h2,
  .top-longs h2 {
    font-size: 31px !important;
  }

  .premium-stat {
    min-height: 78px;
    padding: 13px;
  }

  .premium-stat strong {
    font-size: 25px;
  }
}


/* ===== LIVE MARKET STATS CARD ===== */
.premium-market-stats{
  margin:24px auto 150px !important;
  padding:22px !important;
  max-width:720px;
}

.premium-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}

.premium-muted{
  margin:8px 0 0;
  color:#9ca8b8;
  font-size:15px;
  font-weight:850;
}

.premium-bias{
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  font-weight:1000;
}

.premium-bias.bearish{
  color:#ff5570;
  border:1px solid rgba(255,85,112,.36);
  background:rgba(255,85,112,.14);
}

.premium-bias.bullish{
  color:#22c55e;
  border:1px solid rgba(34,197,94,.36);
  background:rgba(34,197,94,.14);
}

.premium-bias.mixed{
  color:#ffd84a;
  border:1px solid rgba(255,216,74,.36);
  background:rgba(255,216,74,.13);
}

.premium-stats-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.premium-stat{
  padding:14px;
  min-height:82px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,.14);
  background:linear-gradient(180deg,rgba(18,48,68,.92),rgba(7,24,36,.96));
}

.premium-stat small{
  display:block;
  color:#9ca8b8;
  font-size:13px;
  font-weight:900;
  margin-bottom:8px;
}

.premium-stat strong{
  color:#fff;
  font-size:27px;
  font-weight:1000;
}

.premium-stat strong.green{color:#22c55e!important}
.premium-stat strong.red{color:#ff5570!important}
.premium-stat strong.blue{color:#38bdf8!important}


#today-market-statistics.premium-market-stats{
  margin-top:22px !important;
  margin-bottom:140px !important;
}


.premium-best-stat{
  margin-top:14px;
  padding:16px;
  border-radius:20px;
  border:1px solid rgba(94,234,212,.18);
  background:linear-gradient(180deg,rgba(18,48,68,.92),rgba(7,24,36,.96));
}

.premium-best-stat small{
  display:block;
  color:#73f7df!important;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.22em;
  margin-bottom:8px;
}

.premium-best-stat strong{
  display:block;
  color:#fff;
  font-size:28px;
  font-weight:1000;
  letter-spacing:-.04em;
  margin-bottom:4px;
}

.premium-best-stat span{
  color:#9ca8b8;
  font-size:14px;
  font-weight:900;
}


/* ===== V30.1 PREMIUM HOME REFRESH ===== */
.v301-hidden-old {
  display:none !important;
}

.v301-command-centre {
  margin-top: 18px !important;
}

.v301-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}

.v301-head h1 {
  margin:8px 0 10px;
  font-size:42px;
  line-height:.95;
  letter-spacing:-.06em;
}

.v301-head p {
  margin:0;
  color:#9ca8b8;
  font-weight:900;
}

.v301-dot {
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 18px rgba(34,197,94,.75);
}

.v301-head button {
  border:0;
  border-radius:22px;
  padding:16px 22px;
  color:#031016;
  background:linear-gradient(90deg,#5eead4,#38bdf8);
  font-weight:1000;
  font-size:17px;
}

.v301-status {
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg,rgba(18,48,68,.92),rgba(7,24,36,.96));
}

.v301-status.bearish {
  border-color:rgba(255,85,112,.34);
  background:
    radial-gradient(circle at 0% 0%, rgba(255,85,112,.20), transparent 38%),
    linear-gradient(180deg,rgba(18,48,68,.92),rgba(7,24,36,.96));
}

.v301-status h2 {
  margin:8px 0 16px;
  color:#ff5570;
  font-size:34px;
  line-height:.95;
  letter-spacing:-.06em;
}

.v301-mini-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.v301-mini-grid div,
.v301-stat-list div {
  border-radius:18px;
  padding:13px 14px;
  background:linear-gradient(180deg,rgba(18,48,68,.92),rgba(7,24,36,.96));
  border:1px solid rgba(148,163,184,.13);
}

.v301-mini-grid small {
  display:block;
  color:#9ca8b8;
  font-weight:900;
  margin-bottom:6px;
}

.v301-mini-grid b {
  color:#fff;
  font-size:20px;
  font-weight:1000;
}

#today-market-statistics {
  padding:20px !important;
  margin-top:20px !important;
}

#today-market-statistics .premium-stats-grid,
#today-market-statistics .premium-best-stat {
  display:none !important;
}

.v301-stat-list {
  display:grid;
  gap:10px;
}

.v301-stat-list div {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.v301-stat-list span {
  color:#9ca8b8;
  font-size:15px;
  font-weight:900;
}

.v301-stat-list b {
  color:#fff;
  font-size:20px;
  font-weight:1000;
}

.v301-stat-list b.green { color:#22c55e!important; }
.v301-stat-list b.red { color:#ff5570!important; }
.v301-stat-list b.blue { color:#38bdf8!important; }

@media(max-width:520px){
  .v301-head h1{font-size:38px}
  .v301-status h2{font-size:30px}
}

/* V30 HOME FIX */
#app{padding:26px 18px 130px;max-width:760px;margin:0 auto}
.panel{
  margin:0 0 22px;
  border-radius:30px;
  padding:26px;
  border:1px solid rgba(94,234,212,.18);
  background:linear-gradient(180deg,rgba(10,39,54,.96),rgba(3,14,22,.98));
}
.hero,.panel-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.hero h1,.panel h2{margin:12px 0;font-size:42px;line-height:.95;letter-spacing:-.06em}
.hero p,.panel p{color:#9ca8b8;font-weight:900}
.eyebrow{color:#73f7df;font-weight:1000;letter-spacing:.32em;font-size:13px}
button,.button{
  display:block;text-align:center;text-decoration:none;
  border:0;border-radius:22px;padding:16px 22px;
  background:linear-gradient(90deg,#5eead4,#38bdf8);
  color:#031016;font-weight:1000;font-size:17px
}
.market.bearish{border-color:rgba(255,85,112,.35);background:radial-gradient(circle at top left,rgba(255,85,112,.18),transparent 38%),linear-gradient(180deg,rgba(10,39,54,.96),rgba(3,14,22,.98))}
.market h2{color:#ff5570}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.grid div,.trade-row{
  border-radius:22px;padding:16px;
  background:linear-gradient(180deg,rgba(18,48,68,.95),rgba(7,24,36,.98));
  border:1px solid rgba(148,163,184,.13)
}
small{display:block;color:#9ca8b8;font-weight:900;margin-bottom:10px}
b{font-size:30px;color:#fff}
.green{color:#22c55e!important}.red{color:#ff5570!important}.blue{color:#38bdf8!important}
.badge,.count{
  border-radius:999px;padding:12px 18px;font-weight:1000;
  background:rgba(255,85,112,.14);border:1px solid rgba(255,85,112,.35);color:#ff5570
}
.trade-row{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:white;margin-top:12px}
.trade-row strong{font-size:24px}
.trade-row p{margin:6px 0 0;color:#ff5570}
.trade-row span{font-size:22px;font-weight:1000;color:#ff5570}
.bottom-nav{
  position:fixed;left:18px;right:18px;bottom:18px;z-index:99;
  display:flex;justify-content:space-around;
  padding:12px;border-radius:28px;
  background:#020814;border:1px solid rgba(148,163,184,.18)
}
.bottom-nav a{color:#cbd5e1;text-decoration:none;font-weight:900;text-align:center}
.bottom-nav a span{display:block;font-size:13px;margin-top:3px}
.bottom-nav .active{color:#73f7df}

/* ===== V30 PREMIUM HOME OVERRIDE ===== */
body{
  background:
    radial-gradient(circle at 50% -10%, rgba(20,184,166,.18), transparent 35%),
    linear-gradient(180deg,#061f24 0%,#02070d 55%,#02050a 100%) !important;
}

#app{
  width:100%;
  max-width:720px;
  margin:0 auto;
  padding:26px 18px 130px;
}

.hero-card,
.status-card,
.opportunity-card,
.snapshot-card,
.list-card{
  position:relative;
  overflow:hidden;
  margin:0 0 22px;
  padding:24px;
  border-radius:30px;
  background:
    linear-gradient(180deg, rgba(9,35,48,.98), rgba(3,13,22,.98));
  border:1px solid rgba(94,234,212,.18);
  box-shadow:
    0 22px 70px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.hero-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.eyebrow{
  color:#7fffee !important;
  font-size:12px !important;
  font-weight:1000 !important;
  letter-spacing:.34em !important;
  line-height:1.45;
}

h1,h2{
  color:#fff !important;
  margin:12px 0 !important;
  letter-spacing:-.07em !important;
  line-height:.92 !important;
}

h1{font-size:46px !important;}
h2{font-size:36px !important;}

p{
  color:#9ca8b8 !important;
  font-size:17px !important;
  font-weight:850 !important;
  line-height:1.4 !important;
}

.dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#22c55e;
  margin-right:7px;
}

button,.primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:22px;
  padding:16px 22px;
  min-width:132px;
  text-decoration:none;
  background:linear-gradient(135deg,#68f5df,#34c5ff);
  color:#021016 !important;
  font-size:17px;
  font-weight:1000;
  box-shadow:0 12px 34px rgba(56,189,248,.22);
}

.status-card.bearish{
  border-color:rgba(255,85,112,.32);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,85,112,.17), transparent 34%),
    linear-gradient(180deg, rgba(13,34,47,.98), rgba(3,13,22,.98));
}

.status-card.bearish h2{color:#ff5570 !important;}

.section-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}

.score-pill,.bias-pill,.count{
  flex:0 0 auto;
  border-radius:999px;
  padding:12px 17px;
  font-size:18px;
  font-weight:1000;
  background:rgba(255,85,112,.14);
  color:#ff5570;
  border:1px solid rgba(255,85,112,.34);
}

.score-pill{
  font-size:20px;
  min-width:116px;
  text-align:center;
}

.mini-grid,.detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:18px;
}

.metric{
  min-height:104px;
  border-radius:22px;
  padding:18px;
  background:
    linear-gradient(180deg,rgba(18,54,75,.92),rgba(7,22,34,.98));
  border:1px solid rgba(148,163,184,.13);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.metric span{
  display:block;
  color:#9ca8b8;
  font-size:15px;
  font-weight:950;
  line-height:1.2;
  margin-bottom:14px;
}

.metric strong{
  color:#fff;
  font-size:32px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-.04em;
}

.green{color:#22c55e !important;}
.red{color:#ff5570 !important;}
.blue{color:#38bdf8 !important;}

.primary-btn{
  width:100%;
  margin-top:18px;
}

.trade-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px;
  margin-top:12px;
  border-radius:22px;
  text-decoration:none;
  background:
    linear-gradient(180deg,rgba(18,54,75,.92),rgba(7,22,34,.98));
  border:1px solid rgba(148,163,184,.13);
}

.trade-row strong{
  display:block;
  color:#fff;
  font-size:24px;
  line-height:1.05;
  font-weight:1000;
  letter-spacing:-.04em;
}

.trade-row span{
  display:block;
  margin-top:7px;
  color:#9ca8b8;
  font-size:14px;
  font-weight:950;
}

.trade-row b{
  color:#ff5570;
  font-size:24px;
  font-weight:1000;
  white-space:nowrap;
}

.empty{
  margin-top:18px !important;
}

.atlas-nav{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:999;
  display:flex;
  justify-content:space-around;
  align-items:center;
  padding:12px;
  border-radius:28px;
  background:rgba(2,8,20,.96);
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 18px 60px rgba(0,0,0,.55);
  backdrop-filter:blur(14px);
}

.atlas-nav a{
  flex:1;
  text-align:center;
  color:#cbd5e1;
  text-decoration:none;
  font-size:24px;
  font-weight:900;
  padding:10px 6px;
  border-radius:22px;
}

.atlas-nav a span{
  display:block;
  margin-top:5px;
  font-size:13px;
}

.atlas-nav a.active{
  color:#72f7df;
  background:linear-gradient(180deg,rgba(94,234,212,.22),rgba(94,234,212,.08));
  border:1px solid rgba(94,234,212,.25);
}

@media(max-width:430px){
  #app{padding-left:14px;padding-right:14px;}
  .hero-card,.status-card,.opportunity-card,.snapshot-card,.list-card{padding:22px;border-radius:28px;}
  h1{font-size:42px !important;}
  h2{font-size:32px !important;}
  .metric{min-height:96px;padding:16px;}
  .metric strong{font-size:29px;}
}
