:root {
  --bg-deep: #060a13;
  --bg-panel: #0d1424;
  --bg-card: #121c31;
  --bg-card-hover: #17243f;
  --bg-elevated: #1a2846;
  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.18);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --rose: #fb7185;
  --rose-soft: rgba(251, 113, 133, 0.16);
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.15);
  --indigo-soft: rgba(99, 102, 241, 0.18);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.68);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(16, 185, 129, 0.12), transparent 38%),
    radial-gradient(circle at 86% 5%, rgba(56, 189, 248, 0.1), transparent 36%),
    var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--emerald-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Compact Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 10, 19, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--emerald), #0284c7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 900;
  color: #03150e;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.brand-tagline {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  display: none;
}
@media (min-width: 980px) {
  .brand-tagline {
    display: inline;
  }
}

.brand-badge {
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-glow);
  color: var(--emerald-bright);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-nav-link {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--text-secondary);
}
.topbar-nav-link:hover {
  color: var(--emerald-bright);
  text-decoration: none;
}

.country-picker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

.country-picker-label {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.country-select {
  background: transparent;
  color: var(--text-main);
  border: none;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.country-select option {
  background: #0f172a;
  color: #f8fafc;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 750;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #03150e;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #03150e;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--emerald-bright);
  color: var(--text-main);
  text-decoration: none;
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #180e00;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
}
.btn-amber:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #180e00;
  text-decoration: none;
}

.btn-sm {
  padding: 5px 11px;
  font-size: 0.77rem;
}

/* Segmented 2-State Device Stack Toggle */
.device-seg-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(6, 10, 19, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  flex-wrap: wrap;
}

.device-seg-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 750;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.device-seg-btn:hover {
  color: var(--text-main);
}
.device-seg-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(2, 132, 199, 0.28));
  color: var(--emerald-bright);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.device-helper-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(14, 24, 44, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  margin-bottom: 14px;
  font-size: 0.79rem;
  color: var(--text-secondary);
}

.device-helper-note {
  color: #7dd3fc;
  font-weight: 650;
}

/* Desktop Above-The-Fold Hero */
.hero {
  padding: 14px 0 18px;
}

.shock-shell {
  background: linear-gradient(165deg, rgba(18, 28, 49, 0.96), rgba(10, 16, 30, 0.98));
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
}

.spotlight-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.spotlight-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.spotlight-caption {
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 2px;
}

.spotlight-pill {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s ease;
}
.spotlight-pill:hover {
  border-color: var(--emerald-bright);
  color: var(--text-main);
}
.spotlight-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(5, 150, 105, 0.3));
  color: var(--emerald-bright);
  border-color: var(--emerald-bright);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.quickcheck-pill {
  background: rgba(30, 41, 59, 0.65);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.73rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.quickcheck-pill:hover {
  border-color: var(--amber);
  color: #fde68a;
  text-decoration: none;
}
.quickcheck-pill.active {
  background: var(--amber-soft);
  color: #fde68a;
  border-color: var(--amber);
}

.shock-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 20px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.32);
  margin-bottom: 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 9px var(--rose);
}

.hero-title {
  margin: 0 0 7px;
  font-size: clamp(1.38rem, 2.5vw, 1.98rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 850;
}

.hero-title .accent-save {
  color: var(--emerald-bright);
}

.hero-title .accent-overpay {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-color: rgba(251, 113, 133, 0.45);
  text-underline-offset: 4px;
}

.hero-sub {
  margin: 0 0 13px;
  color: var(--text-secondary);
  font-size: 0.89rem;
  max-width: 66ch;
}

.counter-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi-box {
  background: rgba(6, 10, 19, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 12px;
}

.kpi-box.kpi-highlight {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(6, 10, 19, 0.85));
  border-color: rgba(52, 211, 153, 0.5);
}

.kpi-label {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 750;
  margin-bottom: 3px;
}

.kpi-val {
  font-size: clamp(1.22rem, 2.05vw, 1.64rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.kpi-val.val-bad {
  color: var(--rose);
}
.kpi-val.val-good {
  color: var(--emerald-bright);
}
.kpi-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Regional Price Gap Bar Chart */
.chart-card {
  background: rgba(7, 11, 21, 0.82);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.chart-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
}

.chart-tag {
  font-size: 0.71rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-glow);
  color: var(--emerald-bright);
}

.bar-group {
  margin-bottom: 9px;
}
.bar-group:last-child {
  margin-bottom: 0;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 4px;
  font-weight: 650;
}

.bar-track {
  width: 100%;
  height: 12px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 8%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-fill.fill-home {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}
.bar-fill.fill-west {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.bar-fill.fill-easy {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}
.bar-fill.fill-optimal {
  background: linear-gradient(90deg, #059669, #34d399);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.45);
}

.chart-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Above-The-Fold 2-Step Unlock Strip Inside Hero */
.hero-unlock-strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(52, 211, 153, 0.22);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.unlock-step-card {
  background: linear-gradient(145deg, rgba(15, 24, 44, 0.96), rgba(9, 14, 26, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.unlock-step-card.step-vpn {
  border-color: rgba(16, 185, 129, 0.4);
}
.unlock-step-card.step-gift {
  border-color: rgba(245, 158, 11, 0.4);
}

.unlock-step-kicker {
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sky);
  margin-bottom: 2px;
}

.unlock-step-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.unlock-step-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-jump-row {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 650;
}

/* Section Layout */
.section {
  padding: 20px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.87rem;
}

/* Controls & Presets */
.toolbar-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.77rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.chip-btn:hover,
.chip-btn.active {
  background: var(--emerald-glow);
  color: var(--emerald-bright);
  border-color: rgba(52, 211, 153, 0.45);
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.switch-label input[type="checkbox"] {
  accent-color: var(--emerald);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Basket Builder Grid */
.basket-layout {
  display: grid;
  grid-template-columns: 1.56fr 0.84fr;
  gap: 18px;
  align-items: start;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 11px;
}

.svc-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
}
.svc-card:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
}
.svc-card.selected {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.14), rgba(18, 28, 49, 0.95));
  border-color: var(--emerald);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.14);
}

.svc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.svc-name {
  font-weight: 750;
  font-size: 0.91rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.svc-plan {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.svc-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
  color: transparent;
}
.svc-card.selected .svc-check {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #03150e;
}

.svc-prices {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
}

.svc-old {
  font-size: 0.77rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.svc-new {
  font-size: 0.98rem;
  font-weight: 850;
  color: var(--emerald-bright);
}

.svc-native-line {
  font-size: 0.71rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.svc-route-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
}

.save-pill {
  font-size: 0.69rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--emerald-glow);
  color: var(--emerald-bright);
}

/* Badges */
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-per-game {
  background: var(--indigo-soft);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.35);
}
.badge-apple {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}
.badge-web {
  background: var(--sky-soft);
  color: #7dd3fc;
}
.badge-vpn-warn {
  background: var(--amber-soft);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.badge-acct {
  background: rgba(16, 185, 129, 0.13);
  color: #6ee7b7;
}

/* Sticky Basket Receipt */
.receipt-card {
  position: sticky;
  top: 68px;
  background: var(--bg-card);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.receipt-title {
  margin: 0 0 4px;
  font-size: 1.04rem;
  font-weight: 800;
}

.receipt-sub {
  margin: 0 0 12px;
  font-size: 0.77rem;
  color: var(--text-muted);
}

.receipt-big {
  background: rgba(6, 10, 19, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 13px;
  margin-bottom: 13px;
  text-align: center;
}

.receipt-big-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.receipt-big-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--emerald-bright);
  line-height: 1.15;
  margin: 4px 0;
}

.receipt-3yr {
  font-size: 0.78rem;
  color: var(--amber);
  font-weight: 700;
}

.receipt-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 13px;
  max-height: 245px;
  overflow-y: auto;
  padding-right: 4px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.79rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
}

.receipt-totals {
  border-top: 1px solid var(--border-strong);
  padding-top: 10px;
  margin-bottom: 13px;
  font-size: 0.81rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
}

/* Matrix Table */
.matrix-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.matrix-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.input-box,
.select-box {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.83rem;
  font-family: inherit;
}

.legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  font-size: 0.77rem;
  color: var(--text-secondary);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  margin-bottom: 12px;
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
  min-width: 1120px;
}

.matrix-table th,
.matrix-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  vertical-align: middle;
}

.matrix-table th {
  background: #0b1120;
  color: var(--text-secondary);
  font-weight: 750;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
}

.matrix-table th.sticky-col,
.matrix-table td.sticky-col {
  position: sticky;
  left: 0;
  background: #0e1628;
  text-align: left;
  z-index: 2;
  min-width: 225px;
  border-right: 1px solid var(--border-strong);
}

.matrix-table tr.row-pinned td {
  background: rgba(16, 185, 129, 0.06);
}
.matrix-table tr.row-pinned td.sticky-col {
  background: #102433;
  border-left: 3px solid var(--emerald-bright);
}

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.matrix-table tr:hover td.sticky-col {
  background: #131e36;
}

.cell-price {
  font-weight: 800;
  display: block;
  font-size: 0.82rem;
}

.cell-native {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
}

.cell-muted-apple {
  opacity: 0.45;
}

.cell-best {
  background: rgba(16, 185, 129, 0.17) !important;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.52);
  border-radius: 6px;
}

.vol-badge {
  display: inline-block;
  font-size: 0.67rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-muted);
  margin-top: 3px;
}

.svc-seo-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--sky);
}

/* Playbook & Interactive Gift Card Denomination Calculator */
.playbook-shell {
  background: linear-gradient(160deg, #0f182c, #0a101d);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.playbook-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.playbook-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.pb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.pb-card h4 {
  margin: 0 0 5px;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-meta {
  font-size: 0.8rem;
  color: var(--emerald-bright);
  font-weight: 750;
  margin-bottom: 6px;
}

.pb-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pb-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pb-warn {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  font-size: 0.78rem;
  line-height: 1.4;
}

.pb-zip-box {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 19, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Interactive Voucher Denomination Matcher inside Playbook */
.denom-box {
  background: rgba(6, 10, 19, 0.78);
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.denom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.denom-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sky);
}

.denom-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.denom-pill {
  background: var(--bg-panel);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 750;
  font-family: inherit;
  cursor: pointer;
}
.denom-pill:hover {
  border-color: var(--emerald-bright);
  color: var(--text-main);
}
.denom-pill.active {
  background: var(--emerald-glow);
  color: var(--emerald-bright);
  border-color: var(--emerald-bright);
}

.denom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 0.77rem;
}

.denom-stat {
  background: rgba(18, 28, 49, 0.68);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 7px 9px;
}

.denom-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.denom-stat-val {
  font-weight: 800;
  color: var(--text-main);
  font-size: 0.81rem;
}

.pb-partner-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.pb-secondary-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* CalcScale Pro Power-User Export Suite ($4.99 One-Time) */
.pro-suite-card {
  background: linear-gradient(150deg, rgba(18, 28, 49, 0.96), rgba(11, 17, 32, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.pro-suite-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.pro-suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pro-feature-box {
  background: rgba(6, 10, 19, 0.72);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.pro-feature-box h3 {
  margin: 0 0 5px;
  font-size: 0.95rem;
}

.pro-feature-box p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SEO Dedicated Service Guides (/prices/<slug>) */
.seo-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--text-muted);
  margin: 14px 0 10px;
}

.seo-hero-shell {
  background: linear-gradient(160deg, rgba(18, 28, 49, 0.96), rgba(9, 15, 28, 0.98));
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}

.seo-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.seo-faq-list {
  display: grid;
  gap: 12px;
}

.seo-faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 18px;
}
.seo-faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  color: var(--text-main);
}
.seo-faq-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.related-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
}

.related-svc-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text-main);
  transition: border-color 0.14s ease, background 0.14s ease;
}
.related-svc-card:hover {
  background: var(--bg-card);
  border-color: var(--emerald-bright);
  text-decoration: none;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.82);
  backdrop-filter: blur(8px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.wallet-box {
  background: rgba(6, 10, 19, 0.8);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  margin-bottom: 12px;
}

.wallet-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--emerald-bright);
  margin: 5px 0 8px;
}

.status-msg {
  margin-top: 10px;
  font-size: 0.83rem;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  display: none;
}
.status-msg.show {
  display: block;
}
.status-msg.ok {
  background: var(--emerald-glow);
  color: var(--emerald-bright);
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.status-msg.err {
  background: var(--rose-soft);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.4);
}

/* Footer, Legal & Status */
.footer {
  margin-top: 34px;
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0 34px;
  color: var(--text-muted);
  font-size: 0.81rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-main {
  max-width: 860px;
  margin: 30px auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.legal-main h1 {
  margin-top: 0;
}
.legal-main p,
.legal-main li {
  color: var(--text-secondary);
  line-height: 1.65;
}

.shock-shell,
.shock-grid > *,
.basket-layout > *,
.hero-unlock-strip > *,
.unlock-step-card,
.unlock-step-card > *,
.playbook-shell,
.playbook-cards > *,
.pb-card,
.pb-card > *,
.pro-suite-card,
.pro-suite-grid > *,
.pro-feature-box,
.seo-hero-shell,
.seo-compare-grid > *,
.denom-box,
.matrix-wrap {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 980px) {
  .shock-grid,
  .basket-layout,
  .hero-unlock-strip,
  .pro-suite-grid,
  .seo-compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .receipt-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .shock-shell,
  .playbook-shell,
  .pro-suite-card,
  .seo-hero-shell {
    padding: 15px 14px;
  }
  .counter-strip,
  .denom-grid,
  .playbook-cards,
  .service-grid,
  .related-svc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .unlock-step-card {
    flex-direction: column;
    align-items: stretch;
  }
  .btn,
  .device-seg-btn,
  .mini-badge {
    white-space: normal;
    word-break: break-word;
    text-align: center;
    max-width: 100%;
  }
  .device-seg-wrap {
    width: 100%;
  }
  .device-seg-btn {
    flex: 1 1 140px;
  }
}

@media print {
  .topbar, .hero, #basketBuilder, #priceMatrix, .pro-suite-card, .footer, .modal-backdrop {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
}
