:root {
  --bg: #080c18;
  --surface: #10162a;
  --surface-2: #181e36;
  --surface-3: #1e2745;
  --ink: #edf2f7;
  --muted: #8896b0;
  --muted-2: #65708a;
  --line: #1e2745;
  --line-strong: #2d3a5e;
  --gold: #F59E0B;
  --gold-light: #FBBF24;
  --gold-gradient: linear-gradient(135deg, #F59E0B, #F97316);
  --gold-soft: rgba(245, 158, 11, 0.12);
  --gold-soft-2: rgba(245, 158, 11, 0.22);
  --gold-glow: 0 0 24px rgba(245, 158, 11, 0.1);
  --accent: #F59E0B;
  --accent-2: #F97316;
  --accent-dim: rgba(245, 158, 11, 0.08);
  --profit: #10b981;
  --profit-dim: rgba(16, 185, 129, 0.08);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.08);
  --warning: #F59E0B;
  --warning-dim: rgba(245, 158, 11, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --glass: rgba(16, 22, 42, 0.85);
  --glass-edge: rgba(30, 39, 69, 0.3);
  --glow-accent: rgba(245, 158, 11, 0.1);
  --glow-green: rgba(16, 185, 129, 0.1);
  --glow-danger: rgba(239, 68, 68, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes text-reveal {
  from { opacity: 0; transform: translateY(16px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}

@keyframes ambient-shift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, 1%) rotate(3deg); }
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25); }
  50% { box-shadow: 0 4px 28px rgba(245, 158, 11, 0.45); }
}

/* ── Reset & Base ──────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

::selection { background: var(--gold); color: white; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4, p { margin-top: 0; }
p { color: var(--muted); line-height: 1.7; }

h1 {
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--ink) 60%, var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-weight: 850;
}

h3 { font-weight: 850; letter-spacing: -0.01em; font-size: 19px; margin-bottom: 8px; }
h4 { font-size: 15px; margin-bottom: 6px; }

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Custom Scrollbar ────────────────────────── */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Buttons ──────────────────────────── */

button {
  background: var(--gold-gradient);
  border: 0;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  font-weight: 850;
  font-size: 14px;
  min-height: 44px;
  padding: 0 22px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

button:active { transform: translateY(0); }

button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
}

.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 100%;
}

.secondary:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: none;
  color: var(--gold);
}

.ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  min-height: 36px;
  padding: 0 12px;
}

.ghost:hover { color: var(--ink); background: var(--surface-3); box-shadow: none; }

.icon-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--muted);
  font-size: 12px;
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icon-button:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
  box-shadow: 0 0 14px var(--glow-danger);
  transform: none;
}

.danger-action {
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--danger);
  background: transparent;
}

.danger-action:hover {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: var(--danger-dim);
  box-shadow: 0 0 20px var(--glow-danger) !important;
}

/* ── Header / Topbar ──────────────────────────── */

.site-header {
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.market-rail {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 16px;
  min-height: 32px;
  padding: 0 6vw;
}

.market-rail span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-rail a {
  border-radius: var(--radius-xs);
  color: var(--muted);
  padding: 4px 8px;
  transition: color 160ms ease, background 160ms ease;
}

.market-rail a:hover {
  color: var(--ink);
  background: var(--gold-soft);
}

.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 6vw;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.brand span {
  align-items: center;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  color: white;
  display: inline-flex;
  font-size: 16px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
  box-shadow: var(--gold-glow);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar nav a {
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  transition: color 160ms ease, background 160ms ease;
  white-space: nowrap;
  position: relative;
}

.topbar nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.topbar nav a.active {
  color: var(--gold);
}

.topbar nav a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 999px;
}

.nav-cta {
  background: var(--gold-gradient) !important;
  color: white !important;
  font-weight: 850 !important;
  font-size: 13px !important;
  padding: 7px 18px !important;
  margin-left: 6px;
  border-radius: 999px !important;
  box-shadow: var(--gold-glow);
}

.nav-cta:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  gap: 4px;
  height: 38px;
  padding: 0 10px;
  place-content: center;
  width: 40px;
  color: var(--ink);
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ── Main Layout ──────────────────────────── */

main {
  padding: 24px 6vw 60px;
  animation: page-fade-in 0.5s ease;
}

/* ── Section Scroll Reveal ───────────────────── */

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ──────────────────────────── */

.hero {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  padding: 40px 0 48px;
  margin: 0 auto 32px;
  max-width: 1220px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 40%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
  animation: ambient-shift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-copy {
  align-self: center;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 4.5vw, 56px);
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  line-height: 1.7;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.signal-row a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 8px 12px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.signal-row a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-weight: 850;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--gold-gradient);
  border: 0;
  color: white;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.hero-actions .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.hero-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-weight: 850;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-actions .btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── Time Card ──────────────────────────── */

.time-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  align-self: start;
  position: relative;
  overflow: hidden;
}

.time-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.6;
}

.time-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.time-card-header span {
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.time-display {
  font-size: 36px;
  font-weight: 950;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}

.timezone-label {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
}

.session-badges {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.session-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.session-badge:last-child { border-bottom: 0; }

.session-badge .badge-label {
  color: var(--muted);
  font-size: 12px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.badge-dot.open { background: var(--profit); box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.badge-dot.closed { background: var(--muted-2); }
.badge-dot.overlap { background: var(--gold); box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }

.badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.badge-status.open { color: var(--profit); }
.badge-status.closed { color: var(--muted-2); }
.badge-status.overlap { color: var(--gold); }

.next-session {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.next-session strong {
  color: var(--gold);
  font-weight: 950;
}

/* ── Panel ──────────────────────────── */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 28px auto;
  max-width: 1220px;
  padding: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover { border-color: var(--line-strong); }

.section-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-head h2 { margin: 0; }

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input, select, textarea {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
  min-height: 44px;
  outline: 0;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:hover, select:hover, textarea:hover {
  border-color: var(--line-strong);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

textarea { resize: vertical; min-height: 80px; }

::placeholder { color: var(--muted-2); opacity: 0.6; }

/* ── Layout Grids ──────────────────────────── */

.session-grid, .stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.session-card, .stat-card, .trade-row, .summary-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.session-card:hover, .stat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.session-card {
  display: grid;
  gap: 8px;
  min-height: 160px;
  animation: scaleIn 0.3s ease;
  position: relative;
  overflow: hidden;
}

.session-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), transparent);
  border-radius: 0 2px 2px 0;
}

.session-card.active {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.session-card.active::before { background: linear-gradient(180deg, var(--gold-light), var(--gold)); }

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  padding: 5px 10px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.active { background: var(--profit-dim); color: var(--profit); }
.status-pill.closed { background: var(--surface-3); color: var(--muted); }

.insight {
  background: var(--gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  margin-top: 12px;
  padding: 14px 18px;
  line-height: 1.5;
}

.split {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  margin: 0 auto;
  max-width: 1220px;
}

.split .panel { margin: 28px 0; max-width: none; }

.two-col { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.summary-list, .trade-list { display: grid; gap: 8px; }

.summary-item span, .stat-card span, .trade-row span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trade-row { display: grid; gap: 8px; }
.trade-meta { color: var(--muted); font-size: 13px; font-weight: 800; }
.profit { color: var(--profit); }
.loss { color: var(--danger); }
.stat-card strong { display: block; font-size: 28px; line-height: 1.1; }

/* ── Session Info Cards (Homepage) ───────────── */

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

.session-info-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.session-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.session-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--line-strong);
}

.session-info-card.sydney::before { background: linear-gradient(90deg, var(--gold), #FDE68A); }
.session-info-card.asian::before { background: linear-gradient(90deg, #A78BFA, #C4B5FD); }
.session-info-card.london::before { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.session-info-card.newyork::before { background: linear-gradient(90deg, var(--profit), #34D399); }

.session-info-card h3 {
  font-size: 16px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.session-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.session-info-row:last-child { border-bottom: 0; }

.session-info-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.session-info-value {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
}

.volatility-high { color: var(--danger); }
.volatility-medium { color: var(--gold); }
.volatility-low { color: var(--muted-2); }

.session-card-note {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--surface-3);
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Professional Tools Cards (Homepage) ──────── */

.tools-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.tools-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tools-card::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold), var(--gold-light));
  background-size: 200% 100%;
  content: "";
  height: 3px;
  inset: 0 0 auto;
  opacity: 0.7;
  position: absolute;
  animation: shimmer 3s ease-in-out infinite;
}

.tools-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gold-glow), 0 8px 30px rgba(0, 0, 0, 0.25);
  border-color: var(--gold-soft-2);
}

.tools-card .tool-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  font-size: 18px;
}

.tools-card h3 {
  font-size: 15px;
  margin: 0;
}

.tools-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
}

.tools-card .link-arrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ── Dashboard Preview (Homepage) ───────────── */

.dashboard-preview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, 1fr);
}

.metric-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  display: grid;
  gap: 6px;
  transition: all 0.25s ease;
}

.metric-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.metric-card .metric-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-card .metric-value {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 950;
  line-height: 1.1;
}

.metric-card .metric-value.positive { color: var(--profit); }
.metric-card .metric-value.accent { color: var(--gold); }
.metric-card .metric-value.warning { color: var(--gold-light); }
.metric-card .metric-value.neutral { color: var(--ink); }

/* ── Trust Section (Homepage) ───────────────── */

.trust-section .trust-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 24px;
}

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

.trust-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 10px;
}

.trust-card .trust-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger-dim);
  border-radius: 50%;
  font-size: 16px;
}

.trust-card strong {
  font-size: 14px;
}

.trust-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

/* ── Journal Actions ──────────────────────────── */

.journal-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-row-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.session-card small { color: var(--muted); line-height: 1.45; display: block; }

.form-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

.verification-box, .account-stack, .account-card { display: grid; gap: 12px; }

.account-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.account-card span, .news-card p { color: var(--muted); }
.account-card p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.5; }

/* ── News ──────────────────────────── */

.news-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  transition: all 0.25s ease;
}

.news-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.news-card h3, .news-card p { margin: 0; }

.impact {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
  width: fit-content;
  text-transform: uppercase;
}

.impact.high { background: var(--danger-dim); color: var(--danger); }
.impact.medium { background: var(--gold-soft); color: var(--gold); }

form.panel, .panel form { display: grid; gap: 12px; }
.panel form h2, form.panel h2 { margin-bottom: 0; }

/* ── Tax Calculator ──────────────────────────── */

.tax-calc-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(340px, 1fr) 1fr;
}

.tax-form.panel, #taxForm.panel { margin: 0; max-width: none; }

.tax-result-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.tax-result-highlight {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.tax-result-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.tax-result-card span { color: var(--muted); display: block; font-size: 12px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.tax-result-card.summary strong { font-size: 24px; }
.tax-result-card.highlight-card strong { font-size: 30px; display: block; }

.tax-result-card.highlight-card.accent {
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--gold-soft);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.1);
}

.tax-result-card.highlight-card.accent strong { color: var(--gold); }
.tax-result-divider { border-top: 1px solid var(--line); margin: 16px 0; }

.tax-notes {
  background: var(--gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 10px;
  padding: 14px 18px;
}

.tax-notes.warning {
  background: var(--danger-dim);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.tax-disclaimer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 18px;
  padding-top: 14px;
}

/* ── Tools ──────────────────────────── */

.tools-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.tool-tab {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 14px;
  transition: all 0.2s ease;
}

.tool-tab.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.1);
}

.tool-tab:hover { border-color: var(--gold); color: var(--ink); }

.tool-panel {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 1fr) 1fr;
}

.tool-form { display: grid; gap: 12px; }

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

.tool-result-grid.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tool-stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.tool-stat span { color: var(--muted); display: block; font-size: 12px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.tool-stat strong { display: block; font-size: 26px; }

.tool-error {
  background: var(--danger-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  padding: 14px 18px;
}

.tool-note {
  background: var(--gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  margin: 10px 0 0;
  padding: 14px 18px;
}

.fib-table { display: grid; gap: 4px; }

.fib-row {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.fib-row.fib-golden {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.fib-label { color: var(--muted); font-weight: 800; font-size: 13px; }
.fib-price { font-size: 17px; font-weight: 950; }
.rr-highlight.good strong { color: var(--profit); }
.rr-highlight.ok strong { color: var(--warning); }
.rr-highlight.bad strong { color: var(--danger); }
.pivot-pp strong { color: var(--gold); font-size: 32px; }
.pivot-r3 strong { color: var(--profit); }
.pivot-r2 strong { color: var(--profit); }
.pivot-r1 strong { color: var(--profit); }
.pivot-s1 strong { color: var(--danger); }
.pivot-s2 strong { color: var(--danger); }
.pivot-s3 strong { color: var(--danger); }

/* ── Premium / Paywall ──────────────────────────── */

.premium-lock { align-items: center; display: flex; justify-content: center; min-height: 280px; position: relative; }

.premium-lock-content {
  background: var(--surface-2);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  max-width: 400px;
}

.premium-lock-icon { font-size: 40px; }
.premium-lock-content h3 { font-size: 22px; margin: 12px 0 8px; }
.premium-lock-content p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }

.premium-lock-cta {
  background: var(--gold-gradient);
  border: 0;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.premium-lock-cta:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.premium-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 1fr) minmax(240px, 0.8fr);
}

.premium-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
  transition: all 0.3s ease;
}

.premium-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.1);
}

.premium-badge {
  background: var(--gold-soft);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 12px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.premium-card h3 { font-size: 22px; margin: 0; }
.premium-features { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.premium-features li { color: var(--muted); font-size: 14px; font-weight: 800; padding-left: 20px; position: relative; line-height: 1.4; }
.premium-features li::before { color: var(--gold); content: "✓"; left: 0; position: absolute; font-weight: 950; }
.premium-price { border-top: 1px solid var(--line); padding-top: 16px; }
.premium-price strong { display: block; font-size: 38px; }
.premium-price span { color: var(--muted); font-size: 13px; font-weight: 800; }

#premiumBuy {
  background: var(--gold-gradient);
  border: 0;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  font-size: 17px;
  font-weight: 850;
  min-height: 52px;
  padding: 0 24px;
  width: 100%;
  transition: all 0.2s ease;
}

#premiumBuy:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

#premiumBuy:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }

.premium-info { display: grid; gap: 12px; align-content: start; }

.premium-info-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.premium-info-card strong { display: block; font-size: 14px; margin-bottom: 10px; }
.premium-info-card ol { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.premium-info-card li, .premium-info-card p { color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.5; margin: 0; }
.premium-info-card code { background: var(--surface-3); border-radius: 4px; padding: 2px 6px; }

.premium-only { display: grid; gap: 12px; }

.link-button { background: none; border: none; color: var(--gold); cursor: pointer; font-weight: 800; padding: 0; min-height: auto; text-decoration: underline; font-size: 13px; }

.link-button:hover { opacity: 0.8; }

/* ── Equity Curve ──────────────────────────── */

.equity-section { margin-top: 18px; }

#equityChart {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: block;
  margin-top: 10px;
  max-width: 100%;
}

/* ── Screenshot Upload ──────────────────────────── */

.screenshot-upload {
  align-items: center;
  background: var(--surface-2);
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 80px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.screenshot-upload:hover, .screenshot-upload.drag-over {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.screenshot-upload span { color: var(--muted); font-size: 13px; font-weight: 800; }
#screenshotPreview { max-height: 120px; border-radius: 6px; max-width: 100%; }

/* ── File Upload Label ──────────────────────────── */

.file-upload {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  text-align: center;
  width: 100%;
  transition: all 0.2s ease;
  background: transparent;
}

.file-upload:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.1);
}

/* ── Economic Calendar ──────────────────────────── */

#calendarGrid { display: grid; gap: 6px; }

.calendar-event {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 12px;
  grid-template-columns: 90px 1fr 130px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.calendar-event:hover { border-color: var(--line-strong); }

.calendar-event.today {
  border-color: rgba(245, 158, 11, 0.35);
  background: var(--gold-soft);
}

.cal-left { display: grid; gap: 2px; }
.cal-date { font-size: 12px; font-weight: 800; color: var(--muted); }
.cal-time { font-size: 18px; font-weight: 950; }
.cal-center { display: grid; gap: 2px; }
.cal-event-name { font-weight: 800; font-size: 14px; }
.cal-currency { color: var(--muted); font-size: 12px; font-weight: 800; }
.cal-right { align-items: end; display: grid; gap: 2px; text-align: right; }
.cal-forecast, .cal-prev { font-size: 11px; color: var(--muted); font-weight: 800; }

#refreshCalendar { width: auto; min-height: 36px; padding: 0 14px; font-size: 13px; }

/* ── Modal / Weekly Review ───────────────────── */

.modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 100;
}

.modal:not([hidden]) {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 80vh;
  max-width: 560px;
  overflow-y: auto;
  padding: 24px;
  width: 100%;
  animation: scaleIn 0.25s ease;
}

.modal-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 16px; }
.modal-header h3 { margin: 0; font-size: 18px; }
.review-header { margin-bottom: 16px; }
.review-period { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.review-header h3 { margin: 4px 0 0; font-size: 20px; }

.review-stats-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}

.review-stats-grid article {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.review-stats-grid span { color: var(--muted); display: block; font-size: 11px; font-weight: 800; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.review-stats-grid strong { font-size: 20px; }
.review-section { margin-bottom: 14px; }
.review-section h4 { color: var(--muted); font-size: 12px; font-weight: 800; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }

.review-trade {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 10px 14px;
}

.review-trade span { font-size: 13px; font-weight: 800; }
.review-trade strong { font-size: 15px; }

/* ── Toasts ──────────────────────────── */

.toast-container {
  bottom: 24px;
  display: grid;
  gap: 8px;
  position: fixed;
  right: 24px;
  z-index: 200;
}

.toast {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
  min-width: 260px;
  padding: 14px 20px;
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-success { background: var(--gold-gradient); color: white; }
.toast-error { background: linear-gradient(135deg, var(--danger), #EF4444); color: white; }

/* ── Tier / Pro Badge ──────────────────────────── */

.pro-badge { font-size: 11px; }
.pro-badge.active { background: var(--profit-dim); color: var(--profit); }

.tier-notice {
  background: var(--danger-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 16px;
}

.tier-notice-content { display: grid; gap: 10px; text-align: center; }
.tier-notice-content h3 { color: var(--danger); margin: 0; font-size: 17px; }
.tier-notice-content p { color: var(--muted); font-size: 13px; font-weight: 800; margin: 0; line-height: 1.5; }
.tier-notice-content button { font-size: 13px; min-height: 38px; padding: 0 18px; }

/* ── Trade Screenshot ──────────────────────────── */

.trade-screenshot {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  cursor: zoom-in;
  margin-top: 8px;
  max-height: 200px;
  max-width: 100%;
}

/* ── ANALYTICS DASHBOARD ──────────────────────────── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-bar select, .filter-bar button {
  font-size: 12px;
  min-height: 36px;
  padding: 0 10px;
}

.filter-bar select { flex: 1; min-width: 110px; }

.kpi-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.kpi-card.profit::before { background: linear-gradient(90deg, var(--profit), transparent); }
.kpi-card.loss::before { background: linear-gradient(90deg, var(--danger), transparent); }

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--line-strong);
}

.kpi-card span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-card strong {
  display: block;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 950;
  line-height: 1.1;
}

.kpi-card.profit strong { color: var(--profit); }
.kpi-card.loss strong { color: var(--danger); }

.kpi-tip {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.kpi-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: 24px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  min-width: 180px;
  white-space: normal;
}

/* ── Charts ──────────────────────────── */

.charts-section { margin-bottom: 24px; }

.chart-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.chart-tab {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chart-tab.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.chart-tab:hover { border-color: var(--gold); color: var(--ink); }

.chart-panel canvas {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: block;
  max-width: 100%;
  width: 100% !important;
  height: auto !important;
}

/* ── Analysis ──────────────────────────── */

.analysis-section { margin-bottom: 24px; }

.analysis-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.analysis-tab {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.analysis-tab.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.analysis-tab:hover { border-color: var(--gold); color: var(--ink); }

.analysis-panel { display: grid; gap: 4px; }

.analysis-grid {
  display: grid;
  gap: 4px;
}

.analysis-row {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  display: grid;
  gap: 10px;
  grid-template-columns: 100px 1fr 90px 100px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.analysis-row:hover { border-color: var(--line-strong); }

.analysis-label { font-weight: 800; font-size: 13px; }
.analysis-bar {
  background: var(--surface-3);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.analysis-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.analysis-row.loss .analysis-bar span { background: linear-gradient(90deg, var(--danger), #FCA5A5); }
.analysis-value { font-weight: 950; font-size: 14px; text-align: right; }
.analysis-sub { color: var(--muted-2); font-size: 11px; font-weight: 800; text-align: right; }

.filtered-trade-row {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  display: grid;
  gap: 8px;
  grid-template-columns: 90px 70px 60px 80px 80px 70px 1fr;
  margin-bottom: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.ft-date { color: var(--muted); }
.ft-pair { font-weight: 950; }
.ft-dir { font-size: 12px; }
.ft-result { font-size: 12px; }
.ft-pnl { font-weight: 950; text-align: right; }
.ft-session { color: var(--muted); font-size: 12px; }
.ft-strat { color: var(--muted); font-size: 12px; }

.filtered-trades-section { margin-top: 18px; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

.skeleton-card {
  height: 70px;
  border-radius: var(--radius-sm);
}

.skeleton-chart {
  height: 200px;
  border-radius: var(--radius-sm);
}

/* ── STRATEGIES ──────────────────────────── */

.strat-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
}

.strat-form-row input { flex: 1; min-width: 180px; }
.strat-form-row select { min-width: 120px; }
.strat-form-row button { white-space: nowrap; }

.strat-list { display: grid; gap: 4px; margin-top: 12px; }

.strat-item {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
}

.strat-item strong { flex: 1; font-weight: 800; }

.strat-tag {
  background: var(--gold-soft);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── PROP FIRM ──────────────────────────── */

.propfirm-setup { max-width: 520px; }
.propfirm-setup h3 { margin: 0 0 6px; }
.propfirm-setup p { color: var(--muted); font-size: 13px; font-weight: 800; margin: 0 0 14px; line-height: 1.5; }
.propfirm-form { display: grid; gap: 12px; }
.propfirm-dashboard { display: grid; gap: 14px; }

.propfirm-header {
  align-items: center;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.propfirm-header h3 { margin: 0; font-size: 18px; }

.propfirm-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.propfirm-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: grid;
  gap: 6px;
  transition: all 0.25s ease;
}

.propfirm-card.warn {
  border-color: rgba(239, 68, 68, 0.3);
  background: var(--danger-dim);
}

.propfirm-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.propfirm-card strong {
  font-size: 24px;
  font-weight: 950;
}

.propfirm-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.propfirm-update {
  display: flex;
  gap: 8px;
}

.propfirm-update input { flex: 1; }

/* ── CHALLENGES ──────────────────────────── */

.challenge-create { max-width: 520px; }
.challenge-create h3 { margin: 0 0 10px; }
.challenge-form { display: grid; gap: 12px; }
.challenge-form button { width: fit-content; }
.challenge-list { display: grid; gap: 10px; margin-top: 16px; }

.challenge-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: grid;
  gap: 10px;
  transition: all 0.25s ease;
}

.challenge-card.completed {
  border-color: var(--profit);
  background: var(--profit-dim);
}

.challenge-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.challenge-top strong { font-size: 16px; }

.progress-bar {
  background: var(--surface-3);
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}

.progress-bar div {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 6px;
  height: 100%;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.challenge-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.challenge-deadline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* ── Empty State ──────────────────────────── */

.empty-state {
  text-align: center;
  padding: 40px 20px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.empty-state-icon {
  font-size: 36px;
  opacity: 0.3;
}

.empty-state h3 {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.empty-state p {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  line-height: 1.5;
  max-width: 360px;
}

/* ── FOOTER ──────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  margin: 40px 6vw 0;
  padding: 40px 0 24px;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 32px;
}

.footer-brand { color: var(--ink); font-weight: 900; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }

.footer-brand span {
  align-items: center;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  color: white;
  display: inline-flex;
  font-size: 14px;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.footer-brand p { color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.6; margin: 0; max-width: 320px; }

.footer-col h4 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom small, .footer-bottom span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.footer-disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-disclaimer p {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

/* ── Disclaimer Page ──────────────────────────── */

.disclaimer-page { max-width: 800px; margin: 0 auto; }
.disclaimer-page h1 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 8px; letter-spacing: -0.02em; }
.disclaimer-page .last-updated { color: var(--muted); font-size: 13px; font-weight: 800; margin: 0 0 28px; }
.disclaimer-page h2 { font-size: 18px; margin: 28px 0 12px; }
.disclaimer-page p { color: var(--muted); font-size: 14px; font-weight: 800; line-height: 1.7; margin: 0 0 16px; }

.disclaimer-page .disclaimer-highlight {
  background: var(--warning-dim);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--gold);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 20px;
}

.disclaimer-page .disclaimer-highlight p { color: var(--gold); margin: 0; }

/* ── Tool Detail Page ──────────────────────────── */

.tool-detail-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  max-width: 1220px;
  margin: 0 auto;
}

.tool-detail-content p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.tool-detail-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tool-detail-sidebar h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.tool-detail-sidebar a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.2s ease;
}

.tool-detail-sidebar a:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold-soft);
}

/* ── Blog ──────────────────────────── */

.blog-post { display: grid; gap: 0; }

.blog-post .section-head { margin-bottom: 8px; }

/* ── Responsive: 920px ──────────────────────── */

@media (max-width: 920px) {
  .hero, .split, .session-grid, .stats-grid { grid-template-columns: 1fr; }
  .topbar nav { display: none; flex-direction: column; width: 100%; gap: 6px; padding: 12px 0; }
  .topbar nav.open { display: flex; }
  .topbar { flex-wrap: wrap; }
  .topbar nav a { font-size: 14px; padding: 10px 14px; }
  .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
  .nav-toggle { display: flex; }
  .section-head { align-items: stretch; flex-direction: column; }
  .session-info-cards { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-preview { grid-template-columns: repeat(3, 1fr); }
  .trust-cards { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .tax-calc-layout { grid-template-columns: 1fr; }
  .tax-result-highlight { grid-template-columns: 1fr; }
  .tax-result-grid { grid-template-columns: 1fr; }
  .tool-panel, .premium-layout { grid-template-columns: 1fr; }
  .tool-result-grid { grid-template-columns: 1fr; }
  .tool-result-grid.thirds { grid-template-columns: repeat(2, 1fr); }
  .analysis-row { grid-template-columns: 80px 1fr 80px; }
  .analysis-sub { display: none; }
  .filtered-trade-row { grid-template-columns: 70px 60px 50px 60px 70px; }
  .ft-session, .ft-strat { display: none; }
  .strat-form-row { flex-direction: column; }
  .propfirm-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Responsive: 640px ──────────────────────── */

@media (max-width: 640px) {
  main, .topbar { padding-inline: 14px; }
  .site-header { padding-inline: 0; }
  .market-rail { padding-inline: 14px; overflow-x: auto; }
  .topbar { padding-top: 12px; padding-bottom: 12px; }
  .hero { grid-template-columns: 1fr; padding: 20px 0 32px; gap: 24px; }
  .hero > div, .time-card, .panel { padding: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; }
  .two-col { grid-template-columns: 1fr; }
  .session-info-cards { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .dashboard-preview { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-card { padding: 12px 14px; }
  .kpi-card strong { font-size: 18px; }
  .analysis-row { grid-template-columns: 70px 1fr 70px; font-size: 12px; padding: 8px 10px; }
  .filter-bar { flex-direction: column; }
  .filter-bar select { min-width: 100%; }
  .filtered-trade-row { grid-template-columns: 60px 50px 40px 50px 60px; font-size: 12px; padding: 6px 8px; }
  .propfirm-grid { grid-template-columns: 1fr; }
  .challenge-card { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Auth Pages (Forgot/Reset Password) */
.auth-panel {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  max-width: 440px;
  width: 100%;
}
.auth-card h2 {
  margin: 4px 0 8px;
}
.auth-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.auth-card label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.auth-card input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.auth-card input:focus {
  border-color: var(--gold);
}
.auth-card .btn-primary {
  width: 100%;
  margin-top: 8px;
}
.auth-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.5;
}
.auth-message.success {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.2);
}
.auth-message.error {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
}
.auth-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
}
.auth-footer-link a {
  color: var(--gold);
  text-decoration: none;
}
.auth-footer-link a:hover {
  text-decoration: underline;
}
.forgot-link {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 12px;
}
.forgot-link a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}
.forgot-link a:hover {
  color: var(--gold);
}

/* Economic Calendar */
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-nav span {
  min-width: 140px;
  text-align: center;
  font-weight: 600;
  color: var(--gold);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}
.filter-select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.filter-select:focus {
  outline: none;
  border-color: var(--gold);
}
.calendar-filters {
  display: flex;
  gap: 8px;
}
.calendar-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.impact-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.impact-dot.high { background: #ef4444; }
.impact-dot.medium { background: #f59e0b; }
.impact-dot.low { background: #22c55e; }
.calendar-loading, .calendar-error, .calendar-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.calendar-error { color: #ef4444; }
.calendar-table-header {
  display: grid;
  grid-template-columns: 70px 70px 1fr 80px 80px 80px 80px;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.calendar-row {
  display: grid;
  grid-template-columns: 70px 70px 1fr 80px 80px 80px 80px;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-items: center;
  transition: background 0.15s;
}
.calendar-row:hover { background: var(--surface-2); }
.calendar-row:last-child { border-bottom: none; }
.calendar-row.impact-high { border-left: 3px solid #ef4444; }
.calendar-row.impact-medium { border-left: 3px solid #f59e0b; }
.calendar-row.impact-low { border-left: 3px solid #22c55e; }
.currency-badge {
  display: inline-block;
  background: var(--surface-3);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
.impact-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.impact-pill.high { background: rgba(239,68,68,0.2); color: #ef4444; }
.impact-pill.medium { background: rgba(245,158,11,0.2); color: #f59e0b; }
.impact-pill.low { background: rgba(34,197,94,0.2); color: #22c55e; }
.col-time { font-variant-numeric: tabular-nums; }
.col-event { font-weight: 500; }
.col-actual, .col-forecast, .col-previous { font-variant-numeric: tabular-nums; color: var(--text-muted); }
@media (max-width: 768px) {
  .calendar-table-header, .calendar-row {
    grid-template-columns: 60px 60px 1fr 70px;
  }
  .col-actual, .col-forecast, .col-previous { display: none; }
}
