:root {
  --bg-page: #f3f6fb;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #070b14;
  --bg-dark-elevated: #0f172a;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-subtle: #64748b;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.15);
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --cyan: #06b6d4;
  --cyan-soft: #ecfeff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.14), 0 8px 24px rgba(37, 99, 235, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  background-image: radial-gradient(rgba(148, 163, 184, 0.28) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
  padding-bottom: 76px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

.tabular,
.cost-highlight,
.js-unit-price,
.js-monthly-cost {
  font-variant-numeric: tabular-nums;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Top Nav — Glassmorphism + Tech Accent Top Line */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-header::before {
  content: "";
  display: block;
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #7c3aed 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 8px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.brand-logo-svg {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.brand-badge {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-left: 2px;
  position: relative;
  top: 1px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  background: transparent;
  padding: 0;
  border: none;
}

.nav-link {
  position: relative;
  padding: 8px 2px;
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  transform: scaleX(0.45);
  opacity: 0.45;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.global-search-wrap {
  position: relative;
}

.global-search-input {
  width: 228px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  transition: all 0.16s ease;
}

.global-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}

.global-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 370px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 90;
  display: none;
}

.global-search-dropdown.open {
  display: block;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink);
  text-decoration: none !important;
}

.search-result-item:hover {
  background: var(--primary-soft);
}

/* AI Cockpit Dark Hero */
.hero-compact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 14% 75%, rgba(37, 99, 235, 0.24) 0%, transparent 48%),
    linear-gradient(155deg, #060a14 0%, #0d1527 55%, #111c33 100%);
  color: #f8fafc;
  padding: 28px 0 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-compact::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-compact>.container {
  position: relative;
  z-index: 2;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67e8f9;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  display: inline-block;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  background: linear-gradient(120deg, #ffffff 15%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.94rem;
  max-width: 780px;
  line-height: 1.6;
}

.hero-subtitle a,
.fare-inline-link {
  color: #67e8f9;
  font-weight: 700;
  text-decoration: none !important;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.16s ease;
}

.hero-subtitle a:hover,
.fare-inline-link:hover {
  text-decoration: none !important;
  background: none;
  border: none;
  color: #a5f3fc;
}

.hero-subtitle strong {
  color: #ffffff;
}

.telemetry-hud {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.hud-stat {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}

.hud-stat+.hud-stat {
  border-left: 1px solid rgba(148, 163, 184, 0.2);
}

.hud-stat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hud-stat-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}

.freshness-pill {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Compact Refined Scenario Mini-Tags Bar */
.hero-scenario-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-scenario-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  margin-right: 2px;
}

.hero-scenario-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.hero-sc-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-left: 2.5px solid var(--tag-dot, #38bdf8);
  color: #f1f5f9;
  font-size: 0.74rem;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.hero-sc-tag:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.36);
  border-left-color: var(--tag-dot, #38bdf8);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.sc-tag-name {
  font-weight: 700;
  color: #ffffff;
}

.sc-tag-sep {
  color: rgba(148, 163, 184, 0.6);
  font-weight: 400;
}

.sc-tag-pick {
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.73rem;
}

/* Bento 4+3 Balanced Scenario Grid (Legacy Fallback) */
.bento-scenarios-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bento-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scenario-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.scenario-quick-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid var(--card-accent, #3b82f6);
  border-radius: 10px;
  padding: 11px 14px;
  color: #f8fafc;
  text-decoration: none !important;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.scenario-quick-card:hover {
  background: rgba(37, 99, 235, 0.24);
  border-color: rgba(96, 165, 250, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.scenario-quick-title {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.scenario-quick-arrow {
  font-size: 0.82rem;
  color: #93c5fd;
  flex-shrink: 0;
}

.scenario-quick-pick {
  font-size: 0.77rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Secondary Page Sub-Hero */
.page-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(37, 99, 235, 0.18) 0%, transparent 45%),
    linear-gradient(145deg, #0b1120 0%, #131e36 100%);
  color: #f8fafc;
  padding: 24px 0 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 18px;
}

.page-hero h1 {
  margin: 0 0 6px;
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
}

.page-hero p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.93rem;
  max-width: 860px;
}

.breadcrumb-bar {
  margin: 14px 0 10px;
  font-size: 0.84rem;
  color: var(--ink-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Unified Structured Workbench Control Dock (Zero Orphan Wrapping) */
.control-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
}

.dock-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
  padding: 9px 0;
}

.dock-row+.dock-row {
  border-top: 1px dashed var(--border-strong);
}

.dock-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.dock-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.dock-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.dock-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.seg-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  padding: 2px;
  gap: 2px;
}

.seg-switch .pill-btn {
  border: none;
  background: transparent;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.8rem;
  box-shadow: none;
}

.seg-switch .pill-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

.dock-divider {
  color: var(--border-strong);
  font-weight: 300;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.control-row+.control-row {
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  padding-top: 10px;
}

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

.control-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.pill-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--ink-secondary);
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
}

.pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.pill-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.26);
}

.pill-btn-media {
  background: #f8fafc;
  border-style: dashed;
  color: #0369a1;
  border-color: #bae6fd;
}

.pill-btn-media:hover {
  background: #ecfeff;
  border-color: #06b6d4;
  color: #0e7490;
}

.usage-Sliders-drawer,
.usage-sliders-drawer {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.usage-Sliders-drawer.open,
.usage-sliders-drawer.open {
  display: grid;
}

.slider-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.slider-box label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-secondary);
  font-weight: 600;
}

.slider-box label strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 1px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.slider-box input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

/* Main Interactive Model Price Table */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-strong);
  gap: 12px;
  flex-wrap: wrap;
}

.table-scroll {
  overflow-x: auto;
}

.fare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.fare-table th {
  background: #f8fafc;
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 0.77rem;
  text-transform: none;
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1.5px solid var(--border-strong);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.fare-table th:hover {
  color: var(--primary);
}

.fare-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.fare-table tbody tr {
  transition: background-color 0.12s ease;
}

.fare-table tr:hover td {
  background: #f8fbff;
}

.fare-table tr.selected-row td {
  background: var(--primary-soft);
}

.model-cell-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.model-cell-title a {
  color: var(--ink);
  font-weight: 800;
}

.model-cell-title a:hover {
  color: var(--primary);
}

.model-cell-sub {
  font-size: 0.76rem;
  color: var(--ink-subtle);
  margin-top: 2px;
  white-space: nowrap;
}

.reach-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-cn {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid #a7f3d0;
}

.tag-open {
  background: var(--purple-soft);
  color: var(--purple);
  border: 1px solid #ddd6fe;
}

.tag-free {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid #fde68a;
}

.tag-new {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.77rem;
  flex-shrink: 0;
}

.grade-A {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid #6ee7b7;
}

.grade-B {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #93c5fd;
}

.grade-C {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid #fcd34d;
}

.cost-highlight {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--primary);
  white-space: nowrap;
}

.channel-name-short {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.mini-bar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.mini-bar {
  width: 38px;
  height: 7px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 99px;
}

/* Spec Telemetry Ribbon (Detail & Model Header) */
.spec-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.spec-chip {
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
}

.spec-chip-label {
  font-size: 0.74rem;
  color: var(--ink-subtle);
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
}

.spec-chip-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

/* Floating Compare Tray */
.compare-tray {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #fff;
  padding: 10px 18px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.4);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 80;
  max-width: 94vw;
  flex-wrap: wrap;
}

.compare-tray.visible {
  display: flex;
}

.tray-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tray-chip {
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.35);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.79rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Content Panels & Tech Cards */
.content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.visual-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 20px;
  align-items: center;
}

.visual-split>*,
.grid-2>*,
.grid-3>*,
.grid-4>* {
  min-width: 0;
}

.radar-frame {
  background: linear-gradient(145deg, #0b1120 0%, #131c31 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  padding: 16px;
  color: #f8fafc;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  max-width: 100%;
  overflow: hidden;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-width: 0;
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card-accent-blue {
  border-top: 3px solid #2563eb;
}

.card-accent-emerald {
  border-top: 3px solid #059669;
}

.card-accent-purple {
  border-top: 3px solid #7c3aed;
}

.card-accent-amber {
  border-top: 3px solid #d97706;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-secondary {
  background: #f8fafc;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

/* Problem-Oriented Calculator Tabs */
.calc-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.calc-tab-btn {
  text-align: left;
  padding: 15px 18px;
  background: #f8fafc;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.16s ease;
  position: relative;
}

.calc-tab-btn:hover {
  border-color: var(--primary);
  background: #fff;
}

.calc-tab-btn.active {
  border-color: var(--primary);
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: var(--shadow-glow);
}

.calc-tab-title {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.calc-tab-sub {
  font-size: 0.8rem;
  color: var(--ink-subtle);
}

.calc-pane {
  display: none;
}

.calc-pane.active {
  display: block;
}

.step-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.anchor-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Highlighted Calculator Results & Verdict Cards (Subscriptions & Cost Calculator) */
.calc-summary-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  color: #f8fafc;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.calc-summary-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calc-summary-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
}

.calc-summary-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.calc-summary-kpis {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-kpi-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 7px 14px;
  border-radius: 10px;
}

.calc-kpi-pill.kpi-primary {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(96, 165, 250, 0.5);
}

.calc-kpi-label {
  font-size: 0.7rem;
  color: #cbd5e1;
  font-weight: 600;
}

.calc-kpi-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.18rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.25;
  white-space: nowrap;
}

.calc-kpi-pill.kpi-primary .calc-kpi-val {
  color: #67e8f9;
}

.calc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.calc-price-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.calc-metric-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-metric-label {
  font-size: 0.71rem;
  color: var(--ink-subtle);
  font-weight: 600;
  white-space: nowrap;
}

.calc-metric-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.calc-metric-val.val-blue {
  color: var(--primary);
}

.calc-metric-val.val-emerald {
  color: var(--emerald);
}

.calc-metric-val.val-amber {
  color: var(--amber);
}

.calc-metric-sub {
  font-size: 0.69rem;
  color: var(--ink-subtle);
  white-space: nowrap;
}

.calc-verdict-box {
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  border-left-width: 4px;
}

.calc-verdict-box.verdict-save {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #059669;
}

.calc-verdict-box.verdict-warn {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
}

.calc-verdict-box.verdict-api {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #2563eb;
}

.calc-verdict-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.calc-verdict-status {
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.verdict-save .calc-verdict-status {
  color: #065f46;
}

.verdict-warn .calc-verdict-status {
  color: #92400e;
}

.verdict-api .calc-verdict-status {
  color: #1e40af;
}

.calc-verdict-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.verdict-save .calc-verdict-badge {
  background: #059669;
  color: #ffffff;
}

.verdict-warn .calc-verdict-badge {
  background: #d97706;
  color: #ffffff;
}

.verdict-api .calc-verdict-badge {
  background: #2563eb;
  color: #ffffff;
}

.calc-verdict-desc {
  font-size: 0.81rem;
  line-height: 1.48;
  color: #334155;
}

.verdict-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
  padding: 0 2px;
  white-space: nowrap;
}

.verdict-num-em {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.92rem;
  color: #047857;
  white-space: nowrap;
}

.verdict-num-warn {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.92rem;
  color: #b45309;
  white-space: nowrap;
}

.verdict-num-blue {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.92rem;
  color: #1d4ed8;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-strong);
  padding: 30px 0;
  margin-top: 44px;
  color: var(--ink-subtle);
  font-size: 0.84rem;
}

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

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

.footer-links a {
  white-space: nowrap;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .dock-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bento-row-4,
  .bento-row-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-Sliders-drawer,
  .usage-sliders-drawer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {

  .visual-split,
  .grid-3,
  .calc-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .telemetry-hud {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-nav {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .dock-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .content-panel {
    padding: 16px 14px;
  }

  .grid-2,
  .grid-4,
  .bento-row-4,
  .bento-row-3,
  .usage-Sliders-drawer,
  .usage-sliders-drawer {
    grid-template-columns: minmax(0, 1fr);
  }

  .seg-switch-role {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 12px;
    padding: 4px;
  }

  .seg-switch-role .pill-btn {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
  }

  .global-search-input {
    width: 175px;
  }

  .global-search-dropdown {
    width: calc(100vw - 28px);
    right: -46px;
  }

  .hero-title {
    font-size: 1.38rem;
  }
}