*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0: #0a0c0f;
  --bg-1: #0f1217;
  --bg-2: #141820;
  --bg-3: #1c2230;
  --bg-4: #232b3a;
  --surface-0: rgba(10, 15, 22, 0.86);
  --surface-1: rgba(13, 18, 24, 0.76);
  --surface-2: rgba(17, 24, 34, 0.92);
  --border: #1e2738;
  --border-hi: #2d3a50;
  --text-1: #e8eaf0;
  --text-2: #8892a4;
  --text-3: #4a5568;
  --accent: #00d4aa;
  --accent-dim: #00a882;
  --accent-glow: rgba(0,212,170,0.15);
  --bull: #26a69a;
  --bear: #ef5350;
  --bull-dim: rgba(38,166,154,0.15);
  --bear-dim: rgba(239,83,80,0.15);
  --warn: #f59e0b;
  --info: #3b82f6;
  --font-ui: 'SF Pro Display', 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'SF Pro Text', 'Segoe UI', Consolas, monospace;
  --toolbar-h: 44px;
  --seekbar-h: 36px;
  --sidebar-w: 260px;
  --panel-h: 200px;
}

html, body, #root {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

/* Landing page needs to scroll; body stays default */
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: color-mix(in srgb, var(--bg-3) 78%, transparent);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.btn.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); color: var(--bg-0); border-color: var(--accent); font-weight: 700; }
.btn.primary:hover { background: var(--accent-dim); color: var(--bg-0); }

.panel {
  background: linear-gradient(180deg, rgba(19, 26, 37, 0.92) 0%, rgba(11, 16, 24, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.divider-v { width: 1px; background: var(--border); flex-shrink: 0; }
.divider-h { height: 1px; background: var(--border); flex-shrink: 0; }
.muted { color: var(--text-2); }
.dim   { color: var(--text-3); }
.bull  { color: var(--bull); }
.bear  { color: var(--bear); }
.accent { color: var(--accent); }

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

select option { background: var(--bg-2); }

@keyframes fadeIn      { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pulse       { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes floatY      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift       { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(12px, -18px, 0) scale(1.06); } }
@keyframes tickerSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* AI Review badge animations */
@keyframes badge-pop {
  0%   { transform: scale(0.4) rotate(-10deg); opacity: 0; }
  70%  { transform: scale(1.14) rotate(4deg);  opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes badge-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px var(--badge-color, #f59e0b)); }
  50%       { filter: drop-shadow(0 0 20px var(--badge-color, #f59e0b)); }
}
@keyframes sentence-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.fade-in { animation: fadeIn 0.2s ease forwards; }

.chart-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: blur(2px);
}

.chart-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--bg-4);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.chart-loading-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  animation: pulse 1.5s ease-in-out infinite;
}

a[href*='tradingview'],
a[href*='lightweight-charts'] {
  display: none !important;
}

.app-loading-screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(0, 212, 170, 0.12), transparent 30%),
    radial-gradient(circle at right, rgba(59, 130, 246, 0.14), transparent 28%),
    linear-gradient(180deg, #071018 0%, #0a0c0f 100%);
}

.app-loading-card {
  width: min(520px, 100%);
  padding: 32px;
}

.app-loading-card h1 {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  margin-top: 10px;
}

.landing-shell {
  position: relative;
  min-height: 100%;
  padding: 28px 20px 52px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 212, 170, 0.24), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(59, 130, 246, 0.18), transparent 26%),
    radial-gradient(circle at 50% 42%, rgba(255, 183, 77, 0.08), transparent 22%),
    linear-gradient(180deg, #050b12 0%, #071019 38%, #05090e 100%);
}

.landing-orb {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
  animation: drift 14s ease-in-out infinite;
}

.landing-orb-left {
  top: -8rem;
  left: -10rem;
  background: rgba(0, 212, 170, 0.18);
}

.landing-orb-right {
  top: 12rem;
  right: -8rem;
  background: rgba(59, 130, 246, 0.16);
  animation-delay: -6s;
}

.landing-container {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-section {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(8, 13, 20, 0.84) 0%, rgba(6, 10, 16, 0.74) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 90px rgba(0, 0, 0, 0.18);
}

.landing-hero-card {
  margin-top: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(11, 18, 28, 0.9) 0%, rgba(5, 10, 16, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 36px 110px rgba(0, 0, 0, 0.24);
}

.landing-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8dfec;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-centerpiece {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  text-align: center;
}

.market-ticker {
  width: min(840px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.market-chip {
  padding: 16px 18px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(19, 28, 41, 0.95) 0%, rgba(10, 15, 24, 0.92) 100%);
  animation: floatY 7s ease-in-out infinite;
}

.market-chip:nth-child(2) {
  animation-delay: -2s;
}

.market-chip:nth-child(3) {
  animation-delay: -4s;
}

.market-chip:nth-child(4) {
  animation-delay: -1s;
}

.market-chip span {
  color: var(--text-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-chip strong {
  font-size: 1rem;
}

.market-chip strong,
.hero-shot-caption p,
.hero-signal-card p,
.landing-lead,
.landing-section-copy,
.love-card p,
.promise-item,
.workspace-user-meta strong,
.workspace-suggestion-email {
  overflow-wrap: anywhere;
}

.landing-copy h1,
.section-heading h2,
.auth-card h2,
.love-card h3 {
  font-family: var(--font-ui);
}

.landing-copy-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-copy h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.92;
  max-width: 10ch;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  margin-bottom: 16px;
}

.eyebrow-glow {
  text-shadow: 0 0 18px rgba(0, 212, 170, 0.35);
}

.landing-lead {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
  margin-top: 20px;
}

.landing-lead-centered {
  max-width: 66ch;
}

.hero-spotlight {
  width: 100%;
  padding: clamp(18px, 2vw, 22px);
  background:
    linear-gradient(180deg, rgba(13, 22, 33, 0.84) 0%, rgba(7, 12, 18, 0.72) 100%);
}

.hero-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  width: min(760px, 100%);
  margin: 0 auto;
}

.hero-shot {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  background: rgba(12, 16, 24, 0.82);
  transform: translateZ(0);
}

.hero-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(2, 7, 12, 0.74) 100%);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-shot:hover img {
  transform: scale(1.04);
}

.hero-shot-wide {
  min-height: 420px;
}

.hero-shot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px;
  text-align: left;
}

.hero-shot-caption span,
.hero-signal-kicker {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ed6cb;
  margin-bottom: 10px;
}

.hero-shot-caption p,
.hero-signal-card p,
.landing-section-copy {
  color: var(--text-2);
  line-height: 1.8;
}

.hero-signal-card {
  min-height: 200px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background:
    radial-gradient(circle at top right, rgba(255, 183, 77, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(17, 25, 35, 0.94) 0%, rgba(9, 14, 21, 0.92) 100%);
}

.hero-signal-card strong {
  font-family: var(--font-ui);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.95;
  color: #f8fafc;
  margin-bottom: 12px;
}

.credibility-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.credibility-strip span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cdd7e4;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-section-auth {
  display: grid;
  gap: 24px;
  place-items: center;
}

.auth-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(0, 212, 170, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(16, 24, 34, 0.96) 0%, rgba(9, 14, 22, 0.96) 100%);
}

.auth-card-centered {
  width: min(560px, 100%);
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form span {
  color: var(--text-2);
}

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

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d9e3ed;
  line-height: 1.6;
}

.promise-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #7df9cf 0%, #00d4aa 100%);
  box-shadow: 0 0 18px rgba(0, 212, 170, 0.55);
}

.auth-submit {
  width: 100%;
  padding: 12px 18px;
  font-size: 13px;
  margin-top: 4px;
}

.auth-alert {
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.6;
}

.auth-alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #ffcf73;
}

.auth-alert-error {
  background: rgba(239, 83, 80, 0.12);
  border: 1px solid rgba(239, 83, 80, 0.28);
  color: #ffb5b3;
}

.auth-secondary-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.auth-link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

.feature-tag {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
}

.love-section {
  padding-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  max-width: 12ch;
}

.section-heading-centered {
  text-align: center;
}

.section-heading-centered h2 {
  max-width: 14ch;
  margin-inline: auto;
}

.landing-section-copy {
  max-width: 60ch;
  margin: 14px auto 0;
}

.love-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
  width: min(760px, 100%);
  margin-inline: auto;
}

.love-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(15, 22, 31, 0.84) 0%, rgba(10, 15, 22, 0.82) 100%);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.love-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.love-card p {
  color: var(--text-2);
  line-height: 1.8;
}

.feature-lift-card {
  min-height: 220px;
}

.workspace-shell {
  /* Fixed to viewport — cannot cause body scroll regardless of parent chain */
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 212, 170, 0.08), transparent 22%),
    linear-gradient(180deg, #090d14 0%, #0a0c0f 100%);
}

.workspace-layout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.workspace-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.workspace-main-row {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.workspace-chart-column {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.workspace-sidebar {
  width: min(var(--sidebar-w), 100vw);
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.workspace-sidebar.is-closed {
  width: 0;
  opacity: 0;
  pointer-events: none;
  border-left-color: transparent;
  overflow: hidden;
}

.workspace-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.workspace-sidebar-title {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sidebar-tab-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sidebar-tab-row::-webkit-scrollbar {
  display: none;
}

.sidebar-tab-btn {
  flex: 1 0 auto;
  min-width: 60px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sidebar-tab-btn.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.workspace-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.workspace-empty-icon {
  font-size: 32px;
  opacity: 0.1;
}

.workspace-trade-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
  align-items: center;
}

.workspace-trade-actions .btn {
  padding: 8px 16px;
  font-size: 12px;
  gap: 4px;
}

.workspace-analytics-toggle {
  position: fixed;
  bottom: 60px;
  left: 16px;
  z-index: 20;
  max-width: calc(100vw - 32px);
}

.workspace-analytics-toggle .btn {
  min-height: 20px;
  padding: 5px 8px;
  font-size: 10px;
  border-radius: 999px;
}

.workspace-overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
}

.workspace-user-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(10, 15, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.workspace-user-dock-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
}

.workspace-feedback-stack {
  position: fixed;
  right: 16px;
  bottom: 62px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: min(320px, calc(100vw - 32px));
}

.workspace-suggestion-btn {
  justify-content: center;
  background: rgba(10, 15, 22, 0.92);
  border-color: rgba(0, 212, 170, 0.3);
  color: var(--accent);
  backdrop-filter: blur(10px);
  min-height: 20px;
  padding: 5px 8px;
  font-size: 10px;
}

.workspace-suggestion-popup {
  padding: 8px 10px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn 0.18s ease forwards;
}

.workspace-suggestion-label {
  font-size: 9px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.workspace-suggestion-email {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
  word-break: break-word;
}

.workspace-suggestion-email:hover {
  text-decoration: underline;
}

.workspace-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.workspace-user-meta strong {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-user-caption {
  color: var(--text-3);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.workspace-logout-btn {
  min-width: 18px;
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  border-color: rgba(239, 83, 80, 0.35);
  color: #ff8a87;
  background: rgba(239, 83, 80, 0.1);
  font-size: 10px;
  flex-shrink: 0;
}

.workspace-logout-btn:hover {
  border-color: var(--bear);
  color: #ffd6d5;
  background: rgba(239, 83, 80, 0.22);
}

.toolbar-shell {
  height: var(--toolbar-h);
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 0 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  overflow: hidden;
}

.toolbar-playback {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.toolbar-playback-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

.toolbar-playback-btn.play-pause-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 12px;
}

.toolbar-speed-divider {
  width: 1px;
  height: 20px;
  background: var(--border-hi);
  margin: 0 2px;
  flex-shrink: 0;
}

.toolbar-speed-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.toolbar-speed-btn {
  height: 24px;
  min-width: 28px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.toolbar-speed-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.toolbar-brand {
  flex: 0 1 auto;
}

.toolbar-pairing {
  flex: 1 1 auto;
  min-width: 0;
}

.toolbar-timeframes {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.toolbar-timeframes::-webkit-scrollbar {
  display: none;
}

.toolbar-controls {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.toolbar-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toolbar-progress-bar {
  width: 120px;
  height: 6px;
  background: var(--bg-4);
  border-radius: 3px;
  overflow: visible;
}

.toolbar-progress-bar:hover {
  height: 8px;
}

.toolbar-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.1s;
}

.toolbar-view {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.toolbar-shortcuts {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  line-height: 1.6;
  white-space: normal;
  flex-wrap: wrap;
}

.toolbar-chart-type-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Mobile toolbar (TradingView-style 2-row) ──────────────────────────────── */
.toolbar-shell.is-mobile {
  height: auto;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: visible;
}

.toolbar-mobile-top {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding: 0 10px;
  flex-shrink: 0;
}

.toolbar-mobile-brand {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.toolbar-mobile-pair {
  font-size: 12px;
  font-weight: 600;
  padding: 0 11px;
  height: 32px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 8px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toolbar-mobile-speed-btn {
  height: 28px;
  min-width: 34px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Timeframe strip */
.toolbar-mobile-tf-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 4px 10px;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.toolbar-mobile-tf-row::-webkit-scrollbar { display: none; }

.toolbar-mobile-tf-btn {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Mobile bottom navigation bar ─────────────────────────────────────────── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  position: relative;
  transition: color 0.15s, background 0.15s;
  padding: 4px 0 2px;
}

.mobile-nav-btn:active {
  background: var(--accent-glow);
}

.mobile-nav-btn.is-active {
  color: var(--accent);
}

.mobile-nav-icon {
  font-size: 17px;
  line-height: 1;
}

.mobile-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  background: var(--bear);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

/* Drag handle shown at top of mobile bottom sheet */
.sidebar-drag-handle {
  width: 36px;
  height: 4px;
  background: var(--border-hi);
  border-radius: 2px;
  margin: 10px auto 2px;
  flex-shrink: 0;
}

/* Sidebar overlay backdrop on mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 27;
  border: 0;
  cursor: pointer;
}

.seekbar-shell {
  height: 36px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  flex-shrink: 0;
  user-select: none;
  overflow: hidden;
}

.seekbar-edge {
  font-size: 10px;
  white-space: nowrap;
  min-width: 88px;
}

.seekbar-edge-end {
  text-align: right;
}

.seekbar-current {
  font-size: 10px;
  color: var(--accent);
  white-space: nowrap;
  min-width: 120px;
  text-align: right;
}

.analytics-shell {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  min-height: 80px;
  height: min(200px, 25vh);
}

.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.analytics-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 12px;
}

.analytics-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.analytics-content {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.analytics-stats {
  width: 220px;
  padding: 8px 12px;
  overflow: auto;
  flex-shrink: 0;
}

.chart-overlay-toolbar {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-order-btn {
  width: 36px;
  height: 36px;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0;
  border-radius: 8px;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.chart-order-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.05);
}

.chart-order-btn--buy {
  background: var(--bull-dim) !important;
  color: var(--bull) !important;
  border-color: var(--bull) !important;
}

.chart-order-btn--sell {
  background: var(--bear-dim) !important;
  color: var(--bear) !important;
  border-color: var(--bear) !important;
}

.chart-text-prompt {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(240px, calc(100vw - 32px));
}

@media (max-width: 1100px) {
  .hero-spotlight-grid,
  .love-grid {
    grid-template-columns: 1fr;
  }

  .market-ticker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-shot-wide,
  .hero-shot-tall,
  .hero-shot-compact,
  .hero-signal-card {
    min-height: 240px;
  }

  .analytics-content {
    flex-direction: column;
  }

  .analytics-divider {
    display: none;
  }

  .analytics-stats {
    width: 100%;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .landing-shell {
    padding-inline: 16px;
  }

  .landing-copy h1 {
    font-size: clamp(2.5rem, 8vw, 4.4rem);
  }

  .landing-lead {
    font-size: 15px;
  }

  .analytics-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .landing-shell {
    padding: 16px 12px 36px;
  }

  .landing-hero-card,
  .landing-section {
    border-radius: 24px;
  }

  .landing-topline {
    justify-content: center;
    text-align: center;
  }

  .landing-copy h1,
  .section-heading h2 {
    max-width: none;
  }

  .market-ticker {
    grid-template-columns: 1fr;
  }

  .market-chip {
    padding: 14px 16px;
  }

  .landing-status-pill {
    width: 100%;
    justify-content: center;
  }

  .hero-spotlight,
  .auth-card,
  .love-card {
    padding: 18px;
  }

  .hero-shot-caption {
    padding: 18px;
  }

  .hero-signal-card strong {
    font-size: 2rem;
  }

  .workspace-layout {
    bottom: 52px; /* reserve space for mobile bottom nav */
  }

  .workspace-main-row {
    flex-direction: column;
    flex: 1;
  }

  .workspace-chart-column {
    flex: 1;
    min-height: 0;
  }

  /* Sidebar → bottom sheet on mobile */
  .workspace-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 52px;
    top: auto;
    width: 100%;
    height: 65vh;
    border-left: none;
    border-top: 1px solid var(--border-hi);
    border-radius: 16px 16px 0 0;
    z-index: 28;
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.45);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s;
  }

  .workspace-sidebar.is-closed {
    transform: translateY(110%);
    width: 100%;
    opacity: 1;
  }

  .workspace-trade-actions {
    position: absolute !important;
    left: 8px !important;
    top: 8px !important;
    padding: 4px !important;
    z-index: 15 !important;
  }

  .workspace-trade-actions .btn {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 14px !important;
  }

  .chart-overlay-toolbar {
    top: 8px !important;
    left: 8px !important;
  }
}

  .workspace-analytics-toggle {
    bottom: 74px;
    left: 12px;
  }

  .workspace-user-dock {
    width: 100%;
    justify-content: space-between;
  }

  .workspace-feedback-stack {
    left: 12px;
    right: 12px;
    bottom: 62px;
    align-items: stretch;
    max-width: none;
  }

  .workspace-suggestion-popup {
    min-width: 0;
  }

  .workspace-user-dock-floating {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .workspace-user-meta strong {
    max-width: 100%;
  }

  /* Mobile toolbar handled via .is-mobile class + JS state */

  :root {
    --seekbar-h: 32px;
  }

  .seekbar-shell {
    height: 32px;
    gap: 8px;
  }

  .seekbar-edge {
    display: none;
  }

  .seekbar-current {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .analytics-shell {
    height: auto;
    max-height: 35vh;
  }

  .analytics-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .landing-shell {
    padding-inline: 10px;
  }

  .landing-hero-card,
  .landing-section,
  .panel {
    border-radius: 20px;
  }

  .landing-copy h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 0.96;
  }

  .landing-lead,
  .landing-section-copy,
  .love-card p,
  .hero-shot-caption p,
  .hero-signal-card p {
    font-size: 14px;
    line-height: 1.7;
  }

  .auth-toggle {
    grid-template-columns: 1fr;
  }

  .workspace-trade-actions {
    position: absolute;
    left: 6px;
    top: 4px;
    padding: 4px;
  }

  .workspace-trade-actions .btn {
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 12px;
  }

  /* Bottom sheet is already full-width at this breakpoint */
  .sidebar-tab-btn {
    min-width: max-content;
  }

  .workspace-user-dock {
    gap: 8px;
    padding: 5px 8px;
  }

  .workspace-user-caption {
    font-size: 8px;
  }

  .workspace-trade-actions .btn {
    padding: 4px 8px;
    font-size: 9px;
    gap: 2px;
  }
}

@media (max-width: 400px) {
  .landing-copy h1 {
    font-size: 2rem;
  }

  .hero-shot-wide {
    min-height: 300px;
  }

  .hero-signal-card strong,
  .section-heading h2 {
    font-size: 1.8rem;
  }

  .workspace-chart-column {
    min-height: 0;
  }

  .workspace-analytics-toggle,
  .workspace-user-dock-floating,
  .workspace-feedback-stack {
    left: 8px;
    right: 8px;
  }

  .workspace-user-dock-floating {
    bottom: 8px;
    padding: 4px;
    background: rgba(10, 15, 22, 0.9);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .workspace-feedback-stack {
    bottom: 56px;
  }

  .workspace-analytics-toggle {
    bottom: 52px;
  }
}

/* ─── Educational content section ─── */
.landing-edu-section {
  max-width: 820px;
  margin-inline: auto;
}

.edu-body {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edu-body p {
  font-size: clamp(0.93rem, 1.6vw, 1.05rem);
  line-height: 1.85;
  color: var(--text-2);
}

.edu-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-1);
  margin-top: 8px;
}

.edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.edu-list li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}

.edu-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.edu-list strong {
  color: var(--text-1);
}

.edu-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edu-faq details {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
}

.edu-faq details[open] {
  background: rgba(255,255,255,0.04);
}

.edu-faq summary {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edu-faq summary::-webkit-details-marker { display: none; }

.edu-faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.edu-faq details[open] summary::after {
  transform: rotate(45deg);
}

.edu-faq details p {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-2);
}

/* ─── Cookie consent banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: linear-gradient(180deg, rgba(15, 22, 33, 0.98) 0%, rgba(8, 13, 20, 0.99) 100%);
  border-top: 1px solid rgba(0, 212, 170, 0.25);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease forwards;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 4vw, 32px);
}

.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
}

.cookie-banner-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 4px;
}

.cookie-banner-body {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
}

.cookie-inline-link {
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 170, 0.4);
}

.cookie-inline-link:hover {
  text-decoration-color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-accept-btn {
  padding: 10px 20px;
  font-size: 12px;
  border-radius: 999px;
}

.cookie-decline-btn {
  padding: 10px 20px;
  font-size: 12px;
  border-radius: 999px;
  color: var(--text-2);
}

@media (max-width: 560px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ─── Footer ─── */
/* ─── About / contact section ─── */
.landing-about-section {
  max-width: 820px;
  margin-inline: auto;
}

.about-contact-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.about-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.about-contact-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.about-contact-value {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

.about-contact-value:hover {
  text-decoration: underline;
}

.landing-footer {
  margin-top: 48px;
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.landing-footer-copy {
  color: var(--text-3);
  font-size: 12px;
}

.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease;
  text-decoration: none;
}

.footer-link-btn:hover {
  color: var(--accent);
  background: rgba(0, 212, 170, 0.1);
}

.footer-divider {
  color: var(--text-3);
}

.footer-contact {
  color: var(--text-2);
  font-size: 12px;
}

.landing-footer-disclaimer {
  color: var(--text-3);
  font-size: 11px;
  max-width: 60ch;
  text-align: center;
  line-height: 1.6;
  margin-top: 8px;
}
