/* GenZi AI shared interface system. Semantic tokens work across every surface. */
:root,[data-theme="light"]{--bg:#F7F9FF;--surface:#fff;--surface-2:#edf1f9;--card:#fff;--s2:#edf1f9;--text:#252B3A;--text-dim:#526079;--dim:#526079;--text-faint:#5c6a83;--border:#dbe2ef;--border-strong:#c0cce2;--acc:#4361ee;--accent:#4361ee;--acc-ink:#fff;--acc-soft:#eaf0ff;--green:#16704e;--red:#b4233a;--amber:#855a08;--shadow:0 6px 28px #243b6310;--font:Inter,system-ui,sans-serif;--sidebar-w:248px;--gz-ink:#fff;--gz-elevated:0 16px 50px #172c5212}
[data-theme="dark"]{--bg:#141B38;--surface:#1E2846;--surface-2:#1d2a44;--card:#1E2846;--s2:#1d2a44;--text:#F7F9FF;--text-dim:#b1bfd9;--dim:#b1bfd9;--text-faint:#a2b3d1;--border:#30415f;--border-strong:#536789;--acc:#a8b8ff;--accent:#a8b8ff;--acc-ink:#141b38;--acc-soft:#243458;--green:#8bdbb5;--red:#ffb4c0;--amber:#f1ce85;--shadow:0 6px 28px #0002;--gz-ink:#141b38;--gz-elevated:0 16px 50px #0003}
html{scroll-padding-top:96px;color-scheme:light}html[data-theme="dark"]{color-scheme:dark}
body{font-family:var(--brand-font-body,Inter,system-ui,sans-serif);background:var(--bg);color:var(--text);line-height:1.6}
h1,h2,h3{font-weight:600;font-family:var(--brand-font-heading,Manrope,Inter,sans-serif);text-wrap:balance}
button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}
input,select,textarea{min-height:42px;background:var(--surface);color:var(--text);border-color:var(--border-strong)}
input[type="checkbox"],input[type="radio"]{min-height:initial}
button:disabled{cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--acc);outline-offset:3px}
::selection{background:#4361ee30}pre,code{tab-size:2}pre{max-width:100%;overflow:auto}img{max-width:100%}
.gz-skip{position:fixed;top:-100px;left:16px;z-index:9999;background:var(--acc);color:var(--acc-ink);padding:12px 20px;border-radius:12px}.gz-skip:focus{top:12px}
.gz-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--border);border-radius:14px;margin:16px 0}.gz-table-scroll table{margin:0;width:100%}
.gz-theme{border:1px solid var(--border-strong);border-radius:10px;background:var(--surface);color:var(--text);padding:8px 12px;cursor:pointer;min-height:40px;font-size:13px;white-space:nowrap}
.gz-public-nav{display:flex;align-items:center;gap:24px;max-width:1180px;margin:auto;padding:18px 28px;border-bottom:1px solid var(--border)}
.gz-public-nav .gz-wordmark{font:800 20px Manrope,Inter,sans-serif;letter-spacing:-.7px;margin-right:auto;color:var(--text);text-decoration:none}.gz-wordmark span{color:var(--acc)}
.gz-public-nav a{font-size:14px;color:var(--dim);text-decoration:none}.gz-public-nav a[aria-current="page"]{color:var(--acc);font-weight:650}
.gz-public-nav .gz-nav-cta{padding:9px 16px;background:var(--acc);color:var(--acc-ink);border-radius:10px;font-weight:650}
/* Public pages */
body[data-surface="public"]>.wrap{max-width:1060px;padding:64px 32px 80px}
body[data-surface="public"] h1{font-size:clamp(32px,4.4vw,52px);letter-spacing:-.045em;line-height:1.12;margin-bottom:18px}
body[data-surface="public"] h2{font-size:23px;letter-spacing:-.025em;margin-top:42px}
body[data-surface="public"] .sub,body[data-surface="public"] .lead{font-size:16px;max-width:720px;line-height:1.8}
body[data-surface="public"] header{background:var(--surface);border-color:var(--border);flex-wrap:wrap}
body[data-surface="public"] .card{border:1px solid var(--border);border-radius:20px;background:var(--surface);padding:24px;box-shadow:var(--shadow)}
body[data-surface="public"] table{font-size:13px}body[data-surface="public"] td,body[data-surface="public"] th{padding:14px 16px;border-color:var(--border)}
body[data-surface="public"] th{background:var(--surface-2);color:var(--dim);white-space:nowrap}
body[data-surface="public"] pre{padding:24px;border:1px solid var(--border);border-radius:16px;background:#111b32;color:#e4edff;font-size:13px}
body[data-surface="public"] .note{background:var(--acc-soft);border:1px solid var(--border);color:var(--text);border-radius:14px;padding:18px 22px}
body[data-surface="public"] .cta{background:var(--acc);color:var(--acc-ink);border-radius:12px;padding:12px 20px}
/* Homepage */
body[data-surface="landing"] .nav{background:var(--surface);border-bottom:1px solid var(--border)}
body[data-surface="landing"] .nav-inner{height:80px}body[data-surface="landing"] .nav-brand img{filter:none}
body[data-surface="landing"] .topline{color:var(--dim);letter-spacing:.08em}
body[data-surface="landing"] .hero{padding:92px 0 88px;gap:64px;border:0}
body[data-surface="landing"] .hero h1{font-size:clamp(40px,5.3vw,68px);line-height:1.07;letter-spacing:-.055em}
body[data-surface="landing"] .hero h1 .grad{color:var(--acc)}
body[data-surface="landing"] .hero-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border);border-radius:100px;background:var(--surface);color:var(--acc)}
body[data-surface="landing"] .hero p#heroDesc{font-size:17px;line-height:1.8}
body[data-surface="landing"] .receipt{border-color:var(--border);box-shadow:var(--gz-elevated);overflow:hidden;transform:none}
body[data-surface="landing"] .receipt-head{padding:18px 22px;color:var(--dim)}
body[data-surface="landing"] .receipt-code{font-size:12px;padding:24px;background:#111b32;color:#e4edff}
body[data-surface="landing"] .receipt-cell{padding:18px 20px}body[data-surface="landing"] .receipt-cell b{font-size:15px;color:var(--text)}
body[data-surface="landing"] .receipt-note{padding:16px 20px;font-size:11px}
body[data-surface="landing"] .strip{gap:20px;border:0}body[data-surface="landing"] .strip article,body[data-surface="landing"] .strip article+article{padding:26px;background:var(--surface);border:1px solid var(--border);border-radius:20px}
body[data-surface="landing"] .strip article b{font-size:16px}body[data-surface="landing"] .section{padding:80px 0;border-color:var(--border)}
body[data-surface="landing"] .section-label{color:var(--acc)}body[data-surface="landing"] .model-table{border-color:var(--border)}
body[data-surface="landing"] .tiers{border:0;gap:20px;background:transparent}body[data-surface="landing"] .tier{padding:28px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}
body[data-surface="landing"] .tier:nth-child(2){border:2px solid var(--acc);box-shadow:var(--shadow)}
body[data-surface="landing"] .integration{border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}
body[data-surface="landing"] .faq-item{background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-bottom:10px;padding:0 18px}
body[data-surface="landing"] .closing{margin:40px 0;padding:44px;background:var(--acc-soft);border:1px solid var(--border);border-radius:24px}
/* Workspace and operations share a stable application shell. */
body[data-surface="console"] .sidebar,body[data-surface="admin"] .sidebar{width:248px;background:var(--surface);padding:8px}
body[data-surface="console"] .main,body[data-surface="admin"] .main{margin-left:248px;min-width:0}
.sidebar-head,.sidebar-brand{min-height:74px;padding:16px!important;border-bottom:0!important}
.sidebar .brand-icon{background:var(--acc);color:var(--acc-ink);width:34px;height:34px;border-radius:11px}
.sidebar .nav-item,.sidebar-nav a{min-height:42px;gap:11px;padding:11px 14px;margin:3px 0;border-radius:11px;line-height:1.4;color:var(--dim);text-decoration:none}
.sidebar .nav-item.active,.sidebar-nav a.active{background:var(--acc-soft);color:var(--acc);font-weight:650;box-shadow:inset 3px 0 var(--acc)}
.sidebar .group-label,.workspace-label{letter-spacing:.11em;font-size:10px;margin-top:8px}
.sidebar-note{border-radius:16px;background:var(--bg);border:1px solid var(--border);padding:18px}
.topbar{min-height:72px;height:auto;padding:16px 32px;background:var(--surface);border-color:var(--border)}
body[data-surface="console"] .content,body[data-surface="admin"] .content{padding:32px;max-width:1640px;width:100%;margin:0 auto}
.page-heading h1{font-size:clamp(27px,3vw,38px);letter-spacing:-.045em;line-height:1.18}.page-heading p{max-width:640px;font-size:14px;line-height:1.7}
.page-heading{margin-bottom:28px}.eyebrow{color:var(--acc);font-size:10px;letter-spacing:.14em}
.panel,.stat-card,.metric-card,.model-card{border:1px solid var(--border);box-shadow:var(--shadow);border-radius:20px;background:var(--surface)}
/* GZ-CREDITCARD-BG: keep gradient (white text needs blue bg) */
.overview{gap:18px}.overview>div{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:24px;box-shadow:var(--shadow)}
.overview>div>strong{font-size:32px;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.overview>div>small{color:var(--dim)}
.panel-title{font-size:17px;font-weight:700}.panel{padding:24px}.table-wrap{border-radius:14px}table th{background:var(--surface-2);color:var(--dim);font-size:11px;letter-spacing:.035em}table th,table td{padding:14px 16px;border-color:var(--border)}table tbody tr:hover{background:var(--surface-2)}
body[data-surface="console"] button:not(.ghost):not(.secondary):not(.danger):not(.text-button):not(.danger-text):not(.brand):not(.btn-google):not(.nav-item),.btn-primary{color:var(--acc-ink)}
button,.btn{min-height:38px}.btn-primary,button.primary{background:var(--acc);color:var(--acc-ink)}
.auth-wrap{min-height:70vh;display:grid;place-items:center}.auth-card{width:100%;max-width:460px;padding:36px;border:1px solid var(--border);border-radius:24px;box-shadow:var(--gz-elevated);background:var(--surface)}
.auth-title{font-size:28px;margin:24px 0 8px;letter-spacing:-.04em}.auth-intro{color:var(--dim);margin-bottom:24px;font-size:14px}.auth-card label{font-weight:600;font-size:12px;color:var(--dim)}
.auth-card input{min-height:46px}.auth-tabs{border-radius:12px;background:var(--surface-2);padding:4px;margin-bottom:24px}.auth-tabs button{color:var(--dim)!important}.auth-tabs button.active{background:var(--surface);color:var(--acc)!important;box-shadow:var(--shadow)}
.modal{border:1px solid var(--border);border-radius:22px;box-shadow:var(--gz-elevated);max-height:90dvh;overflow:auto}.modal-bg{backdrop-filter:blur(5px)}
.empty{padding:48px 24px;color:var(--dim)}.empty h3{color:var(--text)}.error-banner{border-radius:12px;line-height:1.6}.toast{box-shadow:var(--gz-elevated)}
@media(min-width:1000px){body[data-surface="console"]:has(#authView:not([style*="none"])) .auth-wrap{max-width:1040px;margin:auto}body[data-surface="console"]:has(#authView:not([style*="none"])) .auth-card{max-width:480px}}
@media(max-width:900px){body[data-surface="console"] .main,body[data-surface="admin"] .main{margin-left:0}body[data-surface="console"] .sidebar,body[data-surface="admin"] .sidebar{transform:translateX(-100%)}body[data-surface="console"] .sidebar.open,body[data-surface="admin"] .sidebar.open{transform:translateX(0)}.hamburger,.menu-toggle{display:inline-flex!important}.topbar{padding:14px 20px}.gz-public-nav{gap:16px;flex-wrap:wrap}}
@media(max-width:600px){body[data-surface="console"] .content,body[data-surface="admin"] .content{padding:22px 16px}.topbar{gap:10px;padding:12px 16px}.topbarTitle{font-size:14px}.panel{padding:18px}.page-heading{align-items:flex-start;gap:16px}.overview{grid-template-columns:1fr}.auth-card{padding:24px}.auth-wrap{min-height:60vh}.gz-public-nav{padding:16px;gap:14px}.gz-public-nav .gz-wordmark{width:100%;margin-right:0}.gz-public-nav a{font-size:13px}.gz-public-nav .gz-nav-cta{margin-left:auto}.gz-theme{padding:7px 10px}body[data-surface="public"]>.wrap{padding:36px 16px 60px}body[data-surface="public"] header{padding:16px}body[data-surface="public"] header nav{gap:12px;flex-wrap:wrap;margin-left:0}body[data-surface="public"] pre{padding:16px;font-size:12px}.wrap{min-width:0}body[data-surface="landing"] .hero{padding:48px 0;gap:32px}body[data-surface="landing"] .hero h1{font-size:40px}body[data-surface="landing"] .receipt{transform:none}body[data-surface="landing"] .closing{padding:24px}.nav-actions{gap:5px}.nav-actions .btn{padding:8px 10px}.receipt-code{font-size:11px!important}.modal{width:calc(100vw - 24px);padding:20px}.footer{flex-wrap:wrap;gap:10px}}

.btn-primary,button.primary,.hero-cta .btn,.auth-card #authSubmit{min-height:48px;border-radius:12px}.brand-icon:has(img){background:transparent!important;padding:4px}.brand-icon img{width:26px;height:26px;object-fit:contain}.nav-item{width:100%;justify-content:flex-start}.sidebar .nav-item{color:var(--dim)!important}.sidebar .nav-item.active{color:var(--acc)!important}
/* GZ-UI-CONTRAST: utility buttons inherit console CTA ink (acc-ink, white) from line 70 -> invisible on white surface. Restore text ink. */
body[data-surface="console"] #noteBtn,body[data-surface="console"] #langBtn,body[data-surface="console"] #themeBtn,body[data-surface="console"] #logoutBtn{background:var(--surface);color:var(--text);border-color:var(--border-strong)}
body[data-surface="console"] #noteBtn:hover,body[data-surface="console"] #langBtn:hover,body[data-surface="console"] #themeBtn:hover,body[data-surface="console"] #logoutBtn:hover{color:var(--acc);border-color:var(--acc)}
/* GZ-OVERVIEW-AA: pale state chips need darker foreground on light console surfaces. */
[data-theme="light"] .sidebar .nav-item.active,[data-theme="light"] .sidebar .nav-item.active span{color:#3854c8!important}
[data-theme="light"] .pill.ok,[data-theme="light"] .status.success,[data-theme="light"] .badge.active,[data-theme="light"] .badge.success,[data-theme="light"] .badge.confirmed,[data-theme="light"] .badge.operational{color:#11633f}

/* Brand Book 1.2 p19/22 and Ecosystem 1.2 p30: original 3D artwork stays
   intact on its white artboard; operational UI remains flat and opaque. */
body[data-surface="landing"] .wrap,body[data-surface="landing"] .nav-inner{max-width:1200px}
.brand-hero-art{margin:0;min-width:0;border-radius:24px;border:1px solid var(--border);background:#fff;overflow:hidden;box-shadow:var(--gz-elevated)}
.brand-hero-art img{width:100%;height:auto;display:block;aspect-ratio:1;object-fit:contain}
.brand-hero-art figcaption{display:flex;align-items:center;justify-content:center;gap:12px;padding:18px 16px;border-top:1px solid #D3D9E5;color:#505B70;font:500 10px/1.5 Inter,sans-serif;letter-spacing:.04em;background:#F7F9FF}.brand-hero-art figcaption strong{color:#4361EE;font-size:12px}
.gz-wordmark img{vertical-align:middle;margin-right:4px}
@media(max-width:600px){body[data-surface="landing"] .wrap,body[data-surface="landing"] .nav-inner{padding-left:20px;padding-right:20px}.brand-hero-art{width:100%;max-width:440px;margin:auto}.brand-hero-art figcaption{gap:8px;font-size:9px}}

/* Keep wide data tables scrollable without clipping columns on narrow screens. */
body .table-wrap{overflow-x:auto;max-width:100%}
body[data-surface="landing"] .hero h1,body h1,body h2,body h3{font-family:Manrope,Inter,sans-serif;font-weight:600}
.avatar{color:var(--acc-ink)}
.tier p{color:var(--dim);line-height:1.7;margin:18px 0 24px}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* GZ-UI-CONTRAST-2: generic console buttons (chips, tabs, amount presets, retry) inherit white acc-ink from line 70 -> invisible on surface-2/white. Use text ink; keep active/primary states. */
body[data-surface="console"] button:not(.ghost):not(.secondary):not(.danger):not(.text-button):not(.danger-text):not(.brand):not(.btn-google):not(.nav-item):not(.btn-primary):not(.primary):not(.active):not(.selected):not([class*="primary"]){color:var(--text)}
body[data-surface="console"] .pg-chip,body[data-surface="console"] .pg-model-chip,body[data-surface="console"] #pgModelChip,body[data-surface="console"] #pgModelChip b{color:var(--text)!important}
body[data-surface="console"] button.active,body[data-surface="console"] button.selected{color:var(--acc-ink)}
[data-theme="light"] .sidebar .group-label,[data-theme="light"] .group-label{color:#4a5873!important;opacity:1}
[data-theme="light"] code,[data-theme="light"] .endpoint code{color:#3854c8}
/* GZ-UI-CONTRAST-3: CTA foreground must follow theme; generic console rule must not force acc-ink. */
[data-theme="light"] body[data-surface="console"] button.full,[data-theme="light"] body[data-surface="console"] button.primary,[data-theme="light"] body[data-surface="console"] .page-heading>button,[data-theme="light"] body[data-surface="console"] .key-actions button{color:#fff!important}
[data-theme="dark"] body[data-surface="console"] button.full,[data-theme="dark"] body[data-surface="console"] button.primary,[data-theme="dark"] body[data-surface="console"] .page-heading>button,[data-theme="dark"] body[data-surface="console"] .key-actions button{color:#141b38!important}
[data-theme="light"] body[data-surface="console"] #sideBalance{color:#3854c8!important}
[data-theme="light"] body[data-surface="console"] del{color:#526079!important}
[data-theme="dark"] body[data-surface="console"] del{color:#b1bfd9!important}
[data-theme="light"] body[data-surface="console"] .steps>div>span{color:#3854c8!important}

/* GZ-UI-CONTRAST-4: remaining CTA/balance on accent + light tint. */
html[data-theme="light"] body[data-surface="console"] #topupBtn,html[data-theme="light"] body[data-surface="console"] #supSend,html[data-theme="light"] body[data-surface="console"] .page-heading>button[data-gz-click="go('billing')"]{color:#fff!important}
html[data-theme="dark"] body[data-surface="console"] #topupBtn,html[data-theme="dark"] body[data-surface="console"] #supSend,html[data-theme="dark"] body[data-surface="console"] .page-heading>button[data-gz-click="go('billing')"]{color:#0b1020!important}
html[data-theme="light"] body[data-surface="console"] #sideBalance{color:#2c46c4!important}

/* GZ-UI-CONTRAST-5: remaining axe flags (struck prices, dark secondary/danger, Google CTA). */
body[data-surface="console"] .model-pricing strong del{opacity:1!important}
html[data-theme="light"] body[data-surface="console"] .model-pricing strong del{color:#526079!important}
html[data-theme="dark"] body[data-surface="console"] .model-pricing strong del{color:#b1bfd9!important}
html[data-theme="dark"] body[data-surface="console"] button.secondary,html[data-theme="dark"] body[data-surface="console"] .danger-text{color:#f7f9ff!important}
html[data-theme="dark"] body[data-surface="console"] .btn-google{color:#fff!important}

/* GZ-UI-CONTRAST-6: final visible text fixes found by axe. */
html[data-theme="light"] body[data-surface="console"] .model-pricing span[style*="color:#10b981"]{color:#11633f!important;opacity:1!important}
html[data-theme="dark"] body[data-surface="console"] .bottom-strip>button[data-gz-click="go('docs')"]{color:#0b1020!important}
html[data-theme="dark"] body[data-surface="console"] button[data-gz-click="doRedeem()"]{color:#f7f9ff!important}
html[data-theme="dark"] body[data-surface="console"] button[data-gz-click="doRedeem()"]{color:#f7f9ff!important}
/* GZ-UI-CONTRAST-7: Quickstart button visible on light accent. */
html[data-theme="light"] body[data-surface="console"] .bottom-strip>button[data-gz-click="go('docs')"]{color:#fff!important}

/* GZ-MODELS-TABLE: catalog jadi tabel (row klik -> dialog) */
.models-table{width:100%;border-collapse:collapse}
.models-table th{text-align:left;position:sticky;top:0;z-index:1}
.models-table th.num,.models-table td.num{text-align:right}
.models-table td{font-size:13px;vertical-align:middle}
.model-row{cursor:pointer}
.model-row:focus-visible{outline:2px solid var(--acc);outline-offset:-2px}
.model-row:hover{background:var(--surface-2)}
.models-table .m-name{display:flex;align-items:center;gap:10px;font-weight:600;white-space:nowrap}
.models-table .m-provider{color:var(--dim);white-space:nowrap}
.models-table .m-ctx{color:var(--dim);white-space:nowrap}
.models-table .model-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;font-size:12px;font-weight:700;flex:none}
.models-table .m-price{white-space:nowrap;font-variant-numeric:tabular-nums}
.models-table .m-price del{color:var(--dim);margin-left:6px}
.models-table .offpeak{display:block;font-size:10.5px;color:#08673f;margin-top:2px}
[data-theme="dark"] .models-table .offpeak{color:#34d399}
@media (max-width:900px){
  .models-table .m-provider,.models-table .m-ctx{display:none}
  .models-table th:nth-child(2),.models-table th:nth-child(4){display:none}
}
