body.app-body { background: var(--bg); overscroll-behavior-y: none; }

.app-shell {
  max-width: 560px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(90,160,242,0.08), transparent 60%),
    var(--bg);
  border-left: 1px solid var(--divider);
  border-right: 1px solid var(--divider);
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 28px;
  -webkit-overflow-scrolling: touch;
}
.app-content.no-tabbar { padding-bottom: 28px; }

/* Top header (Home) */
.screen-header { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.eyebrow { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-300); font-weight: 700; margin-bottom: 4px; }
.h-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

/* Decorative aurora behind the dashboard header — gives the app the same
   energy as the landing/loading screen instead of a flat grey top. */
.dash-glow {
  position: absolute; top: -90px; left: 50%; transform: translateX(-50%);
  width: 135%; height: 340px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(50% 60% at 32% 0%, color-mix(in srgb, var(--buy) 20%, transparent), transparent 70%),
    radial-gradient(52% 62% at 74% 6%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
  filter: blur(6px);
  opacity: 0.9;
}
.home-wrap, .glow-wrap { position: relative; }
.home-wrap > *:not(.dash-glow), .glow-wrap > *:not(.dash-glow) { position: relative; z-index: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--buy-dim); color: var(--buy); font: 600 12px var(--font-body);
  white-space: nowrap;
}
.icon-btn {
  position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--neutral-800);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 17px; flex: none;
}
.icon-btn .unread-dot {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--sell); border: 1.5px solid var(--bg);
}

/* Stat cards row */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0) 55%), var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 13px 14px; box-shadow: 0 6px 18px -10px rgba(0,0,0,0.7); transition: transform 0.18s ease, border-color 0.18s ease; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0.65; }
.stat-card:active { transform: scale(0.98); }
.stat-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.stat-value { font: 800 21px var(--font-heading); letter-spacing: -0.01em; }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.section-label {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700; margin: 22px 0 10px;
  display: flex; align-items: center; justify-content: flex-start;
}
.section-label::before {
  content: ''; display: inline-block; width: 3px; height: 13px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-700));
  margin-right: 9px; vertical-align: -1px;
}
.section-label > a { margin-left: auto; }
.section-label:first-child { margin-top: 0; }
.section-label a { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--accent-300); font-weight: 600; }

/* Hero signal card */
.hero-card {
  position: relative;
  border-radius: 20px;
  padding: 1.5px; /* gradient hairline border via the padding + background */
  margin-bottom: 4px;
  cursor: pointer;
  transition: transform 0.15s ease;
  background: linear-gradient(150deg, color-mix(in srgb, var(--vc) 55%, transparent), color-mix(in srgb, var(--vc) 7%, transparent) 52%, var(--hairline) 82%);
  box-shadow: 0 18px 44px -26px var(--vc);
}
.hero-card:active { transform: scale(0.99); }
.hero-inner {
  position: relative;
  overflow: hidden;
  border-radius: 18.5px;
  background:
    radial-gradient(120% 92% at 100% -12%, color-mix(in srgb, var(--vc) 13%, transparent), transparent 56%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
  padding: 15px 18px 16px;
}
.hero-eyebrow { display: flex; align-items: center; gap: 5px; font: 700 10.5px var(--font-heading); text-transform: uppercase; letter-spacing: 0.08em; color: var(--vc); margin-bottom: 13px; }
.hero-eyebrow i { font-size: 12px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-symbol { display: flex; align-items: center; gap: 11px; }
.sym-tile {
  width: 42px; height: 42px; border-radius: 12px; background: var(--neutral-900);
  display: flex; align-items: center; justify-content: center;
  font: 700 13px var(--font-heading); color: var(--accent-200); flex: none;
}
.sym-name { font: 600 15px var(--font-heading); }
.sym-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.hero-price { text-align: right; }
.hero-price .px { font: 700 19px var(--font-heading); }
.hero-price .chg { font: 700 12px var(--font-heading); margin-top: 2px; }

.hero-verdict-row { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.hero-verdict { font: 800 34px var(--font-heading); display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.hero-conf { flex: 1; min-width: 0; }
.hero-conf-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 5px; }
.hero-conf-bar-track { height: 8px; border-radius: 6px; background: var(--neutral-900); overflow: hidden; }
.hero-conf-bar-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; }
.hero-subline { font-size: 12.5px; color: var(--text-muted); margin: 2px 0 14px; }

.hero-quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hero-quad-cell { background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid var(--hairline); border-radius: 10px; padding: 9px 10px; text-align: left; }
.hero-quad-cell .k { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.hero-quad-cell .v { font: 600 13.5px var(--font-heading); margin-top: 3px; }
.hero-no-setup { background: var(--neutral-900); border-radius: 9px; padding: 11px 12px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.trade-status { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; padding: 11px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.5; background: var(--neutral-900); border: 1px solid var(--hairline); color: var(--text-muted); }
.trade-status i { flex: none; font-size: 16px; margin-top: 1px; }
.trade-status.ok { color: var(--buy); background: var(--buy-dim); border-color: transparent; }
.trade-status.ok span { color: var(--text); }
.trade-status.wait i { color: var(--accent-300); }
.pm-group { border-top: 1px solid var(--divider); }
.pm-group > summary { display: flex; align-items: center; gap: 8px; padding: 11px 2px; cursor: pointer; list-style: none; font: 600 12.5px var(--font-heading); }
.pm-group > summary::-webkit-details-marker { display: none; }
.pm-cat-name { flex: 1; }
.pm-cat-count { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.pm-group > summary .ph-caret-down { color: var(--text-muted); font-size: 13px; transition: transform 0.2s; }
.pm-group[open] > summary .ph-caret-down { transform: rotate(180deg); }
.notif-label { flex: 1; }
.pm-trend { flex: none; width: 46px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; font: 700 10px var(--font-heading); }
.pm-trend i { font-size: 11px; }
.pm-trend.buy { color: var(--buy); }
.pm-trend.sell { color: var(--sell); }
.pm-trend.flat { color: var(--text-muted); font-weight: 600; }
.hero-live { display: inline-flex; align-items: center; gap: 5px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 0 var(--buy); animation: livePulse 1.6s ease-out infinite; }
.live-dot.off { background: var(--text-muted); animation: none; box-shadow: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(47,224,166,0.55); } 70% { box-shadow: 0 0 0 6px rgba(47,224,166,0); } 100% { box-shadow: 0 0 0 0 rgba(47,224,166,0); } }
.flash-up { animation: flashUp 0.6s ease-out; }
.flash-down { animation: flashDown 0.6s ease-out; }
@keyframes flashUp { 0% { color: var(--buy); } 100% { color: inherit; } }
@keyframes flashDown { 0% { color: var(--sell); } 100% { color: inherit; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .flash-up, .flash-down { animation: none; } }

/* Watchlist */
.wl-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 4px; border-bottom: 1px solid var(--divider);
  cursor: pointer;
}
.wl-row:last-child { border-bottom: none; }
.wl-row .sym-tile { width: 36px; height: 36px; font-size: 11.5px; }
.wl-name-block { flex: 1; min-width: 0; }
.wl-name { font: 600 13.5px var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-price { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.wl-spark { width: 56px; height: 28px; flex: none; }
.wl-chg { width: 62px; text-align: right; font: 600 12.5px var(--font-heading); flex: none; }
/* Fixed-width so the widest chip ("NO TRADE") doesn't shove the spark/change
   columns sideways — keeps every row's columns vertically aligned. */
.wl-verdict { flex: none; width: 82px; display: flex; justify-content: flex-end; }

/* Calendar banner */
.calendar-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--accent-900); border: 1px solid var(--accent-800);
  border-radius: var(--radius-md); padding: 13px 14px; margin-top: 18px; cursor: pointer;
}
.calendar-banner .i { color: var(--accent-200); font-size: 20px; flex: none; }
.calendar-banner .t { font: 600 13px var(--font-heading); }
.calendar-banner .s { font-size: 11.5px; color: var(--accent-300); margin-top: 1px; }
.calendar-banner .arrow { margin-left: auto; color: var(--accent-300); }

/* Detail header */
.detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.back-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--neutral-800); display: flex; align-items: center; justify-content: center;
  color: var(--text); flex: none; font-size: 17px;
}
.detail-title-block { flex: 1; min-width: 0; }
.detail-title { font: 600 15.5px var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-sub { font-size: 11.5px; color: var(--text-muted); }
.star-btn { flex: none; font-size: 20px; color: var(--flat); }

.segmented { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--neutral-800); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 16px; }
.seg-btn {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 8px; border: none;
  background: transparent; color: var(--text-muted); font: 600 13px var(--font-body);
}
.seg-btn.active { background: var(--accent-800); color: var(--accent-100); }

.verdict-frame { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--vc) 34%, var(--hairline)); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; margin-bottom: 16px; background: radial-gradient(130% 130% at 50% -14%, color-mix(in srgb, var(--vc) 17%, var(--surface)), var(--surface) 72%); box-shadow: 0 18px 44px -28px var(--vc); }
.verdict-frame > * { position: relative; z-index: 1; }
.verdict-big { font: 800 32px var(--font-heading); letter-spacing: -0.5px; display: inline-flex; align-items: center; gap: 10px; }
.verdict-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.ring-wrap { position: relative; width: 132px; height: 132px; margin: 22px auto 4px; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num { font: 700 30px var(--font-heading); }
.ring-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-top: 2px; }

.stat3-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat3-cell { background: var(--surface); border: 1px solid var(--neutral-800); border-radius: var(--radius-md); padding: 11px 12px; text-align: center; }
.stat3-cell .k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.stat3-cell .v { font: 600 14px var(--font-heading); margin-top: 4px; }

.panel { background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0) 44%), var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow-elev); }
.panel-title { font: 600 14px var(--font-heading); margin-bottom: 10px; }

.plan-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--divider); font-size: 13.5px; }
.plan-row:first-of-type { border-top: none; }
.plan-row .lbl { flex: 1; color: var(--text-muted); display: flex; align-items: center; gap: 9px; }
.plan-row .val { font: 600 14px var(--font-heading); }

.reason-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13.5px; line-height: 1.5; }
.reason-row .i { margin-top: 2px; flex: none; }

.countdown-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Breakdown */
.confluence-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.confluence-pct { font: 700 22px var(--font-heading); }
.confluence-bar { height: 9px; border-radius: 6px; overflow: hidden; display: flex; background: var(--neutral-900); }
.confluence-bar > span { height: 100%; }

.ind-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; background: var(--surface); border: 1px solid var(--neutral-800); border-radius: var(--radius-md); margin-bottom: 8px; }
.ind-tile { width: 34px; height: 34px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ind-body { flex: 1; min-width: 0; }
.ind-name { font: 600 13.5px var(--font-heading); }
.ind-detail { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.ind-tag { flex: none; font: 700 10.5px var(--font-heading); padding: 4px 9px; border-radius: 7px; letter-spacing: 0.02em; }

/* Chart tab */
.chart-box { background: var(--surface); border: 1px solid var(--neutral-800); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; }
.chart-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.overlay-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.overlay-tag { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.level-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--divider); font-size: 13px; }
.level-row:first-of-type { border-top: none; }

/* Markets */
.search-input-wrap { position: relative; margin-bottom: 4px; }
.search-input-wrap .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-input { width: 100%; background: var(--surface); border: 1px solid var(--neutral-800); border-radius: var(--radius-sm); padding: 11px 14px 11px 38px; color: var(--text); outline: none; font-size: 14px; }
.search-input:focus { border-color: var(--accent-700); }
.cat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.cat-count { color: var(--text-muted); font-weight: 500; }
.mkt-row { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px solid var(--divider); cursor: pointer; }
.mkt-row:last-child { border-bottom: none; }
.mkt-body { flex: 1; min-width: 0; }
.mkt-name { font: 600 13.5px var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-ex { font-size: 11px; color: var(--text-muted); }
.mkt-price { text-align: right; flex: none; }
.mkt-price .px { font: 600 13.5px var(--font-heading); }
.mkt-price .chg { font-size: 11px; margin-top: 1px; }
.mkt-verdict { flex: none; width: 82px; display: flex; justify-content: flex-end; }
.setup-row { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px solid var(--divider); cursor: pointer; }
.setup-row:last-child { border-bottom: none; }
.setup-row.hi-conv { margin: 0 -8px; padding: 10px 12px; border-bottom: none; border-radius: 12px; background: linear-gradient(100deg, color-mix(in srgb, var(--flat) 12%, transparent), transparent 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--flat) 32%, transparent); }
.conv-badge { display: inline-flex; align-items: center; gap: 3px; font: 700 9px var(--font-heading); text-transform: uppercase; letter-spacing: 0.04em; color: var(--flat); background: color-mix(in srgb, var(--flat) 16%, transparent); padding: 2px 6px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.conv-badge i { font-size: 9px; }
.setup-body { flex: 1; min-width: 0; }
.setup-name { font: 600 13px var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup-type { font: 600 11px var(--font-heading); display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.setup-type i { font-size: 12px; }
.setup-conf { flex: none; width: 72px; text-align: right; }
.setup-conf-val { font: 700 13px var(--font-heading); }
.setup-conf-bar { height: 4px; background: var(--neutral-900); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.setup-conf-bar span { display: block; height: 100%; border-radius: 2px; }
.onboard-wrap { position: relative; min-height: calc(100vh - 40px); display: flex; flex-direction: column; padding: 20px 22px 28px; }
.onboard-skip { position: absolute; top: 18px; right: 20px; background: none; border: none; color: var(--text-muted); font: 600 13px var(--font-heading); cursor: pointer; padding: 6px 8px; z-index: 2; }
.onboard-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 30ch; margin: 0 auto; }
.onboard-icon { width: 88px; height: 88px; border-radius: 26px; display: flex; align-items: center; justify-content: center; font-size: 42px; margin-bottom: 26px; }
.onboard-title { font: 800 26px var(--font-heading); letter-spacing: -0.5px; }
.onboard-body { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-top: 12px; }
.onboard-footer { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.onboard-dots { display: flex; gap: 7px; }
.onboard-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--neutral-700); transition: all 0.2s; }
.onboard-dots span.on { background: var(--buy); width: 20px; border-radius: 4px; }
.seg-toggle { display: flex; gap: 4px; background: var(--neutral-900); border-radius: 11px; padding: 4px; }
.seg-opt { flex: 1; border: none; background: transparent; color: var(--text-muted); font: 600 13px var(--font-heading); padding: 9px 8px; border-radius: 8px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.seg-opt.on { background: var(--accent-800); color: var(--accent-100); }

/* ── Modern Home ───────────────────────────────────────────────── */
.home-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.home-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 21px; color: #08130d; background: linear-gradient(140deg, var(--buy), #66f2c8); box-shadow: 0 7px 20px -8px var(--buy); flex: none; }
.brand-name { font: 800 17px var(--font-heading); letter-spacing: -0.3px; margin-top: 1px; }

.pf-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; border-radius: 20px; cursor: pointer; overflow: hidden; border: 1px solid var(--hairline); background: linear-gradient(140deg, color-mix(in srgb, var(--buy) 11%, var(--surface)), var(--surface) 68%); box-shadow: 0 14px 34px -22px rgba(0,0,0,0.8); }
.pf-card.down { background: linear-gradient(140deg, color-mix(in srgb, var(--sell) 11%, var(--surface)), var(--surface) 68%); }
.pf-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--buy) 16%, transparent), transparent 58%); pointer-events: none; }
.pf-card.down::after { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--sell) 16%, transparent), transparent 58%); }
.pf-card:active { transform: scale(0.992); }
.pf-main { position: relative; z-index: 1; min-width: 0; }
.pf-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.pf-value { font: 800 34px var(--font-heading); letter-spacing: -1px; margin-top: 4px; line-height: 1; }
.pf-value .pf-cur { color: var(--text-muted); font-size: 20px; font-weight: 700; }
.pf-meta { font-size: 12px; color: var(--text-muted); margin-top: 9px; }
.pf-chart { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; flex: none; }
.pf-go, .pf-go-sm { color: var(--text-muted); flex: none; }
.pf-go { font-size: 18px; }
.pf-go-sm { font-size: 15px; }
.strat-card { cursor: pointer; }

/* Markets breadth + filters */
.breadth { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.breadth-row { display: flex; gap: 16px; margin-bottom: 9px; }
.breadth-stat { font-size: 12px; color: var(--text-muted); }
.breadth-stat b { font: 700 14px var(--font-heading); }
.breadth-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--neutral-900); }
.breadth-bar span { height: 100%; transition: width 0.5s ease; }
.mkt-filters { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--hairline); color: var(--text-muted); font: 600 12.5px var(--font-heading); padding: 7px 13px; border-radius: 20px; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.fchip.on { background: var(--accent-800); color: var(--accent-100); border-color: transparent; }

/* Paper Trading hero */
.pf-hero { position: relative; overflow: hidden; border: 1px solid var(--hairline); border-radius: 20px; padding: 22px 20px 10px; margin-bottom: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--buy) 12%, var(--surface)), var(--surface) 66%); box-shadow: 0 16px 40px -26px rgba(0,0,0,0.8); }
.pf-hero.down { background: linear-gradient(160deg, color-mix(in srgb, var(--sell) 12%, var(--surface)), var(--surface) 66%); }
.pf-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(110% 75% at 100% 0%, color-mix(in srgb, var(--buy) 14%, transparent), transparent 60%); pointer-events: none; }
.pf-hero.down::after { background: radial-gradient(110% 75% at 100% 0%, color-mix(in srgb, var(--sell) 14%, transparent), transparent 60%); }
.pf-hero > * { position: relative; z-index: 1; }
.pf-hero-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.pf-hero-value { font: 800 42px var(--font-heading); letter-spacing: -1.5px; margin-top: 4px; line-height: 1; }
.pf-hero-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 9px; }
.pf-hero-chart { margin-top: 16px; }
.mkt-star { flex: none; background: none; border: none; cursor: pointer; padding: 4px; margin: -4px -2px -4px 0; font-size: 17px; line-height: 1; color: var(--text-muted); opacity: 0.5; transition: opacity 0.15s, color 0.15s, transform 0.1s; }
.mkt-star:hover { opacity: 1; }
.mkt-star:active { transform: scale(0.85); }
.mkt-star.on { opacity: 1; color: var(--accent-200); }

/* Track / performance */
.stat2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 16px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar-col .bv { font-size: 10.5px; font-weight: 600; }
.bar-col .b { width: 100%; border-radius: 5px 5px 0 0; transform-origin: bottom; animation: ajRise 0.6s ease; }
.bar-col .bl { font-size: 10.5px; color: var(--text-muted); }
.closed-row { display: flex; align-items: center; gap: 11px; padding: 11px 4px; border-bottom: 1px solid var(--divider); }
.closed-row:last-child { border-bottom: none; }
.closed-sym { width: 34px; height: 34px; border-radius: 9px; background: var(--neutral-900); display: flex; align-items: center; justify-content: center; font: 700 11px var(--font-heading); flex: none; }
.closed-body { flex: 1; min-width: 0; }
.closed-title { font: 600 13px var(--font-heading); }
.closed-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.closed-result { text-align: right; flex: none; }
.closed-result .r { font: 700 13px var(--font-heading); }
.closed-result .o { font-size: 10.5px; color: var(--text-muted); }

/* Calendar */
.guard-note { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-900); border: 1px solid var(--accent-800); border-radius: var(--radius-md); padding: 13px 14px; margin-bottom: 16px; font-size: 12.5px; color: var(--accent-200); }
.evt-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--divider); }
.evt-row:last-child { border-bottom: none; }
.evt-time { width: 52px; flex: none; text-align: center; }
.evt-time .t { font: 700 13px var(--font-heading); }
.evt-time .d { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.evt-bar { width: 3px; align-self: stretch; border-radius: 3px; flex: none; }
.evt-body { flex: 1; min-width: 0; }
.evt-title { font: 600 13.5px var(--font-heading); }
.evt-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.evt-impact { flex: none; font: 700 10px var(--font-heading); padding: 4px 9px; border-radius: 6px; }

/* Alerts */
.alert-card { display: flex; gap: 12px; padding: 13px 14px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--neutral-800); border-left: 3px solid; margin-bottom: 10px; }
.alert-tile { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 16px; }
.alert-body { flex: 1; min-width: 0; }
.alert-top { display: flex; justify-content: space-between; gap: 8px; }
.alert-title { font: 600 13.5px var(--font-heading); }
.alert-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex: none; }
.alert-text { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }

/* Settings */
.pro-card { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent-900), var(--surface)); border: 1px solid var(--accent-700); margin-bottom: 18px; cursor: pointer; }
.pro-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #0b0c15; font-size: 20px; flex: none; }
.pro-body { flex: 1; }
.pro-title { font: 600 14.5px var(--font-heading); }
.pro-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.chip-upgrade { flex: none; background: var(--accent); color: #0b0c15; font: 700 12px var(--font-body); padding: 8px 14px; border-radius: var(--radius-pill); }

.setting-block { margin-bottom: 22px; }
.setting-row-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.setting-row-top .t { font: 600 14px var(--font-heading); }
.setting-row-top .v { font: 700 14px var(--font-heading); color: var(--accent-300); }
.setting-help { font-size: 11.5px; color: var(--text-muted); margin-top: 8px; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.risk-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.risk-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.risk-result-cell { background: var(--neutral-900); border-radius: var(--radius-chip); padding: 12px; text-align: center; }
.risk-result-cell .v { font: 700 18px var(--font-heading); }
.risk-result-cell .k { font-size: 10.5px; color: var(--text-muted); margin-top: 3px; }
.risk-warning { margin-top: 10px; font-size: 12px; color: var(--flat); background: var(--flat-dim); border-radius: var(--radius-chip); padding: 9px 11px; }

.notif-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); }
.notif-row:first-of-type { border-top: none; }
.notif-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 14px; }
.notif-label { flex: 1; font: 500 13.5px var(--font-body); }

.footer-note { text-align: center; font-size: 11px; color: var(--text-faint); margin-top: 24px; line-height: 1.6; }

/* Paywall */
.paywall-close { position: absolute; top: 18px; left: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--neutral-800); display: flex; align-items: center; justify-content: center; font-size: 16px; z-index: 5; }
.paywall-hero { text-align: center; padding: 56px 20px 8px; }
.paywall-crown { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(150deg, var(--accent-400), var(--accent-700)); display: flex; align-items: center; justify-content: center; font-size: 30px; color: #0b0c15; margin: 0 auto 16px; }
.paywall-title { font: 700 22px var(--font-heading); }
.paywall-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.pw-feature { display: flex; align-items: center; gap: 11px; padding: 9px 0; font-size: 13.5px; }
.pw-feature .i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-900); color: var(--accent-200); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.plan-option { border: 1.5px solid var(--neutral-800); border-radius: var(--radius-md); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; cursor: pointer; }
.plan-option.selected { border-color: var(--accent); background: var(--accent-900); }
.plan-option .t { font: 600 13.5px var(--font-heading); }
.plan-option .s { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.plan-option .price { font: 700 17px var(--font-heading); text-align: right; }
.plan-option .per { font-size: 11px; color: var(--text-muted); }

/* Tab bar */
.tabbar {
  flex: none;
  display: flex;
  border-top: 1px solid var(--hairline);
  background: rgba(11, 13, 22, 0.82);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; background: none; border: none; color: var(--neutral-500); font-size: 10.5px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.tab-btn .i { font-size: 21px; }
.tab-btn.active { color: var(--accent-300); }
.tab-btn.active .i { transform: translateY(-1px); filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--accent) 55%, transparent)); }

.data-tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.data-tag.live { background: var(--buy-dim); color: var(--buy); }
.data-tag.sim { background: var(--neutral-900); color: var(--neutral-500); }
.data-tag.closed { background: rgba(245, 179, 90, 0.14); color: #f5b35a; }

@media (max-width: 380px) {
  .hero-verdict { font-size: 30px; }
  .stat-row, .hero-quad { gap: 7px; }
}

/* Collapsible <details> — use our own caret, hide the native marker */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] > summary .ph-caret-down { transform: rotate(180deg); }
summary .ph-caret-down { transition: transform 0.2s ease; }
