/* ============================================================
   P.Thai Capital — Dashboard PRO overlay
   Loaded after dashboard.css to refine institutional look.
   ============================================================ */

/* ---------- Brand: bỏ gradient text gold (quá flashy cho institutional) ---------- */
.dash-brand__name {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #f0f4fa !important;
  color: #f0f4fa !important;
  letter-spacing: 0.01em;
}

/* ---------- Top bar: lighter, less heavy ---------- */
.dash-top {
  background: rgba(15, 22, 35, 0.92) !important;
  border-bottom: 1px solid #283444 !important;
}

/* ---------- DEMO BANNER: tone xuống, không chói ---------- */
.demo-banner__inner {
  background: rgba(28, 37, 53, 0.6) !important;
  border: 1px solid #34425a !important;
  border-left: 3px solid #6ed2ea !important;
  padding: 12px 18px !important;
}
.demo-banner__icon {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #6ed2ea !important;
  color: #0c1118 !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  font-style: normal;
  font-family: var(--font-mono);
}
.demo-banner__text { color: #d2dae8 !important; font-size: 0.88rem !important; }
.demo-banner__text b {
  color: #f0f4fa !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}
.demo-banner__cta {
  background: #6ed2ea !important;
  color: #0c1118 !important;
  padding: 7px 14px !important;
  font-family: inherit !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  border-radius: 6px !important;
}
.demo-banner__cta:hover {
  background: #82daee !important;
  transform: none !important;
}

/* ---------- Summary cards: institutional polish ---------- */
.dash-summary { padding-top: 24px; }
.summary-card {
  background: linear-gradient(180deg, #1c2535, #16202d) !important;
  border: 1px solid #283444 !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  position: relative;
  transition: border-color 0.15s !important;
}
.summary-card:hover {
  border-color: #34425a !important;
  transform: none !important;
}
.summary-card__label {
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #8694a8 !important;
  margin-bottom: 10px !important;
}
.summary-card__value {
  font-family: var(--font-mono) !important;
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  color: #f0f4fa !important;
  letter-spacing: -0.01em !important;
  line-height: 1.15 !important;
}
.summary-card__value.gradient-text {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #5fe0b4 !important;
  color: #5fe0b4 !important;
}
.summary-card__value.up { color: #5fe0b4 !important; -webkit-text-fill-color: #5fe0b4 !important; }
.summary-card__value.down { color: #ff8899 !important; -webkit-text-fill-color: #ff8899 !important; }
.summary-card__meta {
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  color: #b3bdcc !important;
  margin-top: 6px !important;
}
.summary-card__meta.up { color: #5fe0b4 !important; }
.summary-card__meta.down { color: #ff8899 !important; }

/* ---------- Activity card: less glow, more solid ---------- */
.dash-activity__inner {
  background: #1c2535 !important;
  border: 1px solid #34425a !important;
  border-left: 3px solid #5fe0b4 !important;
  padding: 22px 26px !important;
}
.activity-stat__value { font-size: 1.4rem !important; }
.activity-stat__label {
  letter-spacing: 0.08em !important;
  font-size: 0.68rem !important;
  color: #8694a8 !important;
}
.activity-stat__meta {
  font-size: 0.76rem !important;
  color: #b3bdcc !important;
  margin-top: 4px !important;
}
.activity-context {
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #283444 !important;
}
.activity-context__label {
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em !important;
  color: #8694a8 !important;
  display: block;
  margin-bottom: 6px;
}
.activity-context p {
  color: #c0cad8 !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  line-height: 1.6;
}

/* ---------- LIVE pulse: subtle ---------- */
.live-pulse {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #5fe0b4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-pulse > span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5fe0b4;
  box-shadow: 0 0 10px rgba(95, 224, 180, 0.6);
}

/* ---------- Tabs: cleaner ---------- */
.dash-tabs {
  border-bottom: 1px solid #283444 !important;
}
.dash-tab {
  color: #8694a8 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
.dash-tab:hover { color: #c0cad8 !important; }
.dash-tab.active {
  color: #f0f4fa !important;
  border-bottom-color: #5fe0b4 !important;
}

/* ---------- Panels: institutional borders ---------- */
.panel {
  background: #1c2535 !important;
  border: 1px solid #283444 !important;
  border-radius: 10px !important;
  padding: 22px 24px !important;
}
.panel__head h3 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #f0f4fa !important;
  letter-spacing: -0.01em !important;
}
.panel__head p {
  color: #b3bdcc !important;
  font-size: 0.84rem !important;
  margin-top: 4px !important;
  line-height: 1.5;
}
.panel--tv {
  background: #1c2535 !important;
  border: 1px solid #283444 !important;
}
.panel--tv #vnChart {
  background: #0c1118 !important;
  border-color: #283444 !important;
}

/* ---------- Tier section badges: clean text, no emoji bg ---------- */
.tier-section__badge {
  display: inline-block;
  padding: 4px 10px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  border-radius: 4px !important;
  font-weight: 600 !important;
  border-width: 1px !important;
  border-style: solid !important;
}
.tier-section--01 .tier-section__badge {
  background: rgba(95, 224, 180, 0.10) !important;
  border-color: rgba(95, 224, 180, 0.4) !important;
  color: #5fe0b4 !important;
}
.tier-section--02 .tier-section__badge {
  background: rgba(110, 210, 234, 0.10) !important;
  border-color: rgba(110, 210, 234, 0.4) !important;
  color: #6ed2ea !important;
}
.tier-section--03 .tier-section__badge {
  background: rgba(226, 191, 82, 0.10) !important;
  border-color: rgba(226, 191, 82, 0.4) !important;
  color: #e2bf52 !important;
}

.tier-section__title h2 {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: #f0f4fa !important;
  margin-top: 4px !important;
}
.tier-section__title p {
  color: #b3bdcc !important;
  font-size: 0.92rem !important;
  margin-top: 4px !important;
  line-height: 1.55;
}

/* ---------- Tier banner ---------- */
.tier-banner {
  background: #1c2535 !important;
  border: 1px solid #283444 !important;
  border-left: 3px solid #6ed2ea !important;
  padding: 14px 20px !important;
  border-radius: 8px !important;
}
.tier-banner__tier {
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  color: #5fe0b4 !important;
}
.tier-banner__text { color: #d2dae8 !important; font-size: 0.92rem !important; }

/* ---------- Tables: cleaner ---------- */
.pos-table th, .tx-table th {
  background: #243046 !important;
  color: #b3bdcc !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  padding: 11px 14px !important;
  border-bottom: 1px solid #34425a !important;
}
.pos-table td, .tx-table td {
  padding: 11px 14px !important;
  border-bottom: 1px solid #283444 !important;
  color: #d2dae8 !important;
}
.pos-table tr:hover td, .tx-table tr:hover td {
  background: rgba(255, 255, 255, 0.02) !important;
}

/* ---------- KPI grid ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

/* ---------- Verify badges ---------- */
.verify-badge {
  background: rgba(95, 224, 180, 0.12) !important;
  color: #5fe0b4 !important;
  border: 1px solid rgba(95, 224, 180, 0.35) !important;
  font-family: var(--font-mono) !important;
  letter-spacing: 0.06em !important;
}
.verify-ok { color: #5fe0b4 !important; }

/* ---------- Compliance disclosure (new section) ---------- */
.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.disclosure-item {
  padding: 16px 18px;
  background: #16202d;
  border: 1px solid #283444;
  border-radius: 8px;
}
.disclosure-item h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #5fe0b4;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.disclosure-item p {
  color: #c0cad8;
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Footer ---------- */
.dash-foot {
  border-top: 1px solid #283444;
  padding-top: 24px;
  margin-top: 40px;
}
.dash-foot__inner {
  color: #8694a8 !important;
  font-size: 0.8rem !important;
}
.dash-foot__ver {
  font-family: var(--font-mono);
  font-size: 0.76rem !important;
}

/* ---------- Loading skeleton (replace lonely "—") ---------- */
[id^="summary"], [id^="act"], #stmtDate, #verifyHash, #vndAccount {
  position: relative;
}
[id^="summary"]:empty::after,
[id^="act"]:empty::after {
  content: "";
  display: inline-block;
  width: 60px; height: 1em;
  background: linear-gradient(90deg, #283444, #34425a, #283444);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: skel-shimmer 1.4s infinite;
  opacity: 0.5;
}
@keyframes skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- User menu ---------- */
.user-menu__btn {
  background: #1c2535 !important;
  border: 1px solid #283444 !important;
  border-radius: 8px !important;
}
.user-menu__btn:hover { border-color: #34425a !important; }
.user-tier {
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em !important;
  background: rgba(95, 224, 180, 0.1) !important;
  color: #5fe0b4 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

/* ---------- Sync status ---------- */
.sync-status {
  font-family: var(--font-mono) !important;
  font-size: 0.74rem !important;
  color: #b3bdcc !important;
  padding: 6px 12px !important;
  background: #1c2535 !important;
  border: 1px solid #283444 !important;
  border-radius: 6px !important;
}
.sync-status__dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5fe0b4;
  box-shadow: 0 0 8px rgba(95, 224, 180, 0.5);
  margin-right: 6px;
}

/* ============================================================
   EOD FEED LOCKED TEASER (for FREE tier)
   ============================================================ */
.eod-feed .eod-locked {
  list-style: none !important;
  margin-top: 10px !important;
  padding: 0 !important;
  background: transparent !important;
}
.eod-feed .eod-locked__content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(226, 191, 82, 0.06), rgba(95, 224, 180, 0.04));
  border: 1px dashed rgba(226, 191, 82, 0.35);
  border-radius: 8px;
  color: #c0cad8;
  font-size: 0.88rem;
}
.eod-feed .eod-locked__content svg { color: #e2bf52; flex-shrink: 0; }
.eod-feed .eod-locked__content span { flex: 1; min-width: 180px; }
.eod-feed .eod-locked__content span b { color: #5fe0b4; }
.eod-feed .eod-loading {
  list-style: none;
  padding: 24px 14px;
  text-align: center;
  color: #8fa1bd;
  font-style: italic;
}

/* ============================================================
   TIER LOCK STATES — professional paywall UX
   ============================================================ */
.tier-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #1c2535, #16202d);
  border: 1px dashed #34425a;
  border-radius: 12px;
  text-align: center;
}
.tier-lock__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(226, 191, 82, 0.1);
  border: 1px solid rgba(226, 191, 82, 0.3);
  color: #e2bf52;
}
.tier-lock__title {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #f0f4fa !important;
  margin: 0 !important;
}
.tier-lock__desc {
  font-size: 0.9rem !important;
  color: #b3bdcc !important;
  max-width: 360px;
  line-height: 1.55 !important;
  margin: 0 !important;
}
.tier-lock__cta {
  display: inline-block;
  padding: 9px 20px;
  background: linear-gradient(135deg, #5fe0b4, #4fd3a4);
  color: #0c1118 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  margin-top: 8px;
  transition: transform 0.15s;
}
.tier-lock__cta:hover { transform: translateY(-1px); }

/* Panel-level lock overlay (dims content, adds CTA) */
.panel--locked { position: relative; overflow: hidden; }
.panel--locked > :not(.panel__lock-overlay):not(.panel__head) {
  filter: blur(3px) opacity(0.4);
  pointer-events: none;
  user-select: none;
}
.panel__lock-overlay {
  position: absolute;
  inset: 60px 0 0 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(22, 32, 45, 0.5), rgba(22, 32, 45, 0.9) 40%);
  z-index: 5;
}
.panel__lock-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background: rgba(28, 37, 53, 0.95);
  border: 1px solid #34425a;
  border-radius: 10px;
  color: #e2bf52;
  text-align: center;
}
.panel__lock-content span { color: #c0cad8; font-size: 0.92rem; }
.panel__lock-content span b { color: #5fe0b4; font-weight: 700; }

/* Tier badge (user chip) — live tier display */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 14px;
  border: 1px solid;
}
.tier-badge--FREE    { color: #8fa1bd; border-color: rgba(143, 161, 189, 0.3); background: rgba(143, 161, 189, 0.08); }
.tier-badge--VIP     { color: #5fe0b4; border-color: rgba(95, 224, 180, 0.35); background: rgba(95, 224, 180, 0.08); }
.tier-badge--DIAMOND { color: #6ed2ea; border-color: rgba(110, 210, 234, 0.35); background: rgba(110, 210, 234, 0.08); }
.tier-badge--INNER   { color: #e2bf52; border-color: rgba(226, 191, 82, 0.4); background: rgba(226, 191, 82, 0.1); }
.tier-badge--ADMIN   { color: #ff8899; border-color: rgba(255, 136, 153, 0.4); background: rgba(255, 136, 153, 0.1); }

/* Real data badge — "LIVE" vs "DEMO" */
.data-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  border-radius: 10px;
  margin-left: 8px;
}
.data-source-badge--live {
  background: rgba(95, 224, 180, 0.1);
  color: #5fe0b4;
  border: 1px solid rgba(95, 224, 180, 0.3);
}
.data-source-badge--eod {
  background: rgba(110, 210, 234, 0.1);
  color: #6ed2ea;
  border: 1px solid rgba(110, 210, 234, 0.3);
}
.data-source-badge--demo {
  background: rgba(143, 161, 189, 0.1);
  color: #8fa1bd;
  border: 1px solid rgba(143, 161, 189, 0.3);
}

/* ============================================================
   CANVAS WRAPPERS — guaranteed height, responsive width
   Prevents canvas from shrinking to 0x0 during layout shifts.
   ============================================================ */
.canvas-wrap {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
}
.canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ---------- Panel consistency ---------- */
.panel {
  display: flex !important;
  flex-direction: column;
  min-width: 0;  /* fix flexbox overflow */
}
.panel > * { width: 100%; box-sizing: border-box; }

.panel__head {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.panel__head > div:first-child { min-width: 0; flex: 1; }
.panel__head h3 {
  margin: 0 !important;
}
.panel__head p {
  margin: 4px 0 0 !important;
}
.panel__actions {
  flex-shrink: 0;
}

/* ============================================================
   PROFESSIONAL RANGE BUTTONS (1M / 3M / 6M / 1Y / ALL)
   Segmented control — Bloomberg/TradingView style
   ============================================================ */
.chart-range-group {
  display: inline-flex;
  background: #0c1118;
  border: 1px solid #283444;
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.range-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #8fa1bd;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.12s ease;
  min-width: 36px;
}
.range-btn:hover {
  color: #c0cad8;
  background: rgba(255, 255, 255, 0.03);
}
.range-btn.active {
  background: #243046;
  color: #5fe0b4;
  box-shadow: inset 0 0 0 1px rgba(95, 224, 180, 0.3);
}

/* Legacy .chip cleanup for panel__actions */
.panel__actions .chip {
  font-size: 0.78rem !important;
  padding: 6px 12px !important;
  min-height: 0 !important;
}

/* ---------- Chart legend below panel ---------- */
.panel__legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 2px 0;
  margin-top: 10px;
  border-top: 1px solid #283444;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #b3bdcc;
}
.panel__legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.panel__legend .legend-item b { color: #f0f4fa; font-weight: 700; }
.panel__legend .legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* ============================================================
   KPI GRID — proper alignment, fills panel width
   ============================================================ */
.kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
  gap: 12px !important;
  width: 100%;
}
.kpi-grid .kpi {
  padding: 14px 16px !important;
  background: #16202d !important;
  border: 1px solid #283444 !important;
  border-radius: 8px !important;
  text-align: left !important;
  min-width: 0;
}
.kpi-grid .kpi__label {
  font-family: var(--font-mono) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: #8fa1bd !important;
  margin-bottom: 6px !important;
  display: block !important;
}
.kpi-grid .kpi__value {
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  line-height: 1.1 !important;
  color: #f0f4fa !important;
  display: block !important;
  -webkit-text-fill-color: #f0f4fa;
  background: none !important;
}
.kpi-grid .kpi__value.up { color: #5fe0b4 !important; -webkit-text-fill-color: #5fe0b4; }
.kpi-grid .kpi__value.down { color: #ff8899 !important; -webkit-text-fill-color: #ff8899; }
.kpi-grid .kpi__value.gradient-text {
  color: #5fe0b4 !important;
  -webkit-text-fill-color: #5fe0b4;
  background: none !important;
}
.kpi-grid .kpi__bench {
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  color: #8fa1bd !important;
  margin-top: 6px !important;
  display: block !important;
  line-height: 1.4;
}
.kpi-grid .kpi__bench.bench-good { color: #5fe0b4 !important; }
.kpi-grid .kpi--highlight {
  background: linear-gradient(180deg, #1c2535, #16202d) !important;
  border-color: rgba(255, 136, 153, 0.3) !important;
}

/* ============================================================
   SMART MONEY TRACKER — Verdict-first simplified widget
   ============================================================ */
.sm-status {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sm-status--live    { background: rgba(95, 224, 180, 0.12); color: #5fe0b4; border: 1px solid rgba(95, 224, 180, 0.3); }
.sm-status--loading { background: rgba(110, 210, 234, 0.10); color: #6ed2ea; border: 1px solid rgba(110, 210, 234, 0.3); }
.sm-status--closed,
.sm-status--offline { background: rgba(134, 148, 168, 0.10); color: #b3bdcc; border: 1px solid rgba(134, 148, 168, 0.3); }

.sm-verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #16202d;
  border: 1px solid #283444;
  border-radius: 10px;
  margin: 16px 0 14px;
  transition: border-color 0.3s, background 0.3s;
}
.sm-verdict__main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sm-verdict__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8694a8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sm-verdict__text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0f4fa;
  letter-spacing: -0.01em;
}
.sm-verdict__diff {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #b3bdcc;
  padding: 4px 12px;
  background: #1c2535;
  border-radius: 4px;
}
.sm-verdict--buy,
.sm-verdict--buy-strong {
  background: rgba(95, 224, 180, 0.07);
  border-color: rgba(95, 224, 180, 0.35);
}
.sm-verdict--buy .sm-verdict__text,
.sm-verdict--buy-strong .sm-verdict__text { color: #5fe0b4; }
.sm-verdict--buy-strong { background: rgba(95, 224, 180, 0.12); border-color: rgba(95, 224, 180, 0.5); }

.sm-verdict--sell,
.sm-verdict--sell-strong {
  background: rgba(255, 136, 153, 0.07);
  border-color: rgba(255, 136, 153, 0.35);
}
.sm-verdict--sell .sm-verdict__text,
.sm-verdict--sell-strong .sm-verdict__text { color: #ff8899; }
.sm-verdict--sell-strong { background: rgba(255, 136, 153, 0.12); border-color: rgba(255, 136, 153, 0.5); }

.sm-verdict--neutral { border-color: rgba(179, 189, 204, 0.3); }
.sm-verdict--neutral .sm-verdict__text { color: #c0cad8; }

/* Live quote snapshot row */
.sm-quote {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #1c2535;
  border: 1px solid #283444;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.sm-quote__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
}
.sm-quote__label {
  color: #8694a8;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sm-quote__item b { color: #e6ecf3; font-size: 0.95rem; font-weight: 600; }
.sm-quote-up   { color: #5fe0b4 !important; }
.sm-quote-down { color: #ff8899 !important; }

/* Ratio bar (big horizontal split) */
.sm-bar {
  display: flex;
  width: 100%;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #1c2535;
  border: 1px solid #283444;
  transition: all 0.4s ease-out;
}
.sm-bar__side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  font-family: var(--font-mono);
  color: #0c1118;
  min-width: 80px;
  transition: flex 0.6s ease-out;
}
.sm-bar__buy {
  background: linear-gradient(90deg, #5fe0b4, #4fd3a4);
  justify-content: flex-start;
}
.sm-bar__sell {
  background: linear-gradient(270deg, #ff8899, #e66b7e);
  justify-content: flex-end;
}
.sm-bar__label {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.sm-bar__pct {
  font-weight: 700;
  font-size: 1.4rem;
}

/* Sparkline timeline */
.sm-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sm-timeline__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #8694a8;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sm-spark {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 40px;
  padding: 4px;
  background: #1c2535;
  border: 1px solid #283444;
  border-radius: 6px;
}
.sm-cell {
  flex: 1;
  min-height: 4px;
  border-radius: 2px;
  transition: height 0.3s, opacity 0.3s;
}
.sm-cell--buy  { background: #5fe0b4; }
.sm-cell--sell { background: #ff8899; }

/* Plain explanation note */
.sm-note {
  font-size: 0.9rem !important;
  color: #c0cad8 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  background: #1c2535 !important;
  border-left: 3px solid #6ed2ea !important;
  border-radius: 0 6px 6px 0 !important;
}

/* Mobile: verdict stacked */
@media (max-width: 600px) {
  .sm-verdict { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sm-bar { height: 52px; }
  .sm-bar__pct { font-size: 1.15rem; }
}

/* ---------- Mobile refinement ---------- */
@media (max-width: 720px) {
  .dash-top__inner { flex-wrap: wrap; gap: 12px !important; padding: 12px 16px !important; }
  .dash-ticker-mini { display: none !important; }
  .summary-card { padding: 14px 16px !important; }
  .summary-card__value { font-size: 1.4rem !important; }
  .activity-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .activity-stat { border-right: none !important; padding-right: 0 !important; }
  .panel { padding: 18px 16px !important; }
  .tier-section__head { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
  .tier-section__price { text-align: left !important; }
}

/* ============================================================
   FAQ PANEL (audit tab) — VN stock market compliance
   3 pillars "KHÔNG" + collapsible Q&A
   ============================================================ */
.faq-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.faq-pillar {
  position: relative;
  padding: 18px 20px 18px 22px;
  background: rgba(255, 85, 119, 0.04);
  border: 1px solid rgba(255, 85, 119, 0.22);
  border-radius: 10px;
}
.faq-pillar__x {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  padding: 3px 8px;
  background: rgba(255, 85, 119, 0.12);
  border: 1px solid rgba(255, 85, 119, 0.35);
  border-radius: 4px;
  margin-bottom: 10px;
}
.faq-pillar b {
  display: block;
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 6px;
}
.faq-pillar p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease;
  overflow: hidden;
}
.faq-item[open] {
  border-color: rgba(0, 255, 159, 0.3);
  background: rgba(0, 255, 159, 0.025);
}
.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--neon);
  border: 1px solid rgba(0, 255, 159, 0.3);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item[open] summary::before {
  content: '−';
  background: rgba(0, 255, 159, 0.12);
  transform: rotate(180deg);
}
.faq-item summary:hover { color: var(--neon); }

.faq-answer {
  padding: 4px 18px 18px 52px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol {
  margin: 8px 0 10px; padding-left: 22px;
}
.faq-answer li { margin-bottom: 6px; }
.faq-answer code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 2px 6px;
  background: rgba(0, 255, 159, 0.08);
  border: 1px solid rgba(0, 255, 159, 0.2);
  border-radius: 4px;
  color: var(--neon);
}
.faq-answer a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 255, 159, 0.35);
}
.faq-answer a:hover { border-bottom-style: solid; }
.faq-answer b { color: var(--text); }

.faq-footer {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.faq-footer a { color: var(--gold); text-decoration: none; font-weight: 500; }
.faq-footer a:hover { text-decoration: underline; }

/* Mobile: pillars stacked, compact padding */
@media (max-width: 768px) {
  .faq-pillars { grid-template-columns: 1fr; gap: 10px; }
  .faq-pillar { padding: 14px 16px; }
  .faq-item summary { padding: 12px 14px; font-size: 0.9rem; }
  .faq-item summary::before { width: 20px; height: 20px; font-size: 1rem; }
  .faq-answer { padding: 4px 14px 16px 42px; font-size: 0.86rem; }
}

/* ============================================================
   LA BÀN · SECTOR COMPASS synthesis (Tier 01 VIP panel)
   Regime bar + Sharpe ranking + Playbook + Insights + Combo
   ============================================================ */

/* Regime distribution bar */
.regime-bar {
  margin-bottom: 18px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.regime-bar__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.regime-bar__bars {
  display: flex;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
}
.regime-seg {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.regime-seg--bull { background: linear-gradient(90deg, rgba(0,255,159,0.22), rgba(0,255,159,0.4)); }
.regime-seg--bear { background: linear-gradient(90deg, rgba(255,85,119,0.28), rgba(255,85,119,0.45)); }
.regime-seg--trans { background: linear-gradient(90deg, rgba(212,175,55,0.28), rgba(212,175,55,0.45)); }

/* OOS Sharpe ranking 10 sectors */
.sector-sharpe {
  margin-top: 24px;
  padding: 18px 20px;
  background: rgba(0,255,159,0.015);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.sector-sharpe__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sector-sharpe__head b {
  font-size: 0.98rem;
  color: var(--text);
}
.chip--xs {
  font-size: 0.68rem;
  padding: 3px 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.sector-sharpe__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.sc-row {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}
.sc-row:hover { background: rgba(255,255,255,0.04); }
.sc-row--win { background: rgba(0,255,159,0.05); border-color: rgba(0,255,159,0.18); }
.sc-row--lose { background: rgba(255,85,119,0.04); border-color: rgba(255,85,119,0.18); }
.sc-sym { font-size: 1.1rem; }
.sc-ret {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.sc-row--win .sc-ret { color: var(--neon); }
.sc-row--lose .sc-ret { color: var(--red); }
.sc-sh {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
}
.sc-row--win .sc-sh { background: rgba(0,255,159,0.1); color: var(--neon); }
.sc-row--lose .sc-sh { background: rgba(255,85,119,0.08); color: var(--red); }
.sector-sharpe__foot {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-mute);
  font-style: italic;
}

/* Regime playbook grid */
.regime-playbook {
  margin-top: 20px;
}
.playbook-head {
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--text);
}
.playbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.playbook-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.playbook-card--bull { border-color: rgba(0,255,159,0.3); background: rgba(0,255,159,0.03); }
.playbook-card--bear { border-color: rgba(255,85,119,0.3); background: rgba(255,85,119,0.03); }
.playbook-card--trans { border-color: rgba(212,175,55,0.3); background: rgba(212,175,55,0.03); }
.pb-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.playbook-card--bull .pb-badge { background: rgba(0,255,159,0.12); color: var(--neon); }
.playbook-card--bear .pb-badge { background: rgba(255,85,119,0.12); color: var(--red); }
.playbook-card--trans .pb-badge { background: rgba(212,175,55,0.12); color: var(--gold); }
.playbook-card b { font-size: 0.94rem; color: var(--text); }
.playbook-card ul {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.playbook-card li { margin-bottom: 5px; }

/* Insights list */
.compass-insights {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(0,217,255,0.025);
  border: 1px solid rgba(0,217,255,0.22);
  border-radius: 10px;
}
.insight-head {
  margin-bottom: 10px;
  font-size: 0.98rem;
  color: #00d9ff;
}
.insight-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.insight-list li { margin-bottom: 8px; }
.insight-list li b { color: var(--text); }
.insight-list li:last-child { margin-bottom: 0; }

/* Combo cross-link */
.compass-combo {
  margin-top: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(212,175,55,0.04), rgba(0,255,159,0.03));
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 10px;
}
.compass-combo > b {
  display: block;
  font-size: 0.98rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.compass-combo > p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.combo-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}
.combo-link:hover {
  border-color: var(--neon);
  background: rgba(0,255,159,0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,255,159,0.08);
}
.combo-icon { font-size: 1.2rem; }
.combo-link b { font-size: 0.92rem; }
.combo-link span:last-child {
  font-size: 0.78rem;
  color: var(--text-mute);
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 900px) {
  .sector-sharpe__grid { grid-template-columns: 1fr; }
  .playbook-grid { grid-template-columns: 1fr; }
  .combo-grid { grid-template-columns: 1fr; }
  .regime-seg { font-size: 0.66rem; padding: 0 4px; }
}
@media (max-width: 560px) {
  .sector-sharpe { padding: 14px 14px; }
  .sc-row { grid-template-columns: 22px 1fr auto; gap: 8px; font-size: 0.84rem; }
  .sc-row .sc-sh { display: none; }  /* Mobile: hide Sharpe chip, keep return */
  .playbook-card { padding: 14px; }
  .compass-combo { padding: 14px; }
}

/* ============================================================
   STOIC MARKET BULLETIN — real newsletter data
   ============================================================ */
.bulletin-item--loading { opacity: 0.6; font-style: italic; }
.bulletin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.bulletin-regime {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bulletin-regime.regime-on { background: rgba(0,255,159,0.12); color: var(--neon); border: 1px solid rgba(0,255,159,0.3); }
.bulletin-regime.regime-neutral { background: rgba(212,175,55,0.12); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }
.bulletin-regime.regime-off { background: rgba(255,85,119,0.12); color: var(--red); border: 1px solid rgba(255,85,119,0.3); }

.bulletin-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid rgba(0,255,159,0.4);
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.bulletin-stats b { color: var(--text); font-family: var(--font-sans); margin-right: 4px; }

@media (max-width: 560px) {
  .bulletin-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bulletin-stats { font-size: 0.78rem; }
}

/* ============================================================
   SENTIMENT INDEX — real factors + sparkline + color tones
   ============================================================ */
.sent-tone-extreme-fear { color: #ff5577 !important; }
.sent-tone-fear         { color: #ff8899 !important; }
.sent-tone-neutral      { color: #e2bf52 !important; }
.sent-tone-greed        { color: #5fe0b4 !important; }
.sent-tone-extreme-greed{ color: #00ff9f !important; }

.sent-spark {
  display: block;
  width: 100%;
  height: 36px;
  margin: 10px 0 12px;
  border-radius: 4px;
}

.sent-factors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.sent-factor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: help;
  transition: background 0.15s ease;
}
.sent-factor:hover { background: rgba(0,255,159,0.04); border-color: rgba(0,255,159,0.2); }
.sent-factor__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sent-factor__val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.sent-factor__dir {
  font-size: 0.82rem;
  line-height: 1;
}
.sent-factor__dir.up { color: var(--neon); }
.sent-factor__dir.down { color: var(--red); }
.sent-factor__dir.neutral { color: var(--gold); }

.sent-foot {
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: var(--text-mute);
  font-style: italic;
  text-align: center;
}

@media (max-width: 560px) {
  .sent-factors { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .sent-factor { padding: 6px 3px; }
  .sent-factor__label { font-size: 0.56rem; }
  .sent-factor__val { font-size: 0.92rem; }
}

/* ============================================================
   FAQ — disclaimer section (legal statement)
   ============================================================ */
.faq-disclaimer {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(255, 184, 77, 0.04);
  border: 1px solid rgba(255, 184, 77, 0.28);
  border-left: 4px solid var(--amber, #ffb84d);
  border-radius: 8px;
}
.faq-disclaimer__head {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--amber, #ffb84d);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.faq-disclaimer p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.faq-disclaimer p:last-child { margin-bottom: 0; }
.faq-disclaimer b { color: var(--text); }
.faq-disclaimer__contact {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 184, 77, 0.2);
  text-align: center;
  font-size: 0.84rem !important;
}
.faq-disclaimer a {
  color: var(--amber, #ffb84d);
  text-decoration: none;
  font-weight: 500;
}
.faq-disclaimer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .faq-disclaimer { padding: 16px; }
}

/* ============================================================
   STOIC MARKET BULLETIN — Executive briefing layout
   ============================================================ */
.bulletin-loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
}
.bulletin-loading b { display: block; font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.bulletin-loading p { font-size: 0.88rem; margin: 0; }
.bulletin-loading__spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(0,255,159,0.18);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: bspin 0.9s linear infinite;
  margin-bottom: 12px;
}
@keyframes bspin { to { transform: rotate(360deg); } }

.bulletin-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.bulletin-hero.regime-on     { border-color: rgba(0,255,159,0.35); background: linear-gradient(135deg, rgba(0,255,159,0.06), rgba(0,255,159,0.02)); }
.bulletin-hero.regime-neutral{ border-color: rgba(212,175,55,0.35); background: linear-gradient(135deg, rgba(212,175,55,0.05), rgba(212,175,55,0.02)); }
.bulletin-hero.regime-off    { border-color: rgba(255,85,119,0.35); background: linear-gradient(135deg, rgba(255,85,119,0.05), rgba(255,85,119,0.02)); }
.bulletin-hero__left { display: flex; align-items: center; gap: 16px; }
.bulletin-hero__icon { font-size: 2.4rem; line-height: 1; }
.bulletin-hero__regime {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 2px;
}
.bulletin-hero.regime-on .bulletin-hero__regime     { color: var(--neon); }
.bulletin-hero.regime-neutral .bulletin-hero__regime{ color: var(--gold); }
.bulletin-hero.regime-off .bulletin-hero__regime    { color: var(--red); }
.bulletin-hero__sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-mute);
  font-family: var(--font-mono);
}
.bulletin-hero__right { display: flex; gap: 14px; flex-wrap: wrap; }
.bulletin-hero__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 110px;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.metric-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.metric-val small {
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 2px;
}
.metric-trend {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.metric-trend.up { color: var(--neon); background: rgba(0,255,159,0.08); }
.metric-trend.down { color: var(--red); background: rgba(255,85,119,0.08); }
.metric-trend.neutral { color: var(--text-mute); background: rgba(255,255,255,0.04); }

.bulletin-sectors {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.bulletin-sectors__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
  min-width: 120px;
  white-space: nowrap;
}
.row-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-chip {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  border-radius: 100px;
  border: 1px solid;
}
.sec-chip--lead  { color: var(--neon); background: rgba(0,255,159,0.06); border-color: rgba(0,255,159,0.3); }
.sec-chip--impr  { color: #00d9ff; background: rgba(0,217,255,0.06); border-color: rgba(0,217,255,0.3); }
.sec-chip--lag   { color: var(--red); background: rgba(255,85,119,0.05); border-color: rgba(255,85,119,0.28); }
.sec-chip--empty { color: var(--text-mute); background: transparent; border-color: var(--border); font-style: italic; }

.bulletin-top {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: rgba(0,255,159,0.02);
  border: 1px solid rgba(0,255,159,0.14);
  border-radius: 10px;
}
.bulletin-top__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.bulletin-top__head b { font-size: 0.95rem; color: var(--text); }
.bulletin-top__note { font-size: 0.74rem; color: var(--text-mute); font-family: var(--font-mono); }
.top-rs-list { display: flex; flex-direction: column; gap: 6px; }
.top-rs-row {
  display: grid;
  grid-template-columns: 34px 60px 90px 1fr 80px 90px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  font-size: 0.86rem;
}
.top-rs-row:hover { background: rgba(0,255,159,0.04); }
.top-rs-rank { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-mute); }
.top-rs-sym { font-family: var(--font-mono); font-weight: 700; color: var(--neon); font-size: 0.94rem; }
.top-rs-close { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); text-align: right; }
.top-rs-bar { position: relative; height: 8px; background: rgba(255,255,255,0.04); border-radius: 10px; overflow: hidden; }
.top-rs-bar__fill { height: 100%; background: linear-gradient(90deg, rgba(0,255,159,0.4), var(--neon)); border-radius: 10px; transition: width 0.4s ease; }
.top-rs-score { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); font-weight: 600; text-align: right; }
.top-rs-r63 { font-family: var(--font-mono); font-size: 0.78rem; text-align: right; white-space: nowrap; }
.top-rs-r63.up { color: var(--neon); }
.top-rs-r63.down { color: var(--red); }
.top-rs-r63 small { font-size: 0.72em; opacity: 0.6; }
.top-rs-empty { text-align: center; padding: 20px; color: var(--text-mute); font-style: italic; font-size: 0.88rem; }

.bulletin-outlook {
  margin-bottom: 18px;
  padding: 16px 20px;
  background: rgba(0,217,255,0.03);
  border-left: 3px solid #00d9ff;
  border-radius: 0 8px 8px 0;
}
.bulletin-outlook__head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00d9ff;
  margin-bottom: 8px;
}
.bulletin-outlook p { margin: 0 0 12px; font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.bulletin-actions-head {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-mute);
  margin-top: 10px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bulletin-actions { margin: 0; padding-left: 22px; font-size: 0.88rem; line-height: 1.55; color: var(--text-dim); }
.bulletin-actions li { margin-bottom: 5px; }

.bulletin-quote {
  margin: 0 0 18px;
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(212,175,55,0.04);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-family: Lora, Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.bulletin-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(0,255,159,0.08), rgba(0,217,255,0.08));
  border: 1px solid rgba(0,255,159,0.3);
  border-radius: 8px;
  color: var(--neon);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  margin-bottom: 18px;
}
.bulletin-cta:hover {
  background: linear-gradient(90deg, rgba(0,255,159,0.14), rgba(0,217,255,0.14));
  border-color: var(--neon);
  box-shadow: 0 0 24px rgba(0,255,159,0.12);
  transform: translateY(-1px);
}
.bulletin-cta span { font-size: 1.2rem; }

.bulletin-archive { padding-top: 16px; border-top: 1px dashed var(--border); }
.bulletin-archive__head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.bulletin-archive__list { display: flex; flex-direction: column; gap: 4px; }
.archive-item {
  display: grid;
  grid-template-columns: 90px 110px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.84rem;
  transition: background 0.15s ease;
}
.archive-item:hover { background: rgba(0,255,159,0.04); color: var(--text); }
.archive-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mute); }
.archive-regime {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.archive-regime.regime-on     { background: rgba(0,255,159,0.1); color: var(--neon); }
.archive-regime.regime-neutral{ background: rgba(212,175,55,0.1); color: var(--gold); }
.archive-regime.regime-off    { background: rgba(255,85,119,0.1); color: var(--red); }
.archive-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-go { text-align: center; color: var(--neon); font-weight: 600; }

@media (max-width: 768px) {
  .bulletin-hero { flex-direction: column; gap: 14px; }
  .bulletin-hero__right { width: 100%; justify-content: space-between; }
  .bulletin-hero__metric { min-width: 0; align-items: flex-start; }
  .top-rs-row { grid-template-columns: 30px 56px 1fr 70px; gap: 8px; font-size: 0.82rem; }
  .top-rs-close, .top-rs-r63 small { display: none; }
  .bulletin-sectors__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .archive-item { grid-template-columns: 80px 1fr 20px; }
  .archive-regime { display: none; }
}
@media (max-width: 560px) {
  .bulletin-hero { padding: 14px 16px; }
  .bulletin-hero__icon { font-size: 1.8rem; }
  .bulletin-hero__regime { font-size: 1.1rem; }
  .metric-val { font-size: 1.15rem; }
  .top-rs-row { padding: 6px 8px; }
  .bulletin-outlook { padding: 12px 14px; }
  .bulletin-cta { padding: 12px 14px; font-size: 0.86rem; }
}
