:root {
  --ink: #151713;
  --muted: #687065;
  --paper: #f4f3ed;
  --card: rgba(255,255,252,.82);
  --line: rgba(21,23,19,.12);
  --green: #3d7a5b;
  --green-deep: #25543d;
  --lime: #c9f36b;
  --orange: #ef8354;
  --shadow: 0 24px 70px rgba(34,43,34,.11);
}

/* Telegram customer support */
.telegram-support-fab {
  position:fixed;
  right:max(20px,env(safe-area-inset-right));
  bottom:max(20px,env(safe-area-inset-bottom));
  z-index:45;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:9px 14px 9px 11px;
  border:1px solid rgba(126,173,255,.32);
  border-radius:999px;
  color:#eef5ff;
  background:linear-gradient(135deg,#2aabee,#2377d8);
  box-shadow:0 14px 36px rgba(15,99,176,.3),inset 0 1px rgba(255,255,255,.2);
  text-decoration:none;
  font-size:12px;
  font-weight:760;
  letter-spacing:.01em;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.telegram-support-fab svg { width:21px;height:21px;fill:currentColor; }
.telegram-support-fab:hover { transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 18px 42px rgba(15,99,176,.38),inset 0 1px rgba(255,255,255,.24); }
.telegram-support-fab:focus-visible { outline:3px solid rgba(111,165,255,.34);outline-offset:3px; }
[data-theme="light"] .telegram-support-fab { color:#fff;box-shadow:0 14px 32px rgba(29,115,196,.23),inset 0 1px rgba(255,255,255,.24); }
@media(max-width:650px) {
  .telegram-support-fab { right:max(13px,env(safe-area-inset-right));bottom:max(13px,env(safe-area-inset-bottom));min-height:42px;padding:9px 12px;box-shadow:0 10px 28px rgba(15,99,176,.28); }
  .telegram-support-fab span { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .telegram-support-fab { transition:none; } }

/* Dedicated Web AI entry inside the unchanged account navigation. */
.account-sidebar nav .account-nav-link { display:flex; align-items:center; gap:12px; width:100%; min-height:40px; margin-bottom:7px; padding:10px 12px; border:1px solid rgba(104,151,239,.17); border-radius:10px; color:#b9cff6; background:rgba(83,132,223,.07); font-size:12px; font-weight:700; text-decoration:none; }
.account-sidebar nav .account-nav-link i { width:18px; color:#8fb4f7; font-style:normal; text-align:center; }
.account-sidebar nav .account-nav-link b { margin-left:auto; color:#5f7eb7; font-size:10px; }
.account-sidebar nav .account-nav-link:hover { border-color:rgba(104,151,239,.32); background:rgba(83,132,223,.12); }
[data-theme="light"] .account-sidebar nav .account-nav-link { color:#2862bd; border-color:rgba(47,105,209,.16); background:rgba(52,109,211,.055); }
@media (max-width:980px) and (min-width:651px) { .account-sidebar nav .account-nav-link { justify-content:center; padding-inline:0; font-size:0; }.account-sidebar nav .account-nav-link i { font-size:14px; }.account-sidebar nav .account-nav-link b { display:none; } }
@media (max-width:650px) { .account-sidebar nav .account-nav-link { justify-content:flex-start; font-size:12px; }.account-sidebar nav .account-nav-link b { display:block; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(201,243,107,.32), transparent 29rem),
    radial-gradient(circle at 5% 42%, rgba(239,131,84,.1), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.page-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.brand-icon { display: block; width: 42px; height: 42px; border-radius: 12px; object-fit: contain; flex: 0 0 auto; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.55); border-radius: 999px; padding: 9px 13px; font-size: 12px; color: var(--muted); }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #c5a448; box-shadow: 0 0 0 4px rgba(197,164,72,.12); }
.status-pill.ready i { background: #46a069; box-shadow: 0 0 0 4px rgba(70,160,105,.14); }
.status-pill.error i { background: #c9594f; box-shadow: 0 0 0 4px rgba(201,89,79,.12); }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 7vw, 100px); padding: 72px 0 62px; align-items: center; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 18px 0 24px; max-width: 760px; font-size: clamp(48px, 6.7vw, 88px); line-height: .95; letter-spacing: -.068em; font-weight: 670; }
.hero h1 span { color: var(--green); }
.hero-copy > p { max-width: 660px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; margin-top: 32px; }
.button { border: 1px solid transparent; border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 13px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green-deep); box-shadow: 0 10px 24px rgba(37,84,61,.2); }
.button.primary:hover { background: #193f2c; }
.button.secondary { background: rgba(255,255,255,.65); color: var(--ink); border-color: var(--line); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.compact { padding: 9px 13px; border-radius: 10px; }
.button.wide { width: 100%; }
.endpoint-line { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.endpoint-line code { padding: 8px 10px; color: var(--ink); background: rgba(255,255,255,.52); border: 1px solid var(--line); border-radius: 8px; letter-spacing: 0; font-size: 12px; }

.flow-card { position: relative; border: 1px solid rgba(21,23,19,.14); background: rgba(27,32,27,.96); color: white; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); overflow: hidden; }
.flow-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -90px; border-radius: 50%; background: rgba(201,243,107,.13); filter: blur(2px); }
.flow-head { display: flex; align-items: center; justify-content: space-between; color: #aeb8ad; font-size: 10px; letter-spacing: .13em; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.flow-head b { color: var(--lime); font-size: 10px; }
.flow-node { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 20px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.flow-node i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); color: #aeb8ad; font-style: normal; font-size: 10px; }
.flow-node strong, .flow-node small { display: block; }
.flow-node strong { font-size: 14px; }
.flow-node small { color: #8f9b8d; margin-top: 4px; font-size: 11px; }
.flow-node > span { color: #667065; }
.flow-node.active i { background: var(--lime); color: #1d281c; }
.flow-node.active > span { color: var(--lime); }
.flow-foot { display: flex; align-items: center; gap: 9px; padding: 17px 4px 0; color: #93a091; font-size: 11px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,243,107,.1); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 40px rgba(34,43,34,.06); overflow: hidden; }
.metrics article { padding: 23px 26px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics span, .metrics small, .metrics strong { display: block; }
.metrics span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.metrics strong { margin: 7px 0 3px; font-size: 29px; letter-spacing: -.05em; }
.metrics small { color: #939a91; font-size: 11px; }

.console { margin: 34px 0 70px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { border: 0; border-radius: 9px; background: transparent; padding: 10px 14px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tab.active { background: var(--ink); color: white; }
.view { display: none; padding: clamp(22px, 4vw, 40px); }
.view.active { display: block; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.04em; }
.model-chip { padding: 8px 11px; color: var(--green-deep); background: rgba(201,243,107,.34); border-radius: 999px; font-family: monospace; font-size: 11px; }
.worker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.worker-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(255,255,255,.48); }
.worker-card-head { display: flex; justify-content: space-between; align-items: center; }
.worker-card h3 { margin: 0; font-size: 15px; }
.worker-card .badge { padding: 5px 8px; border-radius: 999px; background: #eceee8; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.worker-card .badge.ready { background: rgba(201,243,107,.42); color: var(--green-deep); }
.worker-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; }
.worker-stats span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.worker-stats strong { display: block; margin-top: 3px; font-size: 17px; }
.worker-meta { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.worker-actions small { color: var(--muted); font-size: 10px; }
.text-button { border: 0; padding: 3px; background: transparent; color: var(--green); font-size: 11px; font-weight: 800; }
.empty-card { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; border: 1px dashed rgba(21,23,19,.2); border-radius: 16px; color: var(--muted); text-align: center; }
.empty-card strong { color: var(--ink); margin-bottom: 7px; }
.empty-card span { font-size: 12px; }

.member-form { margin: -4px 0 20px; padding: 18px; border-radius: 15px; background: rgba(201,243,107,.15); border: 1px solid rgba(61,122,91,.2); }
.member-form form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.72); color: var(--ink); padding: 11px 12px; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,122,91,.1); }
textarea { resize: vertical; line-height: 1.55; }
.form-actions { display: flex; gap: 8px; }
.hidden { display: none !important; }
.member-list { display: grid; gap: 12px; }
.member-row { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.45); overflow: hidden; }
.member-main { display: grid; grid-template-columns: 1.2fr .7fr 1.2fr auto; gap: 20px; align-items: center; padding: 17px 18px; }
.member-name strong, .member-name span { display: block; }
.member-name strong { font-size: 14px; }
.member-name span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.quota strong { font-size: 13px; }
.quota small { color: var(--muted); font-size: 10px; }
.quota-bar { height: 5px; margin-top: 7px; background: #e3e5df; border-radius: 99px; overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.member-key-summary { color: var(--muted); font-size: 11px; }
.member-actions { display: flex; gap: 5px; }
.member-details { display: none; padding: 0 18px 17px; }
.member-row.open .member-details { display: block; }
.key-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(244,243,237,.75); border-top: 1px solid var(--line); font-size: 11px; }
.key-row code { overflow: hidden; text-overflow: ellipsis; }
.key-row small { color: var(--muted); }
.revoked { opacity: .52; }

.playground-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.request-panel, .response-panel { min-height: 390px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.46); }
.request-panel { display: grid; gap: 14px; align-content: start; }
.request-options { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 12px; }
.switch-label { display: flex; align-items: center; gap: 8px; padding-bottom: 11px; }
.switch-label input { display: none; }
.switch-label span { position: relative; width: 34px; height: 19px; border-radius: 99px; background: #cfd3cc; transition: background .15s; }
.switch-label span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; transition: transform .15s; }
.switch-label input:checked + span { background: var(--green); }
.switch-label input:checked + span::after { transform: translateX(15px); }
.response-panel { display: flex; flex-direction: column; background: #1b201b; color: #d9e1d7; }
.response-head { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.09); color: #899588; font-size: 10px; letter-spacing: .12em; }
.response-panel pre { flex: 1; margin: 15px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.65; }
.account-playground textarea { width:100%; resize:vertical; min-height:190px; border:1px solid var(--line); border-radius:9px; padding:12px 13px; color:var(--ink); background:var(--card); font:inherit; line-height:1.6; outline:none; }
.account-playground textarea:focus { border-color:var(--green); box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 14%,transparent); }
.playground-panel-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.playground-panel-title strong { font-size:13px; }
.playground-usage { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.playground-usage span { padding:5px 8px; border:1px solid #2d3037; border-radius:999px; color:#8d95a5; font-size:9px; }
.playground-hint { color:var(--muted); font-size:9px; line-height:1.55; }
.usage-lookup { display: flex; align-items: center; gap: 13px; margin-top: 14px; color: var(--muted); font-size: 11px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps article { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 15px; padding: 18px; background: rgba(255,255,255,.43); }
.steps i { flex: 0 0 28px; display: grid; place-items: center; height: 28px; border-radius: 9px; background: var(--lime); color: var(--green-deep); font-style: normal; font-size: 10px; font-weight: 900; }
.steps strong { font-size: 13px; }
.steps p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.steps code { color: var(--green-deep); font-size: 10px; overflow-wrap: anywhere; }
.code-block { margin-top: 16px; border-radius: 16px; overflow: hidden; background: #1b201b; color: #d9e1d7; }
.code-block > div { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.09); color: #899588; font-size: 10px; letter-spacing: .1em; }
.code-block pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 12px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; padding: 0 4px 30px; color: var(--muted); font-size: 10px; letter-spacing: .07em; }

dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 20px; padding: 0; color: var(--ink); background: #fbfaf5; box-shadow: 0 30px 100px rgba(20,24,20,.28); }
dialog::backdrop { background: rgba(18,22,18,.52); backdrop-filter: blur(5px); }
dialog form, .secret-dialog-body { position: relative; display: grid; gap: 15px; padding: 28px; }
dialog h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
dialog p { margin: -5px 0 4px; color: var(--muted); font-size: 12px; }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 30px; height: 30px; border: 0; border-radius: 9px; background: #eeeee8; color: var(--muted); font-size: 19px; }
.form-error { min-height: 16px; color: #b74b43; font-size: 11px; text-align: center; }
.secret-dialog-body > code { display: block; overflow-wrap: anywhere; padding: 14px; border-radius: 11px; background: #20241f; color: var(--lime); font-size: 11px; line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); padding: 11px 15px; border-radius: 10px; color: white; background: var(--ink); font-size: 11px; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .flow-card { max-width: 620px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .worker-grid, .steps { grid-template-columns: 1fr; }
  .member-main { grid-template-columns: 1fr 1fr; }
  .member-actions { justify-content: flex-end; }
  .playground-grid { grid-template-columns: 1fr; }
  .member-form form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .page-shell { width: min(100% - 22px, 1240px); }
  .topbar { height: 72px; }
  .status-pill { display: none; }
  .brand small { display: none; }
  .hero { padding: 38px 3px 40px; gap: 38px; }
  .hero h1 { font-size: 48px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .endpoint-line { align-items: flex-start; flex-direction: column; }
  .endpoint-line code { max-width: 100%; overflow-wrap: anywhere; }
  .metrics article { padding: 17px; }
  .metrics strong { font-size: 24px; }
  .console { margin-top: 22px; border-radius: 17px; }
  .view { padding: 20px 15px; }
  .member-main, .member-form form, .request-options { grid-template-columns: 1fr; }
  .member-actions { justify-content: flex-start; }
  .key-row { grid-template-columns: 1fr auto; }
  .key-row small { display: none; }
  .usage-lookup { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; gap: 8px; }
}

/* Public product site */
.landing-body { background: #f5f5ef; }
.marketing-nav { width: min(1280px, calc(100% - 48px)); height: 82px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.marketing-nav nav { display: flex; gap: 28px; }
.marketing-nav nav a, .marketing-footer a { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 650; }
.marketing-nav nav a:hover, .marketing-footer a:hover { color: var(--ink); }
.marketing-actions { display: flex; justify-content: flex-end; gap: 8px; }
.marketing-actions a { text-decoration: none; }
.marketing-main { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.marketing-hero { min-height: 660px; display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(36px, 7vw, 96px); align-items: center; padding: 72px 0 84px; }
.availability { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-style: normal; }
.availability i { width: 8px; height: 8px; border-radius: 50%; background: #51a46f; box-shadow: 0 0 0 5px rgba(81,164,111,.12); }
.availability b { color: var(--green-deep); }
.availability em { color: #b6bbb3; font-style: normal; }
.marketing-copy h1 { margin: 22px 0 27px; font-size: clamp(52px, 6.3vw, 92px); line-height: .93; letter-spacing: -.075em; font-weight: 660; }
.marketing-copy h1 span { color: var(--green); }
.marketing-copy > p { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 10px; }
.marketing-terminal { overflow: hidden; border-radius: 23px; background: #171b17; color: #dbe4da; box-shadow: 0 32px 90px rgba(25,31,25,.2); transform: rotate(.7deg); }
.terminal-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 17px; border-bottom: 1px solid rgba(255,255,255,.09); color: #839082; font-size: 9px; }
.terminal-bar > span { display: flex; gap: 5px; }
.terminal-bar i { width: 7px; height: 7px; border-radius: 50%; background: #485047; }
.terminal-bar i:first-child { background: #e17956; }.terminal-bar i:nth-child(2) { background: #d5b554; }.terminal-bar i:nth-child(3) { background: #6aa477; }
.terminal-bar b { color: #aab5a8; font-weight: 500; }.terminal-bar em { justify-self: end; color: var(--lime); font-style: normal; }
.marketing-terminal pre { min-height: 330px; margin: 0; padding: 32px 28px; overflow: hidden; white-space: pre-wrap; font-size: 12px; line-height: 1.9; }
.marketing-terminal .dim { color: #97a095; }.marketing-terminal .green { color: #b9de8e; }.marketing-terminal .orange { color: #eab499; }
.terminal-result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 0 18px 18px; padding: 15px; border: 1px solid rgba(201,243,107,.12); border-radius: 13px; background: rgba(201,243,107,.06); }
.terminal-result > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #172016; background: var(--lime); }
.terminal-result b, .terminal-result small { display: block; }.terminal-result b { font-size: 11px; }.terminal-result small { margin-top: 3px; color: #849083; font-size: 9px; }.terminal-result strong { color: var(--lime); font-size: 11px; }
.platform-strip { display: grid; grid-template-columns: 1.4fr auto repeat(3,.55fr); align-items: center; min-height: 98px; padding: 0 25px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,252,.76); box-shadow: 0 14px 48px rgba(34,43,34,.06); }
.platform-strip > div:first-child span, .strip-stat span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.platform-strip code { display: block; margin-top: 6px; color: var(--green-deep); font-size: 12px; }
.strip-stat { padding-left: 25px; border-left: 1px solid var(--line); }.strip-stat strong { display: block; font-size: 24px; letter-spacing: -.04em; }.strip-stat span { margin-top: 3px; }
.marketing-section { padding: 135px 0 95px; }
.marketing-heading { max-width: 680px; }.marketing-heading h2, .model-showcase h2, .developer-section h2, .cta-section h2 { margin: 12px 0 18px; font-size: clamp(35px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -.06em; }.marketing-heading p, .model-showcase p, .developer-section p, .cta-section p { color: var(--muted); line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-top: 45px; }
.feature-grid article { min-height: 260px; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,252,.63); transition: transform .18s, box-shadow .18s; }.feature-grid article:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(34,43,34,.08); }
.feature-grid i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--green-deep); background: rgba(201,243,107,.45); font-style: normal; font-size: 9px; font-weight: 900; }.feature-grid h3 { margin: 29px 0 11px; font-size: 18px; letter-spacing: -.035em; }.feature-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }.feature-grid > article > span { margin-top: auto; color: var(--green); font-family: monospace; font-size: 9px; }
.model-showcase { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: center; padding: 90px clamp(28px,6vw,75px); border-radius: 26px; color: white; background: #1a1f1a; overflow: hidden; }.model-showcase > div { max-width: 590px; }.model-showcase p { color: #96a095; }.model-showcase .button { display: inline-block; margin-top: 16px; color: white; border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.05); text-decoration: none; }
.model-card { padding: 23px; border: 1px solid rgba(255,255,255,.12); border-radius: 19px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px rgba(255,255,255,.05); }.model-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; }.model-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--lime); color: #172016; font-weight: 900; }.model-top b,.model-top small { display: block; }.model-top small { margin-top: 4px; color: #849083; font-size: 10px; }.model-top em { padding: 5px 8px; border-radius: 999px; background: rgba(201,243,107,.12); color: var(--lime); font-size: 8px; font-style: normal; letter-spacing: .1em; }.model-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 28px 0; }.model-tags span { padding: 7px 9px; border-radius: 8px; color: #aeb8ac; background: rgba(255,255,255,.06); font-size: 9px; }.model-route { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); }.model-route small { display: block; color: #768075; font-size: 8px; letter-spacing: .13em; }.model-route code { display: block; margin-top: 7px; color: #b9de8e; font-size: 10px; }
.developer-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; align-items: center; padding: 130px 0; }.developer-copy ol { padding: 0; margin: 34px 0 0; list-style: none; }.developer-copy li { display: flex; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.developer-copy li b { color: var(--green); font-size: 9px; }.developer-copy code { color: var(--ink); }.landing-code { margin: 0; }.landing-code pre { min-height: 320px; }
.cta-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 80px; padding: 55px 60px; border: 1px solid rgba(61,122,91,.18); border-radius: 24px; background: linear-gradient(110deg,rgba(201,243,107,.27),rgba(255,255,255,.7)); }.cta-section h2 { max-width: 700px; font-size: clamp(32px,4vw,50px); }.cta-section .button { flex: 0 0 auto; text-decoration: none; }
.marketing-footer { width: min(1280px,calc(100% - 48px)); min-height: 130px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); }.marketing-footer p { justify-self: center; color: var(--muted); font-size: 11px; }.marketing-footer nav { justify-self: end; display: flex; gap: 22px; }

/* Simplified home */
.simple-home { min-height:100vh; color:var(--ink); background:radial-gradient(circle at 78% 11%,rgba(201,243,107,.13),transparent 24rem),#f6f7f3; }
.simple-nav { width:min(1120px,calc(100% - 40px)); height:78px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.simple-nav nav,.simple-footer nav { display:flex; gap:22px; }.simple-nav nav a,.simple-footer a { color:var(--muted); text-decoration:none; font-size:11px; font-weight:700; }.simple-nav nav a:hover,.simple-footer a:hover { color:var(--ink); }
.simple-main { width:min(1120px,calc(100% - 40px)); margin:0 auto; }
.simple-hero { min-height:520px; display:grid; grid-template-columns:1fr .82fr; gap:100px; align-items:center; }
.simple-copy h1 { margin:24px 0 19px; font-size:clamp(62px,8vw,104px); line-height:.9; letter-spacing:-.075em; font-weight:690; }.simple-copy h1 span { color:var(--green); }.simple-copy > p { max-width:520px; margin:0; color:var(--muted); font-size:17px; line-height:1.7; }.simple-copy .hero-actions { margin-top:31px; }
.simple-panel { padding:30px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,252,.82); box-shadow:0 24px 70px rgba(33,42,33,.09); }.simple-panel-head { display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.12em; }.simple-panel-head em { padding:5px 8px; border-radius:999px; color:var(--green-deep); background:rgba(201,243,107,.38); font-style:normal; font-size:8px; }.simple-panel h2 { margin:32px 0 9px; font-size:28px; letter-spacing:-.05em; }.simple-panel > p { margin:0; color:var(--muted); font-size:11px; }.simple-panel > small { display:block; margin-top:14px; color:#929990; font-size:9px; }
.simple-command { display:grid; grid-template-columns:1fr auto; margin-top:21px; overflow:hidden; border:1px solid #313831; border-radius:10px; background:#1b201b; }.simple-command code { padding:14px; overflow:hidden; color:#c9f36b; font-size:9px; white-space:nowrap; text-overflow:ellipsis; }.simple-command button { border:0; border-left:1px solid rgba(255,255,255,.11); padding:0 14px; color:#ced5cc; background:transparent; font-size:9px; font-weight:800; }
.simple-api { min-height:92px; display:grid; grid-template-columns:1.2fr auto 1fr auto; gap:18px; align-items:center; margin-top:18px; padding:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }.simple-api > div span,.simple-api > div code { display:block; }.simple-api > div span { color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.12em; }.simple-api > div code { margin-top:6px; color:var(--green-deep); font-size:10px; }.simple-api > a { text-decoration:none; }
.simple-footer { width:min(1120px,calc(100% - 40px)); min-height:110px; margin:70px auto 0; display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }

/* Model-only home */
.catalog-home { min-height:100vh; color:var(--ink); background:radial-gradient(circle at 78% 2%,rgba(201,243,107,.1),transparent 24rem),#f7f8f4; }
.catalog-nav { width:min(1180px,calc(100% - 48px)); height:84px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }.catalog-nav nav { display:flex; align-items:center; gap:19px; }.catalog-nav nav a { color:var(--muted); text-decoration:none; font-size:11px; font-weight:750; }.catalog-nav nav .button { color:white; }
.catalog-main { width:min(1180px,calc(100% - 48px)); min-height:calc(100vh - 190px); margin:0 auto; padding:92px 0 70px; }.catalog-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; padding-bottom:42px; }.catalog-heading > div > span { color:var(--green); font-size:9px; font-weight:850; letter-spacing:.18em; }.catalog-heading h1 { margin:12px 0 0; font-size:clamp(52px,7vw,88px); line-height:.92; letter-spacing:-.07em; font-weight:680; }.catalog-health { display:flex; align-items:center; gap:9px; padding:8px 11px; border:1px solid rgba(79,155,104,.18); border-radius:999px; color:var(--green-deep); background:rgba(201,243,107,.16); font-size:9px; font-style:normal; }.catalog-health i { width:7px; height:7px; border-radius:50%; background:#50a46e; box-shadow:0 0 0 5px rgba(80,164,110,.1); }.catalog-health.off { color:#96675d; background:rgba(190,99,77,.08); }.catalog-health.off i { background:#bd665c; }
.catalog-list { border-top:1px solid var(--ink); }.catalog-list article { min-height:112px; display:grid; grid-template-columns:auto 1fr auto auto; gap:20px; align-items:center; border-bottom:1px solid var(--line); transition:padding .18s,background .18s; }.catalog-list article:hover { padding:0 16px; background:rgba(255,255,252,.7); }.catalog-logo { display:grid; place-items:center; width:45px; height:45px; border-radius:13px; color:var(--green-deep); background:var(--lime); font-size:12px; font-weight:900; }.catalog-list strong,.catalog-list small { display:block; }.catalog-list strong { font-size:15px; letter-spacing:-.02em; }.catalog-list small { margin-top:6px; color:var(--muted); font-size:9px; }.catalog-list article > em { display:flex; align-items:center; gap:7px; color:var(--green-deep); font-size:8px; font-style:normal; font-weight:850; text-transform:uppercase; }.catalog-list article > em i { width:6px; height:6px; border-radius:50%; background:#50a46e; }.catalog-list article > a { padding:9px 12px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:rgba(255,255,252,.7); text-decoration:none; font-size:9px; font-weight:800; }.catalog-empty { min-height:180px; display:grid; place-items:center; border-bottom:1px solid var(--line); color:var(--muted); font-size:10px; }
.catalog-footer { width:min(1180px,calc(100% - 48px)); min-height:106px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }.catalog-footer nav { display:flex; gap:20px; }.catalog-footer a { color:var(--muted); text-decoration:none; }

/* User center */
.account-body { background: #eef0eb; }
.auth-gate { min-height: 100vh; padding: 28px; background: radial-gradient(circle at 15% 15%,rgba(201,243,107,.25),transparent 28rem),#eef0eb; }.auth-brand { width: min(1120px,100%); margin: 0 auto 34px; }.auth-card { width: min(1000px,100%); min-height: 570px; margin: 0 auto; display: grid; grid-template-columns: 1fr 440px; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: rgba(255,255,252,.8); box-shadow: var(--shadow); }.auth-intro { padding: 70px 60px; color: white; background: #1b201b; }.auth-intro h1 { margin: 18px 0 22px; font-size: 57px; line-height: .96; letter-spacing: -.065em; }.auth-intro h1 span { color: var(--lime); }.auth-intro p { color: #97a195; line-height: 1.7; }.auth-points { display: grid; gap: 12px; margin-top: 50px; color: #b2bbb0; font-size: 11px; }.auth-forms { align-self: center; display: grid; gap: 20px; padding: 48px; }.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 10px; background: #eceee8; }.auth-tabs button { border: 0; border-radius: 8px; padding: 10px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }.auth-tabs button.active { color: white; background: var(--ink); }.auth-forms form { display: grid; gap: 15px; }
.quick-auth-option { display:grid; gap:10px; text-align:center; }.quick-auth-option > span { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:9px; }.quick-auth-option > span::before,.quick-auth-option > span::after { content:""; height:1px; flex:1; background:var(--line); }.quick-auth-option small { color:var(--muted); font-size:8px; line-height:1.5; }
.account-shell { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }.account-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 18px; border-right: 1px solid var(--line); background: #f7f7f2; }.account-sidebar .brand { padding: 0 7px 28px; }.account-sidebar nav { display: grid; gap: 4px; margin-top: 12px; }.account-sidebar nav button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 10px; padding: 11px 12px; color: var(--muted); background: transparent; text-align: left; font-size: 12px; font-weight: 700; }.account-sidebar nav button i { width: 20px; color: #8d958b; font-style: normal; text-align: center; }.account-sidebar nav button:hover { background: #eceee8; }.account-sidebar nav button.active { color: white; background: var(--ink); }.account-sidebar nav button.active i { color: var(--lime); }.sidebar-bottom { display: grid; gap: 11px; margin-top: auto; padding: 15px 11px 3px; border-top: 1px solid var(--line); }.sidebar-bottom a { color: var(--muted); text-decoration: none; font-size: 10px; }.online-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #50a46e; }
.account-main { min-width: 0; padding: 0 clamp(22px,4vw,58px) 60px; }.account-topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.account-topbar > div:first-of-type span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .15em; }.account-topbar h1 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.04em; }.user-menu { display: flex; align-items: center; gap: 10px; }.user-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: var(--green-deep); background: var(--lime); font-size: 12px; font-weight: 900; }.user-menu strong,.user-menu small { display: block; }.user-menu strong { font-size: 11px; }.user-menu small { margin-top: 2px; color: var(--muted); font-size: 9px; }.user-menu .text-button { margin-left: 8px; }.mobile-menu { display: none; }
.account-view { display: none; padding-top: 32px; }.account-view.active { display: block; }.account-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }.account-metrics article { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,252,.78); }.account-metrics span,.account-metrics small,.account-metrics strong { display: block; }.account-metrics span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }.account-metrics strong { margin: 10px 0 4px; font-size: 28px; letter-spacing: -.05em; }.account-metrics small { color: #929990; font-size: 9px; }
.overview-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-top: 14px; }.quick-card,.usage-chart-card,.recent-card,.data-card { border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,252,.78); }.quick-card { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 26px; }.quick-card h2,.usage-chart-card h2,.recent-card h2 { margin: 7px 0 8px; font-size: 18px; letter-spacing: -.035em; }.quick-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.quick-values { display: grid; gap: 10px; }.quick-values label > div { display: grid; grid-template-columns: 1fr auto; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f2f3ee; }.quick-values code { padding: 10px; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }.quick-values button { border: 0; border-left: 1px solid var(--line); color: var(--green); background: transparent; font-size: 9px; font-weight: 800; }.quick-card > .button { grid-column: 1 / -1; justify-self: start; }.usage-chart-card { padding: 25px; }.card-title { display: flex; justify-content: space-between; align-items: flex-start; }.card-title > strong { color: var(--green); font-size: 25px; }.donut-wrap { display: flex; align-items: center; gap: 26px; margin-top: 22px; }.donut { position: relative; width: 120px; height: 120px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: conic-gradient(var(--green) 0 0%,#e3e5df 0 100%); }.donut::after { content:""; position:absolute; inset:13px; border-radius:50%; background:#fbfbf7; }.donut span,.donut small { position: relative; z-index: 1; }.donut span { font-size: 17px; font-weight: 850; }.donut small { color: var(--muted); font-size: 8px; }.donut-legend { display: grid; gap: 12px; color: var(--muted); font-size: 9px; }.donut-legend span { display: grid; grid-template-columns: auto 1fr; gap: 8px; }.donut-legend i { width: 8px; height: 8px; border-radius: 50%; background: #d9ddd5; }.donut-legend i.used { background: var(--green); }.donut-legend b { grid-column: 2; color: var(--ink); }.recent-card { margin-top: 14px; padding: 24px; }.mini-table { margin-top: 15px; }.mini-table > div { display: grid; grid-template-columns: 1fr auto 80px; gap: 15px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }.mini-table > div > span { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items:center; }.mini-table b { font-size: 10px; }.mini-table small { grid-column:2; color:var(--muted); font-size:8px; }.mini-table > div > strong { font-size:10px; }.request-icon { grid-row:1/3; display:grid; place-items:center; width:28px; height:28px; border-radius:8px; color:var(--green); background:rgba(61,122,91,.09); font-style:normal; }
.overview-lower-grid { display:grid; grid-template-columns:1.35fr .65fr; gap:14px; margin-top:14px; }.trend-card,.service-card { padding:24px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,252,.78); }.trend-card h2,.service-card h2 { margin:7px 0 8px; font-size:18px; letter-spacing:-.035em; }.usage-trend { height:170px; display:grid; grid-template-columns:repeat(7,1fr); gap:12px; align-items:end; margin-top:18px; padding-top:12px; border-bottom:1px solid var(--line); background:repeating-linear-gradient(to bottom,transparent 0,transparent 41px,rgba(34,43,34,.055) 42px); }.usage-trend > div { height:100%; display:grid; grid-template-rows:1fr 16px 15px; gap:4px; align-items:end; text-align:center; }.usage-trend > div > span { width:min(34px,70%); height:100%; justify-self:center; display:flex; align-items:flex-end; }.usage-trend i { display:block; width:100%; min-height:4px; border-radius:7px 7px 2px 2px; background:linear-gradient(180deg,var(--lime),var(--green)); box-shadow:0 5px 13px rgba(61,122,91,.12); }.usage-trend b { color:var(--muted); font-size:8px; }.usage-trend small { color:var(--ink); font-size:8px; }.health-badge { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border-radius:999px; color:#8b685d; background:rgba(192,97,74,.1); font-size:8px; font-weight:800; }.health-badge i { width:6px; height:6px; border-radius:50%; background:#bf664f; }.health-badge.ready { color:var(--green-deep); background:rgba(201,243,107,.3); }.health-badge.ready i { background:#4f9b68; }.service-lines { display:grid; gap:0; margin-top:14px; }.service-lines > div { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-top:1px solid var(--line); color:var(--muted); font-size:9px; }.service-lines strong { color:var(--ink); font-size:10px; }.service-card > p { margin:14px 0 0; color:var(--muted); font-size:9px; line-height:1.6; }
.cycle-pill { padding:7px 10px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:rgba(255,255,252,.7); font-size:9px; }.credit-hero { min-height:230px; display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; padding:35px 40px; border-radius:20px; color:white; background:radial-gradient(circle at 15% 0,rgba(201,243,107,.17),transparent 17rem),#1b201b; box-shadow:0 22px 60px rgba(25,31,25,.12); }.credit-hero > div:first-child > span { color:#8e9a8d; font-size:9px; font-weight:850; letter-spacing:.14em; }.credit-hero strong { display:flex; align-items:baseline; gap:10px; margin:15px 0 10px; }.credit-hero strong small { color:var(--lime); font-size:23px; }.credit-hero strong b { font-size:50px; letter-spacing:-.06em; }.credit-hero p { margin:0; color:#939e92; font-size:10px; }.credit-progress-wrap > div:first-child,.credit-scale { display:flex; justify-content:space-between; color:#8e9a8d; font-size:9px; }.credit-progress-wrap > div:first-child b { color:var(--lime); font-size:13px; }.credit-progress { height:9px; margin:14px 0 11px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.09); }.credit-progress i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--green),var(--lime)); transition:width .3s; }.credit-scale b { color:#cbd2ca; }.credit-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; margin-top:14px; }.credit-grid article { min-height:190px; display:flex; flex-direction:column; padding:22px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,252,.76); }.credit-grid article > i { display:grid; place-items:center; width:28px; height:28px; border-radius:8px; color:var(--green-deep); background:rgba(201,243,107,.42); font-size:8px; font-style:normal; font-weight:900; }.credit-grid h3 { margin:19px 0 8px; font-size:15px; }.credit-grid p { margin:0; color:var(--muted); font-size:10px; line-height:1.65; }.credit-grid button,.credit-grid article > span { align-self:flex-start; margin-top:auto; color:var(--green); font-size:9px; }.credit-notice { margin-top:14px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }.panel-heading h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.04em; }.panel-heading p { margin:0; color:var(--muted); font-size:11px; }.notice-card { display:flex; align-items:center; gap:12px; margin-bottom:14px; padding:13px 15px; border:1px solid rgba(61,122,91,.18); border-radius:12px; background:rgba(201,243,107,.13); }.notice-card i { display:grid; place-items:center; width:22px; height:22px; border-radius:7px; background:var(--lime); color:var(--green-deep); font-style:normal; font-size:10px; font-weight:900; }.notice-card p { margin:0; color:var(--muted); font-size:10px; }.data-card { overflow:hidden; }.key-table-head,.account-key-row { display:grid; grid-template-columns:1.35fr .9fr .8fr .6fr 50px; gap:15px; align-items:center; padding:13px 18px; }.key-table-head,.usage-table-head { color:var(--muted); background:#f0f1ec; font-size:8px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }.account-key-row { min-height:72px; border-top:1px solid var(--line); }.account-key-row > div:first-child strong,.account-key-row > div:first-child code,.account-key-row > div:nth-child(2) strong,.account-key-row > div:nth-child(2) small { display:block; }.account-key-row strong { font-size:10px; }.account-key-row code,.account-key-row small,.account-key-row span { margin-top:4px; color:var(--muted); font-size:9px; }.account-key-row.disabled { opacity:.5; }.table-status { display:inline-flex !important; align-items:center; gap:6px; width:max-content; padding:5px 7px; border-radius:999px; color:var(--muted) !important; background:#eceee8; font-size:8px !important; font-style:normal; }.table-status i { width:5px; height:5px; border-radius:50%; background:#9da49a; }.table-status.ready { color:var(--green-deep)!important; background:rgba(201,243,107,.28); }.table-status.ready i { background:#4d9567; }.table-status.pending i { background:#c5a448; }.table-status.off i { background:#bd665c; }.account-empty { min-height:170px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--muted); font-size:10px; }.account-empty strong { margin-bottom:6px; color:var(--ink); }.account-empty.compact { min-height:80px; }
.usage-summary-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:14px; }.usage-summary-row > div { padding:17px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,252,.72); }.usage-summary-row span,.usage-summary-row strong { display:block; }.usage-summary-row span { color:var(--muted); font-size:8px; letter-spacing:.1em; }.usage-summary-row strong { margin-top:7px; font-size:19px; }.usage-table-head,.usage-account-row { display:grid; grid-template-columns:1fr 1.25fr .5fr .5fr .5fr .7fr; gap:12px; align-items:center; padding:13px 17px; }.usage-account-row { min-height:62px; border-top:1px solid var(--line); color:var(--muted); font-size:9px; }.usage-account-row > span:nth-child(2) strong,.usage-account-row > span:nth-child(2) small { display:block; }.usage-account-row > span:nth-child(2) strong { color:var(--ink); }.usage-account-row > span:nth-child(2) small { margin-top:3px; }.usage-account-row > strong { color:var(--ink); }
.docs-layout { display:grid; grid-template-columns:190px 1fr; min-height:560px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,252,.75); overflow:hidden; }.docs-layout > nav { display:grid; align-content:start; gap:4px; padding:18px 12px; border-right:1px solid var(--line); background:#f0f1ec; }.docs-layout > nav button { border:0; border-radius:8px; padding:10px; color:var(--muted); background:transparent; text-align:left; font-size:10px; }.docs-layout > nav button.active { color:white; background:var(--ink); }.docs-layout > article { padding:35px; }.docs-layout > article h2 { margin:8px 0 12px; font-size:28px; }.docs-layout > article p { color:var(--muted); font-size:11px; }.docs-layout .code-block { margin-top:25px; }
select { width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 12px; color:var(--ink); background:rgba(255,255,255,.72); }
.quick-values select { min-width:0; padding:10px; border:0; border-radius:0; background:transparent; font-family:monospace; font-size:9px; }

/* Premium relay landing */
.relay-home { min-height:100vh; color:var(--ink); background:#f5f5f0; }
.relay-home::before { content:""; position:fixed; inset:0; pointer-events:none; background:radial-gradient(circle at 78% 12%,rgba(190,239,104,.2),transparent 28%),linear-gradient(rgba(18,27,22,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(18,27,22,.025) 1px,transparent 1px); background-size:auto,48px 48px,48px 48px; }
.relay-nav,.relay-main,.relay-footer { position:relative; width:min(1180px,calc(100% - 48px)); margin:auto; }
.relay-nav { min-height:82px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(18,27,22,.13); }
.relay-nav nav,.relay-footer nav { display:flex; align-items:center; gap:24px; }.relay-nav nav a,.relay-footer a { color:var(--muted); font-size:10px; font-weight:750; text-decoration:none; }.relay-nav nav a:hover,.relay-footer a:hover { color:var(--ink); }
.relay-hero { min-height:570px; display:grid; grid-template-columns:1.14fr .86fr; gap:88px; align-items:center; padding:80px 0 90px; }
.relay-hero-copy h1 { max-width:760px; margin:17px 0 24px; font-size:68px; line-height:.99; letter-spacing:-.065em; }.relay-hero-copy h1 span { color:var(--green); }.relay-hero-copy > p { max-width:580px; margin:0; color:var(--muted); font-size:15px; line-height:1.8; }.relay-hero-copy .hero-actions { margin-top:34px; }
.relay-endpoint-card { padding:18px; border:1px solid rgba(18,27,22,.16); border-radius:22px; background:rgba(255,255,252,.86); box-shadow:0 30px 80px rgba(20,37,28,.12); transform:rotate(1.2deg); }.relay-card-top { display:flex; justify-content:space-between; padding:5px 4px 16px; color:var(--muted); font-size:9px; font-weight:850; letter-spacing:.12em; }.endpoint-preview { padding:18px; border-radius:14px; color:#e8f2e9; background:#13241b; }.endpoint-preview small,.endpoint-preview code { display:block; }.endpoint-preview small { margin-bottom:10px; color:#80ae93; font-size:8px; letter-spacing:.14em; }.endpoint-preview code { overflow:hidden; color:#c8f36b; font-size:11px; text-overflow:ellipsis; }.request-preview { display:grid; grid-template-columns:auto 1fr; gap:13px; margin-top:10px; padding:14px 15px; border:1px solid var(--line); border-radius:12px; background:#fafaf6; }.request-preview span { color:var(--green); font-size:8px; font-weight:900; }.request-preview code { font-size:10px; }.relay-endpoint-card footer { display:flex; justify-content:space-between; padding:17px 5px 3px; color:var(--muted); font-size:8px; }
.pricing-section { padding:86px 0; border-top:1px solid rgba(18,27,22,.13); }.pricing-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:40px; }.pricing-heading h2 { margin:8px 0 7px; font-size:42px; letter-spacing:-.05em; }.pricing-heading p { margin:0; color:var(--muted); font-size:11px; }.pricing-meta { padding:10px 13px; border:1px solid var(--line); border-radius:999px; color:var(--green-deep); background:rgba(201,243,107,.22); font-size:9px; font-weight:800; }
.pricing-table-head,.pricing-list article { display:grid; grid-template-columns:minmax(270px,1fr) 150px 150px 115px 60px; gap:20px; align-items:center; }.pricing-table-head { padding:0 16px 13px; color:var(--muted); font-size:8px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }.pricing-list { border-top:1px solid var(--ink); }.pricing-list article { min-height:108px; padding:0 16px; border-bottom:1px solid var(--line); transition:background .18s,transform .18s; }.pricing-list article:hover { background:rgba(255,255,252,.76); transform:translateX(4px); }.model-identity { display:flex; align-items:center; gap:17px; min-width:0; }.model-identity strong,.model-identity small { display:block; }.model-identity strong { font-size:14px; }.model-identity small { margin-top:6px; color:var(--muted); font-size:8px; }.pricing-list article > strong { font-size:13px; font-variant-numeric:tabular-nums; }.pricing-list article > em { display:flex; align-items:center; gap:7px; color:var(--green-deep); font-size:8px; font-style:normal; font-weight:850; }.pricing-list article > em i { width:6px; height:6px; border-radius:50%; background:#50a46e; }.pricing-list article > a { padding:9px 11px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:white; text-align:center; text-decoration:none; font-size:8px; font-weight:850; }
.credits-section { display:grid; grid-template-columns:1fr 1.35fr; gap:70px; align-items:start; margin:35px 0 110px; padding:58px; border-radius:26px; color:#f7faf6; background:#13241b; box-shadow:0 28px 80px rgba(20,37,28,.13); }.credits-section h2 { margin:12px 0 30px; font-size:38px; line-height:1.12; letter-spacing:-.05em; }.credits-section .eyebrow { color:#9fcca9; }.credit-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }.credit-feature-grid article { min-height:165px; padding:20px; border:1px solid rgba(255,255,255,.12); border-radius:15px; background:rgba(255,255,255,.04); }.credit-feature-grid b,.credit-feature-grid strong,.credit-feature-grid p { display:block; }.credit-feature-grid b { color:#c8f36b; font-size:9px; }.credit-feature-grid strong { margin-top:30px; font-size:12px; }.credit-feature-grid p { margin:9px 0 0; color:#9dafA4; font-size:9px; line-height:1.65; }.credits-section > .button { grid-column:1; justify-self:start; }
.relay-footer { min-height:105px; display:flex; justify-content:space-between; align-items:center; border-top:1px solid rgba(18,27,22,.13); color:var(--muted); font-size:9px; }

/* Wallet and billing */
.wallet-metric { color:#f7faf6!important; background:#163526!important; }.wallet-metric > span,.wallet-metric > small { color:#a9c3b2!important; }.wallet-metric > strong { display:flex; align-items:baseline; gap:4px; color:#c8f36b!important; }.wallet-metric > strong small { font-size:13px; }
.wallet-hero { display:grid; grid-template-columns:1fr auto; gap:40px; align-items:center; margin-bottom:18px; padding:34px 38px; border-radius:21px; color:#f7faf6; background:linear-gradient(135deg,#13241b,#24543b); box-shadow:0 24px 65px rgba(20,49,34,.17); }.wallet-hero > div:first-child > span { color:#9fc5aa; font-size:8px; font-weight:850; letter-spacing:.12em; }.wallet-hero strong { display:flex; align-items:baseline; gap:7px; margin:15px 0 9px; color:#c8f36b; }.wallet-hero strong small { font-size:20px; }.wallet-hero strong b { font-size:48px; letter-spacing:-.05em; }.wallet-hero p { margin:0; color:#a9c3b2; font-size:9px; }.wallet-side { min-width:210px; padding:20px 22px; border:1px solid rgba(255,255,255,.14); border-radius:14px; background:rgba(255,255,255,.05); }.wallet-side span,.wallet-side strong,.wallet-side small { display:block; }.wallet-side span,.wallet-side small { color:#a9c3b2; font-size:8px; }.wallet-side strong { margin:11px 0 7px; color:white; font-size:18px; }
.recharge-packages { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }.recharge-packages button { position:relative; min-height:120px; padding:18px; border:1px solid var(--line); border-radius:15px; color:var(--ink); background:rgba(255,255,252,.82); text-align:left; transition:transform .16s,border-color .16s,box-shadow .16s; }.recharge-packages button:hover { transform:translateY(-3px); border-color:var(--green); box-shadow:0 12px 30px rgba(28,65,43,.09); }.recharge-packages button.featured { border-color:#87b44b; background:linear-gradient(145deg,#f9ffeb,#f2f8e9); }.recharge-packages span,.recharge-packages strong,.recharge-packages small { display:block; }.recharge-packages span { color:var(--green); font-size:8px; font-weight:850; letter-spacing:.08em; }.recharge-packages strong { margin:15px 0 6px; font-size:25px; }.recharge-packages small { color:var(--muted); font-size:8px; }
.invite-heading { margin-top: 34px; }
.invite-form { display:grid; grid-template-columns:1.5fr .7fr 1fr auto; gap:12px; align-items:end; margin-bottom:14px; }
.invite-form label { display:grid; gap:7px; color:var(--muted); font-size:10px; }
.invite-form input { min-height:40px; }
.invite-form button { min-height:40px; }
#inviteList > div { grid-template-columns:1fr auto auto auto; }
#inviteList > div > em { grid-column:auto; }
@media (max-width:650px) {
  .invite-form { grid-template-columns:1fr; }
  #inviteList > div { grid-template-columns:1fr auto; }
  #inviteList > div > em { grid-column:2; }
}

/* Web AI workbench */
.web-ai-active .account-main { height:100vh; padding:0 24px 18px; overflow:hidden; }
.web-ai-active .account-topbar { min-height:72px; }
.web-ai-active .account-view.web-ai-view.active { height:calc(100vh - 72px); padding:14px 0 0; }
.web-ai-shell { position:relative; display:grid; grid-template-columns:258px minmax(0,1fr); height:100%; border:1px solid rgba(255,255,255,.075); border-radius:18px; background:#0d0d10; box-shadow:0 18px 60px rgba(0,0,0,.24); overflow:hidden; }
.web-ai-history { min-width:0; display:flex; flex-direction:column; padding:14px 11px 12px; border-right:1px solid rgba(255,255,255,.065); background:#0a0a0d; }
.web-ai-history-head { display:flex; gap:8px; }
.web-ai-new { flex:1; display:flex; align-items:center; gap:9px; min-height:39px; padding:0 12px; border:1px solid rgba(117,161,241,.25); border-radius:10px; color:#dce8ff; background:rgba(85,137,232,.08); font-size:11px; font-weight:680; text-align:left; transition:.2s var(--ease); }
.web-ai-new:hover { border-color:rgba(117,161,241,.5); background:rgba(85,137,232,.14); }
.web-ai-new span { color:#85aef8; font-size:17px; font-weight:400; }
.web-ai-history-close { display:none; width:38px; border:0; border-radius:10px; color:#a4a4ad; background:rgba(255,255,255,.05); font-size:19px; }
.web-ai-search { display:flex; align-items:center; gap:8px; margin:11px 1px 8px; padding:0 10px; border:1px solid rgba(255,255,255,.06); border-radius:9px; background:rgba(255,255,255,.025); }
.web-ai-search svg { flex:0 0 14px; width:14px; fill:none; stroke:#6e6e78; stroke-width:1.7; }
.web-ai-search input { width:100%; height:35px; border:0; outline:0; color:#d8d8dc; background:transparent; font-size:10px; }
.web-ai-search input::placeholder { color:#5e5e67; }
.web-ai-conversation-list { flex:1; min-height:0; overflow-y:auto; scrollbar-width:thin; }
.web-ai-conversation { position:relative; display:flex; align-items:center; margin:2px 0; border-radius:9px; }
.web-ai-conversation:hover,.web-ai-conversation.active { background:rgba(255,255,255,.045); }
.web-ai-conversation.active { box-shadow:inset 2px 0 #6899f1; }
.web-ai-conversation-open { min-width:0; flex:1; display:grid; grid-template-columns:17px minmax(0,1fr) auto; align-items:center; gap:7px; height:38px; padding:0 8px; border:0; color:#96969f; background:transparent; text-align:left; }
.web-ai-conversation-open span { color:#666671; font-size:10px; }
.web-ai-conversation-open b { min-width:0; overflow:hidden; color:#bdbdc4; font-size:10px; font-weight:540; text-overflow:ellipsis; white-space:nowrap; }
.web-ai-conversation.active b { color:#ececf0; }
.web-ai-conversation-open small { color:#55555e; font-size:8px; }
.web-ai-conversation-delete { width:25px; height:28px; margin-right:4px; border:0; border-radius:7px; color:#676771; background:transparent; opacity:0; }
.web-ai-conversation:hover .web-ai-conversation-delete { opacity:1; }
.web-ai-conversation-delete:hover { color:#ff8e8e; background:rgba(255,85,85,.08); }
.web-ai-history-empty { padding:24px 8px; color:#666670; font-size:10px; text-align:center; }
.web-ai-history-foot { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:7px; margin-top:8px; padding:12px 8px 2px; border-top:1px solid rgba(255,255,255,.055); }
.web-ai-history-foot span { color:#686873; font-size:9px; }
.web-ai-history-foot strong { color:#a9c5f7; font:600 11px "SFMono-Regular",Consolas,monospace; }
.web-ai-history-foot button { border:0; color:#76a2f0; background:transparent; font-size:9px; }
.web-ai-history-backdrop { display:none; }
.web-ai-chat { min-width:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; background:radial-gradient(circle at 50% 0,rgba(74,118,205,.065),transparent 34%),#0e0e11; }
.web-ai-toolbar { min-height:51px; display:flex; align-items:center; gap:12px; padding:7px 16px; border-bottom:1px solid rgba(255,255,255,.055); }
.web-ai-history-toggle { display:none; width:36px; height:36px; padding:10px; border:0; border-radius:9px; background:rgba(255,255,255,.05); }
.web-ai-history-toggle span { display:block; height:1px; margin:3px 0; background:#aaaab2; }
.web-ai-model { display:flex; align-items:center; gap:8px; }
.web-ai-model > span { color:#62626c; font-size:8px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.web-ai-model select,.web-ai-effort select,.web-ai-media-options select { height:32px; border:1px solid rgba(255,255,255,.07); border-radius:8px; padding:0 27px 0 9px; outline:0; color:#d5d5da; background:#151519; font-size:10px; }
.web-ai-rename { width:35px; height:32px; margin-left:auto; border:0; border-radius:8px; color:#6f6f79; background:transparent; letter-spacing:1px; }
.web-ai-rename:hover { color:#c9c9ce; background:rgba(255,255,255,.05); }
.web-ai-messages { min-height:0; overflow-y:auto; padding:30px clamp(24px,7vw,105px) 24px; scroll-behavior:smooth; scrollbar-width:thin; }
.web-ai-welcome { max-width:780px; min-height:100%; display:flex; flex-direction:column; justify-content:center; margin:auto; padding:25px 0 80px; }
.web-ai-mark { display:grid; place-items:center; width:45px; height:45px; margin-bottom:19px; border:1px solid rgba(111,158,244,.24); border-radius:14px; color:#90b6fa; background:linear-gradient(145deg,rgba(88,139,233,.18),rgba(88,139,233,.035)); box-shadow:0 12px 40px rgba(39,87,176,.12); font-size:18px; }
.web-ai-welcome h2 { margin:0; color:#f0f0f2; font-size:30px; font-weight:570; letter-spacing:-.045em; }
.web-ai-welcome > p { margin:9px 0 28px; color:#777781; font-size:11px; }
.web-ai-prompts { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.web-ai-prompts button { min-height:77px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:15px 17px; border:1px solid rgba(255,255,255,.065); border-radius:12px; color:#c7c7ce; background:rgba(255,255,255,.018); text-align:left; transition:.22s var(--ease); }
.web-ai-prompts button:hover { border-color:rgba(108,154,238,.28); background:rgba(81,129,218,.065); transform:translateY(-2px); }
.web-ai-prompts b { margin-bottom:5px; color:#d8d8dc; font-size:11px; }
.web-ai-prompts span { color:#6d6d77; font-size:9px; }
.web-ai-message { max-width:860px; display:grid; grid-template-columns:30px minmax(0,1fr); gap:12px; margin:0 auto 30px; animation:enterUp .25s var(--ease) both; }
.web-ai-message.user { margin-bottom:26px; }
.web-ai-message-avatar { display:grid; place-items:center; width:28px; height:28px; border:1px solid rgba(255,255,255,.08); border-radius:9px; color:#9c9ca4; background:#16161a; font-size:9px; font-weight:750; }
.web-ai-message.assistant .web-ai-message-avatar { color:#9fbffa; border-color:rgba(108,156,242,.22); background:rgba(69,115,202,.12); }
.web-ai-message-body { min-width:0; }
.web-ai-message-label { display:flex; align-items:center; gap:9px; height:28px; }
.web-ai-message-label strong { color:#d2d2d7; font-size:10px; font-weight:650; }
.web-ai-message-label span { color:#505059; font-size:8px; }
.web-ai-message-content { color:#c9c9ce; font-size:12px; line-height:1.78; overflow-wrap:anywhere; }
.web-ai-message.user .web-ai-message-content { display:inline-block; max-width:min(700px,100%); padding:10px 13px; border:1px solid rgba(255,255,255,.055); border-radius:4px 12px 12px 12px; background:rgba(255,255,255,.035); }
.web-ai-message-content p { margin:0 0 10px; }
.web-ai-message-content p:last-child { margin-bottom:0; }
.web-ai-message-content ul { margin:7px 0; padding-left:19px; }
.web-ai-message-content code { padding:2px 5px; border-radius:5px; color:#aac6f8; background:rgba(100,145,225,.09); font:10px "SFMono-Regular",Consolas,monospace; }
.web-ai-message-content a { color:#83acf5; text-decoration:none; }
.web-ai-code { margin:12px 0; border:1px solid rgba(255,255,255,.07); border-radius:11px; background:#08080a; overflow:hidden; }
.web-ai-code > div { height:32px; display:flex; align-items:center; justify-content:space-between; padding:0 11px; border-bottom:1px solid rgba(255,255,255,.055); color:#686873; font-size:8px; }
.web-ai-code button { border:0; color:#7fa8f1; background:transparent; font-size:8px; }
.web-ai-code pre { margin:0; padding:15px; overflow:auto; }
.web-ai-code code { padding:0; color:#bdc8dc; background:transparent; font-size:10px; line-height:1.65; }
.web-ai-message-actions { display:flex; gap:11px; margin-top:8px; opacity:0; transition:opacity .15s; }
.web-ai-message:hover .web-ai-message-actions { opacity:1; }
.web-ai-message-actions button { padding:0; border:0; color:#5d5d66; background:transparent; font-size:8px; }
.web-ai-message-actions button:hover { color:#8fb4f7; }
.web-ai-thinking { display:flex; gap:4px; padding:9px 0; }
.web-ai-thinking i { width:5px; height:5px; border-radius:50%; background:#7fa8f1; animation:webAiThink 1.1s infinite ease-in-out; }
.web-ai-thinking i:nth-child(2) { animation-delay:.15s; }.web-ai-thinking i:nth-child(3) { animation-delay:.3s; }
@keyframes webAiThink { 0%,60%,100%{opacity:.25;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }
.web-ai-error { padding:10px 12px; border:1px solid rgba(236,91,91,.18); border-radius:9px; color:#df9292; background:rgba(196,58,58,.06); font-size:10px; }
.web-ai-input-images,.web-ai-generated-images { display:flex; flex-wrap:wrap; gap:8px; margin:5px 0 10px; }
.web-ai-input-images img { width:110px; height:84px; border-radius:10px; object-fit:cover; }
.web-ai-generated-images a { display:block; max-width:min(560px,100%); }
.web-ai-generated-images img { display:block; width:auto; max-width:100%; max-height:620px; border:1px solid rgba(255,255,255,.08); border-radius:14px; object-fit:contain; }
.web-ai-video-card { max-width:620px; margin-top:12px; border:1px solid rgba(255,255,255,.075); border-radius:13px; background:#0a0a0c; overflow:hidden; }
.web-ai-video-card video { display:block; width:100%; max-height:520px; background:#050506; }
.web-ai-video-card > div:last-child { display:flex; align-items:center; gap:10px; padding:11px 13px; }
.web-ai-video-card strong { color:#cacad0; font-size:9px; }.web-ai-video-card span,.web-ai-video-card em { color:#63636d; font-size:8px; font-style:normal; }.web-ai-video-card a { margin-left:auto; color:#7fa8f1; font-size:9px; text-decoration:none; }
.web-ai-video-pending { min-height:190px; display:flex; align-items:center; justify-content:center; gap:9px; background:radial-gradient(circle,rgba(82,131,222,.11),transparent 60%); }
.web-ai-video-pending i { width:14px; height:14px; border:2px solid rgba(127,168,241,.2); border-top-color:#7fa8f1; border-radius:50%; animation:spin .8s linear infinite; }
.web-ai-composer-wrap { padding:8px clamp(20px,7vw,98px) 12px; background:linear-gradient(180deg,rgba(14,14,17,0),#0e0e11 22%); }
.web-ai-attachments { max-width:860px; display:flex; gap:7px; margin:0 auto 7px; overflow-x:auto; }
.web-ai-attachments > div { flex:0 0 auto; display:grid; grid-template-columns:32px auto 20px; align-items:center; gap:7px; padding:5px; border:1px solid rgba(255,255,255,.07); border-radius:9px; background:#141418; }
.web-ai-attachments img { width:32px; height:32px; border-radius:6px; object-fit:cover; }.web-ai-attachments span { max-width:110px; overflow:hidden; color:#8b8b94; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }.web-ai-attachments button { border:0; color:#777780; background:transparent; }
.web-ai-composer { max-width:860px; margin:auto; padding:11px 12px 9px; border:1px solid rgba(255,255,255,.095); border-radius:15px; background:#17171b; box-shadow:0 16px 45px rgba(0,0,0,.22); transition:border-color .2s,box-shadow .2s; }
.web-ai-composer:focus-within { border-color:rgba(110,158,244,.35); box-shadow:0 16px 45px rgba(0,0,0,.25),0 0 0 3px rgba(78,128,222,.055); }
.web-ai-composer textarea { display:block; width:100%; min-height:28px; max-height:180px; resize:none; border:0; outline:0; color:#e0e0e4; background:transparent; font:400 12px/1.65 inherit; }
.web-ai-composer textarea::placeholder { color:#5e5e67; }
.web-ai-compose-actions { min-height:32px; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:7px; }
.web-ai-compose-left { min-width:0; display:flex; align-items:center; gap:7px; }
.web-ai-attach { display:grid; place-items:center; width:31px; height:31px; border:1px solid rgba(255,255,255,.065); border-radius:9px; cursor:pointer; }
.web-ai-attach:hover { border-color:rgba(108,154,240,.28); background:rgba(76,124,214,.07); }
.web-ai-attach input { display:none; }.web-ai-attach svg { width:14px; fill:none; stroke:#8a8a94; stroke-width:1.6; }
.web-ai-creation-tools { display:flex; align-items:center; gap:5px; }
.web-ai-creation-tools button { height:31px; display:flex; align-items:center; gap:6px; padding:0 10px; border:1px solid rgba(255,255,255,.065); border-radius:9px; color:#8a8a94; background:transparent; font-size:10px; font-weight:650; white-space:nowrap; }
.web-ai-creation-tools button:hover { color:#b8caed; border-color:rgba(108,154,240,.28); background:rgba(76,124,214,.07); }
.web-ai-creation-tools button.active { color:#b9d1ff; border-color:rgba(108,154,240,.36); background:rgba(76,124,214,.14); box-shadow:inset 0 0 0 1px rgba(107,154,240,.08); }
.web-ai-creation-tools svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.web-ai-effort { display:flex; align-items:center; gap:5px; }.web-ai-effort span { color:#5f5f68; font-size:8px; }.web-ai-effort select,.web-ai-media-options select { height:31px; }
.web-ai-media-options { display:flex; gap:6px; }
.web-ai-send { flex:0 0 32px; width:32px; height:32px; display:grid; place-items:center; border:0; border-radius:10px; color:#07101f; background:#82aefa; box-shadow:0 7px 20px rgba(70,118,208,.22); }
.web-ai-send svg { grid-area:1/1; width:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }.web-ai-send .stop-icon { display:none; fill:currentColor; stroke:none; }.web-ai-send.stopping .send-icon { display:none; }.web-ai-send.stopping .stop-icon { display:block; }
.web-ai-disclaimer { margin:6px 0 0; color:#4e4e57; font-size:7px; text-align:center; }

[data-theme="light"] .web-ai-shell { border-color:rgba(27,42,69,.1); background:#fff; box-shadow:0 20px 60px rgba(42,57,83,.08); }
[data-theme="light"] .web-ai-history { border-color:rgba(27,42,69,.08); background:#f7f8fa; }
[data-theme="light"] .web-ai-chat { background:radial-gradient(circle at 50% 0,rgba(67,121,220,.06),transparent 34%),#fff; }
[data-theme="light"] .web-ai-toolbar { border-color:rgba(27,42,69,.08); }
[data-theme="light"] .web-ai-new { color:#245baa; border-color:rgba(46,104,207,.2); background:rgba(54,112,216,.06); }
[data-theme="light"] .web-ai-search { border-color:rgba(27,42,69,.08); background:#fff; }
[data-theme="light"] .web-ai-search input,[data-theme="light"] .web-ai-composer textarea { color:#20242b; }
[data-theme="light"] .web-ai-conversation:hover,[data-theme="light"] .web-ai-conversation.active { background:rgba(39,83,159,.06); }
[data-theme="light"] .web-ai-conversation-open b,[data-theme="light"] .web-ai-conversation.active b { color:#343942; }
[data-theme="light"] .web-ai-model select,[data-theme="light"] .web-ai-effort select,[data-theme="light"] .web-ai-media-options select { color:#31363f; border-color:rgba(27,42,69,.1); background:#f7f8fa; }
[data-theme="light"] .web-ai-creation-tools button { color:#6e7785; border-color:rgba(27,42,69,.1); }
[data-theme="light"] .web-ai-creation-tools button:hover { color:#2f64b8; border-color:rgba(53,109,207,.22); background:rgba(57,111,209,.04); }
[data-theme="light"] .web-ai-creation-tools button.active { color:#245fb8; border-color:rgba(46,104,207,.24); background:rgba(54,112,216,.08); }
[data-theme="light"] .web-ai-welcome h2 { color:#171b22; }.web-ai-welcome > p { color:#747b86; }
[data-theme="light"] .web-ai-prompts button { color:#373c45; border-color:rgba(27,42,69,.09); background:#fbfbfc; }
[data-theme="light"] .web-ai-prompts button:hover { border-color:rgba(53,109,207,.24); background:rgba(57,111,209,.04); }
[data-theme="light"] .web-ai-prompts b { color:#272c34; }.web-ai-prompts span { color:#7a818c; }
[data-theme="light"] .web-ai-message-avatar { color:#676e78; border-color:rgba(27,42,69,.1); background:#f5f6f8; }
[data-theme="light"] .web-ai-message.assistant .web-ai-message-avatar { color:#2f69c7; border-color:rgba(48,107,210,.18); background:rgba(52,108,209,.06); }
[data-theme="light"] .web-ai-message-label strong,[data-theme="light"] .web-ai-message-content { color:#343942; }
[data-theme="light"] .web-ai-message.user .web-ai-message-content { border-color:rgba(27,42,69,.08); background:#f4f6f8; }
[data-theme="light"] .web-ai-code,[data-theme="light"] .web-ai-video-card { border-color:rgba(27,42,69,.1); background:#f7f8fa; }
[data-theme="light"] .web-ai-code code { color:#34445f; }
[data-theme="light"] .web-ai-composer-wrap { background:linear-gradient(180deg,rgba(255,255,255,0),#fff 22%); }
[data-theme="light"] .web-ai-composer { border-color:rgba(27,42,69,.12); background:#fff; box-shadow:0 16px 45px rgba(32,51,83,.1); }
[data-theme="light"] .web-ai-attachments > div { border-color:rgba(27,42,69,.1); background:#fff; }

@media (max-width:1100px) {
  .web-ai-messages { padding-inline:35px; }.web-ai-composer-wrap { padding-inline:30px; }
}
@media (max-width:860px) {
  .web-ai-shell { grid-template-columns:1fr; overflow:visible; }
  .web-ai-history { position:absolute; z-index:5; inset:0 auto 0 0; width:min(285px,88vw); border-radius:17px 0 0 17px; transform:translateX(-105%); transition:transform .22s var(--ease); box-shadow:20px 0 45px rgba(0,0,0,.35); }
  .web-ai-shell.history-open .web-ai-history { transform:none; }
  .web-ai-history-close,.web-ai-history-toggle { display:block; }
  .web-ai-history-backdrop { position:absolute; z-index:4; inset:0; width:100%; border:0; border-radius:17px; background:rgba(0,0,0,.48); opacity:0; pointer-events:none; transition:opacity .2s; }
  .web-ai-shell.history-open .web-ai-history-backdrop { display:block; opacity:1; pointer-events:auto; }
}
@media (max-width:650px) {
  .web-ai-active .account-main { height:100dvh; padding:0 8px 8px; }
  .web-ai-active .account-topbar { min-height:64px; }
  .web-ai-active .account-view.web-ai-view.active { height:calc(100dvh - 64px); padding-top:6px; }
  .web-ai-active .account-page-title span { display:none; }.web-ai-active .account-page-title h1 { margin:0; font-size:20px; }
  .web-ai-active .account-topbar-actions { display:none; }
  .web-ai-shell { border-radius:13px; }
  .web-ai-toolbar { min-height:48px; gap:7px; padding:6px 8px; }
  .web-ai-model > span { display:none; }.web-ai-model select { max-width:150px; }
  .web-ai-rename { display:none; }
  .web-ai-messages { padding:22px 13px 18px; }
  .web-ai-welcome { padding:20px 3px 50px; }
  .web-ai-welcome h2 { font-size:26px; }.web-ai-welcome > p { max-width:290px; line-height:1.6; }
  .web-ai-prompts { grid-template-columns:1fr; }.web-ai-prompts button { min-height:64px; }
  .web-ai-message { grid-template-columns:25px minmax(0,1fr); gap:8px; margin-bottom:24px; }.web-ai-message-avatar { width:24px; height:24px; border-radius:8px; }
  .web-ai-message-content { font-size:11px; }.web-ai-message-actions { opacity:1; }
  .web-ai-composer-wrap { padding:7px 8px 8px; }.web-ai-composer { padding:9px 9px 7px; border-radius:13px; }
  .web-ai-compose-left { gap:4px; }.web-ai-effort span { display:none; }.web-ai-effort select,.web-ai-media-options select { max-width:91px; padding-inline:7px 20px; }.web-ai-creation-tools button { padding:0 8px; }.web-ai-creation-tools button span { display:none; }
  .web-ai-disclaimer { display:none; }
  .web-ai-history { border-radius:12px 0 0 12px; }
}
@media (max-width:420px) {
  .web-ai-model select { max-width:126px; }
  .web-ai-media-options select:nth-child(2) { display:none; }
}
@media (prefers-reduced-motion:reduce) { .web-ai-thinking i { animation:none; }.web-ai-prompts button { transition:none; } }
.wallet-ledger-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }.wallet-card { padding:23px; }.wallet-card h2 { margin:6px 0 0; font-size:17px; }.wallet-list { margin-top:14px; }.wallet-list > div { display:grid; grid-template-columns:1fr auto; gap:7px 14px; align-items:center; padding:13px 0; border-top:1px solid var(--line); }.wallet-list > div > span strong,.wallet-list > div > span small { display:block; }.wallet-list > div > span strong { max-width:260px; overflow:hidden; font-family:monospace; font-size:9px; text-overflow:ellipsis; }.wallet-list > div > span small { margin-top:5px; color:var(--muted); font-size:8px; }.wallet-list > div > b { font-size:10px; }.wallet-list > div > em { grid-column:2; color:var(--muted); font-size:8px; font-style:normal; }.wallet-positive { color:var(--green); }.wallet-negative { color:#a75555; }.checkout-summary { display:flex; justify-content:space-between; align-items:center; padding:14px; border-radius:10px; color:var(--green-deep); background:rgba(201,243,107,.2); font-size:10px; }.checkout-summary span b,.checkout-summary span small { display:block; }.checkout-summary span small { margin-top:4px; opacity:.75; }.checkout-summary strong { font-size:17px; }
.wallet-order-action { grid-column:2; display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.wallet-order-action > button { border:0; padding:5px 8px; border-radius:999px; color:#9dbbff; background:rgba(121,167,255,.1); font:inherit; font-size:8px; cursor:pointer; }
.wallet-order-action > button:hover { background:rgba(121,167,255,.18); }
.refund-breakdown { display:grid; gap:8px; padding:14px 16px; border:1px solid var(--line); border-radius:10px; }
.wallet-side button { margin-top:14px; }
.refund-breakdown p { display:flex; justify-content:space-between; gap:20px; margin:0; font-size:13px; }
.refund-breakdown p:nth-child(5) { padding-top:10px; border-top:1px solid var(--line); font-weight:700; }

.admin-order-card { margin-top:15px; overflow:hidden; }.admin-order-head,.admin-order-row { display:grid; grid-template-columns:minmax(260px,1fr) 120px 110px 100px 100px; gap:14px; align-items:center; }.admin-order-head { padding:13px 18px; border-bottom:1px solid var(--line); color:var(--muted); font-size:8px; font-weight:850; text-transform:uppercase; }.admin-order-row { padding:15px 18px; border-bottom:1px solid var(--line); }.admin-order-row:last-child { border-bottom:0; }.admin-order-row > span:first-child strong,.admin-order-row > span:first-child small { display:block; }.admin-order-row > span:first-child strong { overflow:hidden; font-family:monospace; font-size:9px; text-overflow:ellipsis; }.admin-order-row > span:first-child small { margin-top:5px; color:var(--muted); font-size:8px; }.admin-order-row > strong { font-size:10px; }
.payout-admin-card { overflow:hidden; }.payout-admin-head,.payout-admin-row { display:grid; grid-template-columns:minmax(210px,1fr) 130px minmax(180px,1fr) 95px 190px; gap:14px; align-items:center; }.payout-admin-head { padding:13px 18px; border-bottom:1px solid var(--line); color:var(--muted); font-size:8px; font-weight:850; text-transform:uppercase; }.payout-admin-row { padding:15px 18px; border-bottom:1px solid var(--line); }.payout-admin-row:last-child { border-bottom:0; }.payout-admin-row span strong,.payout-admin-row span small { display:block; }.payout-admin-row span strong { font-size:10px; }.payout-admin-row span small { margin-top:5px; color:var(--muted); font-size:8px; }.payout-admin-row > code { overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.payout-admin-actions { display:flex!important; align-items:center; justify-content:flex-end; gap:7px; min-width:0; }.payout-admin-actions code { overflow:hidden; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:900px) { .payout-admin-head { display:none; }.payout-admin-row { grid-template-columns:1fr auto; }.payout-admin-row > code { grid-column:1 / -1; }.payout-admin-actions { grid-column:1 / -1; justify-content:flex-start; } }
.execution-heading { margin-top:34px; }.execution-card { overflow:hidden; }.execution-head,.execution-row { display:grid; grid-template-columns:minmax(250px,1.4fr) 90px 60px minmax(180px,1fr) minmax(130px,.7fr); gap:14px; align-items:center; }.execution-head { padding:13px 18px; border-bottom:1px solid var(--line); color:var(--muted); font-size:8px; font-weight:850; text-transform:uppercase; }.execution-row { padding:15px 18px; border-bottom:1px solid var(--line); }.execution-row:last-child { border-bottom:0; }.execution-row span strong,.execution-row span small { display:block; }.execution-row span strong { overflow:hidden; font-family:monospace; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.execution-row span small { margin-top:5px; overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }.execution-row b { font-size:11px; }.execution-row code { overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.task-platform-grid { display:grid; grid-template-columns:minmax(210px,.65fr) minmax(230px,.75fr) minmax(360px,1.6fr); gap:16px; align-items:start; }.task-column,.task-chat { min-height:560px; padding:20px; }.task-mini-form { display:grid; gap:9px; margin:18px 0; }.task-mini-form input,.task-mini-form select,.task-compose textarea,.task-compose input { width:100%; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--ink); padding:11px 12px; font:inherit; }.task-entity-list { display:grid; gap:8px; }.task-entity-list button { width:100%; border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--ink); padding:12px; text-align:left; cursor:pointer; }.task-entity-list button.active { border-color:var(--green); background:color-mix(in srgb,var(--green) 10%,transparent); }.task-entity-list button strong,.task-entity-list button small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.task-entity-list button small { margin-top:5px; color:var(--muted); font-size:9px; }.task-chat { display:flex; flex-direction:column; }.conversation-messages { display:flex; flex:1; flex-direction:column; gap:12px; max-height:520px; overflow:auto; padding:18px 2px; }.conversation-message { max-width:88%; border-radius:12px; padding:12px 14px; line-height:1.55; white-space:pre-wrap; }.conversation-message.user { align-self:flex-end; background:var(--green); color:#fff; }.conversation-message.assistant { align-self:flex-start; border:1px solid var(--line); background:var(--card); }.conversation-message small { display:block; margin-top:7px; opacity:.7; font-size:8px; }.task-compose { display:grid; gap:10px; border-top:1px solid var(--line); padding-top:15px; }.task-compose > div { display:flex; align-items:end; justify-content:space-between; gap:12px; }.task-compose label { color:var(--muted); font-size:9px; }.task-compose label input { width:120px; margin-top:5px; }.task-compose button:disabled,.task-mini-form button:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width: 1100px) { .task-platform-grid { grid-template-columns:1fr 1fr; }.task-chat { grid-column:1 / -1; } }
@media (max-width: 720px) { .task-platform-grid { grid-template-columns:1fr; }.task-chat { grid-column:auto; }.task-column,.task-chat { min-height:0; }.conversation-messages { min-height:320px; }.task-compose > div { align-items:stretch; flex-direction:column; }.task-compose label input { width:100%; } }

@media (max-width: 980px) {
  .simple-hero { grid-template-columns:1fr; gap:40px; padding:75px 0; }.simple-copy h1 { font-size:82px; }.simple-panel { max-width:650px; }.simple-api { grid-template-columns:1fr auto; }
  .marketing-nav { grid-template-columns:1fr auto; }.marketing-nav nav { display:none; }.marketing-hero,.model-showcase,.developer-section { grid-template-columns:1fr; }.marketing-terminal { max-width:700px; transform:none; }.platform-strip { grid-template-columns:1fr auto repeat(2,.5fr); }.platform-strip .strip-stat:last-child { display:none; }.feature-grid { grid-template-columns:1fr 1fr; }.developer-section { gap:35px; }.auth-card { grid-template-columns:1fr; }.auth-intro { display:none; }.auth-forms { min-height:500px; }.account-shell { grid-template-columns:82px 1fr; }.account-sidebar .brand > span:last-child,.account-sidebar nav button:not(.active) { font-size:0; }.account-sidebar nav button { justify-content:center; }.account-sidebar nav button i { font-size:14px; }.account-sidebar nav button.active { font-size:0; }.sidebar-bottom { display:none; }.account-metrics { grid-template-columns:1fr 1fr; }.overview-grid,.overview-lower-grid { grid-template-columns:1fr; }.credit-hero { gap:30px; }.credit-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 650px) {
  .catalog-nav,.catalog-main,.catalog-footer { width:calc(100% - 28px); }.catalog-main { padding:65px 0 45px; }.catalog-heading { align-items:flex-start; flex-direction:column; padding-bottom:34px; }.catalog-heading h1 { font-size:58px; }.catalog-list article { grid-template-columns:auto 1fr auto; min-height:96px; gap:13px; }.catalog-list article > em { display:none; }.catalog-list article:hover { padding:0; }.catalog-footer { min-height:90px; }
  .simple-nav,.simple-main,.simple-footer { width:calc(100% - 24px); }.simple-nav nav a:first-child { display:none; }.simple-hero { min-height:0; padding:62px 0 45px; }.simple-copy h1 { font-size:64px; }.simple-copy > p { font-size:14px; }.simple-copy .hero-actions { display:grid; }.simple-panel { padding:23px 18px; }.simple-api { grid-template-columns:1fr auto; gap:13px; }.simple-api > div:nth-of-type(2),.simple-api > a { display:none; }.simple-footer { align-items:flex-start; flex-direction:column; gap:16px; padding:25px 0; }.simple-footer nav { flex-wrap:wrap; }
  .marketing-nav,.marketing-main,.marketing-footer { width:calc(100% - 24px); }.marketing-actions .ghost { display:none; }.marketing-hero { min-height:0; padding:50px 0; }.marketing-copy h1 { font-size:54px; }.marketing-copy > p { font-size:14px; }.platform-strip { grid-template-columns:1fr auto; padding:18px; }.strip-stat { display:none; }.marketing-section { padding:90px 0 60px; }.feature-grid { grid-template-columns:1fr; }.model-showcase { padding:55px 24px; gap:35px; }.developer-section { padding:85px 0; }.cta-section { align-items:flex-start; flex-direction:column; padding:35px 25px; }.marketing-footer { grid-template-columns:1fr; gap:18px; padding:28px 0; }.marketing-footer p,.marketing-footer nav { justify-self:start; }.auth-gate { padding:15px; }.auth-card { min-height:520px; }.auth-forms { padding:28px 20px; }.account-shell { display:block; }.account-sidebar { position:fixed; z-index:20; width:236px; transform:translateX(-105%); transition:transform .2s; box-shadow:var(--shadow); overflow-y:auto; }.sidebar-open .account-sidebar { transform:none; }.account-sidebar .brand > span:last-child { display:block; }.account-sidebar nav button,.account-sidebar nav button.active { justify-content:flex-start; font-size:12px; }.sidebar-bottom { display:grid; }.account-main { padding:0 14px 40px; }.mobile-menu { display:block; border:0; border-radius:9px; padding:8px 10px; background:var(--ink); color:white; }.account-topbar { gap:12px; }.account-topbar > div:first-of-type { margin-right:auto; }.user-menu > div { display:none; }.account-metrics,.usage-summary-row { grid-template-columns:1fr 1fr; }.quick-card { grid-template-columns:1fr; }.quick-card > .button { grid-column:1; }.donut-wrap { justify-content:center; }.panel-heading { align-items:flex-start; flex-direction:column; }.key-table-head { display:none; }.account-key-row { grid-template-columns:1fr 1fr auto; }.account-key-row > div:nth-child(3),.account-key-row > div:nth-child(4) { display:none; }.usage-table-head { display:none; }.usage-account-row { grid-template-columns:1fr 1fr auto; }.usage-account-row > span:nth-child(3),.usage-account-row > span:nth-child(4),.usage-account-row > span:nth-child(6) { display:none!important; }.docs-layout { grid-template-columns:1fr; }.docs-layout > nav { display:flex; overflow-x:auto; border-right:0; border-bottom:1px solid var(--line); }.docs-layout > article { padding:23px 15px; }.mini-table > div { grid-template-columns:1fr auto; }.mini-table em { display:none!important; }.credit-hero { grid-template-columns:1fr; gap:32px; padding:30px 24px; }.credit-grid { grid-template-columns:1fr; }.usage-trend { gap:5px; }
}

/* Minimal Premium AI Infrastructure — visual system */
:root {
  color-scheme: dark;
  --ink: #f2f2f4;
  --muted: #8c8c96;
  --paper: #09090b;
  --card: #101013;
  --card-raised: #141418;
  --line: rgba(255,255,255,.085);
  --line-strong: rgba(255,255,255,.15);
  --green: #79a7ff;
  --green-deep: #4f86ee;
  --lime: #79a7ff;
  --orange: #d69b65;
  --success: #61c887;
  --warning: #d8ad5c;
  --danger: #d66d73;
  --shadow: 0 18px 60px rgba(0,0,0,.28);
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { scrollbar-color: #2a2a31 transparent; }
html { background: var(--paper); }
body,
.account-body,
.relay-home {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { color: #fff; background: rgba(79,134,238,.5); }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
code, pre, .account-metrics strong, .metrics strong, .wallet-hero strong, .usage-summary-row strong {
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Shared primitives */
.brand { gap: 11px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #dce8ff;
  background: #111216;
  box-shadow: inset 0 1px rgba(255,255,255,.05);
  font-size: 10px;
  letter-spacing: .1em;
}
.brand-icon { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 2px 9px rgba(50,111,215,.15); }
.brand strong { color: #ededf0; font-size: 14px; font-weight: 650; }
.brand small { margin-top: 1px; color: #62626b; font-size: 9px; letter-spacing: .13em; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 650; letter-spacing: .16em; }
.button {
  min-height: 36px;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 620;
  transition: transform .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), filter .16s var(--ease);
}
.button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.button:active { transform: translateY(0) scale(.98); }
.button.primary { color: #fff; background: #477fe9; box-shadow: none; }
.button.primary:hover { background: #5289f0; }
.button.secondary,
.button.ghost { color: #d5d5da; border-color: var(--line-strong); background: transparent; }
.button.secondary:hover,
.button.ghost:hover { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.035); }
.button.compact { min-height: 32px; padding: 7px 11px; border-radius: 6px; }
.text-button { color: #8cb4ff; font-size: 11px; font-weight: 580; opacity: .72; transition: color .16s var(--ease), opacity .16s var(--ease); }
.text-button:hover { color: #b2ccff; opacity: 1; }
label { gap: 7px; color: #9696a0; font-size: 11px; font-weight: 550; }
input, textarea, select {
  border-color: var(--line-strong);
  border-radius: 7px;
  color: #ededf0;
  background: #0d0d10;
  box-shadow: inset 0 1px rgba(255,255,255,.015);
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
input::placeholder, textarea::placeholder { color: #53535c; }
input:hover, textarea:hover, select:hover { border-color: rgba(255,255,255,.22); }
input:focus, textarea:focus, select:focus { border-color: #628fdf; background: #101014; box-shadow: none; outline: none; }
select { color-scheme: dark; }
.model-chip,
.cycle-pill,
.table-status,
.health-badge,
.worker-card .badge,
.status-pill {
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #aaaab3;
  background: rgba(255,255,255,.025);
}
.model-chip { padding: 7px 10px; color: #abc5f8; }
.status-pill { padding: 7px 10px; }
.status-pill i, .health-badge i, .table-status i { box-shadow: none; }
.status-pill.ready i, .health-badge.ready i, .table-status.ready i { background: var(--success); }
.status-pill.ready, .health-badge.ready, .table-status.ready { color: #8fd8aa !important; background: rgba(97,200,135,.06); }
.table-status.pending { color: #d6b46f !important; }
.table-status.pending i { background: var(--warning); }
.table-status.off { color: #d9878c !important; }
.table-status.off i { background: var(--danger); }
.notice-card {
  gap: 11px;
  padding: 12px 14px;
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(121,167,255,.035);
}
.notice-card i { width: 20px; height: 20px; border: 1px solid rgba(121,167,255,.2); border-radius: 5px; color: #9dbdff; background: transparent; }
.notice-card p { color: #8e8e98; font-size: 11px; }
.empty-card, .account-empty {
  border-color: var(--line);
  border-radius: 8px;
  color: #73737d;
  background: transparent;
}
.empty-card strong, .account-empty strong { color: #c7c7cc; }

/* Public landing */
.relay-home { overflow-x: hidden; }
.relay-home::before {
  z-index: 0;
  background:
    radial-gradient(circle at 72% 12%, rgba(79,134,238,.085), transparent 31rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  animation: relayAtmosphere 24s ease-in-out infinite alternate;
}
.relay-nav, .relay-main, .relay-footer { width: min(1200px, calc(100% - 56px)); }
.relay-nav { min-height: 72px; border-color: var(--line); }
.relay-nav nav, .relay-footer nav { gap: 25px; }
.language-switch { display:inline-flex; align-items:center; padding:2px; border:1px solid var(--line); border-radius:7px; background:rgba(255,255,255,.025); }
.language-switch button { min-width:29px; height:25px; border:0; border-radius:5px; color:#777781; background:transparent; font:600 9px/1 "Segoe UI",sans-serif; cursor:pointer; }
.language-switch button:hover { color:#d8d8dc; }
.language-switch button.active { color:#f4f4f5; background:rgba(255,255,255,.1); box-shadow:inset 0 0 0 1px rgba(255,255,255,.04); }
.auth-controls { position:absolute; top:23px; right:27px; z-index:2; display:flex; align-items:center; gap:8px; }
.relay-nav nav a, .relay-footer a { color: #82828c; font-size: 11px; font-weight: 520; transition: color .16s var(--ease); }
.relay-nav nav a:hover, .relay-footer a:hover { color: #f1f1f3; }
.relay-hero { min-height: 640px; grid-template-columns: minmax(0,1.08fr) minmax(390px,.92fr); gap: clamp(44px,5vw,88px); padding: 88px 0 104px; }
.relay-hero-copy { min-width:0; animation: enterUp .42s var(--ease) both; }
.relay-hero-copy h1 { max-width: 720px; margin: 20px 0 30px; color: #f5f5f6; font-size: clamp(54px,5.2vw,70px); font-weight: 590; line-height: 1.03; letter-spacing: -.06em; }
.relay-hero-copy h1 span { display:inline-block; max-width:100%; color: #a9c5fa; text-wrap:balance; }
.relay-hero-copy > p { max-width: 620px; color: #8b8b95; font-size: 16px; line-height: 1.75; }
.relay-hero-side { display:grid; min-width:0; grid-template-columns:minmax(0,1fr); gap:18px; align-content:center; animation:enterUp .42s .1s var(--ease) both; }
.hero-price-advantage { display: grid; width:100%; min-height:148px; margin:0; padding:23px 25px; align-content:center; border: 1px solid rgba(126,168,244,.32); border-radius: 11px; background: linear-gradient(135deg,rgba(126,168,244,.14),rgba(126,168,244,.035)); box-shadow: inset 0 1px rgba(255,255,255,.04),0 14px 36px rgba(0,0,0,.13); }
.hero-price-advantage span { color: #8fb4f8; font-size: 10px; font-weight: 720; letter-spacing: .14em; }
.hero-price-advantage strong { margin-top: 8px; color: #e8eef9; font-size: 22px; font-weight: 540; line-height: 1; }
.hero-price-advantage strong b { color: #a9c5fa; font-size: 42px; font-weight: 680; letter-spacing: -.045em; }
.hero-price-advantage small { margin-top: 11px; color: #8d8d98; font-size: 10px; }
.relay-hero-copy .hero-actions { gap: 10px; margin-top: 38px; }
.relay-hero-copy .hero-actions .button { min-height:42px; padding:11px 18px; font-size:13px; }
.desktop-downloads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; width:100%; margin-top: 10px; }
.desktop-download-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 84px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #f1f1f3;
  background: rgba(255,255,255,.018);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  text-decoration: none;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.desktop-download-card strong {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 8px 16px 9px;
  border-radius: 999px;
  color: #fff;
  background: #c83a24;
  box-shadow: 0 7px 18px rgba(200,58,36,.24);
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%,-50%);
}
.desktop-download-card span { padding:7px 8px 0; font-size:clamp(15px,1.25vw,19px); font-weight: 520; letter-spacing: -.025em; text-align:center; }
.desktop-download-card:hover { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); transform: translateY(-2px); }
.desktop-download-card:active { transform: translateY(0) scale(.99); }
.desktop-download-card:focus-visible { outline: 2px solid #6f9df4; outline-offset: 4px; }
.relay-endpoint-card {
  min-width:0;
  padding: 0;
  border-color: var(--line-strong);
  border-radius: 10px;
  background: #0d0d10;
  box-shadow: none;
  transform: none;
}
.endpoint-preview { position: relative; min-height:112px; padding:25px; border-radius: 9px; color: #dbe7ff; background: #0d0d10; }
.endpoint-preview::before { content: ""; position: absolute; top: 0; left: 22px; width: 46px; height: 1px; background: #6f9df4; }
.endpoint-preview small { margin-bottom: 11px; color: #656570; font-size: 9px; font-weight: 650; letter-spacing: .14em; }
.endpoint-preview code { color: #b7cdf8; font-size: 12px; }
.pricing-section { padding: 96px 0; border-color: var(--line); }
.multimodal-section { padding:78px 0 88px; border-top:1px solid var(--line); }
.multimodal-heading { display:flex; align-items:end; justify-content:space-between; gap:32px; margin-bottom:34px; }
.multimodal-heading h2 { max-width:650px; margin:10px 0 0; color:#ededf0; font-size:clamp(34px,4.1vw,52px); font-weight:580; line-height:1.05; letter-spacing:-.05em; }
.multimodal-heading p { max-width:310px; margin:0; color:#777781; font-size:14px; line-height:1.6; text-align:right; }
.multimodal-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.multimodal-card { position:relative; overflow:hidden; min-height:330px; padding:29px; border:1px solid var(--line-strong); border-radius:12px; background:#0d0d10; }
.multimodal-card::after { position:absolute; width:230px; height:230px; right:-90px; bottom:-130px; border:1px solid rgba(121,167,255,.13); border-radius:50%; content:""; }
.multimodal-card.image-family { background:radial-gradient(circle at 88% 12%,rgba(104,143,229,.14),transparent 15rem),#0d0d10; }
.multimodal-card.video-family { background:radial-gradient(circle at 88% 12%,rgba(159,112,235,.12),transparent 15rem),#0d0d10; }
.multimodal-card-top { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.multimodal-card-top > span { color:#6f7480; font:650 10px/1 "SFMono-Regular",Consolas,monospace; letter-spacing:.12em; }
.multimodal-status { display:inline-flex; align-items:center; gap:7px; color:#c6a36c; font-size:10px; font-style:normal; }
.multimodal-status i { width:6px; height:6px; border-radius:50%; background:#c69343; box-shadow:0 0 12px rgba(198,147,67,.55); }
.multimodal-status.ready { color:#80d29d; }.multimodal-status.ready i { background:#61c887; box-shadow:0 0 12px rgba(97,200,135,.55); }
.multimodal-card h3 { position:relative; z-index:1; margin:38px 0 11px; color:#ededf0; font-size:27px; font-weight:580; letter-spacing:-.035em; }
.multimodal-card > p { position:relative; z-index:1; max-width:510px; margin:0; color:#85858e; font-size:14px; line-height:1.65; }
.multimodal-models { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:7px; margin-top:25px; }
.multimodal-models code { padding:7px 9px; border:1px solid rgba(255,255,255,.08); border-radius:5px; color:#aebbd3; background:rgba(255,255,255,.025); font-size:10px; }
.multimodal-card > a { position:absolute; z-index:2; right:28px; bottom:25px; color:#a9c5fa; font-size:11px; font-weight:620; text-decoration:none; }
.multimodal-card > a span { display:inline-block; margin-left:6px; transition:transform .18s var(--ease); }.multimodal-card > a:hover span { transform:translate(2px,-2px); }
.pricing-heading { margin-bottom: 35px; }
.pricing-heading h2 { margin: 9px 0 8px; color: #ededf0; font-size: 40px; font-weight: 580; letter-spacing: -.045em; }
.pricing-heading p { color: #7d7d87; font-size: 13px; }
.pricing-meta { padding: 7px 10px; border-color: var(--line); border-radius: 5px; color: #9dbcf5; background: transparent; font-size: 10px; font-weight: 540; }
.pricing-table-head, .pricing-list article { grid-template-columns: minmax(270px,1fr) 150px 150px 105px 88px; }
.pricing-table-head { padding: 0 14px 12px; color: #65656f; font-size: 10px; letter-spacing: .07em; }
.pricing-list { border-color: var(--line-strong); }
.pricing-list article { min-height: 84px; padding: 0 14px; border-color: var(--line); transition: background-color .18s var(--ease); }
.pricing-list article:hover { background: rgba(255,255,255,.026); transform: none; }
.catalog-logo { width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; color: #abc7fb; background: #15171c; font-size: 10px; }
.model-identity { gap: 14px; }
.model-identity strong { color: #e2e2e6; font-size: 13px; font-family: "SFMono-Regular", Consolas, monospace; font-weight: 590; }
.model-identity small { color: #666671; font-size: 9px; }
.pricing-list article > strong { color: #c6c6cc; font-size: 12px; font-weight: 520; }
.pricing-list article > em { color: #76ca96; font-size: 9px; font-weight: 570; text-transform: uppercase; }
.pricing-list article > em i { background: var(--success); animation: softPulse 2.8s ease-in-out infinite; }
.pricing-list article > a { padding: 7px 10px; border-color: var(--line-strong); border-radius: 6px; color: #b7b7bf; background: transparent; font-size: 9px; transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease); }
.pricing-list article > a:hover { color: #fff; border-color: rgba(121,167,255,.38); background: rgba(121,167,255,.06); }
.credits-section {
  grid-template-columns: 1fr 1.35fr;
  gap: 72px;
  margin: 36px 0 112px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #eeeeef;
  background: #0d0d10;
  box-shadow: none;
}
.credits-section h2 { margin: 13px 0 28px; font-size: 36px; font-weight: 560; letter-spacing: -.045em; }
.credits-section .eyebrow { color: #87aff8; }
.credit-feature-grid { gap: 0; border-left: 1px solid var(--line); }
.credit-feature-grid article { min-height: 160px; padding: 18px 21px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.credit-feature-grid b { color: #6f9cf2; }
.credit-feature-grid strong { margin-top: 34px; color: #d7d7dc; font-size: 12px; }
.credit-feature-grid p { color: #73737d; font-size: 10px; }
.relay-footer { min-height: 100px; border-color: var(--line); color: #5f5f68; }

dialog.promo-dialog {
  width: min(440px, calc(100% - 32px));
  overflow: hidden;
  border: 1px solid rgba(121,167,255,.28);
  border-radius: 16px;
  padding: 0;
  color: #f4f4f6;
  background: #0d0d11;
  box-shadow: 0 35px 110px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.025) inset;
}
dialog.promo-dialog[open] { animation: promoEnter .34s var(--ease) both; }
dialog.promo-dialog::backdrop { background: rgba(3,4,7,.78); backdrop-filter: blur(9px); }
.promo-dialog-body { position: relative; display: grid; justify-items: stretch; padding: 48px 36px 36px; text-align: center; }
.promo-dialog-body::before { content: ""; position: absolute; inset: -100px 18% auto; height: 180px; border-radius: 50%; background: rgba(79,134,238,.22); filter: blur(55px); pointer-events: none; }
.promo-dialog-close { position: absolute; z-index: 2; top: 15px; right: 15px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #9999a4; background: rgba(255,255,255,.035); font-size: 20px; line-height: 1; }
.promo-dialog-close:hover { color: #fff; background: rgba(255,255,255,.075); }
.promo-kicker { position: relative; color: #9fbfff; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.promo-model { position: relative; margin: 24px 0 12px; color: #f3f3f5; font-size: 21px; font-weight: 650; letter-spacing: .08em; }
.promo-benefits { position: relative; display: grid; gap: 10px; margin: 18px 0 22px; text-align: left; }
.promo-benefits article { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 16px; min-height: 82px; padding: 14px 16px; border: 1px solid rgba(121,167,255,.18); border-radius: 11px; background: rgba(121,167,255,.055); }
.promo-benefits article.model-discount { border-color: rgba(121,167,255,.34); background: linear-gradient(110deg,rgba(79,134,238,.14),rgba(121,167,255,.045)); }
.promo-benefits article.model-discount strong { color: #aecdff; }
.promo-benefits article.astra-launch { border-color:rgba(121,167,255,.34); background:linear-gradient(110deg,rgba(79,134,238,.14),rgba(121,167,255,.045)); }
.promo-benefits article.astra-launch strong { color:#aecdff; font-size:22px; letter-spacing:-.02em; }
.promo-benefits strong { color: #fff; font-size: 28px; font-weight: 680; letter-spacing: -.04em; }
.promo-benefits span { color: #b9bac3; font-size: 12px; line-height: 1.55; }
.promo-action { position: relative; text-decoration: none; }
.recharge-offer { display: grid; gap: 6px; margin: 2px 0 4px; padding: 14px 16px; border: 1px solid rgba(121,167,255,.2); border-radius: 9px; background: rgba(121,167,255,.06); }
.recharge-offer strong { color: #a8c5fb; font-size: 11px; letter-spacing: .08em; }
.recharge-offer span { color: #a5a6af; font-size: 11px; line-height: 1.45; }
.wallet-offer-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(170px,.8fr) minmax(330px,1.5fr) auto; align-items: center; gap: 24px; margin: 0 0 14px; padding: 22px 24px; border: 1px solid rgba(121,167,255,.2); border-radius: 10px; background: radial-gradient(circle at 10% 0,rgba(79,134,238,.16),transparent 18rem),#0d1016; }
.onboarding-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 14px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); }
.onboarding-card h3 { margin: 5px 0 7px; font-size: 20px; }
.onboarding-card p { margin: 0 0 8px; color: var(--muted); }
.onboarding-card small { color: #8cb3ff; }
.onboarding-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.wallet-offer-banner::after { content: ""; position: absolute; right: 12%; bottom: -70px; width: 180px; height: 110px; border-radius: 50%; background: rgba(79,134,238,.12); filter: blur(38px); pointer-events: none; }
.wallet-offer-copy,.wallet-offer-benefits,.wallet-offer-banner > .button { position: relative; z-index: 1; }
.wallet-offer-copy h3 { margin: 7px 0 0; color: #ececf0; font-size: 18px; font-weight: 620; }
.wallet-offer-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-offer-benefits > span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 56px; padding: 9px 13px; border-left: 1px solid rgba(121,167,255,.2); }
.wallet-offer-benefits strong { color: #b9d0fb; font-size: 22px; letter-spacing: -.035em; }
.wallet-offer-benefits small { color: #888b95; font-size: 10px; line-height: 1.5; }
.wallet-offer-banner > .button { white-space: nowrap; }
.referral-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:14px; padding:24px; border:1px solid rgba(121,167,255,.2); border-radius:10px; background:radial-gradient(circle at 10% 0,rgba(79,134,238,.16),transparent 20rem),#0d1016; }
.referral-hero h3 { margin:7px 0 12px; color:#ececf0; font-size:20px; }
.referral-hero code { display:block; max-width:680px; overflow:hidden; color:#b9d0fb; text-overflow:ellipsis; white-space:nowrap; }
.referral-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:14px; }
.referral-stats article { display:grid; gap:8px; padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.referral-stats span { color:var(--muted); font-size:11px; }
.referral-stats strong { font-size:24px; }
dialog.recharge-purchase-dialog { width: min(760px,calc(100% - 28px)); max-height: min(92vh,900px); overflow: auto; border: 1px solid rgba(121,167,255,.2); border-radius: 12px; }
dialog.recharge-purchase-dialog form { gap: 18px; padding: 32px; }
.recharge-tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.recharge-tier-grid > button { position: relative; display: grid; gap: 10px; min-height: 96px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 8px; color: #d7d7dc; background: #111115; text-align: left; transition: border-color .16s var(--ease),background-color .16s var(--ease),transform .16s var(--ease); }
.recharge-tier-grid > button:hover { border-color: rgba(121,167,255,.38); background: #14171d; transform: translateY(-1px); }
.recharge-tier-grid > button.selected { border-color: #6f9df4; background: rgba(79,134,238,.1); box-shadow: inset 0 0 0 1px rgba(111,157,244,.18); }
.recharge-tier-grid span { font-size: 12px; font-weight: 620; }
.recharge-tier-grid strong { color: #f1f1f3; font-size: 24px; font-weight: 620; letter-spacing: -.035em; }
.recharge-tier-grid em { display: inline-flex; margin-left: 7px; border-radius: 4px; padding: 3px 5px; color: #a9c6fb; background: rgba(111,157,244,.13); font-size: 8px; font-style: normal; vertical-align: 2px; }
.recharge-tier-grid i { display: none; position: absolute; top: 13px; right: 13px; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #0c1018; background: #79a7ff; font-size: 11px; font-style: normal; }
.recharge-tier-grid > button.selected i { display: grid; }
.payment-method-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.payment-method-grid > button { display:grid; gap:5px; min-height:64px; padding:12px 14px; border:1px solid var(--line-strong); border-radius:8px; color:#d7d7dc; background:#111115; text-align:left; cursor:pointer; transition:border-color .16s var(--ease),background-color .16s var(--ease); }
.payment-method-grid > button:hover { border-color:rgba(121,167,255,.38); }
.payment-method-grid > button.selected { border-color:#6f9df4; background:rgba(79,134,238,.1); box-shadow:inset 0 0 0 1px rgba(111,157,244,.16); }
.payment-method-grid strong { font-size:11px; font-weight:620; }.payment-method-grid small { color:#74747e; font-size:9px; }
.recharge-custom { gap: 8px!important; }
.recharge-custom > span { display: grid; grid-template-columns: 42px 1fr; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: #0a0a0d; }
.recharge-custom > span:focus-within { border-color: rgba(121,167,255,.5); }
.recharge-custom b { display: grid; place-items: center; height: 100%; border-right: 1px solid var(--line); color: #73737d; font-size: 16px; }
.recharge-custom input { border: 0; border-radius: 0; background: transparent; font-size: 14px; }
.recharge-purchase-dialog .recharge-offer { grid-template-columns: 120px 1fr; align-items: center; gap: 7px 16px; padding: 16px 18px; }
.recharge-purchase-dialog .recharge-offer strong { grid-row: 1 / 3; }
.recharge-purchase-dialog .checkout-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.recharge-purchase-dialog .checkout-summary > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recharge-purchase-dialog .checkout-summary > span + span { border-left: 1px solid rgba(121,167,255,.16); padding-left: 16px; }
.recharge-purchase-dialog .checkout-summary strong { color: #c6d9fb; }
.recharge-pay-button { min-height: 48px; font-size: 13px; }
.recharge-pay-button > i { display: none; width: 15px; height: 15px; margin-right: 8px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; vertical-align: -3px; animation: checkoutSpin .75s linear infinite; }
.recharge-pay-button.is-loading > i { display: inline-block; }
.recharge-terms { color: #5f6069; font-size: 9px; line-height: 1.55; text-align: center; }
.embedded-checkout-panel,.crypto-checkout-panel,.recharge-complete { position: relative; padding: 32px; }
.embedded-checkout-panel > h2,.recharge-complete > h2 { margin-top: 8px; }
.crypto-checkout-panel > h2 { margin:8px 0 22px; }
.crypto-checkout-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:22px; align-items:start; }
.crypto-qr { display:grid; place-items:center; padding:13px; border:1px solid var(--line-strong); border-radius:10px; background:#fff; }
.crypto-qr img { display:block; width:100%; aspect-ratio:1; }
.crypto-payment-details { display:grid; gap:13px; }
.crypto-payment-details label { display:grid; gap:7px; }
.crypto-payment-details label > span { display:flex; min-width:0; align-items:center; border:1px solid var(--line-strong); border-radius:8px; background:#0d0d10; }
.crypto-payment-details code { min-width:0; flex:1; overflow:hidden; padding:12px; color:#c7d9fb; font:600 11px/1.4 "SFMono-Regular",Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.crypto-payment-details button { align-self:stretch; padding:0 12px; border:0; border-left:1px solid var(--line); color:#9ebcf4; background:transparent; font-size:10px; cursor:pointer; }
.crypto-network { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border-radius:8px; color:#aabbd9; background:rgba(121,167,255,.06); font-size:10px; }
.crypto-network strong { color:#d5b778; font-size:10px; }
.crypto-warning { margin:18px 0; padding:12px 14px; border:1px solid rgba(214,180,111,.18); border-radius:8px; color:#b39d73; background:rgba(214,180,111,.055); font-size:10px; line-height:1.6; }
#embeddedCheckout { min-height: 420px; margin-top: 18px; border-radius: 8px; background: #fff; }
.checkout-loading { min-height: 300px; margin-top: 18px; border-radius: 8px; background: #fff; color: #263247; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.checkout-loading > i { width: 30px; height: 30px; border: 3px solid #dfe7f2; border-top-color: #4f7df3; border-radius: 50%; animation: checkoutSpin .8s linear infinite; }
.checkout-loading > small { color: #718096; }
.checkout-loading.hidden + #embeddedCheckout { margin-top: 18px; }
@keyframes checkoutSpin { to { transform: rotate(360deg); } }
.recharge-complete { min-height: 430px; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; }
.recharge-complete > i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #0d1610; background: #79d29b; font-size: 24px; font-style: normal; }
.recharge-complete > p { max-width: 430px; margin: 0 0 10px; }
@keyframes promoEnter { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Authentication */
.auth-gate {
  padding: 28px;
  background:
    radial-gradient(circle at 13% 18%, rgba(79,134,238,.1), transparent 28rem),
    #09090b;
}
.auth-card {
  width: min(1040px,100%);
  min-height: 600px;
  border-color: var(--line);
  border-radius: 10px;
  background: #0d0d10;
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
}
.auth-intro { position: relative; padding: 76px 64px; color: #fff; background: #0b0b0e; overflow: hidden; }
.auth-intro::after { content: ""; position: absolute; right: -180px; bottom: -220px; width: 430px; height: 430px; border-radius: 50%; background: rgba(79,134,238,.08); filter: blur(30px); animation: authOrb 20s ease-in-out infinite alternate; }
.auth-intro h1 { margin: 20px 0 25px; font-size: 52px; font-weight: 580; line-height: 1; letter-spacing: -.055em; }
.auth-intro h1 span { color: #a8c4f8; }
.auth-intro p { max-width: 430px; color: #85858f; font-size: 14px; }
.auth-points { gap: 14px; margin-top: 54px; color: #777781; font-size: 11px; }
.auth-points span::first-letter { color: #7ea8f4; }
.auth-forms { gap: 24px; padding: 50px; background: #101013; }
.auth-tabs { padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #0b0b0e; }
.auth-tabs button { border-radius: 5px; padding: 9px; color: #777781; background: transparent; font-size: 11px; font-weight: 570; }
.auth-tabs button.active { color: #ededf0; background: #1b1b20; box-shadow: inset 0 0 0 1px var(--line); }
.auth-forms form { gap: 17px; }
.auth-promo-note { display: grid; gap: 4px; padding: 12px 13px; border: 1px solid rgba(111,157,244,.24); border-radius: 7px; background: rgba(111,157,244,.07); }
.auth-promo-note strong { color: #d9e6ff; font-size: 11px; font-weight: 650; }
.auth-promo-note span { color: #9299a6; font-size: 10px; line-height: 1.55; }
.form-error { color: #d77b80; }

/* User console */
.account-shell { grid-template-columns: 224px 1fr; background: #09090b; }
.account-sidebar {
  padding: 22px 14px;
  border-color: var(--line);
  background: #0b0b0e;
}
.account-sidebar .brand { padding: 0 8px 27px; }
.account-sidebar nav { gap: 3px; margin-top: 9px; }
.account-sidebar nav button {
  gap: 11px;
  border-radius: 6px;
  padding: 9px 10px;
  color: #777781;
  font-size: 11px;
  font-weight: 540;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.account-sidebar nav button i { width: 18px; color: #60606a; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; opacity: .75; }
.account-sidebar nav button:hover { color: #c7c7cd; background: rgba(255,255,255,.03); }
.account-sidebar nav button.active { color: #e9e9ec; background: rgba(121,167,255,.075); box-shadow: inset 2px 0 #6596ef; }
.account-sidebar nav button.active i { color: #91b5fa; opacity: 1; }
.sidebar-bottom { gap: 9px; padding: 16px 10px 3px; border-color: var(--line); }
.sidebar-bottom a { color: #62626c; font-size: 10px; transition: color .16s var(--ease); }
.sidebar-bottom a:hover { color: #bdbdc4; }
.online-dot { background: var(--success); }
.account-main { padding: 0 clamp(25px,4.2vw,64px) 64px; background: #09090b; }
.account-topbar { min-height: 86px; border-color: var(--line); }
.account-topbar > .account-page-title span { color: #6e94da; font-size: 9px; font-weight: 620; }
.account-topbar h1 { margin-top: 4px; color: #eeeeef; font-size: 28px; font-weight: 590; letter-spacing: -.045em; }
.account-page-title { flex: 0 0 auto; }
.account-topbar-end { min-width: 0; display: flex; align-items: center; gap: 16px; margin-left: auto; }
.account-topbar-actions { display: flex; align-items: center; }
.topbar-view-action { display: none; align-items: center; gap: 8px; padding-right: 16px; border-right: 1px solid var(--line); }
.topbar-view-action.active { display: flex; }
.topbar-view-action .button { min-height: 36px; padding: 8px 13px; white-space: nowrap; }
.user-avatar { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 7px; color: #b9d0fb; background: #16171c; font-size: 11px; }
.user-menu strong { color: #d1d1d6; font-size: 11px; font-weight: 570; }
.user-menu small { color: #686872; font-size: 9px; }
.account-view { padding-top: 24px; animation: enterUp .38s var(--ease) both; }
.account-view.referral-center { padding-top: 36px; }
.account-metrics {
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.account-metrics article {
  min-width: 0;
  padding: 22px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.account-metrics article:first-child { padding-left: 0; }
.account-metrics article:last-child { border-right: 0; }
.account-metrics span { color: #71717b; font-size: 10px; font-weight: 560; letter-spacing: .08em; }
.account-metrics strong { margin: 12px 0 5px; color: #f2f2f4; font-size: clamp(26px,3vw,38px); font-weight: 560; letter-spacing: -.05em; }
.account-metrics small { color: #5f5f69; font-size: 9px; }
.wallet-metric { color: inherit !important; background: transparent !important; }
.wallet-metric > span, .wallet-metric > small { color: #71717b !important; }
.wallet-metric > strong { color: #b8cff9 !important; }
.overview-grid { grid-template-columns: 1.3fr .7fr; gap: 12px; margin-top: 20px; }
.quick-card, .usage-chart-card, .recent-card, .data-card, .trend-card, .service-card {
  border-color: var(--line);
  border-radius: 9px;
  background: #0d0d10;
  box-shadow: none;
}
.quick-card { gap: 28px; padding: 26px; }
.quick-card h2, .usage-chart-card h2, .recent-card h2, .trend-card h2, .service-card h2, .wallet-card h2 { color: #dedee2; font-size: 18px; font-weight: 570; }
.quick-card p, .service-card > p { color: #74747e; font-size: 11px; }
.quick-values label > div { border-color: var(--line); border-radius: 6px; background: #09090b; }
.quick-values code { color: #afb8c8; }
.quick-values button { border-color: var(--line); color: #84adf8; }
.quick-values button:hover { background: rgba(121,167,255,.05); }
.usage-chart-card { padding: 25px; }
.card-title > strong { color: #9ebdfa; font-family: "SFMono-Regular", Consolas, monospace; font-size: 23px; }
.donut { background: conic-gradient(#5f90eb 0 0%, #222228 0 100%); }
.donut::after { background: #0d0d10; }
.donut span { color: #ddddE1; }
.donut small, .donut-legend { color: #70707a; }
.donut-legend i { background: #303038; }
.donut-legend i.used { background: #6c9cf1; }
.donut-legend b { color: #c9c9ce; }
.overview-lower-grid { grid-template-columns: 1.4fr .6fr; gap: 12px; margin-top: 12px; }
.trend-card, .service-card, .recent-card { padding: 24px; }
.usage-trend { border-color: var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 41px, rgba(255,255,255,.035) 42px); }
.usage-trend i { border-radius: 3px 3px 0 0; background: #628fe1; box-shadow: none; transition: height .4s var(--ease); }
.usage-trend b { color: #62626c; }
.usage-trend small { color: #9696a0; }
.service-lines > div, .mini-table > div { border-color: var(--line); color: #777781; }
.service-lines strong, .mini-table b, .mini-table > div > strong { color: #c5c5cb; }
.request-icon { border: 1px solid var(--line); border-radius: 5px; color: #82aaf5; background: transparent; }
.recent-card { margin-top: 12px; }
.panel-heading { margin-bottom: 24px; }
.panel-heading h2 { color: #eeeeef; font-size: 28px; font-weight: 580; }
.panel-heading p { color: #777781; font-size: 12px; }

/* Wallet, keys and usage */
.wallet-hero {
  min-height: 210px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #ededf0;
  background: #0d0d10;
  box-shadow: none;
}
.wallet-hero > div:first-child > span { color: #70707a; }
.wallet-hero strong { color: #c2d5fa; }
.wallet-hero strong b { font-size: 46px; font-weight: 540; }
.wallet-hero p { color: #666670; }
.wallet-side { padding: 18px 20px; border-color: var(--line); border-radius: 7px; background: #111115; }
.wallet-side span, .wallet-side small { color: #696973; }
.wallet-side strong { color: #d5d5da; }
.recharge-packages { gap: 0; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.recharge-packages button {
  min-height: 112px;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: #dedee2;
  background: #0c0c0f;
  transition: background-color .18s var(--ease);
}
.recharge-packages button:last-child { border-right: 0; }
.recharge-packages button:hover { transform: none; border-color: var(--line); background: #131318; box-shadow: none; }
.recharge-packages button.featured { border-color: var(--line); background: rgba(121,167,255,.055); }
.recharge-packages span { color: #83aaf3; }
.recharge-packages strong { color: #eeeef0; font-family: "SFMono-Regular", Consolas, monospace; font-weight: 560; }
.recharge-packages small { color: #686872; }
.wallet-ledger-grid { gap: 12px; }
.wallet-list > div { border-color: var(--line); }
.wallet-list > div > span strong { color: #bfc0c6; }
.wallet-list > div > span small, .wallet-list > div > em { color: #6e6e78; }
.wallet-positive { color: #79d29b; }
.wallet-negative { color: #d9878c; }
.checkout-summary { border: 1px solid var(--line); border-radius: 7px; color: #adc7f8; background: rgba(121,167,255,.045); }
.key-table-head, .usage-table-head, .admin-order-head { color: #65656f; background: #0a0a0c; }
.account-key-row, .usage-account-row, .admin-order-row { border-color: var(--line); transition: background-color .16s var(--ease); }
.account-key-row:hover, .usage-account-row:hover, .admin-order-row:hover { background: rgba(255,255,255,.025); }
.account-key-row strong, .usage-account-row > span:nth-child(2) strong { color: #d1d1d6; }
.account-key-row code, .account-key-row small, .account-key-row span, .usage-account-row { color: #777781; }
.account-key-row .text-button { color: #9b7276; opacity: .55; }
.account-key-row:hover .text-button { color: #dc7f85; opacity: 1; }
.key-table-head, .account-key-row { grid-template-columns: minmax(150px,1.2fr) minmax(95px,.75fr) minmax(85px,.65fr) minmax(75px,.55fr) minmax(155px,auto); }
.key-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; white-space: nowrap; }
.key-row-actions .key-action { border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; background: transparent; color: #adc7f8; cursor: pointer; font-size: 11px; }
.key-row-actions .key-action:hover { border-color: #789be1; background: rgba(121,167,255,.08); }
.key-row-actions .key-action:disabled { cursor: wait; opacity: .5; }
.key-row-actions .key-legacy-note { font-size: 11px; }
@media (max-width: 700px) {
  .account-key-row { grid-template-columns: minmax(0,1fr) auto; }
  .account-key-row > div:nth-child(2), .account-key-row > div:nth-child(3), .account-key-row > div:nth-child(4) { display: none; }
  .key-row-actions { flex-wrap: wrap; }
}
.usage-summary-row { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usage-summary-row > div { padding: 18px 22px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.usage-summary-row > div:first-child { padding-left: 0; }
.usage-summary-row > div:last-child { border-right: 0; }
.usage-summary-row span { color: #666670; }
.usage-summary-row strong { color: #ddddE1; font-weight: 550; }

/* Playground and docs */
.request-panel, .response-panel { min-height: 410px; padding: 20px; border-color: var(--line); border-radius: 9px; background: #0d0d10; }
.response-panel { color: #c9cad0; background: #0a0a0c; }
.response-head { border-color: var(--line); color: #60606a; }
.response-panel pre { color: #b8c0cf; }
.switch-label span { background: #292930; }
.switch-label input:checked + span { background: #4d7fdc; }
.docs-layout { border-color: var(--line); border-radius: 9px; background: #0d0d10; }
.docs-layout > nav { border-color: var(--line); background: #0a0a0c; }
.docs-layout > nav button { border-radius: 5px; color: #6f6f79; }
.docs-layout > nav button:hover { color: #babac1; background: rgba(255,255,255,.025); }
.docs-layout > nav button.active { color: #e5e5e8; background: rgba(121,167,255,.075); }
.docs-layout > article h2 { color: #ececee; font-size: 28px; font-weight: 570; }
.docs-layout > article p { color: #777781; font-size: 12px; }
.code-block { border: 1px solid var(--line); border-radius: 8px; color: #c5cad4; background: #09090b; }
.code-block > div { border-color: var(--line); color: #65656f; background: #0c0c0f; }
.code-block pre { color: #b8c2d4; }
.topbar-view-action.public-docs-actions.active { display: none; }
.public-docs .public-docs-actions.active { display: flex; }
.public-docs .account-sidebar nav button:not([data-account-view="docs"]) { display: none; }
.public-docs .user-menu { display: none; }
.docs-layout > nav button strong,.docs-layout > nav button small { display: block; }
.docs-layout > nav button strong { color: inherit; font-size: 11px; font-weight: 560; }
.docs-layout > nav button small { margin-top: 4px; color: #555560; font-size: 9px; }
.docs-layout > nav button.active small { color: #7f9acb; }
.doc-article { display: none; min-width: 0; }
.doc-article.active { display: block; }
.doc-article code { color: #a9bbda; }
.doc-lead { max-width: 760px; margin-bottom: 24px; font-size: 13px!important; line-height: 1.8; }
.doc-prerequisite,.doc-success { display: grid; grid-template-columns:auto 1fr auto; gap: 14px; align-items: center; margin: 24px 0; border: 1px solid rgba(100,145,222,.2); border-radius: 8px; padding: 16px 18px; background: rgba(73,116,190,.065); }
.doc-prerequisite strong,.doc-success b { color: #d9e4f8; font-size: 11px; }
.doc-prerequisite span,.doc-success span { color: #79818f; font-size: 10px; line-height: 1.65; }
.doc-prerequisite a,.doc-success a { color: #82a9ec; font-size: 10px; white-space: nowrap; }
.doc-section { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 26px; }
.doc-section + .doc-section { margin-top: 34px; }
.doc-section-title { display: flex; gap: 14px; align-items: flex-start; }
.doc-section-title > span { flex: 0 0 auto; border: 1px solid rgba(105,149,225,.22); border-radius: 5px; padding: 5px 7px; color: #7fa6e8; background: rgba(73,116,190,.07); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.doc-section-title h3 { margin: 0; color: #dedee3; font-size: 16px; font-weight: 560; }
.doc-section-title p { margin: 6px 0 0; line-height: 1.65; }
.doc-section h4 { margin: 26px 0 0; color: #aeb0b8; font-size: 11px; font-weight: 560; }
.doc-section h4 + .code-block { margin-top: 10px; }
.doc-steps { display: grid; gap: 0; margin: 22px 0; padding: 0; list-style: none; }
.doc-steps li { display: grid; grid-template-columns:32px 1fr; gap: 13px; position: relative; padding: 0 0 22px; }
.doc-steps li:not(:last-child)::after { content:""; position:absolute; top:30px; bottom:3px; left:14px; width:1px; background:var(--line); }
.doc-steps b { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(105,149,225,.24); border-radius: 50%; color: #8cb0ed; background: #10151e; font-size: 9px; }
.doc-steps strong,.doc-steps span { display: block; }
.doc-steps strong { color: #cfd0d5; font-size: 11px; }
.doc-steps span { margin-top: 5px; color: #737681; font-size: 10px; line-height: 1.6; }
.doc-download { display: inline-flex; }
.doc-command-grid { display: grid; grid-template-columns:1fr 1fr; gap: 12px; margin-top: 14px; }
.doc-command-grid > div > strong { display: block; margin-bottom: 8px; color: #9699a3; font-size: 10px; }
.doc-command-grid .code-block { height: calc(100% - 24px); margin-top: 0; }
.doc-note { margin-top: 15px; border-left: 2px solid #527fc9; padding: 11px 14px; color: #777b86; background: rgba(73,116,190,.04); font-size: 10px; line-height: 1.65; }
.doc-api-facts { display: grid; grid-template-columns:repeat(3,1fr); gap: 10px; margin-top: 26px; }
.doc-api-facts > div { border: 1px solid var(--line); border-radius: 7px; padding: 15px; background: #0a0a0c; }
.doc-api-facts span,.doc-api-facts code { display: block; }
.doc-api-facts span { margin-bottom: 8px; color: #60616a; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.doc-api-facts code { overflow-wrap: anywhere; font-size: 10px; }
.doc-faq { margin-top: 24px; border-top: 1px solid var(--line); }
.doc-faq details { border-bottom: 1px solid var(--line); padding: 17px 2px; }
.doc-faq summary { cursor: pointer; color: #c9cad0; font-size: 11px; font-weight: 550; }
.doc-faq details p { max-width: 720px; margin: 12px 0 0; line-height: 1.7; }
.doc-check-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Admin console */
.page-shell { width: min(1240px, calc(100% - 48px)); }
.topbar { height: 74px; border-bottom: 1px solid var(--line); }
.topbar-actions { gap: 9px; }
.hero { gap: clamp(44px, 7vw, 94px); padding: 90px 0 80px; }
.hero h1 { color: #f1f1f3; font-size: clamp(48px,6.2vw,76px); font-weight: 580; }
.hero h1 span { color: #a8c4f8; }
.hero-copy > p { color: #868690; font-size: 15px; }
.endpoint-line { color: #65656f; }
.endpoint-line code { border-color: var(--line); border-radius: 6px; color: #aebfdf; background: #0d0d10; }
.flow-card { padding: 20px; border-color: var(--line); border-radius: 10px; color: #e5e5e8; background: #0d0d10; box-shadow: none; }
.flow-card::after { width: 140px; height: 140px; background: rgba(79,134,238,.05); }
.flow-head { border-color: var(--line); color: #62626c; }
.flow-head b { color: #90b3f6; }
.flow-node { border-color: var(--line); }
.flow-node i { border: 1px solid var(--line); border-radius: 6px; color: #7b7b85; background: #131317; }
.flow-node strong { color: #d3d3d8; }
.flow-node small, .flow-foot { color: #6d6d77; }
.flow-node.active i { color: #aec8fa; background: rgba(121,167,255,.08); }
.flow-node.active > span, .pulse { color: #7fa9f6; background: #6f9df4; box-shadow: none; }
.metrics { gap: 0; border-color: var(--line); border-width: 1px 0; border-radius: 0; background: transparent; box-shadow: none; }
.metrics article { padding: 23px 26px; border-color: var(--line); }
.metrics article:first-child { padding-left: 0; }
.metrics span { color: #65656f; font-size: 9px; }
.metrics strong { color: #efeff1; font-size: 32px; font-weight: 560; }
.metrics small { color: #595962; }
.console { margin: 28px 0 64px; border-color: var(--line); border-radius: 10px; background: #0d0d10; box-shadow: none; }
.tabs { gap: 2px; padding: 8px; border-color: var(--line); }
.tab { border-radius: 6px; color: #70707a; font-size: 11px; font-weight: 540; }
.tab:hover { color: #c6c6cc; background: rgba(255,255,255,.025); }
.tab.active { color: #e7e7ea; background: rgba(121,167,255,.075); }
.view { padding: clamp(24px,4vw,40px); animation: enterUp .35s var(--ease) both; }
.section-heading h2 { color: #eeeeef; font-size: 24px; font-weight: 580; }
.worker-grid { gap: 10px; }
.worker-card { border-color: var(--line); border-radius: 8px; background: #101013; transition: background-color .18s var(--ease), transform .18s var(--ease); }
.worker-card:hover { transform: translateY(-2px); background: #131317; }
.worker-card h3 { color: #d7d7dc; font-size: 13px; }
.worker-card .badge.ready { color: #8bd5a6; background: rgba(97,200,135,.06); }
.worker-stats span, .worker-meta, .worker-actions small { color: #666670; }
.worker-stats strong { color: #d3d3d8; }
.member-form { border-color: rgba(121,167,255,.14); border-radius: 8px; background: rgba(121,167,255,.035); }
.member-row { border-color: var(--line); border-radius: 8px; background: #101013; }
.member-main { transition: background-color .16s var(--ease); }
.member-main:hover { background: rgba(255,255,255,.02); }
.member-name strong, .quota strong { color: #d0d0d5; }
.member-name span, .quota small, .member-key-summary { color: #6f6f79; }
.quota-bar { background: #25252b; }
.quota-bar i { background: #638fe2; }
.key-row { border-color: var(--line); color: #b5b5bc; background: #0c0c0f; }
.steps { gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.steps article { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #0d0d10; }
.steps article:last-child { border-right: 0; }
.steps i { border: 1px solid var(--line); border-radius: 5px; color: #99baf8; background: transparent; }
.steps strong { color: #d2d2d7; }
.steps p { color: #70707a; }
.steps code { color: #9bb8ee; }
.admin-order-card { border-color: var(--line); }

/* Dialogs and feedback */
dialog {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #eeeeef;
  background: #111114;
  box-shadow: 0 28px 90px rgba(0,0,0,.58);
}
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
dialog form, .secret-dialog-body { gap: 16px; padding: 28px; }
dialog h2 { color: #f0f0f2; font-size: 25px; font-weight: 580; }
dialog p { color: #7a7a84; }
.dialog-close { border: 1px solid var(--line); border-radius: 6px; color: #85858f; background: #17171b; transition: color .16s var(--ease), background-color .16s var(--ease); }
.dialog-close:hover { color: #fff; background: #202026; }
.secret-dialog-body > code { border: 1px solid var(--line); border-radius: 7px; color: #b8cff9; background: #09090b; }
.toast {
  top: 22px;
  right: 22px;
  bottom: auto;
  left: auto;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: #e8e8eb;
  background: #18181c;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  transform: translateY(-10px);
}
.toast.show { transform: translateY(0); }

/* Motion */
@keyframes enterUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes softPulse { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes relayAtmosphere { from { transform: translate3d(-1%,0,0); } to { transform: translate3d(1%,1%,0); } }
@keyframes authOrb { from { transform: translate3d(-4%,0,0); } to { transform: translate3d(4%,-4%,0); } }

@media (max-width: 980px) {
  .relay-hero { grid-template-columns: 1fr; gap: 38px; padding: 80px 0; }
  .relay-endpoint-card { max-width: 640px; }
  .credits-section { grid-template-columns: 1fr; gap: 38px; }
  .multimodal-heading { align-items:flex-start; flex-direction:column; }.multimodal-heading p { text-align:left; }.multimodal-grid { grid-template-columns:1fr; }
  .account-shell { grid-template-columns: 74px 1fr; }
  .account-sidebar { padding-inline: 10px; }
  .account-sidebar nav button { justify-content: center; }
  .account-sidebar nav button i { font-size: 12px; }
  .account-metrics { grid-template-columns: 1fr 1fr; }
  .account-metrics article:nth-child(2) { border-right: 0; }
  .account-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .account-metrics article:nth-child(3) { padding-left: 0; }
  .overview-grid, .overview-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .relay-nav, .relay-main, .relay-footer { width: calc(100% - 28px); }
  .relay-nav { min-height: 66px; }
  .relay-hero { padding: 62px 0 68px; }
  .relay-hero-copy h1 { font-size: 46px; }
  .relay-hero-copy > p { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { text-align: center; }
  .desktop-downloads { grid-template-columns: 1fr; margin-top: 38px; }
  .desktop-download-card { width: 100%; }
  .pricing-section { padding: 68px 0; }
  .multimodal-section { padding:60px 0 68px; }.multimodal-heading h2 { font-size:34px; }.multimodal-card { min-height:350px; padding:23px; }.multimodal-card > a { right:23px; bottom:22px; }
  .pricing-heading h2 { font-size: 34px; }
  .pricing-list article { padding: 18px 4px; }
  .credits-section { padding: 28px 22px; border-radius: 8px; }
  .credits-section h2 { font-size: 29px; }
  .credit-feature-grid { border-top: 1px solid var(--line); border-left: 0; }
  .credit-feature-grid article { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .credit-feature-grid article:last-child { border-bottom: 0; }
  .account-shell { display: block; }
  .account-sidebar { width: 224px; border-color: var(--line); background: #0c0c0f; box-shadow: 18px 0 50px rgba(0,0,0,.4); }
  .account-main { padding: 0 15px 42px; }
  .account-topbar { min-height: 76px; }
  .account-topbar h1 { font-size: 23px; }
  .account-topbar-end { gap: 8px; }
  .topbar-view-action { padding-right: 0; border-right: 0; }
  .topbar-view-action .button { min-height: 34px; padding: 7px 9px; font-size: 9px; }
  .account-view, .account-view.referral-center { padding-top: 20px; }
  .mobile-menu { border: 1px solid var(--line); border-radius: 6px; color: #d6d6db; background: #121216; }
  .account-metrics, .usage-summary-row { grid-template-columns: 1fr; border-bottom: 0; }
  .account-metrics article, .usage-summary-row > div { padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .account-metrics article:nth-child(3) { padding-left: 0; }
  .quick-card { padding: 20px; }
  .panel-heading h2 { font-size: 24px; }
  .wallet-hero { padding: 26px 22px; }
  .wallet-hero strong b { font-size: 37px; }
  .recharge-packages { grid-template-columns: 1fr 1fr; }
  .recharge-packages button:nth-child(2) { border-right: 0; }
  .recharge-packages button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .docs-layout > article { padding: 24px 17px; }
  .docs-layout > nav button { flex: 0 0 132px; }
  .doc-prerequisite,.doc-success { grid-template-columns: 1fr; gap: 8px; }
  .doc-command-grid,.doc-api-facts { grid-template-columns: 1fr; }
  .doc-check-links { display: grid; }
  .steps { grid-template-columns: 1fr; }
  .steps article { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps article:last-child { border-bottom: 0; }
  .page-shell { width: min(100% - 24px,1240px); }
  .topbar { height: 68px; }
  .hero { padding: 54px 0 48px; }
  .hero h1 { font-size: 44px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article { padding: 18px; }
  .metrics article:first-child { padding-left: 18px; }
  .console { border-radius: 8px; }
  .view { padding: 22px 14px; }
  .toast { top: 14px; right: 14px; left: 14px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 980px) {
  .relay-hero { grid-template-columns:1fr; gap:45px; }.relay-endpoint-card { max-width:650px; transform:none; }.pricing-table-head,.pricing-list article { grid-template-columns:minmax(230px,1fr) 120px 120px 60px; }.pricing-table-head span:nth-child(4),.pricing-list article > em { display:none; }.credits-section { grid-template-columns:1fr; gap:35px; }.credits-section > .button { grid-column:1; }.wallet-ledger-grid { grid-template-columns:1fr; }
}
@media (max-width: 650px) {
  .relay-nav,.relay-main,.relay-footer { width:calc(100% - 28px); }.relay-nav nav a:not(.button) { display:none; }.relay-hero { min-height:0; padding:62px 0; }.relay-hero-copy h1 { font-size:50px; }.relay-hero-copy > p { font-size:13px; }.pricing-section { padding:65px 0; }.pricing-heading { align-items:flex-start; flex-direction:column; gap:18px; }.pricing-heading h2 { font-size:36px; }.pricing-table-head { display:none; }.pricing-list article { grid-template-columns:1fr auto; gap:8px 15px; padding:18px 4px; }.pricing-list article > strong { grid-column:2; }.pricing-list article > strong:nth-of-type(2) { display:none; }.pricing-list article > a { grid-column:2; grid-row:1; }.credits-section { margin-bottom:70px; padding:32px 23px; }.credits-section h2 { font-size:30px; }.credit-feature-grid { grid-template-columns:1fr; }.credit-feature-grid article { min-height:120px; }.credit-feature-grid strong { margin-top:16px; }.relay-footer { align-items:flex-start; flex-direction:column; gap:16px; padding:25px 0; }.relay-footer nav { flex-wrap:wrap; }.wallet-hero { grid-template-columns:1fr; padding:28px 23px; }.wallet-side { min-width:0; }.wallet-hero strong b { font-size:39px; }.recharge-packages { grid-template-columns:1fr 1fr; }.admin-order-head,.execution-head { display:none; }.admin-order-row,.execution-row { grid-template-columns:1fr auto; }.admin-order-row > strong:nth-of-type(2),.admin-order-row > .table-status,.execution-row > b,.execution-row > span:nth-of-type(2),.execution-row > code { display:none; }
}

@media (max-width:980px) {
  .relay-hero { min-height:0; gap:42px; padding:72px 0 82px; }
  .relay-hero-copy h1 { max-width:900px; }
  .relay-hero-side { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .hero-price-advantage, .relay-endpoint-card { min-height:140px; }
  .desktop-downloads { grid-column:1 / -1; margin-top:12px; }
}
@media (max-width:650px) {
  .relay-hero { gap:36px; padding:54px 0 66px; }
  .relay-hero-copy h1 { font-size:clamp(34px,9vw,42px); }
  .relay-hero-side { grid-template-columns:minmax(0,1fr); gap:16px; }
  .hero-price-advantage { min-height:130px; }
  .relay-endpoint-card { min-height:0; }
  .desktop-downloads { grid-column:auto; grid-template-columns:1fr; margin-top:12px; }
  .desktop-download-card { min-height:74px; }
  .relay-nav nav { gap:8px; flex:0 0 auto; }
  .relay-nav .brand-row { min-width:0; gap:8px; }
  .relay-nav nav .button.compact { padding:7px 9px; white-space:nowrap; }
}

/* Theme controls */
.theme-toggle {
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #a3a3ad;
  background: transparent;
  font-size: 10px;
  font-weight: 590;
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.theme-toggle:hover { color: #f1f1f3; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.035); transform: translateY(-1px); }
.theme-toggle:active { transform: scale(.98); }
.auth-theme-toggle { position: fixed; z-index: 3; top: 26px; right: 28px; }

/* Light theme */
[data-theme="light"] {
  color-scheme: light;
  --ink: #17181b;
  --muted: #6c7079;
  --paper: #f6f7f9;
  --card: #ffffff;
  --card-raised: #ffffff;
  --line: rgba(18,24,38,.09);
  --line-strong: rgba(18,24,38,.15);
  --green: #326fd7;
  --green-deep: #255fc0;
  --lime: #326fd7;
  --shadow: 0 18px 55px rgba(24,35,55,.08);
}
[data-theme="light"] body,
[data-theme="light"] .account-body,
[data-theme="light"] .relay-home,
[data-theme="light"] .account-shell,
[data-theme="light"] .account-main { color: #17181b; background: #f6f7f9; }
[data-theme="light"] .relay-home::before {
  background:
    radial-gradient(circle at 72% 12%, rgba(50,111,215,.08), transparent 31rem),
    linear-gradient(rgba(18,24,38,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,24,38,.025) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}
[data-theme="light"] .brand-mark { color: #255fc0; border-color: rgba(18,24,38,.13); background: #fff; box-shadow: inset 0 1px rgba(255,255,255,.8); }
[data-theme="light"] .brand strong,
[data-theme="light"] .relay-hero-copy h1,
[data-theme="light"] .pricing-heading h2,
[data-theme="light"] .panel-heading h2,
[data-theme="light"] .account-topbar h1,
[data-theme="light"] .section-heading h2 { color: #17181b; }
[data-theme="light"] .brand small,
[data-theme="light"] .relay-nav nav a,
[data-theme="light"] .relay-footer a,
[data-theme="light"] .relay-footer { color: #717680; }
[data-theme="light"] .relay-nav nav a:hover,
[data-theme="light"] .relay-footer a:hover { color: #17181b; }
[data-theme="light"] .relay-hero-copy h1 span { color: #326fd7; }
[data-theme="light"] .hero-price-advantage { border-color: rgba(50,111,215,.16); background: rgba(50,111,215,.045); }
[data-theme="light"] .hero-price-advantage span { color: #326fd7; }
[data-theme="light"] .hero-price-advantage strong { color: #242a33; }
[data-theme="light"] .hero-price-advantage strong b { color: #326fd7; }
[data-theme="light"] .hero-price-advantage small { color: #717782; }
[data-theme="light"] .relay-hero-copy > p,
[data-theme="light"] .pricing-heading p,
[data-theme="light"] .panel-heading p { color: #686d76; }
[data-theme="light"] .theme-toggle { color: #525965; border-color: rgba(18,24,38,.14); background: rgba(255,255,255,.62); }
[data-theme="light"] .theme-toggle:hover { color: #17181b; border-color: rgba(18,24,38,.23); background: #fff; }
[data-theme="light"] .language-switch { border-color:rgba(18,24,38,.13); background:rgba(255,255,255,.62); }
[data-theme="light"] .language-switch button { color:#686d76; }
[data-theme="light"] .language-switch button:hover { color:#17181b; }
[data-theme="light"] .language-switch button.active { color:#17181b; background:#fff; box-shadow:0 1px 4px rgba(20,28,44,.08); }
[data-theme="light"] .button.secondary,
[data-theme="light"] .button.ghost { color: #343943; border-color: rgba(18,24,38,.15); background: rgba(255,255,255,.65); }
[data-theme="light"] .button.secondary:hover,
[data-theme="light"] .button.ghost:hover { border-color: rgba(18,24,38,.24); background: #fff; }
[data-theme="light"] .desktop-download-card { color: #17181b; border-color: rgba(18,24,38,.22); background: rgba(255,255,255,.72); box-shadow: 0 14px 34px rgba(24,35,55,.045); }
[data-theme="light"] .desktop-download-card:hover { color: #17181b; border-color: rgba(18,24,38,.34); background: #fff; }
[data-theme="light"] .relay-endpoint-card,
[data-theme="light"] .endpoint-preview { color: #25324a; border-color: rgba(18,24,38,.13); background: #fff; }
[data-theme="light"] .endpoint-preview small { color: #7a808a; }
[data-theme="light"] .endpoint-preview code { color: #255fc0; }
[data-theme="light"] .pricing-meta { color: #255fc0; border-color: rgba(18,24,38,.11); background: rgba(255,255,255,.66); }
[data-theme="light"] .multimodal-heading h2,[data-theme="light"] .multimodal-card h3 { color:#17181b; }
[data-theme="light"] .multimodal-heading p,[data-theme="light"] .multimodal-card > p { color:#686d76; }
[data-theme="light"] .multimodal-card,[data-theme="light"] .multimodal-card.image-family,[data-theme="light"] .multimodal-card.video-family { border-color:rgba(18,24,38,.12); background:#fff; }
[data-theme="light"] .multimodal-models code { color:#47546a; border-color:rgba(18,24,38,.1); background:#f5f7fa; }
[data-theme="light"] .multimodal-card > a { color:#255fc0; }
[data-theme="light"] .pricing-list { border-color: rgba(18,24,38,.18); }
[data-theme="light"] .pricing-list article:hover { background: rgba(18,24,38,.025); }
[data-theme="light"] .catalog-logo { color: #255fc0; border-color: rgba(18,24,38,.11); background: #eef3fc; }
[data-theme="light"] .model-identity strong { color: #252930; }
[data-theme="light"] .model-identity small,
[data-theme="light"] .pricing-table-head { color: #777c85; }
[data-theme="light"] .pricing-list article > strong { color: #3f444d; }
[data-theme="light"] .pricing-list article > a { color: #3a404a; border-color: rgba(18,24,38,.14); background: #fff; }
[data-theme="light"] .pricing-list article > a:hover { color: #255fc0; border-color: rgba(50,111,215,.35); background: #f4f7fd; }
[data-theme="light"] .credits-section { color: #17181b; border-color: rgba(18,24,38,.1); background: #fff; }
[data-theme="light"] .credits-section h2,
[data-theme="light"] .credit-feature-grid strong { color: #262a31; }
[data-theme="light"] .credit-feature-grid,
[data-theme="light"] .credit-feature-grid article { border-color: rgba(18,24,38,.09); }
[data-theme="light"] .credit-feature-grid p { color: #6d727c; }
[data-theme="light"] dialog.promo-dialog { color: #20242a; border-color: rgba(50,111,215,.2); background: #fff; box-shadow: 0 35px 100px rgba(24,35,55,.2); }
[data-theme="light"] dialog.promo-dialog::backdrop { background: rgba(29,36,48,.5); }
[data-theme="light"] .promo-dialog-body::before { background: rgba(50,111,215,.14); }
[data-theme="light"] .promo-dialog-close { color: #717680; border-color: rgba(18,24,38,.1); background: #f2f4f7; }
[data-theme="light"] .promo-dialog-close:hover { color: #20242a; background: #e9edf4; }
[data-theme="light"] .promo-kicker { color: #326fd7; }
[data-theme="light"] .promo-model, [data-theme="light"] .promo-benefits strong { color: #20242a; }
[data-theme="light"] .promo-benefits article, [data-theme="light"] .recharge-offer { border-color: rgba(50,111,215,.16); background: rgba(50,111,215,.05); }
[data-theme="light"] .promo-benefits span, [data-theme="light"] .recharge-offer span { color: #626975; }
[data-theme="light"] .recharge-offer strong { color: #255fc0; }
[data-theme="light"] .wallet-offer-banner { border-color: rgba(50,111,215,.16); background: radial-gradient(circle at 10% 0,rgba(50,111,215,.1),transparent 18rem),#f8faff; }
[data-theme="light"] .onboarding-card { background: #fff; }
[data-theme="light"] .wallet-offer-copy h3 { color: #20242a; }
[data-theme="light"] .wallet-offer-benefits > span { border-color: rgba(50,111,215,.16); }
[data-theme="light"] .wallet-offer-benefits strong { color: #255fc0; }
[data-theme="light"] .wallet-offer-benefits small { color: #626975; }
[data-theme="light"] .referral-hero { border-color:rgba(50,111,215,.16); background:radial-gradient(circle at 10% 0,rgba(50,111,215,.1),transparent 20rem),#f8faff; }
[data-theme="light"] .referral-hero h3 { color:#20242a; }
[data-theme="light"] .referral-hero code { color:#255fc0; }
[data-theme="light"] .recharge-tier-grid > button { color: #30343a; border-color: rgba(18,24,38,.13); background: #f7f8fa; }
[data-theme="light"] .recharge-tier-grid > button:hover,[data-theme="light"] .recharge-tier-grid > button.selected { border-color: #4f86e8; background: #eef4ff; }
[data-theme="light"] .recharge-tier-grid strong { color: #20242a; }
[data-theme="light"] .payment-method-grid > button { color:#30343a; border-color:rgba(18,24,38,.13); background:#f7f8fa; }
[data-theme="light"] .payment-method-grid > button.selected { border-color:#4f86e8; background:#eef4ff; }
[data-theme="light"] .payment-method-grid small { color:#777d87; }
[data-theme="light"] .crypto-payment-details label > span { border-color:rgba(18,24,38,.13); background:#fff; }
[data-theme="light"] .crypto-payment-details code { color:#255fc0; }
[data-theme="light"] .crypto-network { color:#52647f; background:#eef4ff; }
[data-theme="light"] .recharge-custom > span { border-color: rgba(18,24,38,.13); background: #fff; }
[data-theme="light"] .recharge-custom b { border-color: rgba(18,24,38,.1); color: #717680; }
[data-theme="light"] .recharge-terms { color: #777d87; }

[data-theme="light"] .auth-gate { background: radial-gradient(circle at 13% 18%,rgba(50,111,215,.1),transparent 28rem),#f3f5f8; }
[data-theme="light"] .auth-card { border-color: rgba(18,24,38,.1); background: #fff; box-shadow: 0 28px 80px rgba(32,45,67,.1); }
[data-theme="light"] .auth-intro { color: #17181b; background: #edf2fa; }
[data-theme="light"] .auth-intro::after { background: rgba(50,111,215,.1); }
[data-theme="light"] .auth-intro h1 { color: #17181b; }
[data-theme="light"] .auth-intro h1 span { color: #326fd7; }
[data-theme="light"] .auth-intro p,
[data-theme="light"] .auth-points { color: #69717e; }
[data-theme="light"] .auth-forms { background: #fff; }
[data-theme="light"] .auth-tabs { border-color: rgba(18,24,38,.1); background: #f2f4f7; }
[data-theme="light"] .auth-tabs button { color: #707580; }
[data-theme="light"] .auth-tabs button.active { color: #20242a; background: #fff; box-shadow: 0 1px 3px rgba(24,35,55,.08), inset 0 0 0 1px rgba(18,24,38,.06); }
[data-theme="light"] .auth-promo-note { border-color: rgba(50,111,215,.18); background: #f3f7ff; }
[data-theme="light"] .auth-promo-note strong { color: #255fc0; }
[data-theme="light"] .auth-promo-note span { color: #626b78; }

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select { color: #23272e; border-color: rgba(18,24,38,.14); background: #fff; box-shadow: inset 0 1px rgba(18,24,38,.015); }
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: #a2a6ae; }
[data-theme="light"] input:hover,
[data-theme="light"] textarea:hover,
[data-theme="light"] select:hover { border-color: rgba(18,24,38,.23); }
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus { color: #17181b; border-color: #5684d5; background: #fff; }
[data-theme="light"] label { color: #656b75; }

[data-theme="light"] .account-sidebar { border-color: rgba(18,24,38,.09); background: #fbfbfc; }
[data-theme="light"] .account-sidebar nav button { color: #707680; }
[data-theme="light"] .account-sidebar nav button i { color: #858b94; }
[data-theme="light"] .account-sidebar nav button:hover { color: #30353d; background: rgba(18,24,38,.035); }
[data-theme="light"] .account-sidebar nav button.active { color: #255fc0; background: rgba(50,111,215,.075); box-shadow: inset 2px 0 #326fd7; }
[data-theme="light"] .account-sidebar nav button.active i { color: #326fd7; }
[data-theme="light"] .sidebar-bottom { border-color: rgba(18,24,38,.08); }
[data-theme="light"] .sidebar-bottom a { color: #7a808a; }
[data-theme="light"] .sidebar-bottom a:hover { color: #262b33; }
[data-theme="light"] .account-topbar { border-color: rgba(18,24,38,.08); }
[data-theme="light"] .user-avatar { color: #255fc0; border-color: rgba(18,24,38,.1); background: #edf2fa; }
[data-theme="light"] .user-menu strong { color: #343943; }
[data-theme="light"] .user-menu small { color: #818690; }
[data-theme="light"] .account-metrics,
[data-theme="light"] .usage-summary-row { border-color: rgba(18,24,38,.09); }
[data-theme="light"] .account-metrics article,
[data-theme="light"] .usage-summary-row > div { border-color: rgba(18,24,38,.08); }
[data-theme="light"] .account-metrics span,
[data-theme="light"] .account-metrics small,
[data-theme="light"] .usage-summary-row span { color: #747a84; }
[data-theme="light"] .account-metrics strong,
[data-theme="light"] .usage-summary-row strong { color: #20242a; }
[data-theme="light"] .wallet-metric > span,
[data-theme="light"] .wallet-metric > small { color: #747a84 !important; }
[data-theme="light"] .wallet-metric > strong { color: #255fc0 !important; }
[data-theme="light"] .quick-card,
[data-theme="light"] .usage-chart-card,
[data-theme="light"] .recent-card,
[data-theme="light"] .data-card,
[data-theme="light"] .trend-card,
[data-theme="light"] .service-card,
[data-theme="light"] .wallet-hero,
[data-theme="light"] .request-panel,
[data-theme="light"] .docs-layout,
[data-theme="light"] .wallet-side { color: #24282f; border-color: rgba(18,24,38,.09); background: #fff; }
[data-theme="light"] .quick-card h2,
[data-theme="light"] .usage-chart-card h2,
[data-theme="light"] .recent-card h2,
[data-theme="light"] .trend-card h2,
[data-theme="light"] .service-card h2,
[data-theme="light"] .wallet-card h2 { color: #262a31; }
[data-theme="light"] .quick-card p,
[data-theme="light"] .service-card > p { color: #707680; }
[data-theme="light"] .quick-values label > div { border-color: rgba(18,24,38,.1); background: #f7f8fa; }
[data-theme="light"] .quick-values code { color: #47505d; }
[data-theme="light"] .quick-values button { border-color: rgba(18,24,38,.08); color: #326fd7; }
[data-theme="light"] .donut { background: conic-gradient(#4f7fd5 0 0%,#e5e8ed 0 100%); }
[data-theme="light"] .donut::after { background: #fff; }
[data-theme="light"] .donut span,
[data-theme="light"] .donut-legend b { color: #30343b; }
[data-theme="light"] .donut small,
[data-theme="light"] .donut-legend { color: #7a808a; }
[data-theme="light"] .usage-trend { border-color: rgba(18,24,38,.09); background: repeating-linear-gradient(to bottom,transparent 0,transparent 41px,rgba(18,24,38,.045) 42px); }
[data-theme="light"] .usage-trend b,
[data-theme="light"] .usage-trend small { color: #737983; }
[data-theme="light"] .service-lines > div,
[data-theme="light"] .mini-table > div,
[data-theme="light"] .wallet-list > div { border-color: rgba(18,24,38,.08); color: #737983; }
[data-theme="light"] .service-lines strong,
[data-theme="light"] .mini-table b,
[data-theme="light"] .mini-table > div > strong { color: #343943; }
[data-theme="light"] .wallet-hero strong { color: #255fc0; }
[data-theme="light"] .wallet-hero > div:first-child > span,
[data-theme="light"] .wallet-hero p,
[data-theme="light"] .wallet-side span,
[data-theme="light"] .wallet-side small { color: #747a84; }
[data-theme="light"] .wallet-side { background: #f7f8fa; }
[data-theme="light"] .wallet-side strong { color: #30353d; }
[data-theme="light"] .recharge-packages { border-color: rgba(18,24,38,.09); }
[data-theme="light"] .recharge-packages button { color: #2d323a; border-color: rgba(18,24,38,.08); background: #fff; }
[data-theme="light"] .recharge-packages button:hover { background: #f7f8fa; }
[data-theme="light"] .recharge-packages button.featured { background: rgba(50,111,215,.055); }
[data-theme="light"] .recharge-packages strong { color: #252930; }
[data-theme="light"] .recharge-packages small { color: #777d87; }
[data-theme="light"] .wallet-list > div > span strong { color: #3d434c; }
[data-theme="light"] .wallet-list > div > span small,
[data-theme="light"] .wallet-list > div > em { color: #7b818a; }
[data-theme="light"] .notice-card { border-color: rgba(50,111,215,.12); background: rgba(50,111,215,.035); }
[data-theme="light"] .notice-card p { color: #686f7a; }
.auth-link { border: 0; padding: 2px 0; color: #7ea8f4; background: transparent; font-size: 11px; text-align: left; }
.google-auth-option { display: grid; gap: 11px; }
.google-auth-option.loading { opacity: .62; pointer-events: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #696973; font-size: 9px; font-weight: 650; letter-spacing: .08em; text-align: center; }
.auth-divider::before,.auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google-login-slot { min-height: 44px; display: flex; justify-content: center; overflow: hidden; border-radius: 5px; }
.google-auth-option > small { color: #696973; font-size: 9px; line-height: 1.55; text-align: center; }
.google-auth-option > small a { color: #8db2f5; }
.auth-form-heading h2 { margin: 0 0 8px; color: #f0f0f2; font-size: 25px; font-weight: 580; }
.auth-form-heading p { margin: 0; color: #777781; font-size: 11px; line-height: 1.6; }
.terms-check { display: flex !important; align-items: flex-start; gap: 9px !important; color: #777781; font-size: 10px; line-height: 1.55; }
.terms-check input { flex: 0 0 auto; width: 15px; height: 15px; margin: 2px 0 0; accent-color: #6f9df4; }
.terms-check a { color: #8db2f5; }
.verification-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid rgba(111,157,244,.25); border-radius: 8px; background: rgba(111,157,244,.07); }
.verification-banner strong,.verification-banner span { display: block; }
.verification-banner strong { color: #e9e9ec; font-size: 12px; }
.verification-banner span { margin-top: 4px; color: #85858f; font-size: 10px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 18px; padding: 22px; border: 1px solid rgba(202,70,61,.2); border-radius: 8px; background: rgba(202,70,61,.035); }
.danger-zone h2 { margin: 6px 0; color: #ededf0; font-size: 18px; font-weight: 560; }
.danger-zone p { max-width: 700px; margin: 0; color: #777781; font-size: 10px; line-height: 1.6; }
.delete-account-warning { display: grid; gap: 7px; padding: 13px 14px; border: 1px solid rgba(235,91,80,.32); border-radius: 7px; background: rgba(202,70,61,.08); }
.delete-account-warning p { margin: 0; color: #d7a09b; font-size: 11px; line-height: 1.55; }
.button.danger { color: #fff; border: 1px solid rgba(235,91,80,.5); background: #9d3029; }
.button.danger:hover { background: #b93b32; }
[data-theme="light"] .auth-form-heading h2,[data-theme="light"] .verification-banner strong,[data-theme="light"] .danger-zone h2 { color: #20242a; }
[data-theme="light"] .auth-form-heading p,[data-theme="light"] .terms-check,[data-theme="light"] .verification-banner span,[data-theme="light"] .danger-zone p { color: #707580; }
[data-theme="light"] .verification-banner { border-color: rgba(37,95,192,.18); background: rgba(37,95,192,.045); }
[data-theme="light"] .danger-zone { border-color: rgba(173,55,47,.18); background: rgba(173,55,47,.035); }
[data-theme="light"] .delete-account-warning { border-color: rgba(173,55,47,.24); background: rgba(173,55,47,.055); }
[data-theme="light"] .delete-account-warning p { color: #8f403a; }
[data-theme="light"] .key-table-head,
[data-theme="light"] .usage-table-head,
[data-theme="light"] .admin-order-head { color: #747a84; background: #f5f6f8; }
[data-theme="light"] .account-key-row,
[data-theme="light"] .usage-account-row,
[data-theme="light"] .admin-order-row { color: #676e78; border-color: rgba(18,24,38,.08); }
[data-theme="light"] .account-key-row:hover,
[data-theme="light"] .usage-account-row:hover,
[data-theme="light"] .admin-order-row:hover { background: rgba(18,24,38,.025); }
[data-theme="light"] .key-row-actions .key-action { color:#2758a6; border-color:rgba(39,88,166,.24); }
[data-theme="light"] .key-row-actions .key-action:hover { border-color:#2758a6; background:rgba(39,88,166,.07); }
[data-theme="light"] .account-key-row strong,
[data-theme="light"] .usage-account-row > span:nth-child(2) strong { color: #353a43; }
[data-theme="light"] .docs-layout > nav { border-color: rgba(18,24,38,.08); background: #f5f6f8; }
[data-theme="light"] .docs-layout > nav button { color: #707680; }
[data-theme="light"] .docs-layout > nav button.active { color: #255fc0; background: rgba(50,111,215,.075); }
[data-theme="light"] .docs-layout > article h2 { color: #20242a; }
[data-theme="light"] .docs-layout > article p { color: #6f7580; }
[data-theme="light"] .docs-layout > nav button small { color: #979ca5; }
[data-theme="light"] .docs-layout > nav button.active small { color: #6484bb; }
[data-theme="light"] .doc-article code { color: #3568b7; }
[data-theme="light"] .doc-prerequisite,[data-theme="light"] .doc-success { border-color: rgba(50,111,215,.14); background: rgba(50,111,215,.045); }
[data-theme="light"] .doc-prerequisite strong,[data-theme="light"] .doc-success b,[data-theme="light"] .doc-section-title h3,[data-theme="light"] .doc-steps strong,[data-theme="light"] .doc-faq summary { color: #303640; }
[data-theme="light"] .doc-prerequisite span,[data-theme="light"] .doc-success span,[data-theme="light"] .doc-steps span { color: #747b86; }
[data-theme="light"] .doc-steps b { color: #356bc0; background: #f6f8fc; }
[data-theme="light"] .doc-api-facts > div { background: #f7f8fa; }

[data-theme="light"] .topbar,
[data-theme="light"] .metrics,
[data-theme="light"] .tabs { border-color: rgba(18,24,38,.09); }
[data-theme="light"] .hero h1 { color: #17181b; }
[data-theme="light"] .hero h1 span { color: #326fd7; }
[data-theme="light"] .hero-copy > p { color: #686e78; }
[data-theme="light"] .endpoint-line { color: #767c85; }
[data-theme="light"] .endpoint-line code { color: #315b9c; border-color: rgba(18,24,38,.1); background: #fff; }
[data-theme="light"] .flow-card,
[data-theme="light"] .console,
[data-theme="light"] .worker-card,
[data-theme="light"] .member-row { color: #24282f; border-color: rgba(18,24,38,.1); background: #fff; }
[data-theme="light"] .flow-card::after { background: rgba(50,111,215,.05); }
[data-theme="light"] .flow-head,
[data-theme="light"] .flow-node { border-color: rgba(18,24,38,.08); }
[data-theme="light"] .flow-head,
[data-theme="light"] .flow-node small,
[data-theme="light"] .flow-foot { color: #757b84; }
[data-theme="light"] .flow-node i { color: #6d737c; border-color: rgba(18,24,38,.09); background: #f5f6f8; }
[data-theme="light"] .flow-node strong { color: #30353d; }
[data-theme="light"] .flow-node.active i { color: #255fc0; background: rgba(50,111,215,.07); }
[data-theme="light"] .metrics span,
[data-theme="light"] .metrics small { color: #737983; }
[data-theme="light"] .metrics strong { color: #20242a; }
[data-theme="light"] .tab { color: #707680; }
[data-theme="light"] .tab:hover { color: #2d323a; background: rgba(18,24,38,.025); }
[data-theme="light"] .tab.active { color: #255fc0; background: rgba(50,111,215,.075); }
[data-theme="light"] .worker-card h3,
[data-theme="light"] .worker-stats strong,
[data-theme="light"] .member-name strong,
[data-theme="light"] .quota strong { color: #343943; }
[data-theme="light"] .worker-stats span,
[data-theme="light"] .worker-meta,
[data-theme="light"] .worker-actions small,
[data-theme="light"] .member-name span,
[data-theme="light"] .quota small,
[data-theme="light"] .member-key-summary { color: #747a84; }
[data-theme="light"] .member-form { border-color: rgba(50,111,215,.12); background: rgba(50,111,215,.035); }
[data-theme="light"] .key-row { color: #4e5560; border-color: rgba(18,24,38,.08); background: #f7f8fa; }
[data-theme="light"] .steps { border-color: rgba(18,24,38,.09); }
[data-theme="light"] .steps article { border-color: rgba(18,24,38,.08); background: #fff; }
[data-theme="light"] .steps strong { color: #343943; }
[data-theme="light"] .steps p { color: #707680; }

[data-theme="light"] dialog { color: #20242a; border-color: rgba(18,24,38,.14); background: #fff; box-shadow: 0 28px 80px rgba(24,35,55,.16); }
[data-theme="light"] dialog::backdrop { background: rgba(28,34,44,.4); }
[data-theme="light"] dialog h2 { color: #20242a; }
[data-theme="light"] dialog p { color: #737983; }
[data-theme="light"] .dialog-close { color: #717680; border-color: rgba(18,24,38,.1); background: #f2f4f7; }
[data-theme="light"] .toast { color: #20242a; border-color: rgba(18,24,38,.12); background: #fff; box-shadow: 0 14px 40px rgba(24,35,55,.14); }

@media (max-width: 650px) {
  [data-theme="light"] .account-sidebar { background: #fbfbfc; box-shadow: 18px 0 50px rgba(24,35,55,.14); }
  .relay-nav .theme-toggle { display: inline-block; }
  .auth-theme-toggle { top: 15px; right: 15px; }
  .promo-dialog-body { padding: 44px 22px 36px; }
  .promo-benefits article { grid-template-columns: 86px 1fr; }
  .promo-benefits strong { font-size: 24px; }
  .wallet-offer-banner { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .onboarding-card { align-items: stretch; flex-direction: column; padding: 20px; }
  .onboarding-actions .button { flex: 1 1 160px; }
  .wallet-offer-benefits { grid-template-columns: 1fr; }
  .wallet-offer-benefits > span { border-left: 0; border-top: 1px solid rgba(121,167,255,.18); padding: 12px 0 0; }
  .wallet-offer-banner > .button { width: 100%; }
  .referral-hero { align-items:flex-start; flex-direction:column; }
  .referral-hero .button { width:100%; }
  .referral-stats { grid-template-columns:1fr 1fr; }
  dialog.recharge-purchase-dialog form,.embedded-checkout-panel,.crypto-checkout-panel,.recharge-complete { padding: 24px 18px; }
  .recharge-tier-grid { gap: 8px; }
  .recharge-tier-grid > button { min-height: 84px; padding: 14px; }
  .recharge-tier-grid strong { font-size: 20px; }
  .recharge-purchase-dialog .recharge-offer { grid-template-columns: 1fr; }
  .recharge-purchase-dialog .recharge-offer strong { grid-row: auto; }
  .recharge-purchase-dialog .checkout-summary { grid-template-columns: 1fr; }
  .recharge-purchase-dialog .checkout-summary > span + span { border-left: 0; border-top: 1px solid rgba(121,167,255,.16); padding: 10px 0 0; }
  .payment-method-grid { grid-template-columns:1fr; }
  .payment-method-grid > button { min-height:54px; }
  .crypto-checkout-layout { grid-template-columns:1fr; }
  .crypto-qr { width:min(220px,100%); margin:0 auto; }
}

/* Compact referral CTA beside the Codexy brand. */
.brand-row { display:flex; align-items:center; gap:12px; min-width:0; }
.brand-row .brand { flex:0 0 auto; }
.referral-promo {
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:27px;
  padding:5px 9px;
  overflow:hidden;
  border:1px solid rgba(255,190,76,.55);
  border-radius:999px;
  color:#fff8e8;
  background:linear-gradient(120deg,#d97706,#f59e0b 48%,#ec4899);
  box-shadow:0 5px 18px rgba(236,113,24,.24);
  font-size:9px;
  font-weight:780;
  line-height:1;
  letter-spacing:.01em;
  text-decoration:none;
  white-space:nowrap;
  animation:referralGlow 2.8s ease-in-out infinite;
  transition:transform .16s var(--ease),box-shadow .16s var(--ease);
}
.referral-promo::after { position:absolute; inset:0; background:linear-gradient(110deg,transparent 25%,rgba(255,255,255,.28) 48%,transparent 70%); content:""; transform:translateX(-130%); transition:transform .42s var(--ease); }
.referral-promo:hover { color:#fff; transform:translateY(-1px); box-shadow:0 8px 24px rgba(236,113,24,.34); }
.referral-promo:hover::after { transform:translateX(130%); }
.referral-promo > span { position:relative; z-index:1; }
.referral-spark { font-size:11px; }
.auth-brand.brand-row { width:min(1120px,100%); margin:0 auto 34px; }
.account-sidebar .brand-row { padding:0 7px 26px; gap:7px; }
.account-sidebar .brand-row .brand { min-width:0; padding:0; }
.account-sidebar .brand-row .brand-icon { width:32px; height:32px; }
.account-sidebar .brand-row .brand strong { font-size:13px; }
.account-sidebar .referral-promo { margin-left:auto; padding:5px 7px; font-size:8px; }
@keyframes referralGlow { 0%,100% { box-shadow:0 5px 15px rgba(236,113,24,.2); } 50% { box-shadow:0 6px 22px rgba(236,113,24,.42); } }
@media (max-width:980px) and (min-width:651px) {
  .account-sidebar .brand-row { position:relative; justify-content:center; padding-inline:0; }
  .account-sidebar .referral-promo { position:absolute; top:-5px; right:-2px; display:grid; place-items:center; width:22px; min-height:22px; padding:0; }
  .account-sidebar .referral-copy { display:none; }
}
@media (max-width:900px) { .relay-nav .referral-copy { display:none; }.relay-nav .referral-promo { width:28px; justify-content:center; padding-inline:0; } }
@media (max-width:650px) {
  .account-sidebar .brand-row { position:static; justify-content:flex-start; padding-inline:7px; }
  .account-sidebar .referral-promo { position:static; display:inline-flex; width:auto; min-height:27px; margin-left:auto; padding:5px 7px; }
  .account-sidebar .referral-copy { display:inline; }
  .auth-brand.brand-row .referral-copy { display:none; }
  .auth-brand.brand-row .referral-promo { width:28px; justify-content:center; padding-inline:0; }
}
@media (prefers-reduced-motion:reduce) { .referral-promo { animation:none; transition:none; } }

/* Dedicated referral center. */
.referral-center {
  --referral-gold:#f6b84b;
  --referral-orange:#ed7b36;
  --referral-pink:#e8568c;
  --referral-cream:#fff4d6;
  max-width:1280px;
  margin:0 auto;
}
.referral-center-header {
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  margin-bottom:26px;
}
.referral-center-header::before {
  position:absolute;
  top:-36px;
  right:9%;
  width:220px;
  height:100px;
  border-radius:50%;
  background:rgba(237,123,54,.09);
  filter:blur(54px);
  content:"";
  pointer-events:none;
}
.referral-kicker { display:inline-flex; align-items:center; gap:9px; color:#c98d3f; font-size:12px; font-weight:760; letter-spacing:.14em; }
.referral-kicker i { width:7px; height:7px; border-radius:50%; background:var(--referral-gold); box-shadow:0 0 0 5px rgba(246,184,75,.1),0 0 22px rgba(246,184,75,.55); }
.referral-center-header h2 { max-width:720px; margin:12px 0 10px; color:#f5f1ea; font-size:clamp(34px,4.3vw,58px); font-weight:590; line-height:1.03; letter-spacing:-.055em; }
.referral-center-header p { max-width:680px; margin:0; color:#8d8780; font-size:15px; line-height:1.7; }
.referral-headline-rewards { position:relative; z-index:1; display:flex; align-items:center; gap:16px; flex:0 0 auto; padding:16px 19px; border:1px solid rgba(246,184,75,.2); border-radius:16px; background:rgba(246,184,75,.045); }
.referral-headline-rewards > span { display:grid; gap:4px; }
.referral-headline-rewards small { color:#8f8474; font-size:12px; }
.referral-headline-rewards strong { color:var(--referral-cream); font:650 27px/1 "SFMono-Regular",Consolas,monospace; letter-spacing:-.06em; }
.referral-headline-rewards > i { color:#745f43; font-size:18px; font-style:normal; }

.referral-share-card {
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(260px,.72fr);
  gap:18px;
  overflow:hidden;
  margin-bottom:14px;
  padding:18px;
  border:1px solid rgba(246,184,75,.24);
  border-radius:20px;
  background:
    radial-gradient(circle at 4% 12%,rgba(237,123,54,.16),transparent 27rem),
    radial-gradient(circle at 83% 85%,rgba(232,86,140,.13),transparent 23rem),
    linear-gradient(135deg,#15110e,#0e0d10 65%);
  box-shadow:0 24px 80px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.025);
}
.referral-share-card::before { position:absolute; inset:0; z-index:-1; opacity:.14; background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(90deg,#000,transparent 75%); content:""; }
.referral-share-copy { padding:28px 28px 24px; }
.referral-share-copy .eyebrow { color:#d39743; font-size:12px; }
.referral-share-copy h3 { margin:10px 0 8px; color:#fffaf0; font-size:27px; font-weight:600; letter-spacing:-.035em; }
.referral-share-copy > p { margin:0; color:#a69a8d; font-size:14px; line-height:1.6; }
.referral-link-field { display:grid; grid-template-columns:22px minmax(0,1fr); align-items:center; gap:11px; max-width:720px; margin:25px 0 13px; padding:14px 16px; border:1px solid rgba(246,184,75,.25); border-radius:11px; background:rgba(5,5,7,.48); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.referral-link-icon { display:grid; place-items:center; color:var(--referral-gold); }
.referral-link-icon svg,.referral-share-actions svg,.referral-benefit-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.referral-link-field code { display:block; overflow:hidden; color:#f7d999; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.referral-share-actions { display:flex; flex-wrap:wrap; gap:9px; }
.referral-share-actions .button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:43px; padding:10px 15px; font-size:13px; }
.referral-primary { border-color:#f1a942!important; color:#23170a!important; background:linear-gradient(135deg,#ffd579,#efa13c)!important; box-shadow:0 10px 28px rgba(237,123,54,.2)!important; }
.referral-primary:hover { background:linear-gradient(135deg,#ffdf93,#f6ad4b)!important; transform:translateY(-1px); }
.referral-secondary { border-color:rgba(246,184,75,.2)!important; color:#e8d7ba!important; background:rgba(255,255,255,.04)!important; }
.referral-secondary:hover { border-color:rgba(246,184,75,.38)!important; background:rgba(246,184,75,.07)!important; }
.referral-code-card { position:relative; display:grid; align-content:center; justify-items:center; overflow:hidden; min-height:230px; padding:30px 22px; border:1px solid rgba(255,255,255,.07); border-radius:14px; background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); text-align:center; }
.referral-code-card > span { position:relative; z-index:2; color:#a4937c; font-size:14px; }
.referral-code-card > strong { position:relative; z-index:2; margin:13px 0 10px; color:#fff2ce; font:650 clamp(21px,2.2vw,30px)/1 "SFMono-Regular",Consolas,monospace; letter-spacing:.04em; }
.referral-code-card > small { position:relative; z-index:2; max-width:210px; color:#776f68; font-size:12px; line-height:1.55; }
.referral-orbit { position:absolute; inset:50% auto auto 50%; width:250px; height:250px; border:1px solid rgba(246,184,75,.09); border-radius:50%; transform:translate(-50%,-50%); animation:referralOrbit 18s linear infinite; }
.referral-orbit::before,.referral-orbit::after { position:absolute; inset:28px; border:1px solid rgba(232,86,140,.08); border-radius:50%; content:""; }.referral-orbit::after { inset:69px; border-color:rgba(246,184,75,.12); }
.referral-orbit i { position:absolute; width:6px; height:6px; border-radius:50%; background:var(--referral-gold); box-shadow:0 0 14px var(--referral-gold); }.referral-orbit i:nth-child(1){top:25px;left:52px}.referral-orbit i:nth-child(2){right:0;top:116px;background:var(--referral-pink)}.referral-orbit i:nth-child(3){bottom:9px;left:107px;width:4px;height:4px}

.referral-center .referral-stats { grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.referral-center .referral-stats article { position:relative; gap:10px; overflow:hidden; min-height:136px; padding:21px; border:1px solid rgba(255,255,255,.07); border-radius:13px; background:#0e0e11; }
.referral-center .referral-stats article::after { position:absolute; right:-35px; bottom:-55px; width:100px; height:100px; border:1px solid rgba(246,184,75,.07); border-radius:50%; content:""; }
.referral-center .referral-stats article.featured { border-color:rgba(246,184,75,.2); background:linear-gradient(145deg,rgba(246,184,75,.075),#0e0e11 70%); }
.referral-center .referral-stats span { color:#8b8781; font-size:14px; }
.referral-center .referral-stats strong { color:#f0ece6; font:570 29px/1.1 "SFMono-Regular",Consolas,monospace; letter-spacing:-.045em; }
.referral-center .referral-stats strong small { color:inherit; font:650 10px/1 "SFMono-Regular",Consolas,monospace; letter-spacing:.02em; }
.referral-center .referral-stats .featured strong { color:#ffd983; }
.referral-center .referral-stats small { color:#625e59; font-size:12px; line-height:1.4; }
.referral-center .referral-stats article.referral-withdraw-entry { min-height:176px; }
.referral-stat-action { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; width:100%; margin-top:14px; border:1px solid rgba(246,184,75,.28); border-radius:9px; padding:10px 12px; color:#ffe0a0; background:rgba(246,184,75,.09); font:700 12px/1.2 inherit; cursor:pointer; transition:border-color .2s var(--ease),background-color .2s var(--ease),transform .2s var(--ease); }
.referral-stat-action i { font-style:normal; font-size:14px; transition:transform .2s var(--ease); }
.referral-stat-action:hover { border-color:rgba(246,184,75,.5); background:rgba(246,184,75,.15); transform:translateY(-1px); }
.referral-stat-action:hover i { transform:translate(2px,-2px); }
.referral-stat-action:focus-visible { outline:2px solid #f6b84b; outline-offset:3px; }

.referral-withdraw-card { display:grid; grid-template-columns:minmax(250px,.72fr) minmax(430px,1.28fr); gap:34px; margin-bottom:14px; padding:29px; border:1px solid rgba(246,184,75,.18); border-radius:15px; background:radial-gradient(circle at 8% 12%,rgba(246,184,75,.09),transparent 35%),#0e0e11; }
.referral-withdraw-copy h2 { margin:7px 0 10px; color:#eeeae4; font-size:24px; letter-spacing:-.025em; }.referral-withdraw-copy p { max-width:440px; margin:0; color:#77736e; font-size:13px; line-height:1.65; }
.referral-mini-stats { display:flex; gap:18px; margin-top:23px; }.referral-mini-stats span { color:#79736b; font-size:12px; }.referral-mini-stats b { margin-left:5px; color:#f7c86d; font-family:"SFMono-Regular",Consolas,monospace; }
.referral-withdraw-form { display:grid; grid-template-columns:1fr .58fr; gap:13px; }.referral-withdraw-form label { display:grid; gap:7px; color:#8b8781; font-size:12px; }.referral-withdraw-form .wide { grid-column:1 / -1; }.referral-withdraw-form input,.referral-withdraw-form select { width:100%; min-height:44px; border:1px solid rgba(255,255,255,.1); border-radius:10px; padding:0 13px; color:#e8e4df; background:#151519; font:inherit; outline:none; }.referral-withdraw-form input:focus,.referral-withdraw-form select:focus { border-color:rgba(246,184,75,.55); box-shadow:0 0 0 3px rgba(246,184,75,.08); }
.referral-withdraw-form .withdraw-confirm { display:flex; align-items:flex-start; grid-template-columns:auto 1fr; gap:9px; line-height:1.5; }.referral-withdraw-form .withdraw-confirm input { width:15px; min-height:15px; margin-top:2px; accent-color:#d79f49; }.referral-withdraw-form > small { color:#68635d; font-size:11px; }
.withdrawal-center .withdrawal-stats { grid-template-columns:repeat(3,1fr); }.withdrawal-center .withdrawal-stats article { min-height:112px; }.withdrawal-security-mark { min-width:180px; padding:18px 21px; border:1px solid rgba(246,184,75,.18); border-radius:13px; background:rgba(246,184,75,.055); }.withdrawal-security-mark span,.withdrawal-security-mark strong { display:block; }.withdrawal-security-mark span { color:#9e7740; font:650 10px/1 "SFMono-Regular",Consolas,monospace; letter-spacing:.1em; }.withdrawal-security-mark strong { margin:10px 0 0; color:#f1c66c; font-size:17px; }.withdrawal-available-inline { display:grid; gap:7px; margin-top:24px; padding-top:18px; border-top:1px solid rgba(255,255,255,.07); }.withdrawal-available-inline span { color:#77716a; font-size:12px; }.withdrawal-available-inline strong { color:#f1c66c; font:620 20px/1.15 "SFMono-Regular",Consolas,monospace; }
.referral-withdraw-history { margin-bottom:14px; overflow:hidden; border-color:rgba(255,255,255,.07); background:#0e0e11; }.referral-withdraw-history .referral-section-heading { padding:24px 26px 20px; }.referral-withdraw-list { border-top:1px solid rgba(255,255,255,.06); }.referral-withdraw-row { display:grid; grid-template-columns:150px minmax(180px,1fr) 130px; gap:18px; align-items:center; padding:16px 26px; border-bottom:1px solid rgba(255,255,255,.055); }.referral-withdraw-row:last-child { border-bottom:0; }.referral-withdraw-row > span:first-child strong,.referral-withdraw-row > span:first-child small { display:block; }.referral-withdraw-row > span:first-child strong { color:#e1b85f; font-size:14px; }.referral-withdraw-row > span:first-child small,.withdraw-result small { margin-top:5px; color:#716d68; font-size:11px; }.referral-withdraw-row code { overflow:hidden; color:#a5a09a; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.referral-withdraw-row .table-status { justify-self:end; }.withdraw-result { grid-column:1 / -1; overflow:hidden; }.withdraw-result small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.referral-benefit-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.referral-benefit-grid.referral-benefit-single { grid-template-columns:1fr; }
.referral-benefit-card { position:relative; display:grid; grid-template-columns:45px minmax(0,1fr) auto; align-items:center; gap:16px; overflow:hidden; min-height:156px; padding:25px; border:1px solid rgba(255,255,255,.07); border-radius:14px; background:#0e0e11; }
.referral-benefit-card::before { position:absolute; top:-65px; right:-45px; width:180px; height:180px; border-radius:50%; background:rgba(246,184,75,.06); filter:blur(12px); content:""; }
.referral-benefit-card.invitee::before { background:rgba(232,86,140,.065); }
.referral-benefit-icon { display:grid; place-items:center; width:45px; height:45px; border:1px solid rgba(246,184,75,.2); border-radius:12px; color:var(--referral-gold); background:rgba(246,184,75,.07); }
.referral-benefit-card.invitee .referral-benefit-icon { border-color:rgba(232,86,140,.2); color:#ef82a9; background:rgba(232,86,140,.07); }
.referral-benefit-card > div:nth-child(2) { position:relative; z-index:1; }
.referral-benefit-card > div > span { color:#8d8479; font-size:12px; font-weight:700; letter-spacing:.08em; }
.referral-benefit-card h3 { margin:6px 0 7px; color:#eeeae4; font-size:18px; font-weight:590; }
.referral-benefit-card p { max-width:560px; margin:0; color:#77736e; font-size:14px; line-height:1.6; }
.referral-benefit-card p b { color:#bba578; }
.referral-benefit-value { position:relative; z-index:1; color:#f7c86d; font:600 21px/1 "SFMono-Regular",Consolas,monospace; white-space:nowrap; }
.referral-benefit-card.invitee .referral-benefit-value { color:#ec8eb0; }
.referral-benefit-value small { color:#72675c; font-size:13px; }

.referral-path-card,.referral-history-card { margin-bottom:14px; padding:26px; border:1px solid rgba(255,255,255,.07); border-radius:14px; background:#0e0e11; }
.referral-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.referral-section-heading .eyebrow { color:#ad7d3e; font-size:12px; }
.referral-section-heading h2 { margin:7px 0 0; color:#eeeae4; font-size:22px; font-weight:590; }
.referral-section-heading > small { color:#6f6a64; font-size:12px; }
.referral-path { display:grid; grid-template-columns:repeat(4,1fr); margin:0; padding:0; list-style:none; counter-reset:none; }
.referral-path li { position:relative; display:grid; grid-template-columns:34px 1fr; gap:11px; min-width:0; padding:6px 22px 6px 0; }
.referral-path li:not(:last-child)::after { position:absolute; top:22px; right:5px; width:17px; border-top:1px solid rgba(246,184,75,.22); content:""; }
.referral-path li > b { display:grid; place-items:center; width:32px; height:32px; border:1px solid rgba(246,184,75,.23); border-radius:9px; color:#d59c48; background:rgba(246,184,75,.055); font:650 10px/1 "SFMono-Regular",Consolas,monospace; }
.referral-path li strong,.referral-path li span { display:block; }.referral-path li strong { margin:1px 0 7px; color:#d7d3ce; font-size:14px; }.referral-path li span { color:#6e6a66; font-size:12px; line-height:1.55; }
.referral-path li strong:last-child { margin-bottom:0; }
.referral-history-card { overflow:hidden; padding:0; }
.referral-history-card .referral-section-heading { margin:0; padding:24px 26px 21px; }
.referral-record-list { border-top:1px solid rgba(255,255,255,.06); }
.referral-record-row { display:grid; grid-template-columns:minmax(180px,1.2fr) minmax(210px,1fr) 100px; align-items:center; gap:24px; min-height:82px; padding:16px 26px; border-bottom:1px solid rgba(255,255,255,.055); transition:background-color .16s var(--ease); }
.referral-record-row:last-child { border-bottom:0; }.referral-record-row:hover { background:rgba(255,255,255,.022); }
.referral-record-person strong,.referral-record-person small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.referral-record-person strong { color:#d9d5cf; font-size:14px; }.referral-record-person small { margin-top:5px; color:#716d68; font-size:12px; }
.referral-progress-copy { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:7px; color:#77716a; font-size:12px; }.referral-progress-copy strong { color:#b6a98f; font:550 12px/1 "SFMono-Regular",Consolas,monospace; }
.referral-progress-track { height:5px; overflow:hidden; border-radius:999px; background:#24211d; }.referral-progress-track i { display:block; width:var(--progress,0%); height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--referral-orange),var(--referral-gold)); box-shadow:0 0 12px rgba(246,184,75,.22); transition:width .5s var(--ease); }
.referral-record-row .table-status { justify-self:end; padding:6px 9px; font-size:10px!important; }
.site-sections { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:10px 0 75px; }
.site-sections a { min-width:0; display:flex; flex-direction:column; gap:8px; padding:18px; border:1px solid rgba(255,255,255,.1); border-radius:13px; color:#e3e5ea; background:rgba(255,255,255,.02); text-decoration:none; transition:border-color .18s,transform .18s; }
.site-sections a:hover { border-color:rgba(113,156,234,.4); transform:translateY(-2px); }.site-sections strong { font-size:14px; }.site-sections span { color:#8d929c; font-size:11px; line-height:1.5; }
[data-theme="light"] .site-sections a { color:#252d38; border-color:rgba(32,52,88,.12); background:#fff; }[data-theme="light"] .site-sections span { color:#66707d; }
@media(max-width:900px) { .site-sections { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .site-sections { grid-template-columns:1fr; gap:8px; }.site-sections a { padding:14px 16px; } }
.referral-center .account-empty { min-height:150px; color:#726c64; font-size:13px; }
.referral-notice { border-color:rgba(246,184,75,.14); background:rgba(246,184,75,.055); }.referral-notice i { flex:0 0 auto; background:#e4aa4d; color:#241708; }.referral-notice p { color:#817a70; font-size:12px; line-height:1.55; }.referral-notice p b { color:#bca77e; }
@keyframes referralOrbit { to { transform:translate(-50%,-50%) rotate(360deg); } }

[data-theme="light"] .referral-center { --referral-cream:#5a3511; }
[data-theme="light"] .referral-center-header h2 { color:#201b17; }
[data-theme="light"] .referral-center-header p { color:#716960; }
[data-theme="light"] .referral-headline-rewards { border-color:rgba(199,116,25,.18); background:rgba(237,150,51,.07); }
[data-theme="light"] .referral-headline-rewards small { color:#83766a; }
[data-theme="light"] .referral-share-card { border-color:rgba(201,121,30,.25); background:radial-gradient(circle at 4% 12%,rgba(245,169,75,.18),transparent 27rem),radial-gradient(circle at 83% 85%,rgba(232,86,140,.1),transparent 23rem),linear-gradient(135deg,#fff9ed,#fff 65%); box-shadow:0 22px 60px rgba(90,55,20,.08); }
[data-theme="light"] .referral-share-card::before { opacity:.2; background-image:linear-gradient(rgba(99,61,24,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(99,61,24,.08) 1px,transparent 1px); }
[data-theme="light"] .referral-share-copy h3 { color:#281e16; }
[data-theme="light"] .referral-share-copy > p { color:#796d62; }
[data-theme="light"] .referral-link-field { border-color:rgba(190,115,32,.24); background:rgba(255,255,255,.72); }
[data-theme="light"] .referral-link-field code { color:#9b5c18; }
[data-theme="light"] .referral-secondary { color:#714d29!important; background:rgba(255,255,255,.6)!important; }
[data-theme="light"] .referral-code-card { border-color:rgba(87,55,28,.1); background:rgba(255,255,255,.52); }
[data-theme="light"] .referral-code-card > strong { color:#744317; }
[data-theme="light"] .referral-code-card > small { color:#807468; }
[data-theme="light"] .referral-center .referral-stats article,[data-theme="light"] .referral-benefit-card,[data-theme="light"] .referral-path-card,[data-theme="light"] .referral-history-card,[data-theme="light"] .referral-withdraw-card,[data-theme="light"] .referral-withdraw-history { border-color:rgba(59,39,21,.1); background:#fff; }
[data-theme="light"] .referral-center .referral-stats article.featured { border-color:rgba(193,118,30,.2); background:linear-gradient(145deg,rgba(246,184,75,.11),#fff 70%); }
[data-theme="light"] .referral-center .referral-stats strong { color:#30261e; }
[data-theme="light"] .referral-center .referral-stats .featured strong { color:#a66118; }
[data-theme="light"] .referral-center .referral-stats span,[data-theme="light"] .referral-center .referral-stats small { color:#776e66; }
[data-theme="light"] .referral-stat-action { color:#8a4f12; border-color:rgba(193,118,30,.25); background:rgba(246,184,75,.12); }
[data-theme="light"] .referral-stat-action:hover { border-color:rgba(193,118,30,.42); background:rgba(246,184,75,.2); }
[data-theme="light"] .referral-benefit-card h3,[data-theme="light"] .referral-section-heading h2,[data-theme="light"] .referral-path li strong,[data-theme="light"] .referral-record-person strong { color:#352b23; }
[data-theme="light"] .referral-benefit-card p,[data-theme="light"] .referral-path li span,[data-theme="light"] .referral-record-person small { color:#786f67; }
[data-theme="light"] .referral-record-list { border-color:rgba(59,39,21,.09); }
[data-theme="light"] .referral-record-row { border-color:rgba(59,39,21,.075); }
[data-theme="light"] .referral-record-row:hover { background:#fdf9f3; }
[data-theme="light"] .referral-withdraw-copy h2 { color:#352b23; }[data-theme="light"] .referral-withdraw-copy p,[data-theme="light"] .referral-withdraw-form label,[data-theme="light"] .referral-withdraw-form > small { color:#786f67; }[data-theme="light"] .referral-withdraw-form input,[data-theme="light"] .referral-withdraw-form select { border-color:rgba(59,39,21,.13); color:#352b23; background:#fbf8f3; }[data-theme="light"] .referral-withdraw-list,[data-theme="light"] .referral-withdraw-row { border-color:rgba(59,39,21,.08); }[data-theme="light"] .referral-withdraw-row code { color:#675e56; }
[data-theme="light"] .withdrawal-security-mark { border-color:rgba(193,118,30,.2); background:rgba(246,184,75,.1); }[data-theme="light"] .withdrawal-security-mark strong,[data-theme="light"] .withdrawal-available-inline strong { color:#a66118; }[data-theme="light"] .withdrawal-available-inline { border-color:rgba(59,39,21,.09); }
[data-theme="light"] .referral-progress-track { background:#eee7df; }
[data-theme="light"] .referral-notice { border-color:rgba(193,118,30,.15); background:rgba(246,184,75,.1); }

@media (max-width:1080px) {
  .referral-center-header { align-items:flex-start; flex-direction:column; }
  .referral-headline-rewards { align-self:flex-start; }
  .referral-share-card { grid-template-columns:minmax(0,1.3fr) minmax(230px,.7fr); }
  .referral-benefit-card { grid-template-columns:45px 1fr; }.referral-benefit-value { grid-column:2; }
  .referral-withdraw-card { grid-template-columns:1fr; }
  .withdrawal-center .withdrawal-stats { grid-template-columns:repeat(3,1fr); }
  .referral-path { grid-template-columns:1fr 1fr; gap:20px 0; }.referral-path li:nth-child(2)::after { display:none; }
}
@media (max-width:760px) {
  .referral-center-header h2 { font-size:clamp(36px,10vw,49px); }
  .referral-center-header p { font-size:14px; }
  .referral-share-card { grid-template-columns:1fr; padding:10px; border-radius:16px; }
  .referral-share-copy { padding:22px 16px 14px; }
  .referral-share-copy h3 { font-size:23px; }
  .referral-code-card { min-height:180px; }
  .referral-center .referral-stats { grid-template-columns:1fr 1fr; }
  .referral-benefit-grid { grid-template-columns:1fr; }
  .referral-record-row { grid-template-columns:1fr auto; gap:13px 18px; }.referral-record-progress { grid-column:1 / -1; grid-row:2; }.referral-record-row .table-status { grid-column:2; grid-row:1; }
}
@media (max-width:520px) {
  .referral-center-header { gap:22px; }.referral-headline-rewards { width:100%; justify-content:space-around; }
  .withdrawal-security-mark { width:100%; }
  .referral-link-field { padding:13px; }.referral-share-actions { display:grid; grid-template-columns:1fr 1fr; }.referral-share-actions .button { padding-inline:9px; }
  .referral-center .referral-stats { grid-template-columns:1fr; }.referral-center .referral-stats article { min-height:112px; }
  .withdrawal-center .withdrawal-stats { grid-template-columns:1fr; }
  .referral-benefit-card { grid-template-columns:42px 1fr; padding:21px 18px; }.referral-benefit-icon { width:42px; height:42px; }.referral-benefit-value { font-size:19px; }
  .referral-path-card { padding:22px 18px; }.referral-section-heading { align-items:flex-start; flex-direction:column; }.referral-path { grid-template-columns:1fr; gap:18px; }.referral-path li:not(:last-child)::after { top:auto; right:auto; bottom:-12px; left:15px; width:1px; height:15px; border-top:0; border-left:1px solid rgba(246,184,75,.22); }
  .referral-history-card .referral-section-heading { padding:22px 18px 18px; }.referral-record-row { padding:16px 18px; }
  .referral-withdraw-form { grid-template-columns:1fr; }.referral-withdraw-form .wide { grid-column:auto; }.referral-withdraw-row { grid-template-columns:1fr auto; padding:16px 18px; }.referral-withdraw-row code { grid-column:1 / -1; grid-row:2; }.withdraw-result { grid-column:1 / -1; }
}
@media (prefers-reduced-motion:reduce) { .referral-orbit { animation:none; }.referral-progress-track i { transition:none; } }
/* Keep pricing explanations out of the reading path until the card is inspected. */
.credit-feature-grid .hover-detail-card {
  position:relative;
  min-height:112px;
  overflow:hidden;
  cursor:help;
  outline:none;
}
.credit-feature-grid .hover-detail-card strong { margin-top:24px; }
.credit-feature-grid .detail-indicator {
  position:absolute;
  top:15px;
  right:16px;
  display:grid;
  place-items:center;
  width:17px;
  height:17px;
  border:1px solid rgba(121,167,255,.36);
  border-radius:50%;
  color:#8fb4fb;
  font:700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.credit-feature-grid .hover-detail-card p {
  position:absolute;
  z-index:2;
  inset:6px;
  display:flex;
  align-items:center;
  margin:0;
  padding:18px;
  border:1px solid rgba(121,167,255,.28);
  border-radius:7px;
  color:#d8e6ff;
  background:#151820;
  box-shadow:0 12px 30px rgba(0,0,0,.32);
  opacity:0;
  visibility:hidden;
  transform:translateY(5px);
  transition:opacity .16s var(--ease),transform .16s var(--ease),visibility .16s;
  pointer-events:none;
}
.credit-feature-grid .hover-detail-card:is(:hover,:focus,:focus-within) p {
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.credit-feature-grid .hover-detail-card:focus-visible { box-shadow:inset 0 0 0 2px rgba(121,167,255,.62); }
[data-theme="light"] .credit-feature-grid .hover-detail-card p { color:#2f405f; border-color:rgba(50,111,215,.2); background:#f4f7fd; box-shadow:0 12px 30px rgba(24,35,55,.14); }
@media (max-width:650px) {
  .credit-feature-grid .hover-detail-card { min-height:88px; }
  .credit-feature-grid .hover-detail-card strong { margin-top:14px; }
}
@media (prefers-reduced-motion:reduce) { .credit-feature-grid .hover-detail-card p { transition:none; } }

/* Layered pricing-advantage cards with hover-reveal motion. */
.pricing-advantage {
  position:relative;
  isolation:isolate;
  grid-template-columns:minmax(250px,.72fr) minmax(0,1.48fr);
  gap:46px;
  overflow:hidden;
  padding:48px;
  background:
    radial-gradient(circle at 10% 12%,rgba(79,134,238,.16),transparent 32%),
    radial-gradient(circle at 92% 90%,rgba(139,92,246,.12),transparent 35%),
    #090b10;
}
.pricing-advantage::before {
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(115deg,transparent 22%,rgba(255,255,255,.025) 48%,transparent 74%);
  content:"";
  pointer-events:none;
}
.advantage-heading { display:flex; align-items:flex-start; flex-direction:column; }
.advantage-heading h2 { margin-bottom:30px; }
.advantage-heading .button { margin-top:auto; }
.pricing-advantage .credit-feature-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  border:0;
  perspective:1200px;
}
.pricing-advantage .hover-detail-card {
  --card-accent:#6f9cf2;
  --card-glow:rgba(79,134,238,.3);
  position:relative;
  display:flex;
  min-width:0;
  min-height:224px;
  flex-direction:column;
  padding:19px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  background:linear-gradient(155deg,rgba(255,255,255,.075),rgba(255,255,255,.018) 58%);
  box-shadow:0 16px 42px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.06);
  cursor:help;
  transform:translateZ(0);
  transform-style:preserve-3d;
  transition:transform .42s cubic-bezier(.2,.8,.2,1),border-color .3s,box-shadow .42s,background .3s;
}
.pricing-advantage .hover-detail-card[data-accent="violet"] { --card-accent:#a78bfa; --card-glow:rgba(139,92,246,.3); }
.pricing-advantage .hover-detail-card[data-accent="cyan"] { --card-accent:#67e8f9; --card-glow:rgba(34,211,238,.26); }
.pricing-advantage .hover-detail-card::before {
  position:absolute;
  inset:auto -42% -48% auto;
  width:150px;
  height:150px;
  border-radius:50%;
  background:var(--card-glow);
  content:"";
  filter:blur(36px);
  opacity:.28;
  transform:scale(.72);
  transition:opacity .42s,transform .55s cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}
.pricing-advantage .hover-detail-card::after {
  position:absolute;
  z-index:4;
  top:-35%;
  left:-80%;
  width:42%;
  height:170%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.17),transparent);
  content:"";
  opacity:0;
  pointer-events:none;
  transform:translateX(-160%) skewX(-18deg);
}
.pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within) {
  z-index:3;
  border-color:color-mix(in srgb,var(--card-accent) 58%,transparent);
  background:linear-gradient(155deg,color-mix(in srgb,var(--card-accent) 13%,#12151d),rgba(255,255,255,.025) 62%);
  box-shadow:0 26px 64px rgba(0,0,0,.36),0 0 34px var(--card-glow),inset 0 1px rgba(255,255,255,.12);
  transform:translateY(-10px) rotateX(2deg) scale(1.018);
}
.pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within)::before { opacity:.82; transform:scale(1.35); }
.pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within)::after { animation:advantageSweep .82s cubic-bezier(.2,.75,.25,1) both; }
.feature-top { display:flex; align-items:center; justify-content:space-between; }
.pricing-advantage .feature-top > b {
  color:color-mix(in srgb,var(--card-accent) 85%,white);
  font:720 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.14em;
  transition:letter-spacing .35s,opacity .3s;
}
.feature-icon {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid color-mix(in srgb,var(--card-accent) 38%,transparent);
  border-radius:12px;
  color:var(--card-accent);
  background:color-mix(in srgb,var(--card-accent) 11%,transparent);
  box-shadow:inset 0 1px rgba(255,255,255,.06);
  transition:transform .5s cubic-bezier(.2,.8,.2,1),background .35s,box-shadow .35s;
}
.feature-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.feature-name { display:grid; gap:7px; margin-top:auto; transform:translateY(0); transition:transform .42s cubic-bezier(.2,.8,.2,1),opacity .3s; }
.pricing-advantage .feature-name strong { margin:0; color:#f1f2f5; font-size:18px; font-weight:700; line-height:1.25; letter-spacing:-.025em; }
.feature-name small { color:#696f7d; font:650 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.12em; }
.pricing-advantage .detail-indicator {
  position:absolute;
  right:17px;
  bottom:17px;
  top:auto;
  width:25px;
  height:25px;
  border-color:rgba(255,255,255,.12);
  color:#7f8796;
  background:rgba(255,255,255,.035);
  font-size:11px;
  transition:color .3s,border-color .3s,background .3s,transform .42s cubic-bezier(.2,.8,.2,1);
}
.pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within) .feature-top > b { letter-spacing:.22em; opacity:.72; }
.pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within) .feature-icon { background:color-mix(in srgb,var(--card-accent) 19%,transparent); box-shadow:0 0 24px var(--card-glow); transform:translateY(2px) rotate(-7deg) scale(1.08); }
.pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within) .feature-name { opacity:0; transform:translateY(13px); }
.pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within) .detail-indicator { color:#fff; border-color:var(--card-accent); background:var(--card-accent); transform:rotate(45deg) scale(.9); }
.pricing-advantage .hover-detail-card p {
  position:absolute;
  z-index:3;
  inset:70px 12px 12px;
  display:flex;
  align-items:flex-end;
  margin:0;
  padding:28px 17px 18px;
  border:1px solid color-mix(in srgb,var(--card-accent) 30%,transparent);
  border-radius:16px;
  color:#eef2fb;
  background:linear-gradient(155deg,color-mix(in srgb,var(--card-accent) 16%,#12151c),rgba(13,16,23,.96));
  box-shadow:0 18px 38px rgba(0,0,0,.3);
  font-size:14px;
  font-weight:520;
  line-height:1.65;
  opacity:0;
  visibility:hidden;
  clip-path:inset(100% 0 0 0 round 18px);
  transform:translateY(16px) rotateX(-8deg);
  transform-origin:bottom;
  transition:clip-path .5s cubic-bezier(.2,.8,.2,1),opacity .25s,transform .5s cubic-bezier(.2,.8,.2,1),visibility .5s;
  pointer-events:none;
}
.pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within) p {
  opacity:1;
  visibility:visible;
  clip-path:inset(0 0 0 0 round 18px);
  transform:translateY(0) rotateX(0);
}
[data-theme="light"] .pricing-advantage { background:radial-gradient(circle at 10% 12%,rgba(50,111,215,.1),transparent 32%),radial-gradient(circle at 92% 90%,rgba(139,92,246,.08),transparent 35%),#fff; }
[data-theme="light"] .pricing-advantage .hover-detail-card { border-color:rgba(18,24,38,.11); background:linear-gradient(155deg,#fff,#f6f8fc); box-shadow:0 16px 42px rgba(24,35,55,.08),inset 0 1px #fff; }
[data-theme="light"] .pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within) { border-color:color-mix(in srgb,var(--card-accent) 54%,transparent); box-shadow:0 26px 58px rgba(24,35,55,.14),0 0 30px var(--card-glow); }
[data-theme="light"] .pricing-advantage .feature-name strong { color:#252930; }
[data-theme="light"] .feature-name small { color:#858b96; }
[data-theme="light"] .pricing-advantage .hover-detail-card p { color:#303a4b; background:linear-gradient(155deg,color-mix(in srgb,var(--card-accent) 10%,white),rgba(248,250,254,.98)); box-shadow:0 18px 38px rgba(24,35,55,.13); }
@keyframes advantageSweep { 0% { opacity:0; transform:translateX(-160%) skewX(-18deg); } 20% { opacity:1; } 100% { opacity:0; transform:translateX(720%) skewX(-18deg); } }
@media (max-width:980px) {
  .pricing-advantage { grid-template-columns:1fr; gap:28px; }
  .advantage-heading .button { margin-top:0; }
}
@media (max-width:760px) {
  .pricing-advantage .credit-feature-grid { grid-template-columns:1fr; }
  .pricing-advantage .hover-detail-card { min-height:184px; }
  .pricing-advantage .hover-detail-card p { inset:57px 10px 10px; padding:16px; font-size:14px; }
}
@media (max-width:650px) { .pricing-advantage { padding:30px 22px; } }
@media (prefers-reduced-motion:reduce) {
  .pricing-advantage .hover-detail-card,
  .pricing-advantage .hover-detail-card::before,
  .pricing-advantage .hover-detail-card::after,
  .pricing-advantage .feature-icon,
  .pricing-advantage .feature-name,
  .pricing-advantage .detail-indicator,
  .pricing-advantage .hover-detail-card p { animation:none!important; transition:none!important; }
}

/* Public landing light visual system v2. */
[data-theme="light"] body.relay-home {
  --landing-surface:rgba(255,255,255,.82);
  --landing-surface-strong:#fff;
  --landing-border:rgba(42,74,126,.16);
  --landing-shadow:0 24px 70px rgba(37,65,111,.12),0 2px 10px rgba(37,65,111,.055);
  --landing-inset:inset 0 1px rgba(255,255,255,.92);
  background:
    radial-gradient(circle at 82% 7%,rgba(95,143,239,.2),transparent 29rem),
    radial-gradient(circle at 4% 44%,rgba(112,214,221,.11),transparent 25rem),
    linear-gradient(180deg,#f9fbff 0,#f1f5fb 48%,#edf2f9 100%);
}
[data-theme="light"] .relay-home::before {
  background:
    linear-gradient(rgba(43,79,137,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(43,79,137,.045) 1px,transparent 1px),
    radial-gradient(circle at 68% 12%,rgba(82,132,230,.13),transparent 27rem);
  background-size:64px 64px,64px 64px,auto;
  opacity:.72;
  -webkit-mask-image:linear-gradient(to bottom,#000 0,rgba(0,0,0,.72) 48%,transparent 92%);
  mask-image:linear-gradient(to bottom,#000 0,rgba(0,0,0,.72) 48%,transparent 92%);
}
[data-theme="light"] .relay-nav {
  border-color:rgba(42,74,126,.13);
  background:linear-gradient(180deg,rgba(255,255,255,.76),rgba(249,251,255,.56));
  box-shadow:0 1px rgba(255,255,255,.95),0 12px 38px rgba(37,65,111,.045);
  backdrop-filter:blur(18px) saturate(135%);
}
[data-theme="light"] .relay-nav .brand-icon { box-shadow:0 8px 24px rgba(50,111,215,.2),0 1px 3px rgba(24,35,55,.12); }
[data-theme="light"] .relay-nav nav a { color:#596274; }
[data-theme="light"] .relay-nav nav a:hover { color:#184fba; }
[data-theme="light"] .relay-hero-copy .eyebrow,
[data-theme="light"] .multimodal-heading .eyebrow,
[data-theme="light"] .pricing-heading .eyebrow { color:#2f68d0; text-shadow:0 0 24px rgba(50,111,215,.16); }
[data-theme="light"] .relay-hero-copy h1 { color:#111827; text-shadow:0 1px rgba(255,255,255,.9); }
[data-theme="light"] .relay-hero-copy h1 span {
  color:#2b66d1;
  background:none;
  -webkit-text-fill-color:currentColor;
  text-shadow:0 10px 34px rgba(50,111,215,.16);
}
[data-theme="light"] .hero-price-advantage {
  border-color:rgba(50,111,215,.25);
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(222,234,255,.78));
  box-shadow:0 18px 48px rgba(42,79,143,.12),var(--landing-inset);
}
[data-theme="light"] .hero-price-advantage strong { color:#17233a; }
[data-theme="light"] .hero-price-advantage strong b { color:#255fc0; text-shadow:0 8px 30px rgba(50,111,215,.18); }
[data-theme="light"] .relay-hero .button.primary,
[data-theme="light"] .pricing-advantage .button.primary {
  border-color:rgba(29,82,179,.28);
  background:linear-gradient(135deg,#245fc9,#4b83e8);
  box-shadow:0 12px 30px rgba(41,94,194,.24),inset 0 1px rgba(255,255,255,.24);
}
[data-theme="light"] .relay-hero .button.ghost { background:rgba(255,255,255,.7); box-shadow:0 8px 22px rgba(37,65,111,.07),var(--landing-inset); }
[data-theme="light"] .desktop-download-card {
  border-color:rgba(42,74,126,.18);
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(238,244,254,.76));
  box-shadow:0 17px 42px rgba(37,65,111,.1),var(--landing-inset);
}
[data-theme="light"] .desktop-download-card:hover { border-color:rgba(50,111,215,.38); box-shadow:0 23px 52px rgba(37,75,139,.15),var(--landing-inset); }
[data-theme="light"] .relay-endpoint-card {
  border-color:rgba(42,74,126,.2);
  background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(229,238,253,.82));
  box-shadow:var(--landing-shadow),var(--landing-inset);
}
[data-theme="light"] .endpoint-preview {
  border:1px solid rgba(50,111,215,.12);
  background:linear-gradient(145deg,#fff,#f0f5fd);
  box-shadow:inset 0 1px #fff,0 10px 26px rgba(45,76,126,.08);
}
[data-theme="light"] .endpoint-preview::before { height:2px; background:linear-gradient(90deg,#326fd7,#7ca5ed); box-shadow:0 3px 12px rgba(50,111,215,.24); }
[data-theme="light"] .multimodal-section,
[data-theme="light"] .pricing-section { border-color:rgba(42,74,126,.13); }
[data-theme="light"] .multimodal-card {
  border-color:var(--landing-border);
  box-shadow:0 22px 58px rgba(37,65,111,.1),var(--landing-inset);
}
[data-theme="light"] .multimodal-card.image-family {
  background:radial-gradient(circle at 88% 10%,rgba(62,119,229,.2),transparent 16rem),linear-gradient(145deg,#fff,#eef4ff 92%);
}
[data-theme="light"] .multimodal-card.video-family {
  background:radial-gradient(circle at 88% 10%,rgba(139,92,246,.18),transparent 16rem),linear-gradient(145deg,#fff,#f4efff 92%);
}
[data-theme="light"] .multimodal-card::after { border-color:rgba(50,111,215,.18); box-shadow:0 0 60px rgba(50,111,215,.08); }
[data-theme="light"] .multimodal-card.video-family::after { border-color:rgba(139,92,246,.18); box-shadow:0 0 60px rgba(139,92,246,.08); }
[data-theme="light"] .multimodal-models code { border-color:rgba(42,74,126,.13); background:rgba(255,255,255,.72); box-shadow:0 6px 18px rgba(37,65,111,.06),var(--landing-inset); }
[data-theme="light"] .pricing-meta { border-color:rgba(50,111,215,.2); background:rgba(235,242,255,.8); box-shadow:0 8px 24px rgba(37,65,111,.07),var(--landing-inset); }
[data-theme="light"] .pricing-list {
  overflow:hidden;
  border:1px solid rgba(42,74,126,.16);
  border-radius:16px;
  background:rgba(255,255,255,.74);
  box-shadow:0 20px 58px rgba(37,65,111,.09),var(--landing-inset);
  backdrop-filter:blur(12px);
}
[data-theme="light"] .pricing-list article { border-color:rgba(42,74,126,.1); }
[data-theme="light"] .pricing-list article:hover { background:linear-gradient(90deg,rgba(231,239,254,.82),rgba(255,255,255,.92)); }
[data-theme="light"] .pricing-list .catalog-logo { border-color:rgba(50,111,215,.17); background:linear-gradient(145deg,#f5f8ff,#e2ecff); box-shadow:0 8px 20px rgba(50,111,215,.1),var(--landing-inset); }
[data-theme="light"] .pricing-advantage {
  border-color:rgba(42,74,126,.17);
  background:radial-gradient(circle at 6% 8%,rgba(50,111,215,.16),transparent 34%),radial-gradient(circle at 94% 88%,rgba(139,92,246,.13),transparent 37%),linear-gradient(145deg,#fdfefe,#eef3fb);
  box-shadow:0 30px 84px rgba(37,65,111,.14),var(--landing-inset);
}
[data-theme="light"] .pricing-advantage::before { background:linear-gradient(115deg,transparent 18%,rgba(255,255,255,.72) 46%,transparent 73%); }
[data-theme="light"] .pricing-advantage .hover-detail-card {
  border-color:rgba(42,74,126,.15);
  background:linear-gradient(155deg,rgba(255,255,255,.94),rgba(234,240,250,.82));
  box-shadow:0 18px 44px rgba(37,65,111,.11),var(--landing-inset);
}
[data-theme="light"] .pricing-advantage .hover-detail-card:is(:hover,:focus,:focus-within) { box-shadow:0 28px 64px rgba(37,65,111,.17),0 0 34px var(--card-glow),var(--landing-inset); }
[data-theme="light"] .pricing-advantage .detail-indicator { border-color:rgba(42,74,126,.14); color:#5e6c83; background:rgba(255,255,255,.68); }
[data-theme="light"] .relay-footer { border-color:rgba(42,74,126,.14); }
[data-theme="light"] dialog.promo-dialog {
  border-color:rgba(50,111,215,.25);
  background:radial-gradient(circle at 50% -12%,rgba(84,134,232,.18),transparent 15rem),linear-gradient(155deg,#fff,#f1f5fc);
  box-shadow:0 38px 110px rgba(31,54,92,.28),var(--landing-inset);
}
[data-theme="light"] .promo-benefits article { border-color:rgba(50,111,215,.19); background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(230,239,255,.72)); box-shadow:0 10px 28px rgba(37,65,111,.08),var(--landing-inset); }

@media (max-width:650px) {
  [data-theme="light"] .relay-nav { background:rgba(249,251,255,.82); }
  [data-theme="light"] .relay-endpoint-card,
  [data-theme="light"] .multimodal-card,
  [data-theme="light"] .pricing-list,
  [data-theme="light"] .pricing-advantage { box-shadow:0 18px 46px rgba(37,65,111,.1),var(--landing-inset); }
}

/* Keep the original navigation while giving its background room past the edge button. */
@media (min-width:650px) {
  .relay-nav { width:min(1248px,calc(100% - 16px)); padding-inline:24px; }
}
@media (min-width:650px) and (max-width:1200px) {
  .relay-nav { flex-wrap:wrap; justify-content:flex-start; padding-block:12px; }
  .relay-nav .brand-row { width:100%; }
  .relay-nav .referral-copy { display:inline; }
  .relay-nav .referral-promo { width:auto; justify-content:initial; padding-inline:9px; }
  .relay-nav nav {
    flex:1 1 100%;
    width:100%;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:8px 18px;
    margin-top:10px;
  }
  .relay-nav nav > a { white-space:nowrap; }
  .relay-nav nav .language-switch { margin-left:auto; }
}

/* Mobile account navigation drawer. Keep this after tablet rules so labels stay visible. */
.sidebar-backdrop { display:none; }
@media (max-width:650px) {
  .account-body { overflow-x:hidden; }
  .account-sidebar {
    top:0;
    bottom:0;
    left:0;
    z-index:31;
    width:min(78vw,280px);
    height:100vh;
    height:100dvh;
    padding-top:max(22px,env(safe-area-inset-top));
    padding-bottom:max(22px,env(safe-area-inset-bottom));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    transform:translate3d(-105%,0,0);
  }
  .account-sidebar .brand > span:last-child { font-size:inherit; }
  .account-sidebar nav button,
  .account-sidebar nav button.active,
  .account-sidebar nav button:not(.active) {
    justify-content:flex-start;
    gap:11px;
    min-height:42px;
    font-size:12px;
  }
  .account-sidebar nav button i { flex:0 0 20px; font-size:13px; }
  .sidebar-open .account-sidebar { transform:translate3d(0,0,0); }
  .sidebar-backdrop {
    position:fixed;
    inset:0;
    z-index:30;
    display:block;
    visibility:hidden;
    border:0;
    padding:0;
    opacity:0;
    pointer-events:none;
    background:rgba(0,0,0,.58);
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
    transition:opacity .2s var(--ease),visibility .2s var(--ease);
  }
  .sidebar-open { overflow:hidden; touch-action:none; }
  .sidebar-open .account-sidebar { touch-action:pan-y; }
  .sidebar-open .sidebar-backdrop { visibility:visible; opacity:1; pointer-events:auto; }
  .mobile-menu { min-width:38px; min-height:38px; display:grid; place-items:center; }
}
