/* ============================================================
   QCrypton — Subscription / Pricing Page
   ============================================================ */

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

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1629;
  --bg-card: #141b2d;
  --bg-card-hover: #1a2340;
  --border: #1e2a45;
  --border-light: #2a3a5c;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);

  --cyan: #06b6d4;
  --emerald: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #a855f7;

  --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-hero: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  --gradient-card: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

.container { max-width: 1540px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-light);
}
.btn-outline-light {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 8px 20px;
  font-size: 14px;
}
.btn-outline-light:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary); text-decoration: none;
}
.nav-logo-icon { width: 36px; height: 36px; }
.nav-logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.nav-links {
  display: flex; list-style: none; gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); transition: all 0.3s;
}

/* ---------- Pricing Hero ---------- */
.pricing-hero {
  position: relative;
  padding: 140px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
  pointer-events: none;
}
.pricing-hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--emerald);
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.pricing-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-hero-subtitle {
  font-size: 17px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 36px;
  line-height: 1.8;
}

/* ---------- Billing Toggle ---------- */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 14px;
}
.billing-label {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: color 0.2s;
}
.billing-label.active { color: var(--text-primary); }
.toggle {
  position: relative; display: inline-block; width: 48px; height: 26px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--border-light);
  border-radius: 13px;
  transition: background 0.3s;
}
.toggle-track::before {
  content: ''; position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.3s;
}
.toggle input:checked + .toggle-track {
  background: var(--accent);
}
.toggle input:checked + .toggle-track::before {
  transform: translateX(22px);
}
.save-badge {
  font-size: 11px; font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  padding: 3px 10px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---------- Pricing Section ---------- */
.pricing-section {
  padding: 40px 0 80px;
}

/* ---------- Pricing Grid ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 340px));
  justify-content: center;
  gap: 20px;
  align-items: start;
  margin: 0 auto;
  max-width: 1120px;
}

/* ---------- Plan Card ---------- */
.plan-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  transition: all 0.3s ease;
}
.plan-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Popular card */
.plan-popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
  z-index: 1;
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.plan-card.plan-current {
  border-color: var(--emerald);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
  position: relative;
}
.plan-current-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-current .plan-btn {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
  cursor: default;
}
.plan-popular:hover {
  border-color: var(--accent-light);
  transform: translateY(-4px);
}
.popular-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 18px; border-radius: 12px;
  white-space: nowrap;
}

/* Plan header */
.plan-header { margin-bottom: 20px; }
.plan-name {
  font-size: 18px; font-weight: 800;
  display: block; margin-bottom: 4px;
}
.plan-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}

/* Plan price */
.plan-price { margin-bottom: 20px; display: flex; align-items: baseline; gap: 4px; }
.price-amount {
  font-size: 42px; font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
}
.price-currency {
  font-size: 22px; font-weight: 700;
  vertical-align: super;
  margin-right: 2px;
}
.price-period {
  font-size: 14px; color: var(--text-muted);
}

/* Plan CTA button */
.plan-btn {
  display: block; width: 100%; text-align: center;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer; border: none;
}
.plan-btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.plan-btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-light);
}
.plan-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
.plan-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
  color: #fff;
}

/* Plan divider */
.plan-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ---------- Plan Features ---------- */
.plan-features {
  list-style: none;
}
.plan-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex; align-items: center; gap: 8px;
  line-height: 1.4;
}

.feature-section-label {
  font-size: 11px !important;
  font-weight: 700;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 12px !important;
  padding-bottom: 4px !important;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.feature-value {
  font-weight: 700;
  color: var(--accent-light);
  flex-shrink: 0;
}

.feature-included::before {
  content: '\2713';
  color: var(--emerald);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  width: 16px;
}
.feature-excluded {
  color: var(--text-muted) !important;
  text-decoration: line-through;
  opacity: 0.5;
}
.feature-excluded::before {
  content: '\2717';
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
}

/* ---------- Add-On Section ---------- */
.addon-section {
  padding: 0 0 80px;
}
.addon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.addon-info {
  display: flex; align-items: center; gap: 20px;
  flex: 1; min-width: 0;
}
.addon-icon {
  font-size: 36px; flex-shrink: 0;
}
.addon-info h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 4px;
}
.addon-info p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}

/* ---------- Section Headers ---------- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.8;
}

/* ---------- Comparison Table ---------- */
.comparison-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 800px;
}
.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.comparison-table thead th {
  background: var(--bg-secondary);
  font-size: 13px; font-weight: 700;
  color: var(--text-primary);
  position: sticky; top: 0;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.feature-col {
  text-align: left !important;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 180px;
}
.comparison-table tbody td {
  color: var(--text-secondary);
}
.col-popular {
  background: rgba(59, 130, 246, 0.04) !important;
}
.comparison-table thead .col-popular {
  color: var(--accent-light);
}
.section-row td {
  background: var(--bg-primary) !important;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  text-align: left;
  padding: 10px 16px;
}
.check { color: var(--emerald); font-weight: 700; font-size: 16px; }
.cross { color: var(--text-muted); opacity: 0.4; font-size: 14px; }

/* ---------- FAQ ---------- */
.pricing-faq { padding: 80px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; display: flex;
  justify-content: space-between; align-items: center;
  padding: 20px 0;
  background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  font-family: var(--font-sans);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent-light); }
.faq-toggle {
  font-size: 24px; font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- CTA ---------- */
.pricing-cta {
  padding: 80px 0;
  background: var(--bg-secondary);
  text-align: center;
}
.cta-content h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800; margin-bottom: 16px;
}
.cta-content > p {
  font-size: 16px; color: var(--text-secondary);
  max-width: 500px; margin: 0 auto 32px;
}
.cta-actions {
  display: flex; justify-content: center; gap: 16px;
}

/* ---------- Footer ---------- */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 28px; margin-bottom: 40px;
}
.footer-grid > .footer-col:first-child { grid-column-start: 2; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.footer-logo-icon { width: 24px; height: 24px; }
.footer-logo span { font-size: 16px; font-weight: 700; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 14px; color: var(--text-secondary);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: var(--text-muted); }
.footer-col ul a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); padding-left: 48px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--text-muted); }
.footer-legal a:hover { color: var(--text-primary); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--text-muted); transition: color 0.2s; }
.footer-social a:hover { color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .pricing-grid {
    gap: 16px;
  }
  .plan-popular:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(16px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px; margin: 0 auto;
  }
  .plan-popular:hover { transform: none; }

  .addon-card { flex-direction: column; text-align: center; }
  .addon-info { flex-direction: column; text-align: center; }

  .cta-actions { flex-direction: column; align-items: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .pricing-hero { padding: 120px 16px 40px; }
  .container { padding: 0 16px; }
  .billing-toggle { flex-wrap: wrap; justify-content: center; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-field-row { grid-template-columns: 1fr; }
  .calc-roi-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   QUANTUM RISK PRICING CALCULATOR
   ============================================================ */
.calculator-section {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
  align-items: start;
}
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.calc-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.calc-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Presets */
.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.calc-preset {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.calc-preset:hover { border-color: var(--accent); color: var(--text-primary); }
.calc-preset.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Algo grid */
.calc-algo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.calc-algo-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.calc-algo-chip:hover { border-color: var(--accent-light); }
.calc-algo-chip.selected {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
}
.calc-algo-chip.safe {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
}
.calc-algo-chip .chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.calc-algo-chip.selected .chip-dot { background: var(--red); }
.calc-algo-chip.safe .chip-dot { background: var(--emerald); }

/* Fields */
.calc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.calc-field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.calc-field select,
.calc-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
}
.calc-field select:focus,
.calc-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.calc-run-btn { width: 100%; justify-content: center; }

/* Results */
.calc-results { position: sticky; top: 100px; }
.calc-results-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 40px;
  text-align: center;
  color: var(--text-muted);
}
.calc-placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* Risk card */
.calc-risk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.calc-risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.calc-risk-header h3 { font-size: 16px; font-weight: 600; }
.calc-risk-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.calc-risk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.calc-stat {
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}
.calc-stat .val {
  display: block;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
}
.calc-stat .lbl {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.calc-risk-meter {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.calc-risk-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease, background 0.6s ease;
}
.calc-risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* Cost list */
.calc-cost-card { max-height: 320px; overflow-y: auto; }
.calc-cost-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.calc-cost-item:last-child { border-bottom: none; }
.calc-cost-algo { font-weight: 600; color: var(--text-primary); }
.calc-cost-qubits { color: var(--purple); font-family: var(--font-mono); font-size: 12px; }
.calc-cost-status {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.calc-cost-status.near { background: rgba(239,68,68,0.15); color: var(--red); }
.calc-cost-status.medium { background: rgba(245,158,11,0.15); color: var(--amber); }
.calc-cost-status.long { background: rgba(59,130,246,0.15); color: var(--accent-light); }
.calc-cost-status.safe { background: rgba(16,185,129,0.15); color: var(--emerald); }
.calc-cost-exposure { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }

/* ROI */
.calc-roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.calc-roi-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.calc-roi-box.exposure {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.calc-roi-box.protection {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.calc-roi-box .roi-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.calc-roi-box .roi-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.calc-roi-box.exposure .roi-value { color: var(--red); }
.calc-roi-box.protection .roi-value { color: var(--emerald); }
.calc-roi-verdict {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Recommendation */
.calc-recommendation {
  margin-top: 20px;
  padding: 24px;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: rgba(59, 130, 246, 0.06);
  text-align: center;
}
.calc-rec-plan {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.calc-rec-name {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.calc-rec-reason {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { position: static; }
  .calc-risk-stats { grid-template-columns: repeat(2, 1fr); }
  .calc-algo-grid { grid-template-columns: repeat(2, 1fr); }
}
