:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --ink: #16181d;
  --muted: #687080;
  --line: #dde2ea;
  --brand: #116d6e;
  --brand-strong: #0b4f50;
  --cobalt: #3157a4;
  --amber: #ba6b17;
  --rose: #a53f55;
  --green: #0f7a4f;
  --shadow: 0 16px 40px rgba(22, 24, 29, 0.08);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 246, 248, 0.92)),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #111316;
  color: #f7f8fa;
  padding: 24px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #17a398, #3157a4);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.sidebar-footer {
  color: #9aa2af;
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.public-link {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
}

.nav-item {
  height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #c8ced8;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

.status-dot.ok {
  background: #1da66d;
}

.status-dot.warn {
  background: var(--amber);
}

.status-dot.bad {
  background: var(--rose);
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 760;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 17px;
}

.top-actions,
.inline-form,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.small-button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-button {
  background: var(--brand);
  color: white;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.ghost-button,
.small-button {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c3f10;
  border: 1px solid #fed7aa;
}

.hidden {
  display: none;
}

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

.kpi-card,
.panel,
.model-card,
.setting-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kpi-card {
  min-height: 124px;
  padding: 18px;
  display: grid;
  align-content: space-between;
}

.kpi-card span {
  color: var(--muted);
  font-size: 13px;
}

.kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.kpi-card em {
  color: var(--green);
  font-style: normal;
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.panel {
  padding: 18px;
  overflow: hidden;
}

.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  align-items: end;
  gap: 12px;
  height: 280px;
  padding: 12px 0 0;
}

.bar-group {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 9px;
  height: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.bar-stack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 100%;
  border-bottom: 1px solid var(--line);
}

.bar {
  width: 16px;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
}

.bar.revenue {
  background: var(--brand);
}

.bar.cost {
  background: var(--amber);
}

.route-mix {
  display: grid;
  gap: 12px;
}

.route-lane {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.lane-top,
.lane-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.lane-top strong {
  font-size: 14px;
}

.lane-meter {
  height: 8px;
  background: #e7ebf0;
  border-radius: 999px;
  overflow: hidden;
}

.lane-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--cobalt));
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap.tall {
  max-height: 610px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 62px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eaf7f2;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.pill.off {
  background: #f3f4f6;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 136px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 109, 110, 0.12);
}

.inline-form input {
  width: 160px;
}

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

.model-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.model-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.model-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.model-card small {
  color: var(--muted);
}

.model-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.model-fields label,
.tester-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.tester {
  max-width: 980px;
}

.tester-form {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}

.tester-form .full,
.tester-form button,
.response-box {
  grid-column: 1 / -1;
}

.response-box {
  margin: 16px 0 0;
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: #111316;
  color: #e6edf3;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.setting-card {
  padding: 16px;
  min-height: 112px;
}

.setting-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.setting-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  word-break: break-word;
}

dialog {
  border: none;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

dialog::backdrop {
  background: rgba(17, 19, 22, 0.52);
}

.dialog-card {
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  display: grid;
  gap: 16px;
}

.site-body {
  background: #f4f6f8;
}

.hero-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: rgba(15, 19, 24, 0.52);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #d9e3e8;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.site-hero {
  min-height: 84svh;
  display: flex;
  align-items: center;
  padding: 112px clamp(18px, 5vw, 72px) 76px;
  color: #ffffff;
}

.hero-copy {
  width: min(820px, 100%);
}

.site-hero .eyebrow {
  color: #9ae3dc;
}

.site-hero h1 {
  margin-top: 14px;
  font-size: clamp(54px, 10vw, 124px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  width: min(650px, 100%);
  margin: 22px 0 0;
  color: #d9e3e8;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-actions a,
.glass-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
}

.glass-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.endpoint-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin-top: 34px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.endpoint-line span {
  color: #9ae3dc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.endpoint-line code {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.copy-button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 0 10px;
}

.site-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 18px;
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
}

.signal-strip div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background: #ffffff;
}

.signal-strip strong,
.service-card h3,
.docs-note h3 {
  font-size: 20px;
}

.signal-strip span,
.service-card p,
.docs-note p {
  color: var(--muted);
  line-height: 1.65;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
}

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

.service-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.lane-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.lane-badge.economy {
  color: var(--green);
  background: #eaf7f2;
}

.lane-badge.balanced {
  color: var(--cobalt);
  background: #eef3ff;
}

.lane-badge.premium {
  color: var(--amber);
  background: #fff3df;
}

.pricing-band {
  background: #111316;
  color: #ffffff;
}

.pricing-band .eyebrow,
.pricing-band .section-head p {
  color: #9ae3dc;
}

.pricing-table {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row span:not(:first-child) {
  color: #c6ced8;
}

.pricing-head {
  color: #9ae3dc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.docs-layout .section-head {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.code-panel {
  margin: 0;
  min-height: 280px;
  padding: 22px;
  border-radius: 8px;
  background: #111316;
  color: #e6edf3;
  overflow: auto;
  line-height: 1.6;
}

.docs-note {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: #d9e3e8;
}

@media (max-width: 1120px) {
  .kpi-grid,
  .model-grid,
  .settings-grid,
  .signal-strip,
  .public-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .two-column,
  .docs-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .nav {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
  }

  .nav-item {
    text-align: center;
  }

  .sidebar-footer {
    margin-top: 16px;
  }

  .main {
    padding: 18px;
  }

  .site-nav {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-hero {
    min-height: 86svh;
    padding-top: 168px;
  }

  .topbar,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-grid,
  .model-grid,
  .settings-grid,
  .tester-form,
  .signal-strip,
  .public-grid {
    grid-template-columns: 1fr;
  }

  .pricing-row {
    grid-template-columns: 1fr;
  }

  .site-section {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
  }

  .inline-form {
    width: 100%;
  }

  .inline-form input,
  .inline-form button {
    width: 100%;
  }
}

.portal-body {
  min-height: 100vh;
  background: #f7f9fc;
}

.customer-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.customer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.customer-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f8df7, #8b5cf6);
  color: #fff;
  font-weight: 800;
}

.customer-topbar nav {
  display: flex;
  gap: 8px;
}

.customer-topbar nav a,
.ghost-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #303846;
  text-decoration: none;
}

.customer-topbar nav a:hover,
.ghost-link:hover {
  background: #edf3fb;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.customer-main {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.customer-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 54px 0 34px;
}

.hero-text h1 {
  width: min(760px, 100%);
  margin-top: 18px;
  color: #3f4654;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.08;
}

.hero-text p {
  width: min(680px, 100%);
  color: #6b7485;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.endpoint-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(680px, 100%);
  margin-top: 28px;
  padding: 12px 12px 12px 18px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.endpoint-copy span {
  color: var(--muted);
  font-size: 13px;
}

.endpoint-copy code {
  overflow-wrap: anywhere;
  color: #1f5fcb;
}

.icon-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  padding: 0 10px;
}

.hero-orbit {
  position: relative;
  min-height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 34%, rgba(238, 245, 255, 0.78) 35% 58%, rgba(255, 255, 255, 0.3) 59% 100%),
    conic-gradient(from 15deg, rgba(79, 141, 247, 0.22), rgba(139, 92, 246, 0.08), rgba(17, 109, 110, 0.14), rgba(79, 141, 247, 0.22));
  box-shadow: inset 0 0 80px rgba(79, 141, 247, 0.12);
}

.orbit-card,
.orbit-pill {
  position: absolute;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.main-card {
  left: 22%;
  top: 43%;
  width: 260px;
  padding: 24px;
}

.main-card span,
.main-card small {
  color: var(--muted);
}

.main-card strong {
  display: block;
  margin: 16px 0 8px;
  color: #3157a4;
  font-size: 28px;
}

.orbit-pill {
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 0 20px;
  font-weight: 760;
  color: #31506f;
}

.pill-a { left: 45%; top: 14%; }
.pill-b { right: 6%; top: 30%; }
.pill-c { right: 4%; bottom: 18%; }
.pill-d { left: 18%; bottom: 12%; }

.customer-section {
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.customer-card,
.service-card,
.market-card,
.metric-card,
.console-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.customer-card {
  min-height: 150px;
  padding: 20px;
}

.customer-card p,
.service-card p,
.muted-copy {
  color: var(--muted);
  line-height: 1.7;
}

.section-title,
.panel-title,
.row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.market-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
}

.market-filter {
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.market-filter h3 {
  margin: 0 0 18px;
}

.filter-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.filter-block span {
  grid-column: 1 / -1;
  color: #1f2937;
  font-weight: 760;
}

.filter-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #44505f;
}

.filter-chip.active {
  background: #edf7f4;
  border-color: #cae8df;
  color: var(--brand);
  font-weight: 760;
}

.provider-banner {
  min-height: 134px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 109, 110, 0.94), rgba(49, 87, 164, 0.82)),
    #116d6e;
}

.provider-banner h2 {
  font-size: 28px;
}

.provider-banner p {
  color: #eaf7f2;
}

.provider-icon,
.model-avatar {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 800;
}

.provider-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 28px;
}

.market-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin: 14px 0 18px;
}

.model-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.market-card {
  min-height: 196px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.market-card header {
  display: flex;
  gap: 12px;
}

.model-avatar {
  width: 48px;
  height: 48px;
  background: #eef6ff;
  color: #3157a4;
}

.market-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.market-card p,
.price-lines {
  color: var(--muted);
}

.price-lines {
  display: grid;
  gap: 5px;
}

.market-card footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #efe7ff;
  color: #6d45b9;
  font-size: 12px;
}

.tag.muted {
  background: #eef6f4;
  color: #176b63;
}

.docs-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
}

.apply-form,
.auth-card,
.chat-form {
  display: grid;
  gap: 12px;
}

.apply-form textarea,
.chat-form textarea {
  min-height: 126px;
}

.auth-dialog {
  border: none;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 26px 70px rgba(22, 24, 29, 0.22);
}

.auth-card {
  width: min(420px, calc(100vw - 32px));
  padding: 24px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--rose);
}

.console-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.console-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.sidebar-group {
  display: grid;
  gap: 8px;
}

.sidebar-group > span {
  padding: 0 12px;
  color: #98a1ad;
  font-size: 13px;
}

.console-nav,
.collapse-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  text-align: left;
  padding: 0 12px;
}

.console-nav.active,
.console-nav:hover {
  background: #eaf3ff;
  color: #1f6feb;
}

.collapse-button {
  margin-top: auto;
  border-color: var(--line);
  text-align: center;
}

.console-main {
  padding: 28px;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.user-pill span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #9873df;
  color: #ffffff;
}

.console-grid.four {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 136px;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 20px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: 30px;
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 18px;
}

.console-panel {
  padding: 20px;
}

.empty-chart {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.usage-bars {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
}

.usage-bars span {
  width: 24px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #4f8df7, #17a398);
}

.api-info {
  display: grid;
  gap: 12px;
}

.api-info code,
.secret-box code {
  padding: 12px;
  border-radius: 8px;
  background: #f5f7fa;
  overflow-wrap: anywhere;
}

.secret-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #cae8df;
  border-radius: 8px;
  background: #f1fbf8;
}

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

.status-pill.ok {
  color: var(--green);
  background: #eaf7f2;
}

.status-pill.off {
  color: var(--muted);
  background: #eef0f3;
}

.playground-panel {
  max-width: 980px;
}

.notice-line {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #8a4a12;
}

@media (max-width: 1120px) {
  .customer-hero,
  .market-layout,
  .docs-split,
  .apply-section,
  .console-layout {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    min-height: 420px;
  }

  .feature-grid,
  .public-grid,
  .model-cards,
  .console-grid.four {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .customer-topbar,
  .console-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    margin-left: 0;
  }

  .customer-topbar nav {
    flex-wrap: wrap;
  }

  .console-shell {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    position: static;
    height: auto;
  }

  .feature-grid,
  .public-grid,
  .model-cards,
  .console-grid.four {
    grid-template-columns: 1fr;
  }

  .endpoint-copy,
  .secret-box {
    grid-template-columns: 1fr;
  }
}

/* Premium customer portal refresh */
.portal-body {
  --premium-bg: #eef3f8;
  --premium-ink: #111827;
  --premium-muted: #64748b;
  --premium-line: rgba(148, 163, 184, 0.25);
  --premium-panel: rgba(255, 255, 255, 0.84);
  --premium-shadow: 0 24px 80px rgba(15, 23, 42, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 243, 248, 0.96)),
    linear-gradient(135deg, rgba(30, 99, 189, 0.14), rgba(19, 122, 103, 0.12));
  color: var(--premium-ink);
}

.portal-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 78%);
}

.customer-topbar {
  width: min(1180px, calc(100% - 28px));
  min-height: 66px;
  margin: 14px auto 0;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.customer-logo {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #176b63, #3157a4 58%, #7954b8);
  box-shadow: 0 10px 24px rgba(49, 87, 164, 0.22);
}

.customer-brand strong {
  font-weight: 820;
}

.customer-topbar nav a,
.ghost-link {
  color: #334155;
  font-weight: 680;
}

.customer-topbar nav a:hover,
.ghost-link:hover {
  background: rgba(49, 87, 164, 0.08);
  color: #0f172a;
}

.primary-button,
.ghost-button,
.small-button,
.icon-button {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-button {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #125f5a, #3157a4);
  box-shadow: 0 12px 28px rgba(49, 87, 164, 0.2);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.customer-main {
  width: min(1180px, calc(100% - 28px));
}

.customer-hero {
  min-height: 650px;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1fr);
  padding: 64px 0 42px;
}

.hero-text h1 {
  width: min(720px, 100%);
  color: #202938;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text h1 span {
  display: block;
}

.hero-text p {
  color: #59667a;
  font-size: 19px;
  line-height: 1.78;
}

.eyebrow {
  color: #176b63;
  letter-spacing: 0;
}

.endpoint-copy,
.customer-section,
.customer-card,
.console-panel,
.metric-card,
.market-card,
.auth-card {
  border-color: var(--premium-line);
  background: var(--premium-panel);
  box-shadow: var(--premium-shadow);
  backdrop-filter: blur(18px);
}

.endpoint-copy {
  min-height: 64px;
}

.hero-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  perspective: 1100px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4%;
  background:
    linear-gradient(135deg, rgba(49, 87, 164, 0.13), rgba(23, 107, 99, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24));
  clip-path: polygon(10% 18%, 78% 2%, 98% 56%, 54% 100%, 0 72%);
  filter: saturate(1.06);
}

.hero3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage-readout {
  position: absolute;
  z-index: 2;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.12);
  color: #274056;
  font-weight: 760;
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
}

.stage-main {
  left: 12%;
  top: 42%;
  width: 270px;
  min-height: 136px;
  place-items: start;
  align-content: center;
  gap: 6px;
  padding: 22px;
  transform: rotateY(-10deg) rotateX(5deg);
}

.stage-main span,
.stage-main small {
  color: var(--premium-muted);
}

.stage-main strong {
  color: #1d4f8f;
  font-size: 26px;
}

.stage-a { left: 46%; top: 11%; transform: translateZ(24px); }
.stage-b { right: 6%; top: 30%; transform: translateZ(38px); }
.stage-c { right: 8%; bottom: 17%; transform: translateZ(18px); }
.stage-d { left: 18%; bottom: 11%; transform: translateZ(32px); }

.customer-section {
  margin-bottom: 20px;
  padding: 28px;
}

.customer-card {
  position: relative;
  overflow: hidden;
}

.customer-card::before,
.market-card::before,
.metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #176b63, #3157a4, #9d6b2f);
  opacity: 0;
  transition: opacity 180ms ease;
}

.customer-card:hover::before,
.market-card:hover::before,
.metric-card:hover::before {
  opacity: 1;
}

.feature-grid {
  gap: 16px;
}

.customer-card,
.market-card,
.metric-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.customer-card:hover,
.market-card:hover,
.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 87, 164, 0.24);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.market-layout {
  gap: 24px;
}

.market-filter {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
}

.filter-block {
  grid-template-columns: 1fr 1fr;
}

.filter-chip {
  position: relative;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 650;
}

.filter-chip:hover {
  border-color: rgba(49, 87, 164, 0.28);
  background: rgba(239, 246, 255, 0.86);
}

.filter-chip.active {
  background: #102338;
  border-color: #102338;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 35, 56, 0.16);
}

.provider-banner {
  min-height: 146px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #0f3d3e, #1b5d87 54%, #3a4f93);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 70px rgba(15, 23, 42, 0.12);
}

.provider-icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.market-tools {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.market-tools input {
  border-color: transparent;
  background: rgba(241, 245, 249, 0.86);
}

.market-tools span {
  color: var(--premium-muted);
  font-size: 13px;
}

.market-card {
  position: relative;
  min-height: 214px;
  overflow: hidden;
}

.market-card[hidden] {
  display: none;
}

.market-card header {
  align-items: flex-start;
}

.model-avatar {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
    #edf6ff;
  box-shadow: inset 0 0 0 1px rgba(49, 87, 164, 0.1), 0 14px 28px rgba(49, 87, 164, 0.13);
}

.tag {
  border: 0;
  font-weight: 700;
}

.tag-button {
  cursor: pointer;
}

.tag-button.active {
  background: #102338;
  color: #ffffff;
}

.card-copy {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #475569;
  padding: 0 10px;
  font-size: 12px;
}

.empty-models {
  display: none;
  min-height: 120px;
  place-items: center;
  color: var(--premium-muted);
  border: 1px dashed rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.empty-models.show {
  display: grid;
}

.console-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 243, 248, 0.96)),
    var(--premium-bg);
}

.console-sidebar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.console-nav.active,
.console-nav:hover {
  background: #102338;
  color: #ffffff;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card strong {
  color: #172033;
}

.auth-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}

@media (max-width: 1120px) {
  .customer-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-stage {
    min-height: 460px;
  }

  .market-filter {
    border-right: 1px solid rgba(148, 163, 184, 0.2);
  }
}

@media (max-width: 760px) {
  .customer-topbar {
    width: min(100% - 20px, 1180px);
    position: sticky;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-stage {
    min-height: 390px;
  }

  .stage-main {
    left: 5%;
    top: 45%;
    width: 230px;
    min-height: 118px;
  }

  .stage-main strong {
    font-size: 21px;
  }

  .stage-a { left: 8%; top: 10%; }
  .stage-b { right: 4%; top: 24%; }
  .stage-c { right: 4%; bottom: 12%; }
  .stage-d { left: 6%; bottom: 4%; }

  .market-tools {
    grid-template-columns: 1fr;
  }
}
