/* rebate.pages.dev — Institutional Execution & Rebate Simulator */
:root {
  --bg-dark: #070a12;
  --bg-card: rgba(14, 21, 37, 0.75);
  --bg-card-hover: rgba(20, 30, 52, 0.85);
  --border-color: #1e293b;
  --border-glow: rgba(0, 240, 118, 0.25);
  --accent-emerald: #00f076;
  --accent-cyan: #38bdf8;
  --accent-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --font-mono: 'JetBrains Mono', monospace;
  --font-heading: 'Space Grotesk', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Glow */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 118, 0.12) 0%, transparent 70%);
  top: -100px;
  left: 10%;
}
.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  top: 300px;
  right: -100px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 8px rgba(0, 240, 118, 0.5));
}
.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}
.brand-title-link {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-decoration: none;
}
.brand-title-link:hover {
  color: #ffffff;
  text-decoration: none;
}
.brand-sub-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
  text-decoration: none;
  letter-spacing: 0.2px;
  opacity: 0.9;
  transition: opacity 0.2s, text-decoration 0.2s;
}
.brand-sub-domain:hover {
  opacity: 1;
  text-decoration: underline;
}
.brand-badge {
  background: rgba(0, 240, 118, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 240, 118, 0.3);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.brand-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-dot {
  color: var(--accent-emerald);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent-emerald);
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

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

/* Hero */
.hero-section {
  padding: 64px 0 40px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
}

/* Terminal Grid */
.simulator-section {
  padding: 24px 0 64px;
}
.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .terminal-grid {
    grid-template-columns: 1fr;
  }
}

.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.controls-card {
  border-left: 3px solid var(--accent-emerald);
}
.output-card {
  border-left: 3px solid var(--accent-cyan);
}
.card-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}
.card-tag {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-top: 4px;
}

/* Controls */
.form-group {
  margin-bottom: 24px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}
.label-row label,
.form-group > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.val-badge {
  background: #152238;
  color: var(--accent-emerald);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  background: #1a2333;
  height: 8px;
  border-radius: 4px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-emerald);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-emerald);
}

.ratio-bar {
  display: flex;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 32px;
}
.passive-slice {
  background: rgba(0, 240, 118, 0.25);
  color: var(--accent-emerald);
  border-right: 1px solid rgba(0, 240, 118, 0.4);
  transition: width 0.2s;
}
.aggressive-slice {
  background: rgba(244, 63, 94, 0.25);
  color: var(--accent-rose);
  transition: width 0.2s;
}

.styled-select {
  width: 100%;
  background: #111a2e;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  margin-top: 8px;
}
.styled-select:focus {
  border-color: var(--accent-emerald);
}

/* Outputs */
.metric-highlight-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 240, 118, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.metric-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.metric-giant {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 800;
  margin: 8px 0;
}
.metric-giant.positive {
  color: var(--accent-emerald);
  text-shadow: 0 0 20px rgba(0, 240, 118, 0.3);
}
.metric-giant.negative {
  color: var(--accent-rose);
  text-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}
.metric-sub {
  font-size: 15px;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.stat-box {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}
.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.stat-value {
  font-size: 20px;
  font-weight: 700;
}
.text-emerald { color: var(--accent-emerald); }
.text-cyan { color: var(--accent-cyan); }
.text-rose { color: var(--accent-rose); }

.callout-card {
  display: flex;
  gap: 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
}
.callout-icon {
  font-size: 22px;
}

/* DMA Broker Partner Card */
.broker-partner-card {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(0, 240, 118, 0.1), rgba(14, 21, 37, 0.9));
  border: 1px solid rgba(0, 240, 118, 0.35);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 240, 118, 0.1);
}
.partner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.broker-pill {
  background: var(--accent-emerald);
  color: #070a12;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
}
.rebate-pass {
  font-size: 14px;
  color: var(--accent-emerald);
  font-weight: 700;
}
.broker-partner-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 8px;
  color: #fff;
}
.broker-partner-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.partner-cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.btn-dma-partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-emerald), #00c960);
  color: #070a12;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-dma-partner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 240, 118, 0.4);
}
.broker-subtext {
  font-size: 13px;
  color: #94a3b8;
}

/* Institutional Alpha Lead Capture */
.rebate-capture-section {
  padding: 20px 0 50px;
}
.rebate-capture-box {
  background: linear-gradient(135deg, #0e1525, #070a12);
  border: 1px solid rgba(0, 240, 118, 0.25);
  border-radius: 14px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 860px) {
  .rebate-capture-box {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}
.capture-text h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 10px 0;
}
.capture-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}
.form-row {
  display: flex;
  gap: 10px;
}
@media (max-width: 500px) {
  .form-row {
    flex-direction: column;
  }
}
.form-row input {
  flex: 1;
  background: #111a2e;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 16px;
  outline: none;
}
.form-row input:focus {
  border-color: var(--accent-emerald);
}
.btn-rebate-sub {
  background: var(--accent-emerald);
  color: #070a12;
  font-family: var(--font-mono);
  font-weight: 700;
  border: none;
  padding: 14px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-rebate-sub:hover {
  opacity: 0.9;
}
.note-sub {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 10px;
}

/* Venue Matrix Table */
.matrix-section {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border-color);
}
.section-heading {
  text-align: center;
  margin-bottom: 36px;
}
.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin: 10px 0 8px;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.table-container {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}
.venue-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 16px;
  text-align: left;
}
.venue-table th {
  background: #0d1424;
  padding: 16px 20px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.venue-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}
.venue-table tr:last-child td {
  border-bottom: none;
}
.badge-tag {
  display: inline-block;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-tag.standard { background: rgba(0, 240, 118, 0.1); color: var(--accent-emerald); }
.badge-tag.inverted { background: rgba(56, 189, 248, 0.1); color: var(--accent-cyan); }
.badge-tag.flat { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); }

/* Mechanics */
.mechanics-section {
  padding: 40px 0 80px;
  border-top: 1px solid var(--border-color);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 26px;
  position: relative;
}
.info-num {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-heading);
}
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--accent-cyan);
}
.info-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Rebate Execution Carousel */
.rebate-carousel-section {
  padding: 10px 0 40px;
}
.rebate-carousel-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.carousel-nav-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.rebate-tab-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  transition: all 0.2s;
  white-space: nowrap;
}
.rebate-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}
.rebate-tab-btn.active {
  background: rgba(0, 240, 118, 0.12);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}
.step-num {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}
.rebate-tab-btn.active .step-num {
  background: var(--accent-emerald);
  color: #070a12;
}
.tab-label {
  font-size: 15px;
  font-weight: 600;
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
  min-height: 200px;
}
.rebate-carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 768px) {
  .carousel-slide {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.terminal-mock {
  background: #090e18;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 22px;
  font-family: var(--font-mono);
}
.mock-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 15px;
}
.mock-line:last-child {
  border-bottom: none;
}
.venue-tier-chip {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.dma-tag {
  display: inline-block;
  background: rgba(0, 240, 118, 0.15);
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.terminal-mock h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
}
.mock-sub-p {
  font-size: 14px;
  color: var(--text-muted);
}

.slide-text h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin: 8px 0 12px;
}
.slide-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}
.step-tag {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--accent-emerald);
  font-weight: 700;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.btn-ctrl {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-ctrl:hover {
  background: var(--accent-emerald);
  color: #070a12;
  border-color: var(--accent-emerald);
}
.rebate-dots {
  display: flex;
  gap: 8px;
}
.rebate-dots .r-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}
.rebate-dots .r-dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--accent-emerald);
}

/* Comparison Routing Paradigm Table */
.comparison-section {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border-color);
}
.table-card {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
}
.comparison-table th {
  background: #0d1424;
  padding: 18px 22px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.comparison-table td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.check-good {
  color: var(--accent-emerald);
  font-weight: 700;
}
.cross-bad {
  color: var(--accent-rose);
  font-weight: 600;
}

/* FAQ Accordion */
.faq-section {
  padding: 40px 0 80px;
  border-top: 1px solid var(--border-color);
}
.faq-accordion {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: rgba(0, 240, 118, 0.4);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 26px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-icon {
  font-size: 22px;
  color: var(--accent-emerald);
  transition: transform 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 350px;
  padding-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: #04060a;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Senior-Friendly Article & Content Typography */
.article-page, article {
  font-size: 18px;
  line-height: 1.85;
  color: #e2e8f0;
}
article h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.25;
  margin-bottom: 18px;
}
article h2 {
  font-size: 28px;
  line-height: 1.35;
  margin-top: 36px;
  margin-bottom: 16px;
}
article h3 {
  font-size: 22px;
  line-height: 1.4;
  margin-top: 24px;
  margin-bottom: 12px;
}
article p {
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 20px;
}
article ul, article ol {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  padding-left: 28px;
}
article li {
  margin-bottom: 10px;
}
.article-meta {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.article-callout {
  padding: 22px 26px;
  font-size: 17px;
  line-height: 1.7;
  border-radius: 10px;
  margin: 28px 0;
}
.article-disclaimer {
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  padding: 18px 22px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #1e293b;
}

/* Calculator Info Indicator & Popup Modal System */
.calc-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 240, 118, 0.35);
  color: var(--accent-emerald);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
  user-select: none;
}
.calc-info-btn:hover,
.calc-info-btn:focus-visible {
  background: var(--accent-emerald);
  color: #070a12;
  border-color: var(--accent-emerald);
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(0, 240, 118, 0.6);
  outline: none;
}

.calc-info-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  visibility: hidden;
}
.calc-info-modal.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.calc-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.calc-info-dialog {
  position: relative;
  background: #0d1527;
  border: 1.5px solid rgba(0, 240, 118, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 240, 118, 0.15);
  width: 100%;
  max-width: 540px;
  padding: 28px 30px;
  z-index: 2;
  color: #f8fafc;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.calc-info-modal.active .calc-info-dialog {
  transform: scale(1) translateY(0);
}
.calc-info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.calc-info-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-emerald);
  background: rgba(0, 240, 118, 0.1);
  border: 1px solid rgba(0, 240, 118, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.calc-info-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}
.calc-info-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.calc-info-close:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #f43f5e;
}
.calc-info-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 1.65;
}
.calc-info-section-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 4px;
}
.calc-info-section p {
  color: #e2e8f0;
  font-size: 15.5px;
  line-height: 1.65;
}
.calc-info-target-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-emerald);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}
.calc-info-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.calc-info-hint {
  font-size: 13px;
  color: #94a3b8;
}
.calc-info-done-btn {
  background: var(--accent-emerald);
  color: #070a12;
  font-size: 15px;
  font-weight: 800;
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.calc-info-done-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
