/* ==========================================================================
   INVOSHIELD TREASURY — DESIGN SYSTEM & INSTITUTIONAL GLOW STYLESHEET
   Phase 1 of 3: Tokens, Base, Typography, Buttons, Navbar, Timeline & Hero
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --navy-950: #090e1a;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --danger-600: #dc2626;
  --danger-50: #fef2f2;
  --warning-600: #d97706;
  --warning-50: #fffbeb;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-emerald: 0 14px 36px -10px rgba(16, 185, 129, 0.22), 0 0 0 1.5px rgba(16, 185, 129, 0.42);
  --shadow-btn: 0 8px 22px -4px rgba(5, 150, 105, 0.42);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--navy-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--slate-600);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography & Utility Helpers */
.mono {
  font-family: var(--font-mono);
}

.mono-xs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.mono-lg {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

.mono-xl {
  font-family: var(--font-mono);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.text-emerald {
  color: var(--emerald-600);
}

.text-emerald-glow {
  color: var(--emerald-600);
  text-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
}

.text-danger {
  color: var(--danger-600);
}

.text-warning {
  color: var(--warning-600);
}

.text-navy {
  color: var(--navy-900);
}

/* Badges & Pills */
.badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-50);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-700);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-emerald-sm {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-500);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.mono-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--navy-900);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.15rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--slate-200);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--slate-700);
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

/* Signature Emerald Glow Card */
.glow-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  box-shadow: var(--shadow-emerald);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
}

.btn-glow {
  box-shadow: var(--shadow-btn);
}

.btn-glow:hover {
  box-shadow: 0 12px 28px -4px rgba(5, 150, 105, 0.55);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--slate-300);
  color: var(--navy-900);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  background: var(--slate-100);
}

.btn-lg {
  padding: 0.9rem 1.45rem;
  font-size: 0.98rem;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* Top Institutional Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.42rem;
  border-radius: 5px;
  background: var(--slate-200);
  color: var(--slate-700);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--emerald-600);
}

/* Master Rollout Timeline Ribbon */
.timeline-ribbon {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  padding: 0.95rem 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  opacity: 0.68;
}

.timeline-step.active {
  opacity: 1;
}

.step-dot {
  width: 11px;
  height: 11px;
  margin-top: 0.32rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--slate-300);
}

.timeline-step.active .step-dot {
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-step strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
}

.timeline-step span {
  display: block;
  font-size: 0.74rem;
  color: var(--slate-500);
}

/* Hero Section + Live Allocation Card */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 0 4.5rem;
}

.hero-glow-orb {
  position: absolute;
  top: -140px;
  right: 8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--slate-600);
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.65rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-700);
}

.trust-check {
  color: var(--emerald-600);
  font-weight: 800;
}

/* Allocation Card */
.allocation-card {
  padding: 1.65rem;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.seat-counter-box {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
}

.seat-numbers {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.seat-remaining {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald-700);
}

.progress-track {
  height: 8px;
  background: var(--slate-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-600), var(--emerald-500));
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.locked-rate-panel {
  margin-bottom: 1.15rem;
}

.rate-main {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.rate-price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-600);
}

.rate-caption {
  font-size: 0.88rem;
  color: var(--slate-700);
}

.rate-guarantee {
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--slate-500);
  margin: 0;
}

.tranche-ladder {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
margin-bottom: 1.15rem;
}
.ladder-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.6rem 0.9rem;
font-size: 0.86rem;
color: var(--slate-600);
border-bottom: 1px solid var(--slate-200);
}
.ladder-row:last-child {
border-bottom: none;
}
.ladder-row.active {
background: var(--emerald-50);
color: var(--navy-900);
font-weight: 700;
}
/* ==========================================================================
   INVOSHIELD TREASURY — DESIGN SYSTEM & INSTITUTIONAL GLOW STYLESHEET
   Phase 2 of 3: Sections, Forms, Sliders, Risk Calculator & Jan 31 Screener
   ========================================================================== */

.section-block {
  padding: 4.75rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-header {
  max-width: 740px;
  margin-bottom: 2.5rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-700);
}

.section-header p {
  font-size: 1.02rem;
  margin-bottom: 0;
}

/* Form Elements */
.input-group {
  margin-bottom: 1.15rem;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.label-row label {
  margin-bottom: 0;
}

.mono-value {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--emerald-700);
  background: var(--emerald-50);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}

.form-control {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--navy-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control.mono,
.form-control.mono-xs {
  font-family: var(--font-mono);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-actions-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stacked-form .input-group {
  margin-bottom: 0;
}

.form-status-msg {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.25rem 0 0;
  min-height: 1.2em;
  color: var(--emerald-700);
}

/* Custom Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--slate-200);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--emerald-500);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--emerald-500);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
  cursor: pointer;
}

.range-hints {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

/* Module 1: 2027 IRS Audit & FX Leakage Calculator */
.calculator-shell {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 2.25rem;
  padding: 2.25rem;
}

.calc-inputs h3,
.calc-results h3 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--slate-200);
}

.metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  border: 1px solid transparent;
}

.metric-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-900);
}

.metric-figure {
  font-size: 1.55rem;
  white-space: nowrap;
}

.danger-glow {
  background: var(--danger-50);
  border-color: rgba(220, 38, 38, 0.28);
}

.warning-glow {
  background: var(--warning-50);
  border-color: rgba(217, 119, 6, 0.28);
}

.emerald-glow {
  background: var(--emerald-50);
  border-color: rgba(16, 185, 129, 0.4);
}

.eligibility-banner {
  background: var(--navy-900);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.eligibility-banner strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
}

.eligibility-banner span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--emerald-500);
  margin-top: 0.15rem;
}

.inline-capture-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Module 2: January 31 IRS Readiness Screener */
.screener-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  padding: 2.15rem;
}

.diagnostic-list {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  margin-bottom: 1rem;
}

.diag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.84rem;
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
}

.diag-row:last-child {
  border-bottom: none;
  background: var(--navy-900);
  color: #ffffff;
}

.diag-row:last-child .text-danger {
  color: #f87171;
}

.template-box {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: var(--slate-600);
}

.btn-copy {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--slate-300);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
}

.btn-copy:hover {
  border-color: var(--emerald-600);
  color: var(--emerald-700);
}

.email-preview {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--slate-700);
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.75rem;
  max-height: 215px;
  overflow-y: auto;
}

.screener-footer-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--emerald-50);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.86rem;
  color: var(--navy-900);
}
/* ==========================================================================
   INVOSHIELD TREASURY — DESIGN SYSTEM & INSTITUTIONAL GLOW STYLESHEET
   Phase 3 of 3: Benchmark & Pricing Tables, Growth Loops, Footer & Modals
   ========================================================================== */

/* Pricing Mode Toggle Pills */
.pricing-toggle-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.toggle-pill {
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.toggle-pill:hover {
  color: var(--navy-900);
}

.toggle-pill.active {
  background: var(--navy-900);
  color: #ffffff;
}

/* Tables (Benchmark & Hybrid Pricing Matrix) */
.table-wrapper {
  overflow-x: auto;
  padding: 0.35rem;
}

.benchmark-table,
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.benchmark-table th,
.pricing-table th {
  background: var(--navy-900);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.1rem;
  white-space: nowrap;
}

.benchmark-table th:first-child,
.pricing-table th:first-child {
  border-top-left-radius: 13px;
}

.benchmark-table th:last-child,
.pricing-table th:last-child {
  border-top-right-radius: 13px;
}

.benchmark-table td,
.pricing-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
}

.benchmark-table tbody tr:last-child td,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.benchmark-table td:first-child {
  font-weight: 700;
  color: var(--navy-900);
}

.benchmark-table th.col-invoshield {
  background: var(--emerald-600);
  color: #ffffff;
}

.benchmark-table td.col-invoshield {
  background: var(--emerald-50);
  color: var(--navy-900);
  border-left: 1px solid rgba(16, 185, 129, 0.25);
  border-right: 1px solid rgba(16, 185, 129, 0.25);
}

.pricing-table tr.row-featured td {
  background: var(--emerald-50);
  color: var(--navy-900);
  font-weight: 600;
}

/* Dual-Sided Growth Loops (CPA & Contractor Referral) */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.loop-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.loop-card h3 {
  font-size: 1.38rem;
  margin-bottom: 0.9rem;
}

.loop-sub {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--slate-700);
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--emerald-600);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.25;
}

.ref-output-box {
  margin-top: 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
}

.ref-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.ref-link-row {
  display: flex;
  gap: 0.55rem;
}

.ref-link-row input {
  background: #ffffff;
  color: var(--slate-700);
}

/* Institutional Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.footer-note {
  max-width: 640px;
  font-size: 0.82rem;
  color: var(--slate-400, #94a3b8);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--emerald-500);
}

/* Modals (VIP Allocation & Official Priority Certificate) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 14, 26, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 580px;
  padding: 1.85rem;
  position: relative;
  animation: modalPop 0.18s ease-out;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-top-bar.right-only {
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.modal-top-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-700);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}

.modal-sub {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.discount-pill {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-100);
  color: var(--emerald-700);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.discount-pill[hidden] {
  display: none;
}

/* Official Priority Certificate Modal */
.cert-dialog {
  max-width: 560px;
}

.cert-card-inner {
  text-align: center;
  padding: 1.35rem 1rem 0.75rem;
}

.cert-card-inner h2 {
  margin-top: 0.9rem;
  margin-bottom: 0.25rem;
  font-size: 1.85rem;
}

.cert-seat-line {
  color: var(--emerald-700);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.cert-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--slate-100);
  margin-bottom: 1.1rem;
}

.cert-meta-cell {
  padding: 0.85rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  border-right: 1px solid var(--slate-200);
}

.cert-meta-cell:nth-child(2n) {
  border-right: none;
}

.cert-meta-cell:nth-last-child(-n + 2) {
  border-bottom: none;
}

.meta-k {
  display: block;
  font-size: 0.76rem;
  color: var(--slate-500);
  margin-bottom: 0.2rem;
}

.cert-meta-cell strong {
  font-size: 0.88rem;
  color: var(--navy-900);
}

.cert-footnote {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 1.15rem;
}

.cert-actions-row {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 0.75rem;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .timeline-grid,
  .hero-grid,
  .calculator-shell,
  .screener-grid,
  .dual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-row-2,
  .form-actions-2,
  .cert-meta-grid,
  .cert-actions-row {
    grid-template-columns: 1fr;
  }

  .calculator-shell,
  .screener-grid,
  .loop-card,
  .modal-dialog {
    padding: 1.35rem;
  }
}
