:root {
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-input: rgba(15, 23, 42, 0.9);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.2);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-dim: rgba(245, 158, 11, 0.15);
  --accent-emerald-dim: rgba(16, 185, 129, 0.15);
  --accent-rose-dim: rgba(244, 63, 94, 0.15);
  --accent-cyan-dim: rgba(6, 182, 212, 0.15);
  
  --glow-cyan: rgba(6, 182, 212, 0.35);
  --glow-purple: rgba(168, 85, 247, 0.3);
  --glow-indigo: rgba(99, 102, 241, 0.35);
  --glow-emerald: rgba(16, 185, 129, 0.3);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --shadow-cyan: 0 0 25px var(--glow-cyan);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.2);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: inherit;
  min-width: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Header & Navigation provided by politicade-shell.css */

/* ==========================================================================
   Segmented Control for Dollar Valuation Mode (Real vs Nominal)
   ========================================================================== */
.dollar-mode-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dollar-mode-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.segmented-control {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
  user-select: none;
  backdrop-filter: blur(8px);
}

.btn-segmented {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn-segmented:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.btn-segmented.active {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px var(--glow-cyan);
}

.valuation-mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
}

.valuation-mode-card .segmented-control {
  width: 100%;
}

.valuation-mode-card .btn-segmented {
  flex: 1;
  justify-content: center;
}

/* ==========================================================================
   App Main Container
   ========================================================================== */
.app-container {
  max-width: 1440px;
  width: 100%;
  margin: 1.75rem auto 3.5rem;
  padding: 0 1.5rem;
  overflow-x: clip;
}

@media (max-width: 768px) {
  .app-container {
    padding: 0 1rem;
    margin: 1.25rem auto 2.5rem;
  }
}

/* ==========================================================================
   Top KPI Scorecards Row
   ========================================================================== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
  width: 100%;
}

@media (max-width: 540px) {
  .kpi-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.kpi-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.kpi-card.kpi-freedom {
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 70%), var(--bg-card);
  border-color: rgba(6, 182, 212, 0.3);
}

.kpi-card.kpi-freedom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
}

.kpi-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.kpi-subtext {
  font-size: 0.78rem;
  margin-top: 0.4rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kpi-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.badge-danger {
  background: var(--accent-rose-dim);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.badge-success {
  background: var(--accent-emerald-dim);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-warning {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Freedom Gauge in KPI */
.freedom-meter-container {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.freedom-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--accent-cyan) 0%, var(--accent-indigo) var(--score-pct, 0%), rgba(255, 255, 255, 0.08) var(--score-pct, 0%));
  padding: 5px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--glow-cyan);
}

.freedom-circle-inner {
  width: 100%;
  height: 100%;
  background: #080c14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Solvency Celebration & Social Media Sharing Banner
   ========================================================================== */
.solvency-celebration-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%), var(--bg-card);
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  animation: fadeIn 0.4s ease;
  backdrop-filter: blur(16px);
  width: 100%;
  max-width: 100%;
}

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

.celebration-content {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1;
  min-width: 260px;
}

.celebration-badge-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.celebration-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.celebration-title-row h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-emerald);
  letter-spacing: -0.01em;
}

.celebration-freedom-pill {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.celebration-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-social svg {
  flex-shrink: 0;
}

.btn-x {
  background: #000;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-x:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
}
.btn-facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
}

.btn-linkedin {
  background: #0a66c2;
  color: #fff;
}
.btn-linkedin:hover {
  background: #095196;
  transform: translateY(-2px);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.btn-instagram:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-copy:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.share-toast {
  width: 100%;
  font-size: 0.78rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .solvency-celebration-banner {
    padding: 1.15rem;
    gap: 1rem;
  }
  .celebration-badge-icon {
    font-size: 2rem;
  }
  .share-buttons-group {
    width: 100%;
  }
  .btn-social {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }
}

/* ==========================================================================
   Main Two-Column Layout
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 395px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1080px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Left Column: Control Panel
   ========================================================================== */
.controls-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1080px) {
  .controls-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .controls-panel {
    padding: 1rem 0.85rem;
  }
}

.controls-panel::-webkit-scrollbar {
  width: 6px;
}
.controls-panel::-webkit-scrollbar-thumb {
  background: var(--border-highlight);
  border-radius: 3px;
}

.panel-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.btn-reset-levers {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-reset-levers:hover {
  color: var(--accent-cyan);
}

/* Control Groups */
.control-group {
  margin-bottom: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: border-color 0.2s ease;
}

.control-group:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.control-group.group-bastiat {
  border-color: rgba(6, 182, 212, 0.35);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.06) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.group-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-title .badge-liberty {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.control-item {
  margin-bottom: 1.15rem;
}

.control-item:last-child {
  margin-bottom: 0;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.control-label-row label {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.control-value-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Sliders */
.slider-input {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  cursor: pointer;
  box-shadow: 0 0 12px var(--glow-cyan);
  border: 2px solid #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
}

.slider-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  cursor: pointer;
  box-shadow: 0 0 12px var(--glow-cyan);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

.control-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Slider Scale Ticks */
.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  padding: 0 2px;
  user-select: none;
}

/* Sub-containers for dependent sliders */
.slider-sub-container {
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-top: 0.65rem;
}

/* Toggle Checkbox Row */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.toggle-row:hover {
  border-color: rgba(6, 182, 212, 0.35);
}

.toggle-row label {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

/* Select Inputs */
.select-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.select-input:focus {
  border-color: var(--accent-cyan);
}

/* FRA Mode Switch Buttons */
.btn-fra-mode {
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
}

.btn-fra-mode:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.btn-fra-mode.active {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 14px var(--glow-cyan) !important;
}

/* ==========================================================================
   Right Column: Visualization & Analysis
   ========================================================================== */
.main-display {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Navigation Tabs */
.tabs-nav {
  display: flex;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  scrollbar-width: thin;
}

.tabs-nav::-webkit-scrollbar {
  height: 4px;
}
.tabs-nav::-webkit-scrollbar-thumb {
  background: var(--border-highlight);
  border-radius: 2px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--glow-cyan);
}

/* Tab Content Areas */
.tab-content {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tab-content.active {
  display: block;
}

/* Zero Beneficiaries Milestone Card in Tab 2 */
.zero-beneficiaries-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%), var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  transition: border-color 0.2s, transform 0.2s;
  width: 100%;
  max-width: 100%;
}

.zero-beneficiaries-banner:hover {
  border-color: rgba(6, 182, 212, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.zb-badge-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.zb-content {
  flex: 1;
  min-width: 0;
}

.zb-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.zb-title-row h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

.zb-content p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 640px) {
  .zero-beneficiaries-banner {
    padding: 1rem;
    gap: 0.75rem;
  }
  .zb-badge-icon {
    font-size: 1.8rem;
  }
}

/* Chart Cards */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.chart-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
  .chart-card {
    padding: 1rem 0.85rem;
  }
}

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

.chart-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.chart-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.chart-container-wrapper {
  position: relative;
  height: 380px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 640px) {
  .chart-container-wrapper {
    height: 270px;
  }
}

canvas {
  max-width: 100% !important;
}

/* Freedom Score Detailed Card */
.freedom-detail-card {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-cyan);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.freedom-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
}

@media (max-width: 480px) {
  .freedom-detail-card {
    padding: 1.15rem 0.85rem;
  }
}

.freedom-hero-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.freedom-hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(15, 23, 42, 0.9) 70%);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px var(--glow-cyan);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.6rem;
  min-width: 145px;
  text-align: center;
}

@media (max-width: 640px) {
  .freedom-hero-badge {
    width: 100%;
  }
}

.freedom-hero-number {
  font-size: 3.6rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #fff 20%, var(--accent-cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.freedom-hero-scale {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
  font-weight: 700;
}

.freedom-hero-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.freedom-hero-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 650px;
}

.bastiat-quote-callout {
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(15, 23, 42, 0.7);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 0.85rem;
  color: #e2e8f0;
}

/* Freedom Breakdown Grid */
.freedom-subscores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-color);
}

.subscore-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  transition: border-color 0.2s ease;
}

.subscore-item:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.subscore-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.subscore-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.subscore-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 0.45rem;
  overflow: hidden;
}

.subscore-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   Individual Seen vs Unseen Section
   ========================================================================== */
.individual-calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  margin-bottom: 1.75rem;
}

.individual-calc-header {
  margin-bottom: 1.25rem;
}

.individual-calc-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.individual-calc-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.individual-inputs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.input-field-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.text-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s;
}

.text-input:focus {
  border-color: var(--accent-cyan);
}

.individual-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .individual-results-grid {
    grid-template-columns: 1fr;
  }
}

.result-comparison-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.box-state {
  border-left: 4px solid var(--accent-rose);
}

.box-private {
  border-left: 4px solid var(--accent-emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.comp-box-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comp-box-title.title-state {
  color: var(--accent-rose);
}

.comp-box-title.title-private {
  color: var(--accent-emerald);
}

.comp-primary-stat {
  font-size: 2.15rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.comp-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.comp-details-list {
  list-style: none;
  font-size: 0.82rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.comp-details-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  color: var(--text-muted);
}

.comp-details-list li span:last-child {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.bastiat-gap-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.gap-banner-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.gap-banner-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gap-banner-stat {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #34d399;
}

/* ==========================================================================
   Math Explanation Section
   ========================================================================== */
.math-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  margin-bottom: 1.75rem;
}

.math-section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.math-section-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.math-section-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.math-block {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
}

.math-block h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.math-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.math-formula {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #38bdf8;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
  margin: 0.5rem 0 0.85rem;
}

.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 0.35rem 0;
  -webkit-overflow-scrolling: touch;
}

.table-responsive-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
  scrollbar-width: thin;
}

.math-parameters-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.math-parameters-table th,
.math-parameters-table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.math-parameters-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-weight: 600;
}

.math-parameters-table td:first-child {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Assumptions Section & Quick Callout
   ========================================================================== */
.assumptions-quick-callout {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.assumptions-quick-callout strong {
  color: var(--accent-cyan);
}

.btn-view-assumptions {
  background: transparent;
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-view-assumptions:hover {
  background: var(--accent-cyan);
  color: #080c14;
}

.assumptions-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  margin-bottom: 1.75rem;
  width: 100%;
  max-width: 100%;
}

.assumptions-section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.assumptions-section-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.assumptions-section-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.assumptions-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.assumption-kpi-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s;
}

.assumption-kpi-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.assumption-kpi-card .kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 700;
}

.assumption-kpi-card .kpi-stat {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.assumption-kpi-card .kpi-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.assumptions-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.assumptions-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.badge-demographic {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-economic {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-statutory {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-actuarial {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Footer provided by politicade-shell.css */

/* Mobile Touch & Small Screen Adaptations (< 480px) */
@media (max-width: 480px) {
  .app-container {
    padding: 0 0.75rem;
    margin: 1rem auto 2rem;
  }
  .kpi-row {
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }
  .kpi-card {
    padding: 1rem 0.85rem;
  }
  .kpi-value {
    font-size: 1.65rem;
  }
  .tab-btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }
  .slider-input::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
  }
  .slider-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }
  .btn-calculate {
    min-height: 48px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Lock-In CTA Bar & Sidebar Lock-In Elements
   ========================================================================== */
.lock-in-cta-bar {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%), var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lock-in-cta-info {
  flex: 1;
  min-width: 280px;
}

.lock-in-cta-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.lock-in-cta-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.lock-in-cta-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.lock-in-cta-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.lock-in-cta-actions {
  flex-shrink: 0;
}

.btn-lock-in {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-lock-in:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.5);
  filter: brightness(1.08);
}

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

.panel-header-buttons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-sidebar-lock {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sidebar-lock:hover {
  background: var(--accent-cyan);
  color: #080c14;
  box-shadow: 0 0 10px var(--glow-cyan);
}

.btn-lock-in-solution {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
  transition: all 0.2s ease;
  width: 100%;
  font-family: var(--font-sans);
}

.btn-lock-in-solution:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
  filter: brightness(1.08);
}

/* ==========================================================================
   Dedicated Results Page Section
   ========================================================================== */
.calculator-results-section {
  animation: fadeIn 0.4s ease;
  width: 100%;
}

.results-page-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.results-header-tagline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.results-badge-locked {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.results-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.results-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.results-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.results-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.5;
}

.results-header-actions {
  flex-shrink: 0;
}

.btn-unlock-solution {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
}

.btn-unlock-solution:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.results-solvency-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%), var(--bg-card);
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  backdrop-filter: blur(16px);
}

.rs-icon {
  font-size: 2.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.rs-content {
  flex: 1;
}

.rs-headline-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.rs-headline-row h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-emerald);
  letter-spacing: -0.01em;
}

.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.results-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.results-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.results-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.results-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.results-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  vertical-align: middle;
}

.results-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.results-share-card {
  border-color: rgba(6, 182, 212, 0.3);
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 70%), var(--bg-card);
}

.share-card-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.35rem;
}

.share-card-icon {
  font-size: 2.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.share-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.share-card-header p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.results-share-buttons {
  margin-bottom: 1.25rem;
}

.results-permalink-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.permalink-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.permalink-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.permalink-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.55rem 0.85rem;
  outline: none;
  min-width: 0;
}

.permalink-input:focus {
  border-color: var(--accent-cyan);
}

.btn-copy-permalink {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-copy-permalink:hover {
  background: var(--accent-cyan);
  color: #080c14;
  box-shadow: 0 0 12px var(--glow-cyan);
}

.results-bottom-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.btn-unlock-solution-large {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn-unlock-solution-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.5);
  filter: brightness(1.08);
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .lock-in-cta-bar {
    padding: 1.15rem;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-lock-in {
    width: 100%;
    justify-content: center;
  }
  .results-page-header {
    padding: 1.25rem;
  }
  .results-main-title {
    font-size: 1.5rem;
  }
  .results-card {
    padding: 1.25rem;
  }
  .permalink-input-row {
    flex-direction: column;
  }
  .btn-copy-permalink {
    width: 100%;
    justify-content: center;
  }
}

