/* Unified Light BazaarCalls Command Center Design System across all 4 Financial Portals */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #f1f5f9;
  --border: #dbe4f0;
  --border-subtle: #e8eef6;
  --text: #0f172a;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #0284c7;
  --accent-dark: #0369a1;
  --accent-soft: rgba(2, 132, 199, 0.10);
  --accent-bd: rgba(2, 132, 199, 0.35);
  --brand-warm: #e77105;
  --green: #059669;
  --green-bg: rgba(5, 150, 105, 0.11);
  --green-bd: rgba(5, 150, 105, 0.35);
  --red: #dc2626;
  --red-bg: rgba(220, 38, 38, 0.09);
  --red-bd: rgba(220, 38, 38, 0.32);
  --amber: #b45309;
  --amber-bg: rgba(245, 158, 11, 0.13);
  --amber-bd: rgba(217, 119, 6, 0.38);
  --cyan: #0284c7;
  --cyan-bg: rgba(14, 165, 233, 0.11);
  --cyan-bd: rgba(2, 132, 199, 0.35);
  --indigo: #4f46e5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.up { color: var(--green); font-weight: 700; }
.dn { color: var(--red); font-weight: 700; }
.muted { color: var(--muted); }

/* 1. Cross-Network Utility Strip */
.netbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
}
.netbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 5px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.netbar-sites {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.netbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 11px;
  transition: all 0.12s ease;
}
.netbar-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.netbar-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.netbar-tag {
  font-weight: 500;
  opacity: 0.78;
}
.netbar-clock {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* 2. Live Ticker Tape (Light BazaarCalls Style) */
.tape {
  background: #ffffff;
  border-bottom: 2px solid var(--accent);
  font-size: 12px;
}
.tape-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 18px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.tape-inner::-webkit-scrollbar { display: none; }
.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  padding: 1px 0;
}
.tape-item:hover { color: var(--accent); text-decoration: none; }
.tape-lbl { font-weight: 700; color: #334155; font-size: 11.5px; letter-spacing: 0.2px; }

/* 3. Sticky BazaarCalls Navbar (Light Surface) */
.nav-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-link:hover { text-decoration: none; }
.brand-link img { display: block; height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}
.nav-links a {
  color: #334155;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.nav-links a:hover {
  color: var(--accent);
  background: var(--panel-2);
  border-color: var(--border);
  text-decoration: none;
}
.nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-bd);
}

.search-wrap { position: relative; flex: 1 1 250px; max-width: 360px; }
.search-form { display: flex; gap: 6px; }
.search-input {
  width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}
.search-input:focus { border-color: var(--accent); background: #ffffff; }
.search-btn {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 7px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}
.search-btn:hover { background: var(--accent-dark); }
.ac-dd {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 80;
  display: none;
  max-height: 360px;
  overflow-y: auto;
}
.ac-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: 12.5px;
}
.ac-item:hover { background: var(--panel-2); text-decoration: none; }

/* 4. Main Workspace Container & Grids (BazaarCalls Command Center Topology) */
.wrap { max-width: 1440px; width: 100%; margin: 0 auto; padding: 14px 18px 44px; }
.ad-slot {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.cmd-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; align-items: stretch; }
.cmd-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; align-items: stretch; }
.cmd-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; align-items: stretch; }
.cmd-grid-42-58 { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.25fr); gap: 14px; margin-bottom: 14px; align-items: stretch; }
.cmd-grid-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.cmd-grid-4 > *, .cmd-grid-3 > *, .cmd-grid-2 > *, .cmd-grid-42-58 > *, .cmd-grid-main-side > * { min-width: 0; }

/* 5. BazaarCalls Card & Accent Panels */
.bc-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 2.5px solid var(--accent);
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 14px;
}
.cmd-grid-4 .bc-card, .cmd-grid-3 .bc-card, .cmd-grid-2 .bc-card, .cmd-grid-42-58 .bc-card {
  margin-bottom: 0;
}
.bc-card.accent-green { border-top-color: var(--green); }
.bc-card.accent-red { border-top-color: var(--red); }
.bc-card.accent-amber { border-top-color: #d97706; }
.bc-card.accent-indigo { border-top-color: var(--indigo); }
.bc-card.accent-navy { border-top-color: #0f172a; }

.bc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.bc-head h2, .bc-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
}
.bc-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.bc-head-right { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; flex-wrap: wrap; }

/* 6. Command Portal Narrative Strip & Section Picker */
.portal-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.portal-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.portal-banner h1 {
  margin: 0 0 5px;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}
.portal-lead {
  margin: 0;
  color: #334155;
  font-size: 13.5px;
  max-width: 960px;
}
.sec-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.sec-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--text);
  transition: all 0.13s ease;
}
.sec-tile:hover {
  background: #ffffff;
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.sec-tile-title { font-size: 12.5px; font-weight: 800; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.sec-tile-sub { font-size: 11px; color: var(--muted); }

/* 7. Inset Mini-Tiles & Telemetry Metrics (Exact BazaarCalls Grammar in Light Mode) */
.mini-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.mini-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.mini-tile {
  background: var(--panel-2);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 7px 9px;
  min-width: 0;
}
.mini-tile .lbl {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-tile .val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-tile .sub {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-big { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 24px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.card-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* 8. Advance/Decline & Diverging Scorecard Tracks */
.breadth-bar {
  height: 8px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  margin: 7px 0;
}
.breadth-up { background: var(--green); height: 100%; }
.breadth-dn { background: var(--red); height: 100%; }

.sc-rows { display: flex; flex-direction: column; gap: 6px; max-height: 365px; overflow-y: auto; padding-right: 2px; }
.sc-row {
  display: grid;
  grid-template-columns: minmax(145px, 1.35fr) minmax(90px, 1.15fr) minmax(90px, 0.9fr);
  gap: 8px;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 12px;
}
.sc-row:hover { border-color: var(--accent-bd); background: #ffffff; }
.sc-track { position: relative; height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.sc-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; }

/* 9. Semantic Pill Badges & Interactive Tabs */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25px;
  white-space: nowrap;
}
.pill-bull, .pill-live { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-bd); }
.pill-bear, .pill-halt { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-bd); }
.pill-warn { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-bd); }
.pill-cyan, .pill-info { background: var(--cyan-bg); color: var(--cyan); border: 1px solid var(--cyan-bd); }
.pill-neutral { background: var(--panel-3); color: #475569; border: 1px solid var(--border); }

.tab-strip { display: inline-flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.tab-btn {
  appearance: none;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: #475569;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.tab-btn.active { background: var(--accent); color: #ffffff; border-color: var(--accent); font-weight: 700; }

/* 10. Scrollable Dense Tables */
.table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 410px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #ffffff;
}
.bt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bt-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 8px 9px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  z-index: 2;
}
.bt-table td {
  padding: 7.5px 9px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.bt-table tr:last-child td { border-bottom: 0; }
.bt-table tr:hover td { background: #f8fafc; }
.bt-table th.num, .bt-table td.num {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.asset-cell { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.asset-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 1px;
  flex-shrink: 0;
}

/* 11. Asset Detail Light Hero + Chart Box */
.hero-band {
  background: linear-gradient(135deg, #ffffff 0%, #f1f6fc 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: #475569; font-weight: 600; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; }
.hero-top h1 { margin: 0 0 5px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--text); }
.price-big {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.verdict-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.chart-box { width: 100%; height: 370px; position: relative; }
.pro-frame { width: 100%; height: 540px; border: 1px solid var(--border); border-radius: 8px; display: none; }

/* 12. 52W Range Bar, Calculator Inputs, Peers & Footer */
.range-track { height: 7px; background: #e2e8f0; border-radius: 999px; position: relative; margin: 10px 0 6px; }
.range-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--amber), var(--green)); border-radius: 999px; }
.range-pin {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  transform: translateX(-50%);
}
.peer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 9px; }
.peer-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--panel-2);
  color: var(--text);
}
.peer-card:hover { border-color: var(--accent); background: #ffffff; text-decoration: none; }
.stars { color: #d97706; font-size: 14px; letter-spacing: 1px; }
.lvl-up { color: var(--green); font-weight: 700; }
.lvl-piv { color: var(--amber); font-weight: 700; }
.lvl-dn { color: var(--red); font-weight: 700; }

.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.calc-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  background: var(--panel-2);
  color: var(--text);
}
.calc-input:focus { outline: none; border-color: var(--accent); background: #ffffff; }

.faq-item { border-top: 1px solid var(--border-subtle); padding: 11px 0; }
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-q { font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: 13.5px; }
.faq-a { color: #334155; margin: 0; font-size: 13px; }

.portal-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 28px;
  padding: 24px 18px;
  font-size: 12px;
}
.portal-footer-inner { max-width: 1440px; margin: 0 auto; }
.portal-footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 10px; font-weight: 600; }
.portal-footer-links a { color: #334155; }
.portal-footer-links a:hover { color: var(--accent); }
.portal-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.portal-cloud a {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: #475569;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
}
.portal-cloud a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

@media (max-width: 1160px) {
  .cmd-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmd-grid-42-58, .cmd-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .cmd-grid-main-side, .cmd-grid-2 { grid-template-columns: 1fr; }
}
.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
}

/* Site-Distinct Layout Component Library (Light BazaarCalls + Groww + Bullion + CoinPulse) */
.groww-idx-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.groww-idx-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.groww-idx-card:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }

.groww-stock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}
.groww-stock-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
  color: var(--text);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.groww-stock-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(15,23,42,0.06); text-decoration: none; }
.groww-icon-lg {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: contain;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 3px;
  margin-bottom: 9px;
}

.bullion-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.spot-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3.5px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spot-price-xl {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.region-bar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cmc-spotlight-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.cmc-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  border-radius: 6px;
}
.cmc-list-row:hover { background: var(--panel-2); text-decoration: none; }
.cmc-list-row:last-child { border-bottom: 0; }

.sec-tile-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Quick Compare & Social Engagement Styles */
.compare-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 680px; }
.compare-form .search-input { flex: 1 1 180px; background: #ffffff; }
.compare-vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-bd);
  font-weight: 800;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
}
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.social-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.12s ease;
}
.social-btn:hover { opacity: 0.9; text-decoration: none; }
.fb-btn { background: #1877f2; color: #ffffff; border-color: #1877f2; }
.x-btn { background: #0f172a; color: #ffffff; border-color: #0f172a; }
.wa-btn { background: #16a34a; color: #ffffff; border-color: #16a34a; }
.copy-btn { background: var(--panel-2); color: var(--text); }
.fresh-verdict-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-top: 10px;
  font-size: 12.5px;
}
.aeo-answer-box {
  background: linear-gradient(180deg, var(--accent-soft), #ffffff);
  border: 1px solid var(--accent-bd);
  border-left: 4px solid var(--accent);
  border-radius: 9px;
  padding: 12px 15px;
  margin-bottom: 14px;
}
.aeo-answer-lbl {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}
.curr-pill-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 12px;
}
.curr-select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

/* Distinct Per-Portal Navigation Skins */
.nav-header.theme-navy {
  background: #0f172a;
  border-bottom: 2px solid #2563eb;
  color: #f8fafc;
}
.nav-header.theme-navy .brand-link,
.nav-header.theme-bullion .brand-link {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
}
.nav-header.theme-navy .nav-links a { color: #cbd5e1; }
.nav-header.theme-navy .nav-links a:hover { color: #ffffff; background: rgba(255,255,255,0.09); border-color: rgba(148,163,184,0.3); }
.nav-header.theme-navy .nav-links a.active { background: #1d4ed8; color: #ffffff; border-color: #3b82f6; }
.nav-header.theme-navy .search-input { background: #1e293b; border-color: #334155; color: #f8fafc; }
.nav-header.theme-navy .search-input::placeholder { color: #94a3b8; }

.nav-header.theme-bullion {
  background: #1c1917;
  border-bottom: 2px solid #d97706;
  color: #fef3c7;
}
.nav-header.theme-bullion .nav-links a { color: #e7e5e4; }
.nav-header.theme-bullion .nav-links a:hover { color: #fbbf24; background: rgba(251,191,36,0.10); border-color: rgba(251,191,36,0.3); }
.nav-header.theme-bullion .nav-links a.active { background: #b45309; color: #ffffff; border-color: #f59e0b; }
.nav-header.theme-bullion .search-input { background: #292524; border-color: #44403c; color: #fafaf9; }
.nav-header.theme-bullion .search-input::placeholder { color: #a8a29e; }
.nav-header.theme-bullion .curr-pill-wrap { background: #292524; border-color: #44403c; }
.nav-header.theme-bullion .curr-pill-wrap span,
.nav-header.theme-bullion .curr-select { color: #fef3c7; }
.nav-header.theme-bullion .curr-select option { color: #0f172a; background: #ffffff; }

.nav-header.theme-crypto {
  background: linear-gradient(90deg, #f5f3ff 0%, #ffffff 55%, #ecfeff 100%);
  border-bottom: 2px solid #4f46e5;
}
.nav-header.theme-crypto .nav-links a { border-radius: 999px; font-weight: 700; }
.nav-header.theme-crypto .nav-links a.active { background: #4f46e5; color: #ffffff; border-color: #4f46e5; }

.subnav-bar {
  background: var(--panel-2);
  border-top: 1px solid rgba(148,163,184,0.2);
  font-size: 12px;
}
.nav-header.theme-navy .subnav-bar { background: #1e293b; border-top-color: #334155; }
.nav-header.theme-bullion .subnav-bar { background: #292524; border-top-color: #44403c; }
.subnav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 5px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
}
.subnav-inner a { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.nav-header.theme-navy .subnav-inner a { color: #94a3b8; }
.nav-header.theme-navy .subnav-inner a:hover { color: #ffffff; text-decoration: none; }
.nav-header.theme-bullion .subnav-inner a { color: #d6d3d1; }
.nav-header.theme-bullion .subnav-inner a:hover { color: #fbbf24; text-decoration: none; }

/* Portal-Specific Top Differentiators */
.bt-groww-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.bt-idx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.bt-idx-chip:hover { border-color: var(--accent); text-decoration: none; }
.nt-macro-ribbon {
  background: #0b1324;
  border-top: 1px solid #1e293b;
  font-size: 11.5px;
}
.nt-macro-ribbon .tape-inner { padding: 5px 18px; }
.nt-macro-ribbon .tape-item { color: #e2e8f0; }
.nt-macro-ribbon .tape-lbl { color: #93c5fd; }
.tape.tape-sub {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  border-top: 0;
}

/* Standout Sector Comparison Report & Range Gauges */
.sec-pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.sec-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.12s ease;
}
.sec-pill-btn:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; background: var(--accent-soft); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.pillar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
}
.pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
}
.range-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  margin: 7px 0 4px;
}
.range-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
}
.range-dot {
  position: absolute;
  top: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #ffffff;
  transform: translateX(-50%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Country & Exchange Calendar Widget */
.cal-list { display: flex; flex-direction: column; gap: 7px; }
.cal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border-subtle);
}
.cal-date-box {
  width: 48px;
  text-align: center;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 3px 4px;
  flex-shrink: 0;
}
.cal-m { font-size: 11.5px; font-weight: 800; color: var(--text); font-family: ui-monospace, monospace; }
.cal-ctry { font-size: 9.5px; font-weight: 800; color: var(--accent); text-transform: uppercase; }

/* Native Interactive Comment Form & List */
.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 8px;
  margin-bottom: 8px;
}
.comment-textarea {
  width: 100%;
  min-height: 74px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  outline: none;
}
.comment-textarea:focus { border-color: var(--accent); background: #ffffff; }
.comment-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.comment-item {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--panel-2);
}

@media (max-width: 1160px) {
  .groww-stock-grid, .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bullion-trio, .cmc-spotlight-3, .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cmd-grid-4, .mini-grid-4, .mini-grid-3, .groww-stock-grid, .pillar-grid, .comment-form-grid { grid-template-columns: 1fr; }
  .wrap { padding: 10px 12px 32px; }
}
