/* ── Welcome / Landing Page ───────────────────── */

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

:root {
  color-scheme: dark;
  --bg:        #0f1117;
  --surface:   #1a1d2e;
  --surface2:  #21253a;
  --border:    rgba(255,255,255,0.08);
  --text:      #e4e6f0;
  --text-dim:  #8b8fa3;
  --blue:      #4f8cff;
  --blue-glow: rgba(79,140,255,0.18);
  --green:     #22c55e;
  --green-glow:rgba(34,197,94,0.15);
  --yellow:    #ffd04b;
  --red:       #ef4444;
  --stage2:    #22c55e;
  --nav-bg:    rgba(15,17,23,0.85);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg:        #f4f6fb;
  --surface:   #ffffff;
  --surface2:  #e8ecf5;
  --border:    rgba(0,0,0,0.2);
  --text:      #11131a;
  --text-dim:  #5a6170;
  --blue:      #2563eb;
  --blue-glow: rgba(37,99,235,0.12);
  --green:     #0d8f6e;
  --green-glow:rgba(13,143,110,0.12);
  --yellow:    #b45309;
  --red:       #b91c1c;
  --stage2:    #0d8f6e;
  --nav-bg:    rgba(255,255,255,0.9);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ──────────────────────────────────────── */
.wl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.wl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.wl-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.wl-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── BUTTONS ──────────────────────────────────── */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn-google:hover {
  background: #3b7af5;
  box-shadow: 0 0 24px rgba(79,140,255,0.4);
  transform: translateY(-1px);
}
.btn-google-xl {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.btn-outline:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
html[data-theme="light"] .btn-outline:hover { border-color: rgba(0,0,0,0.18); }

/* ── HERO ─────────────────────────────────────── */
.wl-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-copy {
  text-align: left;
}

.hero-glow {
  position: absolute;
  top: 10%; left: 20%;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(79,140,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-green {
  top: 50%; left: 55%;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(34,197,94,0.07) 0%, transparent 70%);
}
.hero-glow-purple {
  top: 20%; left: 60%;
  width: 400px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.06) 0%, transparent 70%);
}

/* ── HERO MOCK CARD ───────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(79,140,255,0.1);
  position: relative;
  z-index: 2;
}

.mock-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mock-stock-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mock-ticker {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.mock-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
}

.mock-change.positive {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.mock-stage-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.s2-badge {
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.25);
}

.mock-chart-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 12px 6px;
  margin-bottom: 14px;
  overflow: hidden;
}

.mock-sparkline {
  width: 100%;
  height: 60px;
  display: block;
}

.mock-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.mock-bb-label {
  font-size: 10px;
  font-weight: 600;
}
.red-label { color: #ef4444; opacity: 0.7; }
.blue-label { color: #3b82f6; opacity: 0.7; }

.mock-analysis-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.mock-row-label {
  font-size: 12px;
  color: var(--text-dim);
}

.mock-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-buy   { background: rgba(79,140,255,0.15); color: var(--blue); }
.badge-green { background: rgba(34,197,94,0.15);  color: var(--green); }
.badge-blue  { background: rgba(79,140,255,0.15); color: var(--blue); }

.mock-outlook {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: rgba(79,140,255,0.06);
  border: 1px solid rgba(79,140,255,0.15);
  border-radius: 8px;
}

.mock-outlook-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.mock-outlook-text { font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }

/* Floating scanner badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  white-space: nowrap;
  z-index: 3;
}

.fb-1 { bottom: -16px; left: -20px; animation: floatA 4s ease-in-out infinite; }
.fb-2 { top: 20px; left: -30px;    animation: floatB 5s ease-in-out infinite; }
.fb-3 { bottom: 40px; right: -24px; animation: floatA 4.5s ease-in-out infinite 0.5s; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

.fb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fb-dot-1 { background: #8b8fa3; }
.fb-dot-2 { background: var(--green); box-shadow: 0 0 6px var(--green); }
.fb-dot-4 { background: var(--red); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,140,255,0.12);
  border: 1px solid rgba(79,140,255,0.25);
  color: var(--blue);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.wl-hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, #8b8fa3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-accent { -webkit-text-fill-color: var(--blue); }

html[data-theme="light"] .wl-hero h1 {
  background: linear-gradient(135deg, #11131a 28%, #5a6170 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.wl-hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 36px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ── SCANNER SECTION ──────────────────────────── */
.scanner-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.stage-mini-chart {
  width: 100%;
  height: 50px;
  display: block;
}

.stage-visual {
  border-radius: 10px;
  padding: 10px 12px 6px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.s1-visual { background: rgba(139,143,163,0.06); }
.s2-visual { background: rgba(34,197,94,0.06); }
.s3-visual { background: rgba(255,208,75,0.06); }
.s4-visual { background: rgba(239,68,68,0.06); }

.stage-block-featured {
  background: rgba(34,197,94,0.05) !important;
  border: 1px solid rgba(34,197,94,0.25) !important;
  border-radius: 14px;
}

/* ── AI ANALYSIS SECTION ──────────────────────── */
.ai-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}

.ai-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .ai-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

.ai-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.ai-card:hover {
  border-color: rgba(79,140,255,0.3);
  transform: translateY(-2px);
}

.ai-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ai-card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.ai-card-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── SECTION COMMON ───────────────────────────── */
section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ── FEATURES ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(79,140,255,0.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.icon-blue   { background: rgba(79,140,255,0.12); }
.icon-green  { background: rgba(34,197,94,0.12); }
.icon-yellow { background: rgba(255,208,75,0.12); }
.icon-purple { background: rgba(124,58,237,0.12); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── STAGE EXPLAINER ──────────────────────────── */
.stages-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stage-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  transition: transform 0.2s;
}
.stage-block:hover { transform: translateY(-2px); }
.stage-block.highlighted {
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.3);
}

.stage-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.s1 { color: #8b8fa3; }
.s2 { color: var(--green); }
.s3 { color: var(--yellow); }
.s4 { color: var(--red); }

.stage-block h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.stage-block p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.stage-badge-we {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.badge-skip   { background: rgba(139,143,163,0.15); color: #8b8fa3; }
.badge-trade  { background: rgba(34,197,94,0.15);   color: var(--green); }
.badge-exit   { background: rgba(255,208,75,0.15);  color: var(--yellow); }
.badge-avoid  { background: rgba(239,68,68,0.15);   color: var(--red); }

/* ── ABOUT ────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy .wl-hero p { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-visual { justify-content: center; }
  .floating-badge { display: none; }
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .stages-grid { grid-template-columns: 1fr 1fr; }
  .wl-nav { padding: 0 20px; }
  .wl-hero { padding: 100px 20px 60px; }
}

.about-text p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.about-stat-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── PRICING ──────────────────────────────────── */
.pricing-section {
  padding-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 0;
}

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { transform: translateY(-3px); }

.pricing-card--featured {
  border-color: rgba(79,140,255,0.4);
  background: linear-gradient(160deg, rgba(79,140,255,0.07) 0%, var(--surface) 60%);
  box-shadow: 0 0 40px rgba(79,140,255,0.08);
}

.pricing-card--ai {
  border-color: rgba(34,197,94,0.3);
  background: linear-gradient(160deg, rgba(34,197,94,0.05) 0%, var(--surface) 60%);
}

.pricing-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pricing-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pricing-icon {
  font-size: 24px;
}

.pricing-plan {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 12px;
}

.pricing-from {
  font-size: 14px;
  color: var(--text-dim);
  margin-right: 2px;
}

.pricing-currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dim);
  align-self: flex-start;
  margin-top: 6px;
}

.pricing-price {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text);
}

.pricing-period {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 2px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

/* AI rate breakdown */
.ai-rate-card {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.ai-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
}
.ai-rate-row + .ai-rate-row {
  border-top: 1px solid rgba(34,197,94,0.1);
}

.ai-rate-label { color: var(--text-dim); }
.ai-rate-val { font-weight: 700; color: var(--text); }
.ai-rate-highlight { color: var(--green); }

/* Feature list */
.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.pf-check {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.pf-check--ai { color: var(--green); }

/* CTA buttons */
.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  margin-bottom: 12px;
}

.pricing-cta--primary {
  background: var(--blue);
  color: #fff;
}
.pricing-cta--primary:hover {
  background: #3b7af5;
  box-shadow: 0 0 24px rgba(79,140,255,0.4);
  transform: translateY(-1px);
}

.pricing-cta--secondary {
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
}
.pricing-cta--secondary:hover {
  background: rgba(34,197,94,0.2);
  transform: translateY(-1px);
}

.pricing-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Value callout */
.pricing-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,208,75,0.06);
  border: 1px solid rgba(255,208,75,0.18);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

.pricing-callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.pricing-callout-text strong { color: var(--text); }

/* Larger btn-outline variant for hero */
.btn-outline-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

/* ── CTA FOOTER ───────────────────────────────── */
.wl-cta {
  text-align: center;
  padding: 80px 24px 100px;
  position: relative;
}
.wl-cta-card {
  background: linear-gradient(135deg, rgba(79,140,255,0.08), rgba(34,197,94,0.06));
  border: 1px solid rgba(79,140,255,0.2);
  border-radius: 24px;
  padding: 64px 40px;
  max-width: 680px;
  margin: 0 auto;
}
.wl-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.wl-cta p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ── FOOTER BAR ───────────────────────────────── */
.wl-footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 13px;
}
.wl-footer a { color: var(--text-dim); text-decoration: none; }
.wl-footer a:hover { color: var(--text); }

/* Theme toggle (welcome does not load style.css) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--blue);
  background: var(--surface);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.theme-toggle-svg {
  width: 18px;
  height: 18px;
  display: block;
}
.theme-toggle-sun { display: none; }
.theme-toggle-moon { display: block; }
html[data-theme="light"] .theme-toggle-sun { display: block; }
html[data-theme="light"] .theme-toggle-moon { display: none; }
