:root {
  --fin-bg: #07090e;
  --fin-panel: #0e121a;
  --fin-card: #141924;
  --fin-border: #1f2638;
  --fin-border-hover: #323d57;
  --text-main: #f1f5f9;
  --text-dim: #94a3b8;
  --gold-glow: #eab308;
  --emerald-fin: #10b981;
  --blue-fin: #38bdf8;
}

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

body.luxury-dark {
  background-color: var(--fin-bg);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}

/* Nav */
.fin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(14, 18, 26, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fin-border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-icon {
  color: var(--gold-glow);
  font-size: 18px;
}
.brand-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.brand-sub {
  background: rgba(234, 179, 8, 0.15);
  color: var(--gold-glow);
  border: 1px solid rgba(234, 179, 8, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.header-rule {
  font-size: 12px;
  color: var(--text-dim);
}

/* Ad Placement */
.ad-placement {
  max-width: 900px;
  margin: 18px auto;
  text-align: center;
}
.ad-box {
  background: #0b0e14;
  border: 1px dashed #232c3f;
  border-radius: 8px;
  padding: 18px;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* Main */
.sim-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
}

.hero-center {
  text-align: center;
  margin-bottom: 32px;
}
.sim-headline {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, #cbd5e1, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.sim-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Layout */
.simulator-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* Left Panel: Sliders */
.controls-panel {
  background: var(--fin-panel);
  border: 1px solid var(--fin-border);
  border-radius: 20px;
  padding: 24px 20px;
}
.panel-heading {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 1px solid var(--fin-border);
  padding-bottom: 10px;
}

.slider-group {
  margin-bottom: 18px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.slider-header label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}
.slider-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-glow);
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: #1a2233;
  height: 6px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-glow);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
  cursor: pointer;
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

.slider-hint {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* Right Panel: Metrics & Chart */
.output-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-block {
  background: var(--fin-panel);
  border: 1px solid var(--fin-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.highlight-block {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(16, 185, 129, 0.08));
  border-color: rgba(234, 179, 8, 0.3);
}

.block-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.block-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.highlight-block .block-number {
  font-size: 34px;
  color: var(--gold-glow);
}
.text-accent {
  color: var(--emerald-fin);
}
.block-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Chart Card */
.chart-card {
  background: var(--fin-panel);
  border: 1px solid var(--fin-border);
  border-radius: 16px;
  padding: 18px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.chart-header h3 {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  color: #fff;
}
.chart-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-dim);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.gold { background: var(--gold-glow); box-shadow: 0 0 6px var(--gold-glow); }
.dot.grey { background: #64748b; }

canvas#growthCanvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #080a10;
}

/* Educational Section */
.fire-edu-section {
  border-top: 1px solid var(--fin-border);
  padding-top: 36px;
  margin-top: 40px;
}
.fire-edu-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  margin-bottom: 18px;
}
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.edu-card {
  background: var(--fin-panel);
  border: 1px solid var(--fin-border);
  border-radius: 14px;
  padding: 18px;
}
.edu-card h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}
.edu-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Footer */
.fin-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid var(--fin-border);
}

@media (max-width: 850px) {
  .simulator-layout { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .sim-headline { font-size: 30px; }
}
