/* =========================================================
   TokenRouter — AI gateway landing
   Light, glassy, indigo/cyan accent. Inspired by NusaRouter,
   TokenRouter, OpenRouter, and AIHubMix.
   ========================================================= */

:root {
    --bg: #f8f9fc;
    --bg-deep: #f1f4fa;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;
    --surface-sunken: #eef2f9;
    --ink: #0b1020;
    --ink-strong: #060a14;
    --ink-soft: #273044;
    --muted: #5d6780;
    --muted-soft: #7c879f;
    --line: #e5e9f2;
    --line-strong: #d5dbe9;
    --brand: #4353ff;
    --brand-deep: #2f3ee0;
    --brand-soft: #eef0ff;
    --brand-tint: #f5f6ff;
    --violet: #7c3aed;
    --cyan: #06b6d4;
    --green: #059669;
    --green-bright: #10b981;
    --green-soft: #e9fbf3;
    --amber: #b45309;
    --red: #dc2626;
    --white: #ffffff;

    --font-sans: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;

    --shadow-xs: 0 1px 2px rgba(11, 16, 32, 0.04);
    --shadow-sm: 0 4px 16px -6px rgba(11, 16, 32, 0.1);
    --shadow-md: 0 18px 46px -22px rgba(11, 16, 32, 0.24);
    --shadow-lg: 0 32px 80px -32px rgba(11, 16, 32, 0.32);

    --container: 1220px;
    --header-h: 78px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.nav-open,
body.modal-open {
    overflow: hidden;
}

::selection {
    background: rgba(67, 83, 255, 0.18);
    color: var(--ink-strong);
}

img,
svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

code,
pre {
    font-family: var(--font-mono);
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section {
    position: relative;
    padding: 104px 0;
    scroll-margin-top: 92px;
}

.section-head {
    margin-bottom: 44px;
}

.centered-head {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.split-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--brand-deep);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    box-shadow: 0 0 0 4px rgba(67, 83, 255, 0.09);
}

.eyebrow-divider {
    width: 1px;
    height: 12px;
    background: var(--line-strong);
    margin: 0 2px;
}

.eyebrow-soft {
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.eyebrow-on-dark {
    color: #a5b4fc;
}

.section-title {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--ink-strong);
    text-wrap: balance;
}

.section-lead {
    max-width: 650px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.045rem;
    line-height: 1.7;
}

.centered-head .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.section-lead a {
    color: var(--brand-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gradient-text {
    background: linear-gradient(102deg, #4353ff 0%, #6d4bff 46%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text-light {
    background: linear-gradient(102deg, #a5b4fc 0%, #67e8f9 60%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ================= Announcement ================= */

.announce {
    position: relative;
    z-index: 110;
    background: #080d1a;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
}

.announce-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.announce p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announce a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c7d2fe;
    font-weight: 700;
    white-space: nowrap;
}

.announce a:hover {
    color: #ffffff;
}

.announce a .icon {
    font-size: 12px;
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pulse-dot {
    position: relative;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--green-bright);
    flex-shrink: 0;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    70%,
    100% {
        transform: scale(3.4);
        opacity: 0;
    }
}

/* ================= Header ================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 249, 252, 0.74);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.86);
    border-bottom-color: rgba(213, 219, 233, 0.8);
    box-shadow: 0 12px 32px -26px rgba(11, 16, 32, 0.4);
}

.header-inner {
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    justify-self: start;
    border-radius: 10px;
}

.brand img {
    border-radius: 11px;
    box-shadow: 0 4px 14px -6px rgba(67, 83, 255, 0.55);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-strong);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.brand-badge {
    padding: 2px 5px;
    border: 1px solid rgba(67, 83, 255, 0.2);
    border-radius: 4px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    transform: translateY(-1px);
}

.brand-sub {
    margin-top: 3px;
    color: var(--muted-soft);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-self: center;
    padding: 4px;
    border: 1px solid rgba(213, 219, 233, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.primary-nav a:hover {
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 3px 10px -4px rgba(15, 23, 42, 0.18);
}

.nav-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--green-bright);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    justify-self: end;
}

.header-docs {
    font-size: 12.5px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #ffffff;
    color: var(--ink-soft);
}

.menu-toggle .icon {
    font-size: 19px;
}

.menu-toggle .icon-close {
    display: none;
}

.nav-open .menu-toggle .icon-menu {
    display: none;
}

.nav-open .menu-toggle .icon-close {
    display: block;
}

/* ================= Buttons ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.18s var(--ease), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn .icon {
    font-size: 15px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.99);
}

.btn-primary {
    background: linear-gradient(135deg, #4f5dff 0%, #4038e8 100%);
    border-color: rgba(47, 62, 224, 0.6);
    color: #ffffff;
    box-shadow: 0 10px 24px -12px rgba(67, 83, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5b68ff 0%, #4b43f2 100%);
    box-shadow: 0 16px 30px -14px rgba(67, 83, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-secondary {
    background: #ffffff;
    border-color: var(--line-strong);
    color: var(--ink-soft);
    box-shadow: 0 1px 2px rgba(11, 16, 32, 0.04);
}

.btn-secondary:hover {
    border-color: #bac3d6;
    background: #fbfcff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--ink);
}

.btn-sm {
    height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 12.5px;
}

.btn-lg {
    height: 52px;
    padding: 0 22px;
    border-radius: 13px;
    font-size: 14.5px;
}

.btn-block {
    width: 100%;
}

.btn-light {
    background: #ffffff;
    color: var(--ink-strong);
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.65);
}

.btn-light:hover {
    background: #f2f4ff;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.38);
}

.icon-button {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.icon-button:hover {
    background: var(--surface-sunken);
    border-color: var(--line);
    color: var(--ink);
}

.icon-button .icon {
    font-size: 15px;
}

/* ================= Hero ================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 88px;
    border-bottom: 1px solid rgba(229, 233, 242, 0.8);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(100, 116, 139, 0.22) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 88%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 88%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}

.hero-blob-a {
    width: 620px;
    height: 560px;
    left: -180px;
    top: -220px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.38), transparent 66%);
}

.hero-blob-b {
    width: 560px;
    height: 520px;
    right: -140px;
    top: -180px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.26), transparent 68%);
}

.hero-blob-c {
    width: 660px;
    height: 440px;
    right: 4%;
    bottom: -300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
}

.hero-fade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(58% 58% at 30% 34%, rgba(255, 255, 255, 0.9), transparent 72%),
        linear-gradient(to bottom, rgba(248, 249, 252, 0) 55%, var(--bg) 100%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: 58px;
}

.hero-copy {
    max-width: 640px;
}

.hero .eyebrow {
    padding: 6px 11px;
    border: 1px solid rgba(67, 83, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 10.5px;
}

.hero-title {
    font-size: clamp(2.65rem, 5.1vw, 4.2rem);
    line-height: 1.045;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: var(--ink-strong);
}

.accent-underline {
    position: relative;
    white-space: nowrap;
}

.accent-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.03em;
    height: 0.14em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(67, 83, 255, 0.22), rgba(6, 182, 212, 0.34));
    z-index: -1;
}

.hero-lead {
    max-width: 580px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.72;
}

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

.hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    max-width: 520px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(213, 219, 233, 0.75);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.point-check {
    display: inline-grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 999px;
    background: rgba(67, 83, 255, 0.1);
    color: var(--brand-deep);
    flex-shrink: 0;
}

.point-check .icon {
    font-size: 11px;
    stroke-width: 2.4;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.provider-stack {
    display: flex;
    padding-left: 4px;
}

.stack-tile {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    margin-left: -5px;
    border: 2px solid var(--bg);
    border-radius: 9px;
    background: var(--tile);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Terminal */

.hero-stage {
    position: relative;
    width: 100%;
    max-width: 560px;
    justify-self: end;
}

.terminal-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: #0b1220;
    color: #e2e8f0;
    box-shadow:
        0 50px 100px -40px rgba(11, 16, 32, 0.6),
        0 20px 40px -28px rgba(11, 16, 32, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.terminal-glow {
    position: absolute;
    width: 340px;
    height: 240px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 83, 255, 0.34), transparent 70%);
    filter: blur(24px);
    pointer-events: none;
}

.terminal-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.window-dots {
    display: inline-flex;
    gap: 5px;
}

.window-dots i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.window-dots i:first-child {
    background: #fb7185;
}

.window-dots i:nth-child(2) {
    background: #fbbf24;
}

.window-dots i:nth-child(3) {
    background: #34d399;
}

.terminal-endpoint {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(226, 232, 240, 0.55);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.01em;
}

.terminal-endpoint .method {
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.13);
    color: #6ee7b7;
    font-size: 9px;
    font-weight: 700;
}

.terminal-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #6ee7b7;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.terminal-inner {
    position: relative;
    padding: 16px;
}

.terminal-model-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
}

.model-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 5px 9px 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    color: #dbe4ff;
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.model-pill > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-avatar {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 6px;
    background: var(--avatar);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.mini-chip {
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(226, 232, 240, 0.48);
    font-family: var(--font-mono);
    font-size: 9px;
    white-space: nowrap;
}

.mini-chip-soft {
    color: rgba(165, 180, 252, 0.75);
    border-color: rgba(165, 180, 252, 0.16);
    background: rgba(99, 102, 241, 0.08);
}

.terminal-request {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(2, 6, 17, 0.55);
    padding: 11px 12px;
}

.terminal-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(226, 232, 240, 0.42);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.terminal-label em {
    font-style: normal;
    color: rgba(110, 231, 183, 0.72);
    letter-spacing: 0.04em;
}

.terminal-copy {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: rgba(226, 232, 240, 0.36);
    transition: background 0.18s ease, color 0.18s ease;
}

.terminal-copy:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.terminal-copy .icon {
    font-size: 12px;
}

.terminal-code {
    margin: 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.75;
    color: rgba(226, 232, 240, 0.72);
    white-space: pre;
    scrollbar-width: thin;
}

.c-muted {
    color: rgba(148, 163, 184, 0.5);
}

.c-green {
    color: #6ee7b7;
}

.c-blue {
    color: #93c5fd;
}

.c-comment {
    color: rgba(148, 163, 184, 0.5);
}

.terminal-response {
    position: relative;
    margin-top: 14px;
    padding: 0 2px;
}

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

.terminal-time {
    color: rgba(148, 163, 184, 0.45);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0;
}

.terminal-answer {
    min-height: 66px;
    color: rgba(226, 232, 240, 0.84);
    font-size: 12.5px;
    line-height: 1.68;
}

.terminal-answer code {
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.14);
    color: #c7d2fe;
    font-size: 11px;
}

.terminal-caret {
    display: inline-block;
    width: 6px;
    height: 13px;
    margin-left: 2px;
    border-radius: 1px;
    background: #818cf8;
    vertical-align: -2px;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    0%,
    48% {
        opacity: 1;
    }
    49%,
    100% {
        opacity: 0;
    }
}

.terminal-usage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-usage div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-usage span {
    color: rgba(148, 163, 184, 0.55);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.terminal-usage strong {
    color: #f8fafc;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.terminal-usage .usage-cost {
    color: #6ee7b7;
}

.terminal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(226, 232, 240, 0.48);
    font-size: 10px;
    font-weight: 600;
    transition: color 0.18s ease, background 0.18s ease;
}

.terminal-action:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.terminal-action .icon {
    font-size: 11px;
}

.terminal-action-link {
    color: rgba(165, 180, 252, 0.7);
}

.float-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px -18px rgba(11, 16, 32, 0.35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: float-y 5s ease-in-out infinite;
}

.float-chip-top {
    top: -18px;
    left: -28px;
}

.float-chip-bottom {
    right: -18px;
    bottom: -18px;
    animation-delay: -2.2s;
}

.float-chip > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.float-chip strong {
    color: var(--ink-strong);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.float-chip small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.float-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.float-icon .icon {
    font-size: 15px;
}

.float-icon-green {
    background: var(--green-soft);
    color: var(--green);
}

@keyframes float-y {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

/* ================= SDK strip / marquee ================= */

.sdk-strip {
    position: relative;
    padding: 24px 0 26px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    overflow: hidden;
}

.sdk-label {
    color: var(--muted-soft);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
}

.marquee {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
}

.sdk-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px 7px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
}

.sdk-mark {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    background: var(--mark);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ================= Models ================= */

.models-section {
    background:
        radial-gradient(52% 38% at 15% 0%, rgba(238, 240, 255, 0.8), transparent 70%),
        #fbfbfe;
    border-bottom: 1px solid var(--line);
}

.rate-note {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-xs);
}

.rate-note-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.rate-note-icon .icon {
    font-size: 17px;
}

.rate-note div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rate-note strong {
    color: var(--ink-strong);
    font-size: 12.5px;
    font-weight: 800;
}

.rate-note span:last-child {
    color: var(--muted);
    font-size: 11px;
}

.featured-model {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
    gap: 34px;
    padding: 34px;
    border: 1px solid rgba(67, 83, 255, 0.18);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(48% 80% at 0% 0%, rgba(224, 231, 255, 0.8), transparent 68%),
        linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 24px 64px -36px rgba(67, 83, 255, 0.4);
    overflow: hidden;
}

.featured-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    right: -160px;
    top: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

.featured-main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.featured-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    background: var(--green-soft);
    color: #047857;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.live-badge-sm {
    padding: 3px 7px;
    font-size: 9px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
}

.tag .icon {
    font-size: 11px;
}

.tag-popular {
    border-color: rgba(67, 83, 255, 0.16);
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.tag-live {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.featured-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.provider-tile {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--tile);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px -8px rgba(11, 16, 32, 0.5);
    flex-shrink: 0;
}

.provider-tile-lg {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    font-size: 15px;
}

.provider-tile-sm {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 8.5px;
    vertical-align: middle;
    margin-right: 6px;
}

.featured-title-row h3 {
    color: var(--ink-strong);
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.model-id-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.model-id-row code {
    color: var(--brand-deep);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
}

.model-id-row .icon-button {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.model-id-row .icon {
    font-size: 12px;
}

.featured-desc {
    max-width: 620px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 13.8px;
    line-height: 1.68;
}

.featured-main .tag-row {
    margin-top: 16px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.featured-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(213, 219, 233, 0.65);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metric-label {
    color: var(--muted-soft);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.metric strong {
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 700;
}

.featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.featured-price {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        radial-gradient(70% 60% at 100% 0%, rgba(67, 83, 255, 0.28), transparent 68%),
        #0b1220;
    color: #e2e8f0;
    box-shadow: 0 24px 50px -30px rgba(11, 16, 32, 0.65);
}

.price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(226, 232, 240, 0.5);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.price-currency {
    padding: 2px 6px;
    border: 1px solid rgba(165, 180, 252, 0.25);
    border-radius: 4px;
    color: #a5b4fc;
    font-size: 8.5px;
    letter-spacing: 0.1em;
}

.price-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-row:first-of-type {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-label {
    color: rgba(148, 163, 184, 0.72);
    font-size: 10.5px;
    font-weight: 600;
}

.price-value {
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.price-value small {
    margin-left: 4px;
    color: rgba(148, 163, 184, 0.6);
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0;
}

.price-example {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 11px 12px;
    border: 1px solid rgba(110, 231, 183, 0.13);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.06);
}

.price-example-icon {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.13);
    color: #6ee7b7;
    flex-shrink: 0;
}

.price-example-icon .icon {
    font-size: 12px;
}

.price-example p {
    color: rgba(226, 232, 240, 0.68);
    font-size: 10.5px;
    line-height: 1.55;
}

.price-example strong {
    color: #6ee7b7;
}

.price-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 15px;
    color: rgba(148, 163, 184, 0.55);
    font-size: 9.5px;
    line-height: 1.45;
}

.price-foot .icon {
    font-size: 12px;
    color: #6ee7b7;
}

/* Catalog */

.catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
}

.catalog-head h3 {
    color: var(--ink-strong);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.catalog-head p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.catalog-result {
    color: var(--muted-soft);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-xs);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 260px;
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--surface-soft);
    color: var(--muted-soft);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.search-box:focus-within {
    border-color: rgba(67, 83, 255, 0.28);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.08);
}

.search-box .icon {
    font-size: 15px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--muted-soft);
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.filter-chip {
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-chip:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.filter-chip.is-active {
    border-color: rgba(67, 83, 255, 0.14);
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.sort-select {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sort-select select {
    height: 38px;
    padding: 0 32px 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff;
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 700;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.sort-select .icon {
    position: absolute;
    right: 10px;
    color: var(--muted-soft);
    font-size: 12px;
    pointer-events: none;
}

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

.model-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
}

.model-card:hover {
    transform: translateY(-3px);
    border-color: rgba(67, 83, 255, 0.2);
    box-shadow: 0 18px 40px -24px rgba(11, 16, 32, 0.28);
}

.model-card.is-filtered-out {
    display: none;
}

.model-card-top {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.model-card-top .provider-tile {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 10.5px;
}

.model-card-title {
    min-width: 0;
    flex: 1;
}

.model-card-title h4 {
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.model-card-title code {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted-soft);
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.availability {
    flex-shrink: 0;
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--muted-soft);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.availability.is-live {
    border-color: rgba(16, 185, 129, 0.18);
    background: var(--green-soft);
    color: #047857;
}

.model-desc {
    margin-top: 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.tag-row-sm {
    margin-top: 12px;
}

.tag-row-sm .tag {
    padding: 3px 6px;
    font-size: 9.5px;
}

.model-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.model-meta div {
    min-width: 0;
}

.model-meta dt {
    color: var(--muted-soft);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.model-meta dd {
    margin-top: 4px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
}

.model-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.model-provider {
    color: var(--muted-soft);
    font-size: 10px;
    font-weight: 600;
}

.mini-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-deep);
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.mini-link .icon {
    font-size: 11px;
    transition: transform 0.18s ease;
}

.mini-link:hover .icon {
    transform: translateX(2px);
}

.mini-link-strong {
    margin-top: 14px;
    font-size: 12px;
}

.catalog-empty {
    margin-top: 16px;
    padding: 48px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.empty-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-sunken);
    color: var(--muted-soft);
}

.empty-icon .icon {
    font-size: 20px;
}

.catalog-empty h4 {
    margin-top: 13px;
    color: var(--ink-strong);
    font-size: 15px;
    font-weight: 800;
}

.catalog-empty p {
    margin: 6px 0 16px;
    color: var(--muted);
    font-size: 12.5px;
}

.catalog-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 18px;
    color: var(--muted-soft);
    font-size: 10.5px;
    line-height: 1.55;
}

.catalog-note .icon {
    margin-top: 1px;
    font-size: 13px;
    flex-shrink: 0;
}

/* ================= Playground ================= */

.playground-section {
    background:
        radial-gradient(60% 44% at 50% 0%, rgba(224, 231, 255, 0.9), transparent 70%),
        radial-gradient(40% 30% at 100% 60%, rgba(207, 250, 254, 0.55), transparent 70%),
        #f4f6fc;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.playground-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(100, 116, 139, 0.14) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 60%);
    pointer-events: none;
}

.playground-section .container {
    position: relative;
    z-index: 1;
}

.playground-shell {
    display: grid;
    grid-template-columns: 306px minmax(0, 1fr);
    border: 1px solid rgba(213, 219, 233, 0.9);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow:
        0 40px 90px -46px rgba(11, 16, 32, 0.35),
        0 12px 30px -22px rgba(11, 16, 32, 0.2);
    overflow: hidden;
}

.playground-side {
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding: 22px;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, #f8f9fd 0%, #f5f7fc 100%);
}

.side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.side-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.mode-badge .icon {
    font-size: 10px;
}

.mode-badge.is-demo {
    border: 1px solid rgba(180, 83, 9, 0.16);
    background: #fff7ed;
    color: var(--amber);
}

.mode-badge.is-live {
    border: 1px solid rgba(16, 185, 129, 0.18);
    background: var(--green-soft);
    color: #047857;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.field-label {
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.field-value {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--surface-sunken);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
}

.select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrap select {
    width: 100%;
    height: 38px;
    padding: 0 32px 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #ffffff;
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 600;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    text-overflow: ellipsis;
}

.select-wrap select:focus {
    border-color: rgba(67, 83, 255, 0.4);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.08);
}

.select-wrap .icon {
    position: absolute;
    right: 10px;
    color: var(--muted-soft);
    font-size: 12px;
    pointer-events: none;
}

.model-select-wrap select {
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
}

.field-textarea {
    width: 100%;
    min-height: 88px;
    padding: 9px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #ffffff;
    color: var(--ink-soft);
    font-size: 11.5px;
    line-height: 1.55;
    resize: vertical;
}

.field-textarea:focus {
    border-color: rgba(67, 83, 255, 0.4);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.08);
}

.range {
    width: 100%;
    height: 4px;
    margin: 7px 0 2px;
    accent-color: var(--brand);
    cursor: pointer;
}

.range-legend {
    display: flex;
    justify-content: space-between;
    color: var(--muted-soft);
    font-size: 9px;
    font-weight: 600;
}

.side-rate {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #ffffff;
}

.side-rate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.side-rate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.side-rate-grid div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.side-rate-grid span {
    color: var(--muted-soft);
    font-size: 9px;
    font-weight: 600;
}

.side-rate-grid strong {
    color: var(--ink-strong);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
}

.side-rate-grid small {
    margin-left: 2px;
    color: var(--muted-soft);
    font-family: var(--font-sans);
    font-size: 8px;
}

.side-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: auto;
    color: var(--muted-soft);
    font-size: 9.5px;
    line-height: 1.5;
}

.side-note .icon {
    margin-top: 1px;
    font-size: 11px;
    flex-shrink: 0;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
}

.chat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.chat-model {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.chat-model .provider-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 10px;
}

.chat-model-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.chat-model-copy strong {
    color: var(--ink-strong);
    font-size: 12.5px;
    font-weight: 800;
}

.chat-model-copy code {
    overflow: hidden;
    color: var(--muted-soft);
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-top-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.context-chip {
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.chat-log {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 468px;
    padding: 22px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cfd6e4 transparent;
}

.chat-log::-webkit-scrollbar {
    width: 7px;
}

.chat-log::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #cfd6e4;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 20px 12px;
}

.chat-empty-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(67, 83, 255, 0.16);
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    box-shadow: 0 8px 20px -14px rgba(67, 83, 255, 0.7);
}

.chat-empty-icon .icon {
    font-size: 22px;
}

.chat-empty h3 {
    margin-top: 15px;
    color: var(--ink-strong);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.chat-empty p {
    max-width: 390px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.prompt-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    max-width: 470px;
    margin-top: 18px;
}

.prompt-chip {
    padding: 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.3;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.prompt-chip:hover {
    border-color: rgba(67, 83, 255, 0.3);
    background: var(--brand-tint);
    color: var(--brand-deep);
}

.msg {
    display: flex;
    gap: 10px;
    max-width: 100%;
    animation: msg-in 0.26s var(--ease);
}

@keyframes msg-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.msg-user {
    justify-content: flex-end;
}

.msg-user .msg-bubble {
    max-width: 78%;
    padding: 10px 13px;
    border-radius: 14px 14px 4px 14px;
    background: linear-gradient(135deg, #4f5dff, #4038e8);
    color: #ffffff;
    font-size: 12.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 20px -14px rgba(67, 83, 255, 0.7);
}

.msg-assistant {
    align-items: flex-start;
}

.msg-avatar {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.msg-assistant .msg-body {
    min-width: 0;
    max-width: 86%;
}

.msg-name {
    margin-bottom: 5px;
    color: var(--muted-soft);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.msg-bubble {
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 4px 14px 14px 14px;
    background: var(--surface-soft);
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.68;
    overflow-wrap: anywhere;
}

.msg-bubble.is-streaming {
    white-space: pre-wrap;
}

.msg-bubble.is-error {
    border-color: rgba(220, 38, 38, 0.18);
    background: #fef2f2;
    color: #991b1b;
}

.msg-bubble .md > *:first-child {
    margin-top: 0;
}

.msg-bubble .md > *:last-child {
    margin-bottom: 0;
}

.md p {
    margin: 0 0 9px;
}

.md h1,
.md h2,
.md h3 {
    margin: 14px 0 7px;
    color: var(--ink-strong);
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.35;
}

.md ul,
.md ol {
    margin: 4px 0 10px;
    padding-left: 18px;
}

.md ul {
    list-style: disc;
}

.md ol {
    list-style: decimal;
}

.md li {
    margin: 3px 0;
}

.md strong {
    color: var(--ink-strong);
    font-weight: 800;
}

.md em {
    font-style: italic;
}

.md code {
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(67, 83, 255, 0.08);
    color: var(--brand-deep);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.md pre {
    margin: 9px 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: #0b1220;
    color: #dbe4ff;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.6;
    overflow-x: auto;
}

.md pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

.md blockquote {
    margin: 9px 0;
    padding: 6px 11px;
    border-left: 2px solid rgba(67, 83, 255, 0.3);
    background: rgba(67, 83, 255, 0.04);
    color: var(--muted);
    font-size: 12px;
}

.md a {
    color: var(--brand-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 14px;
}

.typing-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand);
    animation: typing 1.2s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    30% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.chat-composer {
    padding: 12px 18px 13px;
    border-top: 1px solid var(--line);
}

.composer-box {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 7px 7px 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.composer-box:focus-within {
    border-color: rgba(67, 83, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.07);
}

.composer-box textarea {
    flex: 1;
    min-height: 30px;
    max-height: 130px;
    padding: 5px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12.5px;
    line-height: 1.55;
    resize: none;
}

.composer-box textarea::placeholder {
    color: var(--muted-soft);
}

.send-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f5dff, #4038e8);
    color: #ffffff;
    flex-shrink: 0;
    transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.send-button:hover {
    filter: brightness(1.08);
}

.send-button:active {
    transform: scale(0.96);
}

.send-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.send-button .icon {
    font-size: 16px;
}

.stop-button {
    background: #0f172a;
}

.composer-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    color: var(--muted-soft);
    font-size: 9.5px;
}

#composer-mode {
    text-align: right;
}

.chat-usage {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 10px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.usage-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.usage-item span {
    color: var(--muted-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.usage-item strong {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
}

.usage-item .usage-cost {
    color: var(--brand-deep);
}

.usage-latency {
    margin-left: auto;
}

.playground-disclaimer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    max-width: 780px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.55;
    text-align: center;
}

.playground-disclaimer .icon {
    margin-top: 1px;
    font-size: 13px;
    flex-shrink: 0;
}

/* ================= Integration ================= */

.integration-section {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.integration-badge {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
    flex-shrink: 0;
}

.integration-badge .provider-tile {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 9.5px;
}

.integration-badge div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.integration-badge strong {
    color: var(--ink-strong);
    font-size: 12px;
    font-weight: 800;
}

.integration-badge span:last-child {
    color: var(--muted);
    font-size: 10px;
}

.integration-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 48px;
    align-items: start;
}

.integration-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-item {
    position: relative;
    display: flex;
    gap: 15px;
    padding: 0 0 24px;
}

.step-item:not(:last-of-type)::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 37px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(67, 83, 255, 0.24), rgba(67, 83, 255, 0.04));
}

.step-number {
    display: inline-grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border: 1px solid rgba(67, 83, 255, 0.16);
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-item h3 {
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    padding-top: 5px;
}

.step-item p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.step-item code {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--brand-deep);
    font-family: var(--font-mono);
    font-size: 10.5px;
    overflow-wrap: anywhere;
}

.integration-compat {
    margin-top: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
}

.compat-title {
    color: var(--muted-soft);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.compat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.compat-list span {
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #ffffff;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 600;
}

.code-window {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #0b1220;
    color: #dbe4ff;
    box-shadow:
        0 36px 80px -42px rgba(11, 16, 32, 0.6),
        0 12px 28px -24px rgba(11, 16, 32, 0.3);
    overflow: hidden;
}

.code-window-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 49px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.code-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.code-tabs::-webkit-scrollbar {
    display: none;
}

.code-tab {
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: rgba(226, 232, 240, 0.45);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.code-tab:hover {
    color: rgba(226, 232, 240, 0.8);
}

.code-tab.is-active {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.code-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    background: transparent;
    color: rgba(226, 232, 240, 0.56);
    font-size: 10px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.code-copy:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.code-copy .icon {
    font-size: 11px;
}

.code-pane {
    display: none;
}

.code-pane.is-active {
    display: block;
}

.code-pane pre {
    max-height: 400px;
    margin: 0;
    padding: 20px;
    overflow: auto;
    font-size: 11.5px;
    line-height: 1.78;
    color: #cbd5e1;
    tab-size: 4;
}

.code-pane pre::-webkit-scrollbar,
.code-response pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-pane pre::-webkit-scrollbar-thumb,
.code-response pre::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
}

.code-response {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #080d18;
}

.code-response-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(226, 232, 240, 0.5);
    font-family: var(--font-mono);
    font-size: 9px;
}

.code-response-time {
    color: rgba(148, 163, 184, 0.4);
}

.code-response pre {
    max-height: 190px;
    margin: 0;
    padding: 14px 16px;
    overflow: auto;
    color: rgba(203, 213, 225, 0.7);
    font-size: 10.5px;
    line-height: 1.65;
}

/* ================= Features / bento ================= */

.features-section {
    background:
        radial-gradient(50% 40% at 85% 10%, rgba(238, 240, 255, 0.9), transparent 70%),
        #f8f9fc;
    border-bottom: 1px solid var(--line);
}

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

.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 236px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: transform 0.22s var(--ease), box-shadow 0.22s ease, border-color 0.22s ease;
}

.bento-card:hover {
    transform: translateY(-2px);
    border-color: rgba(67, 83, 255, 0.16);
    box-shadow: 0 22px 50px -30px rgba(11, 16, 32, 0.26);
}

.bento-wide {
    grid-column: span 2;
}

.bento-card:nth-child(6) {
    grid-column: span 2;
}

.bento-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(67, 83, 255, 0.12);
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    flex-shrink: 0;
}

.bento-icon .icon {
    font-size: 18px;
}

.bento-card h3 {
    margin-top: 17px;
    color: var(--ink-strong);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bento-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.bento-dark {
    min-height: 336px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr);
    gap: 20px;
    border-color: rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(60% 70% at 100% 0%, rgba(67, 83, 255, 0.32), transparent 65%),
        radial-gradient(50% 50% at 0% 100%, rgba(6, 182, 212, 0.12), transparent 70%),
        #0b1220;
    color: #e2e8f0;
}

.bento-dark:hover {
    border-color: rgba(165, 180, 252, 0.2);
    box-shadow: 0 30px 60px -34px rgba(11, 16, 32, 0.7);
}

.bento-dark h3 {
    color: #ffffff;
    font-size: 18px;
}

.bento-dark p {
    color: rgba(226, 232, 240, 0.6);
    font-size: 12.5px;
    max-width: 420px;
}

.bento-dark .bento-icon {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #a5b4fc;
}

.bento-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bento-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin-top: 18px;
}

.bento-list li {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 10.5px;
    font-weight: 600;
}

.bento-list .icon {
    font-size: 11px;
    color: #6ee7b7;
}

.route-visual {
    position: relative;
    align-self: center;
    min-height: 230px;
}

.route-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.route-lines path {
    fill: none;
    stroke: rgba(165, 180, 252, 0.24);
    stroke-width: 1.2;
    stroke-dasharray: 4 5;
}

.route-lines .route-line-muted {
    stroke: rgba(148, 163, 184, 0.12);
}

.route-node {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.7);
    font-family: var(--font-mono);
    font-size: 9px;
}

.route-hub {
    position: absolute;
    left: 28%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(165, 180, 252, 0.2);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.06);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(67, 83, 255, 0.3);
}

.route-hub img {
    border-radius: 10px;
}

.route-ping {
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(165, 180, 252, 0.18);
    border-radius: 22px;
    animation: hub-ping 3s ease-out infinite;
}

@keyframes hub-ping {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    80%,
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

.route-targets {
    position: absolute;
    right: 0;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateY(-50%);
    z-index: 1;
}

.route-target {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.5);
    font-family: var(--font-mono);
    font-size: 8.5px;
    text-align: right;
}

.route-target.is-active {
    border-color: rgba(110, 231, 183, 0.25);
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

.route-target-muted {
    opacity: 0.55;
}

.mini-code {
    margin-top: auto;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted-soft);
    font-family: var(--font-mono);
    font-size: 9.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-code strong {
    color: var(--brand-deep);
    font-weight: 500;
}

.mini-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 34px;
    margin-top: auto;
    padding-top: 12px;
}

.mini-wave i {
    display: block;
    flex: 1;
    min-width: 2px;
    border-radius: 2px;
    background: linear-gradient(to top, rgba(67, 83, 255, 0.2), rgba(67, 83, 255, 0.7));
    animation: wave 1.8s ease-in-out infinite;
}

.mini-wave i:nth-child(1) { height: 30%; animation-delay: -1.2s; }
.mini-wave i:nth-child(2) { height: 58%; animation-delay: -1.1s; }
.mini-wave i:nth-child(3) { height: 42%; animation-delay: -1s; }
.mini-wave i:nth-child(4) { height: 82%; animation-delay: -0.9s; }
.mini-wave i:nth-child(5) { height: 54%; animation-delay: -0.8s; }
.mini-wave i:nth-child(6) { height: 96%; animation-delay: -0.7s; }
.mini-wave i:nth-child(7) { height: 64%; animation-delay: -0.6s; }
.mini-wave i:nth-child(8) { height: 36%; animation-delay: -0.5s; }
.mini-wave i:nth-child(9) { height: 74%; animation-delay: -0.4s; }
.mini-wave i:nth-child(10) { height: 48%; animation-delay: -0.3s; }
.mini-wave i:nth-child(11) { height: 88%; animation-delay: -0.2s; }
.mini-wave i:nth-child(12) { height: 40%; animation-delay: -0.1s; }

@keyframes wave {
    0%,
    100% {
        transform: scaleY(0.55);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.balance-visual {
    margin-top: auto;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-soft);
}

.balance-visual span {
    display: block;
    color: var(--muted-soft);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.balance-visual strong {
    display: block;
    margin-top: 3px;
    color: var(--ink-strong);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
}

.balance-bar {
    height: 4px;
    margin-top: 9px;
    border-radius: 99px;
    background: #e2e7f2;
    overflow: hidden;
}

.balance-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--cyan));
}

.key-visual {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted-soft);
}

.key-visual .icon {
    font-size: 13px;
    color: var(--brand-deep);
}

.key-visual code {
    font-family: var(--font-mono);
    font-size: 10px;
}

.log-visual {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
}

.log-visual > span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.log-visual em {
    flex: 1;
    overflow: hidden;
    color: var(--muted-soft);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-visual strong {
    color: var(--ink-soft);
    font-weight: 500;
}

.log-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-bright);
    flex-shrink: 0;
}

.log-dot-warn {
    background: #f59e0b;
}

/* ================= Pricing ================= */

.pricing-section {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 16px;
    align-items: stretch;
}

.pricing-main {
    position: relative;
    padding: 32px;
    border: 1px solid rgba(67, 83, 255, 0.2);
    border-radius: 24px;
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(224, 231, 255, 0.8), transparent 65%),
        linear-gradient(150deg, #ffffff, #fbfbff);
    box-shadow: 0 24px 60px -38px rgba(67, 83, 255, 0.45);
    overflow: hidden;
}

.pricing-glow {
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.14), transparent 70%);
    filter: blur(18px);
}

.pricing-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pricing-label {
    color: var(--brand-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.pricing-main h3 {
    position: relative;
    margin-top: 20px;
    color: var(--ink-strong);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.pricing-desc {
    position: relative;
    max-width: 500px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.pricing-rates {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.pricing-rate {
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.pricing-rate span {
    display: block;
    color: var(--muted-soft);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-rate strong {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-top: 5px;
    color: var(--ink-strong);
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.pricing-rate small {
    color: var(--muted-soft);
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 600;
}

.pricing-list {
    position: relative;
    display: grid;
    gap: 9px;
    margin-top: 22px;
}

.pricing-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
}

.pricing-list .icon {
    font-size: 13px;
    color: var(--brand-deep);
    stroke-width: 2.2;
}

.pricing-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.pricing-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-side-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-soft);
}

.pricing-side-card h3 {
    margin-top: 15px;
    color: var(--ink-strong);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pricing-side-card > p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.pricing-side-accent {
    border-color: rgba(67, 83, 255, 0.16);
    background:
        radial-gradient(80% 80% at 100% 0%, rgba(224, 231, 255, 0.9), transparent 70%),
        #f7f8ff;
}

.topup-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 16px;
}

.topup-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.topup-list span {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
}

.topup-list em {
    color: var(--muted-soft);
    font-size: 9px;
    font-style: normal;
}

.pricing-note {
    max-width: 760px;
    margin: 20px auto 0;
    color: var(--muted-soft);
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

.pricing-note code {
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--surface-sunken);
    color: var(--muted);
    font-size: 9.5px;
}

/* ================= FAQ ================= */

.faq-section {
    background:
        radial-gradient(46% 46% at 0% 20%, rgba(238, 240, 255, 0.8), transparent 70%),
        #f8f9fc;
    border-bottom: 1px solid var(--line);
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 56px;
    align-items: start;
}

.faq-intro .section-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.faq-help {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 28px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #ffffff;
    max-width: 310px;
}

.faq-help .bento-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.faq-help .bento-icon .icon {
    font-size: 16px;
}

.faq-help div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-help strong {
    color: var(--ink-strong);
    font-size: 11.5px;
    font-weight: 800;
}

.faq-help span:last-child {
    color: var(--muted);
    font-size: 10.5px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item[open] {
    border-color: rgba(67, 83, 255, 0.22);
    box-shadow: 0 12px 30px -24px rgba(67, 83, 255, 0.35);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: var(--ink-strong);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    border-radius: 13px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-plus {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.22s var(--ease), background 0.18s ease, color 0.18s ease;
}

.faq-plus .icon {
    font-size: 11px;
}

.faq-item[open] .faq-plus {
    transform: rotate(45deg);
    border-color: rgba(67, 83, 255, 0.16);
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.faq-answer {
    padding: 0 18px 17px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

/* ================= CTA ================= */

.cta-section {
    padding: 88px 0;
    background: #f8f9fc;
}

.cta-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 36px;
    align-items: center;
    padding: 52px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(60% 80% at 94% 4%, rgba(67, 83, 255, 0.36), transparent 62%),
        radial-gradient(50% 60% at 6% 100%, rgba(6, 182, 212, 0.17), transparent 70%),
        #080d1a;
    color: #ffffff;
    overflow: hidden;
}

.cta-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
    -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
    pointer-events: none;
}

.cta-glow {
    position: absolute;
    right: 12%;
    bottom: -230px;
    width: 520px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 83, 255, 0.25), transparent 66%);
    filter: blur(40px);
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 1;
}

.cta-copy h2 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.07;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.cta-copy > p {
    max-width: 490px;
    margin-top: 17px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 13.5px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.cta-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: rgba(148, 163, 184, 0.6);
    font-size: 10.5px;
    font-weight: 600;
}

.cta-note .icon {
    font-size: 12px;
    color: #6ee7b7;
}

.cta-terminal {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(2, 6, 17, 0.7);
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cta-terminal-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(226, 232, 240, 0.38);
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.cta-terminal pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    color: rgba(226, 232, 240, 0.68);
    font-size: 10px;
    line-height: 1.75;
    white-space: pre;
}

/* ================= Footer ================= */

.site-footer {
    padding: 62px 0 22px;
    background: #070b14;
    color: rgba(226, 232, 240, 0.55);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 0.65fr));
    gap: 40px;
    padding-bottom: 42px;
}

.footer-brand .brand-name {
    color: #ffffff;
}

.footer-brand .brand-sub {
    color: rgba(148, 163, 184, 0.65);
}

.footer-brand .brand img {
    box-shadow: none;
}

.footer-brand > p {
    max-width: 320px;
    margin-top: 16px;
    color: rgba(148, 163, 184, 0.66);
    font-size: 12px;
    line-height: 1.7;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 5px 9px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.06);
    color: #6ee7b7;
    font-size: 10px;
    font-weight: 700;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    margin-bottom: 4px;
    color: rgba(226, 232, 240, 0.86);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-col a {
    color: rgba(148, 163, 184, 0.66);
    font-size: 11.5px;
    font-weight: 500;
    transition: color 0.16s ease;
    width: fit-content;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(148, 163, 184, 0.45);
    font-size: 10.5px;
}

.footer-made {
    text-align: right;
}

/* ================= Modal ================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 20, 0.56);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: fade-in 0.2s ease;
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(90vh, 760px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5);
    animation: modal-in 0.28s var(--ease);
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: var(--surface-soft);
    border-color: var(--line);
}

.modal-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(67, 83, 255, 0.14);
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.modal-icon .icon {
    font-size: 20px;
}

.modal-eyebrow {
    display: block;
    margin-top: 18px;
    color: var(--brand-deep);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.modal-card h2 {
    margin-top: 6px;
    color: var(--ink-strong);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.modal-lead {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.modal-google {
    display: flex;
    justify-content: center;
    margin: 20px 0 12px;
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 800;
}

.form-field label span {
    color: var(--muted-soft);
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(67, 83, 255, 0.4);
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted-soft);
}

.form-note {
    color: var(--muted-soft);
    font-size: 9.5px;
    line-height: 1.5;
    text-align: center;
}

.form-error {
    padding: 8px 10px;
    border: 1px solid rgba(220, 38, 38, 0.16);
    border-radius: 7px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 11px;
    line-height: 1.5;
}

.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 8px;
    text-align: center;
}

.modal-success-icon {
    display: inline-grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
}

.modal-success-icon .icon {
    font-size: 26px;
    stroke-width: 2.2;
}

.modal-success h2 {
    margin-top: 16px;
}

.modal-success p {
    max-width: 320px;
    margin: 8px 0 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

/* ================= Toast ================= */

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #0b1220;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    transform: translateX(-50%);
    animation: toast-in 0.25s var(--ease);
}

.toast .icon {
    font-size: 14px;
    color: #6ee7b7;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, 8px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ================= Reveal ================= */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ================= Responsive ================= */

@media (max-width: 1140px) {
    .primary-nav a {
        padding: 8px 9px;
        font-size: 12px;
    }

    .hero-grid {
        gap: 36px;
    }

    .float-chip-top {
        left: -12px;
    }

    .float-chip-bottom {
        right: -8px;
    }

    .featured-model {
        grid-template-columns: minmax(0, 1.4fr) minmax(285px, 0.8fr);
        padding: 28px;
    }
}

@media (max-width: 1020px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px;
        border-radius: 16px;
        border-color: var(--line);
        background: #ffffff;
        box-shadow: 0 24px 60px -24px rgba(11, 16, 32, 0.35);
    }

    .nav-open .primary-nav {
        display: flex;
        animation: nav-in 0.22s ease;
    }

    @keyframes nav-in {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    .primary-nav a {
        padding: 11px 13px;
        border-radius: 9px;
        font-size: 13px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-stage {
        max-width: 620px;
        justify-self: start;
        width: 100%;
    }

    .float-chip-top {
        left: 14px;
    }

    .float-chip-bottom {
        right: 14px;
    }

    .featured-model {
        grid-template-columns: 1fr;
    }

    .featured-price {
        max-width: none;
    }

    .price-foot {
        margin-top: 4px;
    }

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

    .integration-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .integration-badge {
        display: none;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

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

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

@media (max-width: 900px) {
    .section {
        padding: 84px 0;
    }

    .split-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .cta-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .cta-terminal {
        display: none;
    }

    .cta-copy > p {
        max-width: 560px;
    }

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

    .bento-wide,
    .bento-card:nth-child(6) {
        grid-column: span 2;
    }

    .bento-dark {
        grid-template-columns: 1fr;
    }

    .route-visual {
        display: none;
    }

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

    .playground-side {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 15px 18px;
    }

    .side-head {
        grid-column: 1 / -1;
    }

    .side-rate {
        grid-column: 1 / -1;
    }

    .side-note {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .chat-log {
        height: 430px;
    }

    .footer-top {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .announce-inner {
        justify-content: flex-start;
        font-size: 11px;
        gap: 7px;
    }

    .announce-badge {
        display: none;
    }

    .announce a {
        margin-left: auto;
    }

    .header-inner {
        min-height: 68px;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .brand-name {
        font-size: 15.5px;
    }

    .brand-sub {
        font-size: 9.5px;
    }

    .header-docs {
        display: none;
    }

    .header-actions .btn-primary {
        height: 36px;
        padding: 0 12px;
        font-size: 11.5px;
    }

    .hero {
        padding: 46px 0 68px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8.5vw, 3rem);
    }

    .hero-lead {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 420px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-points {
        gap: 10px 18px;
    }

    .hero-points li {
        font-size: 12px;
    }

    .float-chip {
        display: none;
    }

    .terminal-inner {
        padding: 13px;
    }

    .mini-chip-soft {
        display: none;
    }

    .terminal-code {
        font-size: 9.5px;
    }

    .terminal-answer {
        font-size: 11.5px;
    }

    .sdk-strip {
        padding: 20px 0;
    }

    .section {
        padding: 68px 0;
    }

    .section-title {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
    }

    .section-lead {
        font-size: 0.97rem;
    }

    .rate-note {
        width: 100%;
    }

    .featured-model {
        padding: 20px;
        border-radius: 20px;
        gap: 22px;
    }

    .featured-title-row {
        align-items: flex-start;
    }

    .provider-tile-lg {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 12px;
    }

    .featured-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .featured-actions .btn {
        flex: 1;
        padding: 0 12px;
        font-size: 12px;
    }

    .featured-price {
        padding: 20px;
    }

    .catalog-toolbar {
        flex-wrap: wrap;
    }

    .search-box {
        flex-basis: 100%;
    }

    .filter-chips {
        flex: 1;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .sort-select {
        margin-left: auto;
    }

    .model-grid {
        grid-template-columns: 1fr;
    }

    .model-card {
        padding: 18px;
    }

    .catalog-head {
        margin-top: 44px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .playground-side {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .side-rate,
    .side-note,
    .side-head {
        grid-column: auto;
    }

    .chat-log {
        height: 400px;
        padding: 16px;
    }

    .chat-topbar {
        padding: 12px 14px;
    }

    .context-chip {
        display: none;
    }

    .chat-composer {
        padding: 10px 12px 12px;
    }

    .composer-hint {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    #composer-mode {
        text-align: left;
    }

    .chat-usage {
        gap: 12px;
        padding: 9px 12px;
    }

    .usage-latency {
        margin-left: 0;
    }

    .msg-assistant .msg-body {
        max-width: calc(100% - 38px);
    }

    .msg-user .msg-bubble {
        max-width: 88%;
    }

    .code-window-top {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 6px;
    }

    .code-tab {
        padding: 5px 7px;
        font-size: 9.5px;
    }

    .code-copy {
        margin-left: auto;
    }

    .code-pane pre {
        padding: 15px;
        font-size: 10px;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-wide,
    .bento-card:nth-child(6) {
        grid-column: span 1;
        min-height: 0;
    }

    .bento-dark {
        min-height: 0;
    }

    .bento-card {
        padding: 20px;
    }

    .pricing-main {
        padding: 22px;
    }

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

    .pricing-rate strong {
        font-size: 1.3rem;
    }

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

    .faq-item summary {
        padding: 14px 15px;
        font-size: 12px;
    }

    .faq-answer {
        padding: 0 15px 15px;
        font-size: 11.5px;
    }

    .cta-section {
        padding: 64px 0;
    }

    .cta-card {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .cta-copy h2 {
        font-size: 2rem;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-made {
        text-align: left;
    }

    .modal-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .announce p {
        display: none;
    }

    .announce-inner {
        justify-content: space-between;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .hero .eyebrow {
        font-size: 9px;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .terminal-endpoint {
        font-size: 9px;
    }

    .terminal-usage strong {
        font-size: 10.5px;
    }

    .terminal-footer {
        flex-wrap: wrap;
    }

    .featured-title-row h3 {
        font-size: 1.4rem;
    }

    .model-meta {
        gap: 5px;
    }

    .model-meta dd {
        font-size: 9.5px;
    }

    .chat-empty {
        padding: 12px 4px;
    }

    .prompt-chips {
        gap: 5px;
    }

    .prompt-chip {
        font-size: 9.5px;
        padding: 6px 9px;
    }

    .pricing-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ================= Markdown tables ================= */

.md table {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    font-size: 10.5px;
}

.md th,
.md td {
    padding: 6px 8px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.md th {
    background: #f2f4fb;
    color: var(--ink-strong);
    font-weight: 800;
}

.md td {
    background: #ffffff;
}

/* ================= Status page ================= */

.status-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--line);
}

.status-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.status-hero-inner h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: var(--ink-strong);
}

.status-hero-inner .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.status-pill.is-operational {
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: var(--green-soft);
    color: #047857;
}

.status-pill.is-degraded {
    border: 1px solid rgba(180, 83, 9, 0.2);
    background: #fff7ed;
    color: var(--amber);
}

.status-pill.is-down {
    border: 1px solid rgba(220, 38, 38, 0.2);
    background: #fef2f2;
    color: #b91c1c;
}

.status-pill.is-unknown {
    border: 1px solid var(--line-strong);
    background: var(--surface-sunken);
    color: var(--muted);
}

.status-updated {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 600;
}

.status-section {
    padding-top: 64px;
}

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

.status-board-head h2 {
    color: var(--ink-strong);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.status-board-head .uptime-legend {
    margin-bottom: 0;
}

.status-board + .status-board {
    margin-top: 34px;
}

.service-table {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.service-table-head,
.service-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.5fr) 130px 80px 110px minmax(250px, 1.7fr);
    gap: 18px;
    align-items: center;
    padding: 16px 22px;
}

.service-table-channel .service-table-head,
.service-table-channel .service-row {
    grid-template-columns: minmax(230px, 1.5fr) 130px 110px minmax(250px, 1.7fr);
}

.service-table-head {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfbfe, #ffffff);
    color: var(--muted-soft);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-row + .service-row {
    border-top: 1px solid var(--line);
}

.service-row:hover {
    background: #fcfcff;
}

.service-cell {
    min-width: 0;
}

.service-name-cell {
    display: flex;
    align-items: center;
    gap: 13px;
}

.service-name-cell h2 {
    color: var(--ink-strong);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.service-name-cell p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.service-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--tile) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--tile) 22%, #ffffff);
    color: var(--tile);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.service-metric {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.service-history-cell {
    width: 100%;
}

.uptime-track {
    width: 100%;
}

.uptime-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
}

.uptime-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.uptime-dot {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--green-bright);
}

.uptime-dot.degraded {
    background: #f59e0b;
}

.uptime-dot.down {
    background: #ef4444;
}

.uptime-dot.nodata {
    background: var(--line-strong);
}

.uptime-strip {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    height: 36px;
    padding: 0 1px;
}

.uptime-stripe {
    position: relative;
    flex: 1 1 0;
    min-width: 2px;
    max-width: 16px;
    border-radius: 4px;
    background: var(--green-bright);
    animation: uptime-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 7ms);
    transition: filter 0.15s ease;
}

@keyframes uptime-rise {
    from {
        transform: scaleY(0.35);
        opacity: 0.2;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.uptime-stripe.degraded {
    background: #f59e0b;
}

.uptime-stripe.down {
    background: #ef4444;
}

.uptime-stripe.nodata {
    background: #e4e8f4;
}

.uptime-stripe:hover {
    filter: brightness(1.14) saturate(1.2);
}

.uptime-stripe::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translate(-50%, -4px);
    padding: 5px 9px;
    border-radius: 7px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 6;
}

.uptime-stripe:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.uptime-stripe:nth-child(-n + 6)::after {
    left: 0;
    transform: translate(0, -4px);
}

.uptime-stripe:nth-child(-n + 6):hover::after {
    transform: translate(0, 0);
}

.uptime-stripe:nth-last-child(-n + 6)::after {
    left: auto;
    right: 0;
    transform: translate(0, -4px);
}

.uptime-stripe:nth-last-child(-n + 6):hover::after {
    transform: translate(0, 0);
}

.uptime-strip-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    color: var(--muted-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.operational {
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: var(--green-soft);
    color: #047857;
}

.status-badge.beta {
    border: 1px solid rgba(180, 83, 9, 0.16);
    background: #fff7ed;
    color: var(--amber);
}

.status-badge.degraded {
    border: 1px solid rgba(220, 38, 38, 0.16);
    background: #fef2f2;
    color: #b91c1c;
}

.status-badge.down {
    border: 1px solid rgba(220, 38, 38, 0.24);
    background: #fef2f2;
    color: #991b1b;
}

.status-badge.soon {
    border: 1px solid var(--line-strong);
    background: #f4f6fb;
    color: var(--muted);
}

.status-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.6);
}

.status-note p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.status-history {
    margin-top: 54px;
}

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

.status-history-head h2 {
    color: var(--ink-strong);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.status-history-head span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-soft);
    font-size: 10.5px;
    font-weight: 700;
}

.status-history-head .icon {
    font-size: 12px;
}

.incident-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.incident {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.incident-date {
    padding-top: 2px;
    color: var(--muted-soft);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.incident h3 {
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 800;
}

.incident p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.incident-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 999px;
    background: var(--green-soft);
    color: #047857;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}

.incident-state .icon {
    font-size: 10px;
}

#status-refresh.is-spinning .icon {
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .service-table-head {
        display: none;
    }

    .service-row {
        grid-template-columns: 1fr 1fr;
        gap: 14px 18px;
        padding: 16px;
    }

    .service-name-cell,
    .service-history-cell {
        grid-column: 1 / -1;
    }

    .service-cell[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: var(--muted-soft);
        font-size: 8.5px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

@media (max-width: 760px) {
    .status-hero {
        padding: 52px 0 42px;
    }

    .status-board-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .uptime-strip {
        height: 24px;
        gap: 2px;
        padding: 0;
    }

    .uptime-stripe {
        border-radius: 3px;
    }

    .uptime-strip-labels {
        font-size: 9px;
    }

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

    .incident-state {
        justify-self: start;
    }
}

/* --------------------------------------------------------------
   Marketplace
   -------------------------------------------------------------- */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.partner-card:hover {
    border-color: rgba(67, 83, 255, 0.16);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.partner-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-head h3 {
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.partner-head p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.partner-desc {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.partner-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.partner-foot span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--muted-soft);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.partner-foot strong {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.mkt-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
    margin-top: 30px;
}

.mkt-steps .step-item::before {
    display: none;
}

.mkt-steps .step-item {
    padding-bottom: 0;
}

.mkt-perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    list-style: none;
}

.mkt-perks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.mkt-perks li strong {
    color: var(--ink-soft);
}

.mkt-perks .icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--brand);
    flex-shrink: 0;
}

.mkt-apply-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.mkt-apply-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    list-style: none;
}

.mkt-apply-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.mkt-apply-list .icon {
    width: 16px;
    height: 16px;
    color: var(--green);
    flex-shrink: 0;
}

.mkt-form-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.mkt-form-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 10px;
    text-align: center;
}

.form-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green-soft);
    color: #047857;
}

.form-success-icon .icon {
    width: 24px;
    height: 24px;
}

.form-success h2 {
    color: var(--ink-strong);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.form-success p {
    max-width: 340px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .mkt-apply-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 760px) {
    .mkt-steps,
    .mkt-perks {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------
   Console: dashboard & admin
   -------------------------------------------------------------- */

.console-body {
    background: #f6f7fb;
}

.console-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 249, 252, 0.88);
    backdrop-filter: blur(16px);
}

.console-topbar-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 64px;
}

.console-topbar .brand-sub {
    font-size: 10px;
}

.console-toplinks {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.console-toplinks a {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    transition: color 0.15s ease;
}

.console-toplinks a:hover {
    color: var(--ink-strong);
}

.console-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.console-avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(67, 83, 255, 0.14);
    border-radius: 50%;
    background: linear-gradient(135deg, #eef0ff, #e0f2fe);
    color: var(--brand-deep);
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.console-account-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.console-account-copy strong {
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 800;
}

.console-account-copy small {
    color: var(--muted);
    font-size: 10px;
}

.console-shell {
    display: grid;
    grid-template-columns: 222px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 64px;
}

.console-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.console-group {
    margin: 12px 0 4px;
    padding: 0 10px;
    color: var(--muted-soft);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.console-group:first-child {
    margin-top: 0;
}

.console-nav {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.console-nav .icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.console-nav:hover {
    background: var(--brand-tint);
    color: var(--ink-soft);
}

.console-nav.is-active {
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-weight: 800;
}

.console-side-note {
    margin-top: 14px;
    padding: 12px 10px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.55;
}

.console-side-note a {
    color: var(--brand-deep);
    font-weight: 700;
}

.console-main {
    min-width: 0;
}

.console-pane {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.console-pane.is-active {
    display: flex;
}

.console-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.console-head h1 {
    color: var(--ink-strong);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.console-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
}

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

.stat-card {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.stat-card p {
    color: var(--muted-soft);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-top: 7px;
    color: var(--ink-strong);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-card span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10.5px;
}

.console-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.console-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.console-card-head h2 {
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.console-card-head p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.console-code {
    margin-top: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: #0b1220;
    box-shadow: 0 18px 40px -32px rgba(11, 16, 32, 0.65);
    overflow: hidden;
}

.console-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px 9px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.console-code-head > span {
    color: rgba(226, 232, 240, 0.55);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.console-code pre {
    margin: 0;
    padding: 16px 18px;
    overflow: auto;
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.75;
    tab-size: 4;
}

.console-code pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.console-code pre::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.console-code code {
    font-family: inherit;
}

.console-gate {
    max-width: 660px;
    margin: 0 auto;
    padding: 56px 0 80px;
}

.console-gate .console-card {
    padding: 28px;
}

.console-gate h1 {
    color: var(--ink-strong);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.console-gate p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.console-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.usage-tabs {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f6f7fb;
    flex-shrink: 0;
}

.usage-tab {
    padding: 5px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
}

.usage-tab.is-active {
    background: #ffffff;
    color: var(--brand-deep);
    box-shadow: var(--shadow-xs);
}

.usage-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 148px;
    padding: 4px 2px 0;
}

.usage-bar {
    flex: 1 1 0;
    min-width: 3px;
    height: calc(var(--h, 10) * 1%);
    border-radius: 5px 5px 3px 3px;
    background: linear-gradient(180deg, #8a97ff, var(--brand));
    opacity: 0.85;
    transition: height 0.3s ease, opacity 0.15s ease;
}

.usage-bar:hover {
    opacity: 1;
}

.usage-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.usage-foot strong {
    color: var(--ink-soft);
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 0 12px 8px;
    color: var(--muted-soft);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 11px 12px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 11.5px;
    vertical-align: middle;
}

.data-table th:first-child,
.data-table td:first-child {
    padding-left: 0;
}

.data-table th:last-child,
.data-table td:last-child {
    padding-right: 0;
}

.data-table .select-cell {
    width: 28px;
    padding-right: 0;
}

.select-cell input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--brand);
    cursor: pointer;
    vertical-align: middle;
}

.data-table code {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.data-table .cell-strong {
    color: var(--ink-strong);
    font-weight: 700;
}

.data-table .cell-url {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table .cell-url a {
    color: var(--brand-deep);
}

.empty-row {
    padding: 26px 0 !important;
    color: var(--muted) !important;
    text-align: center;
}

.empty-row a {
    color: var(--brand-deep);
    font-weight: 700;
}

.row-actions {
    display: flex;
    gap: 12px;
    white-space: nowrap;
}

.mini-link.danger {
    color: #b91c1c;
}

.key-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.key-form input,
.table-search input {
    flex: 1;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #f6f7fb;
    color: var(--ink);
    font-family: inherit;
    font-size: 12px;
}

.key-form input:focus,
.table-search input:focus {
    border-color: rgba(67, 83, 255, 0.4);
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.08);
}

.key-form .btn {
    flex-shrink: 0;
}

.table-search {
    position: relative;
    width: 230px;
    max-width: 100%;
}

.table-search .icon {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 14px;
    height: 14px;
    color: var(--muted-soft);
    transform: translateY(-50%);
    pointer-events: none;
}

.table-search input {
    width: 100%;
    padding-left: 32px;
}

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

.pack-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.pack-card.is-featured {
    border-color: rgba(67, 83, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.06);
}

.pack-card h3 {
    color: var(--ink-strong);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pack-card .partner-head p {
    color: var(--muted);
    font-size: 11px;
}

.pack-price {
    color: var(--ink-strong);
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pack-price small {
    display: block;
    margin-bottom: 2px;
    color: var(--muted-soft);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pack-bonus {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--green-soft);
    color: #047857;
    font-size: 9px;
    font-weight: 800;
}

.pack-note {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.pack-card .btn {
    margin-top: auto;
}

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

.settings-grid .btn {
    grid-column: 1 / -1;
    justify-self: start;
}

/* --------------------------------------------------------------
   Docs
   -------------------------------------------------------------- */

.docs-main {
    padding: 40px 0 72px;
}

.docs-shell {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 96px;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.docs-nav .console-group {
    margin-top: 12px;
}

.docs-nav .console-group:first-child {
    margin-top: 0;
}

.docs-nav a {
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.docs-nav a:hover {
    background: var(--brand-tint);
    color: var(--ink-soft);
}

.docs-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.docs-intro {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.docs-intro-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.docs-version {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.docs-version strong {
    color: var(--ink-soft);
}

.docs-intro h1 {
    margin-top: 12px;
    color: var(--ink-strong);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.docs-intro .section-lead {
    margin-top: 8px;
}

.docs-callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(67, 83, 255, 0.16);
    border-left: 3px solid var(--brand);
    border-radius: 14px;
    background: var(--brand-tint);
}

.docs-callout > .icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--brand-deep);
    flex-shrink: 0;
}

.docs-callout strong {
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 800;
}

.docs-callout p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.docs-callout code,
.docs-card code {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10.5px;
    word-break: break-word;
}

.docs-section {
    scroll-margin-top: 88px;
}

.docs-section-head {
    margin-bottom: 14px;
}

.docs-section-head h2 {
    color: var(--ink-strong);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.docs-section-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
}

.docs-section-head code {
    font-family: var(--font-mono);
    font-size: 11px;
}

.docs-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.docs-card > p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.docs-card > p + p,
.docs-card > p + pre,
.docs-card > p + .table-wrap,
.docs-card > pre + p,
.docs-card > .table-wrap + p,
.docs-card > h3 + .table-wrap,
.docs-card > h3 + pre,
.docs-card > pre + h3,
.docs-card > .table-wrap + h3 {
    margin-top: 16px;
}

.docs-card h3 {
    margin-bottom: 10px;
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 800;
}

.docs-card a:not(.btn) {
    color: var(--brand-deep);
    font-weight: 600;
}

.docs-pre {
    padding: 16px 18px;
    border-radius: 12px;
    background: #0b1220;
    color: #dbe4ff;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.65;
    overflow-x: auto;
}

.docs-quickstart {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
    gap: 28px;
    align-items: start;
}

@media (max-width: 1020px) {
    .console-shell,
    .docs-shell {
        grid-template-columns: 1fr;
    }

    .console-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        padding: 12px;
    }

    .console-sidebar .console-group,
    .console-side-note {
        display: none;
    }

    .console-nav {
        width: auto;
    }

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

    .pack-grid {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }

    .docs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .docs-nav .console-group {
        display: none;
    }

    .docs-quickstart {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .console-topbar-inner {
        gap: 12px;
    }

    .console-toplinks,
    .console-account-copy {
        display: none;
    }

    .console-account {
        margin-left: auto;
        padding-left: 0;
        border-left: 0;
    }

    .console-topbar .mode-badge {
        display: none;
    }

    .console-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .console-stats,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .console-card {
        padding: 16px;
    }

    .key-form {
        flex-direction: column;
    }

    .table-search {
        width: 100%;
    }

    .console-card-head {
        flex-wrap: wrap;
    }

    .usage-chart {
        height: 110px;
        gap: 3px;
    }

    .usage-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .docs-main {
        padding: 28px 0 52px;
    }

    .docs-intro-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------
   Marketplace: katalog mitra & ekonomi penjual
   -------------------------------------------------------------- */

.mkt-catalog-card {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    margin-bottom: 18px;
}

.econ-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 16px;
    align-items: start;
}

.econ-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.econ-card h3 {
    margin-bottom: 14px;
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.econ-list {
    display: flex;
    flex-direction: column;
}

.econ-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.econ-list > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.econ-list dt {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.econ-list dd {
    color: var(--ink-strong);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.econ-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-strong);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.calc-field {
    margin-bottom: 12px;
}

.calc-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.calc-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #f6f7fb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.calc-input:focus-within {
    border-color: rgba(67, 83, 255, 0.4);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.08);
}

.calc-input > span {
    color: var(--muted-soft);
    font-size: 11.5px;
    font-weight: 700;
}

.calc-input input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--ink-strong);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    outline: 0;
}

.calc-input input::-webkit-outer-spin-button,
.calc-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.calc-result > div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f9fafc;
}

.calc-result span {
    display: block;
    color: var(--muted-soft);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.calc-result strong {
    display: block;
    margin-top: 5px;
    color: var(--ink-strong);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
}

.calc-result .calc-net {
    color: #047857;
}

.form-hint {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.55;
}

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

@media (max-width: 640px) {
    .form-prices {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .econ-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .calc-result {
        grid-template-columns: 1fr;
    }

    .mkt-catalog-card {
        padding: 14px;
    }

    .econ-card {
        padding: 16px;
    }
}

/* Admin: form katalog & mitra */

.head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 18px;
}

.admin-grid {
    display: grid;
    gap: 12px;
}

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

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

.form-checks {
    justify-content: center;
    gap: 8px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--brand);
    cursor: pointer;
}

.admin-form select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #f6f7fb;
    color: var(--ink);
    font-family: inherit;
    font-size: 12px;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.admin-form select:focus {
    border-color: rgba(67, 83, 255, 0.4);
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.08);
}

.admin-form input[type="color"] {
    height: 38px;
    padding: 4px 6px;
    cursor: pointer;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1020px) {
    .admin-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .admin-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .admin-grid-3,
    .admin-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Login */
.login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 18px;
}

.login-shell {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-brand {
    justify-content: center;
}

.login-card {
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-head h1 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.login-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.login-google {
    display: flex;
    justify-content: center;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form .form-field input {
    width: 100%;
}

.login-hint {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.login-foot {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.login-foot a {
    color: var(--brand-deep);
    font-weight: 700;
}

/* Avatar foto */
.console-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

/* Reveal API key */
.key-reveal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    background: var(--green-soft, #ecfdf5);
}

.key-reveal p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.key-reveal-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-reveal-row code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    padding: 9px 11px;
    border-radius: 9px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    white-space: nowrap;
}

/* Top up */
.topup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.topup-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #f6f7fb;
    color: var(--ink);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.chip:hover {
    border-color: rgba(67, 83, 255, 0.45);
    background: #eef1ff;
}

.topup-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.topup-row .form-field {
    flex: 1;
}

.qr-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(67, 83, 255, 0.25);
    border-radius: 14px;
    background: #f8f9ff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qr-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.qr-panel-head h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.qr-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.qr-body {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.qr-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    min-height: 168px;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.qr-frame img {
    width: 168px;
    height: 168px;
    object-fit: contain;
}

.qr-frame code {
    max-width: 240px;
    overflow-wrap: anywhere;
    font-size: 11px;
    color: var(--muted);
}

.qr-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qr-copy > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.qr-copy strong {
    font-size: 22px;
    letter-spacing: -0.01em;
}

.qr-expire {
    margin-bottom: 8px !important;
}

/* Select kecil di tabel admin */
.mini-select {
    padding: 5px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #f6f7fb;
    color: var(--ink);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .topup-row {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-body {
        justify-content: center;
    }
}

/* ------------------------------------------------------------
   Status: papan channel supplier
   ------------------------------------------------------------ */

.channel-board {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 24px 60px -42px rgba(13, 20, 45, 0.45);
    overflow: hidden;
}

.channel-board-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--line);
}

.channel-board-head h2 {
    margin: 0 0 6px;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.channel-board-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.channel-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.channel-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.channel-dot {
    width: 5px;
    height: 12px;
    border-radius: 3px;
    background: rgba(25, 35, 60, 0.14);
    display: inline-block;
}

.channel-dot.ok { background: #22c55e; }
.channel-dot.warn { background: #f59e0b; }
.channel-dot.bad { background: #ef4444; }

.channel-table {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
}

.channel-row {
    display: grid;
    grid-template-columns:
        minmax(250px, 2.1fr)
        minmax(120px, 1fr)
        minmax(210px, 1.5fr)
        minmax(90px, 0.8fr)
        minmax(80px, 0.7fr)
        minmax(90px, 0.8fr)
        minmax(110px, 0.9fr)
        minmax(110px, 0.9fr);
    gap: 18px;
    align-items: center;
    min-width: 1080px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--line);
}

.channel-row:last-child {
    border-bottom: 0;
}

.channel-row:not(.channel-row-head):hover {
    background: rgba(67, 83, 255, 0.035);
}

.channel-row-head {
    padding-top: 13px;
    padding-bottom: 13px;
    background: #f8f9fd;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.channel-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: var(--muted);
    min-width: 0;
}

.channel-cell strong {
    color: var(--ink);
    font-size: 13px;
}

.channel-name-cell {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.channel-name-cell strong {
    display: block;
    font-size: 14px;
}

.channel-name-cell p {
    margin: 4px 0 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.channel-tile {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(145deg, #eef1ff, #dfe4ff);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.channel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}

.channel-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.channel-code {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: var(--muted);
}

.channel-sub {
    color: var(--muted);
    font-size: 10px;
}

.channel-multiplier {
    align-self: flex-start;
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 5px;
    background: #eef1ff;
    color: var(--brand);
    font-size: 10px;
    font-weight: 700;
}

.channel-success-cell {
    gap: 6px;
}

.channel-success-line {
    display: flex;
    align-items: center;
    gap: 7px;
}

.channel-success-label {
    width: 28px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.channel-dots {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.channel-dots.is-compact .channel-dot {
    height: 10px;
}

.channel-success-line strong {
    font-size: 11px;
}

.channel-warn {
    color: #d97706 !important;
}

.channel-link {
    color: var(--brand) !important;
}

.channel-bar {
    display: block;
    height: 4px;
    margin-top: 4px;
    border-radius: 4px;
    background: rgba(25, 35, 60, 0.1);
    overflow: hidden;
}

.channel-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4353ff, #8b5cf6);
}

.channel-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.channel-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e9fbf1;
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
}

.channel-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
}

.channel-action {
    padding: 4px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.channel-action:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.channel-empty {
    padding: 30px 26px;
    color: var(--muted);
    font-size: 13px;
}

/* ------------------------------------------------------------
   Support chat
   ------------------------------------------------------------ */

.support-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 24px 60px -42px rgba(13, 20, 45, 0.45);
}

.support-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.support-chat-head strong {
    display: block;
    font-size: 14px;
}

.support-chat-head span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.support-live {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e9fbf1;
    color: #15803d !important;
    font-size: 10px !important;
    font-weight: 700;
}

.support-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.support-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 320px;
    max-height: 480px;
    padding: 22px;
    overflow-y: auto;
    background: #fbfcff;
}

.support-empty {
    margin: auto;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.support-bubble {
    align-self: flex-start;
    max-width: min(78%, 640px);
    padding: 10px 13px;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px -20px rgba(13, 20, 45, 0.4);
}

.support-bubble.is-user {
    align-self: flex-end;
    border-radius: 14px 14px 4px 14px;
    background: #eef1ff;
    border-color: #dbe1ff;
}

.support-author {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.support-bubble p {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 22px 20px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.support-form textarea {
    width: 100%;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fbfcff;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
}

.support-form textarea:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.12);
}

.support-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.support-form-foot .form-hint {
    margin: 0;
}

/* Admin: daftar percakapan + panel balasan */

.admin-support {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-support-list {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
    max-height: 640px;
    display: flex;
    flex-direction: column;
}

.admin-support-list .console-card-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.admin-support-list .console-card-head h2 {
    margin: 0;
    font-size: 14px;
}

.support-thread-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.support-thread {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.support-thread:last-child {
    border-bottom: 0;
}

.support-thread:hover {
    background: #f7f8fd;
}

.support-thread.is-active {
    background: #eef1ff;
    box-shadow: inset 3px 0 0 var(--brand);
}

.support-thread strong {
    color: var(--ink);
    font-size: 12px;
}

.support-thread span {
    color: var(--muted);
    font-size: 10px;
}

.support-thread p {
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.withdraw-proof-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.withdraw-proof-form .proof-input {
    max-width: 170px;
    font-size: 10px;
}

@media (max-width: 900px) {
    .channel-board-head {
        flex-direction: column;
    }

    .admin-support {
        grid-template-columns: 1fr;
    }

    .admin-support-list {
        max-height: 260px;
    }
}

@media (max-width: 640px) {
    .channel-row {
        padding: 16px;
        gap: 12px;
    }

    .support-chat {
        padding: 16px;
    }

    .support-form {
        padding: 14px 16px 18px;
    }

    .support-bubble {
        max-width: 88%;
    }
}

/* =========================================================
   Tema malam, toggle, channel status, QR claim, ShopeePay
   ========================================================= */

.theme-toggle {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink-soft);
    box-shadow: var(--shadow-xs);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--surface-sunken);
    color: var(--ink-strong);
}

.theme-toggle .icon {
    width: 17px;
    height: 17px;
}

.theme-toggle .icon-moon {
    display: none;
}

.theme-toggle.is-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 360;
    box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.channel-model-note {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10.5px;
}

.channel-source {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.channel-source.is-partner {
    border-color: rgba(67, 83, 255, 0.2);
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.cell-note {
    margin-top: 3px;
    max-width: 210px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.cell-note code {
    display: inline;
    margin: 0;
}

.qr-claim {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.qr-claim > label {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.qr-claim-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.qr-claim-row input {
    min-width: 0;
    width: 210px;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
}

.qr-claim-row input:focus {
    border-color: rgba(67, 83, 255, 0.45);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.1);
}

.qr-claim-note {
    color: var(--amber);
    font-size: 10.5px;
    line-height: 1.5;
}

.shopee-stats {
    margin-bottom: 16px;
}

.shopee-actions {
    margin-top: 14px;
}

.shopee-actions .form-hint {
    margin: 0;
    max-width: 620px;
}

@media (max-width: 640px) {
    .qr-claim-row {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-claim-row input {
        width: 100%;
    }
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #070b14;
    --bg-deep: #04070e;
    --surface: #0e1524;
    --surface-soft: #111a2b;
    --surface-sunken: #162033;
    --ink: #e5ebf5;
    --ink-strong: #f8fafc;
    --ink-soft: #cbd5e1;
    --muted: #94a3b8;
    --muted-soft: #7d8ca5;
    --line: #1e2a3d;
    --line-strong: #31405a;
    --brand: #7482ff;
    --brand-deep: #aab6ff;
    --brand-soft: #17203a;
    --brand-tint: #101827;
    --green: #34d399;
    --green-bright: #34d399;
    --green-soft: #0d2a21;
    --amber: #fbbf24;
    --red: #f87171;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 16px -6px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 18px 46px -22px rgba(0, 0, 0, 0.75);
    --shadow-lg: 0 32px 80px -32px rgba(0, 0, 0, 0.85);
}

html[data-theme="dark"] .console-body {
    background: var(--bg);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .console-topbar {
    background: rgba(7, 11, 20, 0.84);
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .site-header.is-scrolled {
    background: rgba(7, 11, 20, 0.93);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 32px -26px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] .primary-nav,
html[data-theme="dark"] .docs-nav {
    background: rgba(14, 21, 36, 0.72);
    border-color: var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .primary-nav a {
    color: var(--muted);
}

html[data-theme="dark"] .primary-nav a:hover {
    background: var(--surface-sunken);
    color: var(--ink-strong);
    box-shadow: none;
}

html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .sdk-strip,
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .search-box input,
html[data-theme="dark"] .sort-select select,
html[data-theme="dark"] .select-wrap select,
html[data-theme="dark"] .model-select-wrap select,
html[data-theme="dark"] .prompt-chip,
html[data-theme="dark"] .composer-box,
html[data-theme="dark"] .field-textarea,
html[data-theme="dark"] .side-rate,
html[data-theme="dark"] .integration-section,
html[data-theme="dark"] .compat-list span,
html[data-theme="dark"] .topup-list div,
html[data-theme="dark"] .faq-help,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .md td,
html[data-theme="dark"] .incident,
html[data-theme="dark"] .partner-card,
html[data-theme="dark"] .mkt-perks li,
html[data-theme="dark"] .mkt-form-card,
html[data-theme="dark"] .console-sidebar,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .console-card,
html[data-theme="dark"] .usage-tab.is-active,
html[data-theme="dark"] .pack-card,
html[data-theme="dark"] .docs-card,
html[data-theme="dark"] .mkt-catalog-card,
html[data-theme="dark"] .econ-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .qr-frame,
html[data-theme="dark"] .model-card,
html[data-theme="dark"] .bento-card,
html[data-theme="dark"] .pricing-side-card,
html[data-theme="dark"] .chat-panel,
html[data-theme="dark"] .playground-shell,
html[data-theme="dark"] .service-table {
    background: var(--surface);
    border-color: var(--line);
}

html[data-theme="dark"] .service-table-head {
    background: linear-gradient(180deg, var(--surface-soft), var(--surface));
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .service-row:hover {
    background: var(--surface-soft);
}

html[data-theme="dark"] .service-row + .service-row {
    border-top-color: var(--line);
}

html[data-theme="dark"] .status-badge.operational,
html[data-theme="dark"] .status-pill.is-operational,
html[data-theme="dark"] .mode-badge.is-live,
html[data-theme="dark"] .live-badge {
    border-color: rgba(52, 211, 153, 0.2);
    background: var(--green-soft);
    color: #6ee7b7;
}

html[data-theme="dark"] .status-badge.beta,
html[data-theme="dark"] .mode-badge.is-demo {
    border-color: rgba(251, 191, 36, 0.2);
    background: #2a1f0e;
    color: #fbbf24;
}

html[data-theme="dark"] .status-badge.degraded,
html[data-theme="dark"] .status-badge.down,
html[data-theme="dark"] .status-pill.is-degraded,
html[data-theme="dark"] .status-pill.is-down,
html[data-theme="dark"] .form-error {
    border-color: rgba(248, 113, 113, 0.22);
    background: #2a1215;
    color: #fca5a5;
}

html[data-theme="dark"] .status-badge.soon,
html[data-theme="dark"] .mini-select {
    border-color: var(--line-strong);
    background: var(--surface-sunken);
    color: var(--muted);
}

html[data-theme="dark"] .btn-ghost:hover {
    background: rgba(148, 163, 184, 0.12);
    color: var(--ink-strong);
}

html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-light:hover {
    background: var(--surface-sunken);
    border-color: var(--line-strong);
    color: var(--ink-strong);
}

html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .admin-form input,
html[data-theme="dark"] .admin-form select,
html[data-theme="dark"] .admin-form textarea,
html[data-theme="dark"] .table-search input,
html[data-theme="dark"] .calc-input,
html[data-theme="dark"] .qr-claim-row input {
    background: var(--surface-soft);
    border-color: var(--line-strong);
    color: var(--ink);
}

html[data-theme="dark"] .form-field input:focus,
html[data-theme="dark"] .form-field textarea:focus,
html[data-theme="dark"] .form-field select:focus,
html[data-theme="dark"] .admin-form select:focus,
html[data-theme="dark"] .table-search input:focus,
html[data-theme="dark"] .calc-input:focus-within {
    background: var(--surface-soft);
    border-color: rgba(116, 130, 255, 0.5);
}

html[data-theme="dark"] .form-field input::placeholder,
html[data-theme="dark"] .form-field textarea::placeholder {
    color: var(--muted-soft);
}

html[data-theme="dark"] .data-table td {
    border-top-color: var(--line);
    color: var(--ink-soft);
}

html[data-theme="dark"] .data-table th {
    color: var(--muted-soft);
}

html[data-theme="dark"] .data-table code,
html[data-theme="dark"] .data-table .cell-note {
    color: var(--muted);
}

html[data-theme="dark"] .empty-row {
    color: var(--muted) !important;
}

html[data-theme="dark"] .qr-panel {
    background: var(--brand-tint);
    border-color: rgba(116, 130, 255, 0.28);
}

html[data-theme="dark"] .qr-frame {
    background: #ffffff;
}

html[data-theme="dark"] .docs-nav a:hover {
    background: var(--surface-sunken);
    color: var(--ink-strong);
}

html[data-theme="dark"] .docs-card code {
    background: var(--surface-sunken);
}

html[data-theme="dark"] .md th {
    background: var(--surface-soft);
    border-color: var(--line);
}

html[data-theme="dark"] .modal-backdrop {
    background: rgba(2, 5, 12, 0.72);
}

html[data-theme="dark"] .chat-log {
    background: var(--bg);
}

html[data-theme="dark"] .chat-topbar,
html[data-theme="dark"] .chat-composer {
    background: var(--surface);
    border-color: var(--line);
}

html[data-theme="dark"] .hero-fade {
    background: linear-gradient(180deg, transparent, var(--bg));
}

html[data-theme="dark"] .status-hero .hero-fade {
    background: linear-gradient(180deg, transparent, var(--bg));
}

html[data-theme="dark"] .site-footer {
    background: var(--bg-deep);
    border-top-color: var(--line);
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: var(--line);
}

html[data-theme="dark"] .toast {
    border-color: rgba(255, 255, 255, 0.12);
    background: #0b1220;
}

html[data-theme="dark"] .console-avatar {
    border-color: rgba(116, 130, 255, 0.25);
    background: linear-gradient(135deg, #1b2440, #12243a);
    color: var(--brand-deep);
}

html[data-theme="dark"] .cta-section {
    background: var(--bg-deep);
}

html[data-theme="dark"] .usage-tabs,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .key-form input,
html[data-theme="dark"] .calc-result > div,
html[data-theme="dark"] .channel-row-head,
html[data-theme="dark"] .support-messages,
html[data-theme="dark"] .support-form textarea {
    background: var(--surface-soft);
    border-color: var(--line);
    color: var(--ink);
}

html[data-theme="dark"] .chip:hover {
    background: var(--surface-sunken);
}

html[data-theme="dark"] .support-thread:hover {
    background: var(--surface-soft);
}

html[data-theme="dark"] .support-thread.is-active {
    background: var(--brand-soft);
}

html[data-theme="dark"] .channel-row:not(.channel-row-head):hover {
    background: rgba(116, 130, 255, 0.08);
}

html[data-theme="dark"] .support-thread {
    border-color: var(--line);
}

html[data-theme="dark"] .cta-card {
    border-color: rgba(255, 255, 255, 0.08);
}

.shopee-verification {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.shopee-toggle-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.shopee-toggle-row .checkbox {
    font-size: 12.5px;
    font-weight: 700;
}

.shopee-toggle-row .form-hint {
    margin: 0;
}

.shopee-toggle-note {
    flex-basis: 100%;
    margin: 0;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.shopee-table {
    margin-top: 18px;
}

html[data-theme="dark"] .shopee-verification {
    background: var(--surface-soft);
    border-color: var(--line);
}
