/* FeekzStore design system */
:root {
    --ink: #111315;
    --ink-soft: #1b1e21;
    --ink-muted: #5f625f;
    --paper: #f6f4ef;
    --paper-strong: #fffdf9;
    --paper-muted: #ebe8e0;
    --line: #ddd9cf;
    --line-strong: #c7c2b6;
    --accent: #e5402c;
    --accent-dark: #bf2c1d;
    --accent-soft: #f9e3de;
    --success: #2b6b4d;
    --success-soft: #e3efe8;
    --warning: #8a5c09;
    --warning-soft: #f7edd5;
    --danger: #a52a20;
    --danger-soft: #f8dfdb;
    --radius-xs: 4px;
    --radius-sm: 7px;
    --radius: 11px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(17, 19, 21, .05);
    --shadow: 0 20px 55px rgba(17, 19, 21, .08);
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sidebar: 260px;
    --header: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection { color: #fff; background: var(--accent); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.03em; line-height: 1.12; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-muted); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 14px;
    background: var(--ink); color: #fff; border-radius: var(--radius-sm);
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.eyebrow {
    display: flex; align-items: center; gap: 9px; margin: 0 0 14px;
    color: var(--accent); font-size: 11px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 1px; content: ""; background: currentColor; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 10px 17px; border: 1px solid transparent;
    border-radius: var(--radius-sm); background: var(--ink); color: #fff;
    font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: #2a2e31; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { background: var(--paper-muted); }
.btn-ghost { background: transparent; color: var(--ink-muted); }
.btn-ghost:hover { background: var(--paper-muted); color: var(--ink); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #842118; }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-dark-outline { background: transparent; border-color: #46494c; color: #f8f5ef; }
.btn-dark-outline:hover { background: #232629; }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px;
    border-radius: 999px; background: var(--paper-muted); color: var(--ink-muted);
    font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 1.5;
    text-transform: uppercase; white-space: nowrap;
}
.badge::before { width: 5px; height: 5px; border-radius: 50%; content: ""; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge-neutral::before { display: none; }

.alert {
    display: flex; gap: 12px; align-items: flex-start; margin: 18px 0;
    padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--ink);
    border-radius: var(--radius-sm); background: var(--paper-strong); font-size: 14px;
}
.alert strong { display: block; margin-bottom: 2px; }
.alert-success { border-left-color: var(--success); background: var(--success-soft); }
.alert-warning { border-left-color: var(--warning); background: var(--warning-soft); }
.alert-danger { border-left-color: var(--danger); background: var(--danger-soft); }
.alert-accent { border-left-color: var(--accent); background: var(--accent-soft); }
.alert-secret { border: 1px solid #e9a98f; border-left: 3px solid var(--accent); background: #fff4ef; }
.alert-secret code { display: block; margin-top: 8px; padding: 10px; background: #fff; border: 1px solid #edd2c8; border-radius: 5px; font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.alert .icon-box { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.06); }
.alert .icon-box svg { width: 15px; height: 15px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.02em; }
.brand-mark {
    display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto;
    border-radius: 8px; background: var(--accent); color: #fff;
    font-size: 17px; font-weight: 900; letter-spacing: -.06em; line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.brand-mark img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.brand-name { font-size: 16px; }
.brand-on-dark { color: #f8f5ef; }
.brand-on-dark .brand-name { color: #f8f5ef; }
.brand-sub { color: var(--ink-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Marketing */
body.marketing { background: #0c0d0f; color: #f4f1ea; }
body.marketing .muted { color: #a5a39d; }
.marketing-header {
    position: sticky; z-index: 40; top: 0; border-bottom: 1px solid #26282b;
    background: rgba(12, 13, 15, .96);
}
.marketing-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 26px; }
.marketing-nav { display: flex; align-items: center; gap: 28px; color: #b5b2aa; font-size: 13.5px; font-weight: 600; }
.marketing-nav a:hover { color: #fff; }
.marketing-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
    display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 1px solid #36393d; border-radius: var(--radius-sm); background: transparent; color: #fff;
}
.hero { padding: clamp(68px, 10vw, 120px) 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr); gap: clamp(44px, 7vw, 100px); align-items: center; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: #c0bdb5; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(229,64,44,.16); }
.hero h1 { max-width: 820px; margin: 0 0 26px; font-size: clamp(48px, 7.5vw, 100px); font-weight: 780; letter-spacing: -.065em; line-height: .94; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 620px; margin: 0; color: #aba8a0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 46px; padding-top: 22px; border-top: 1px solid #282a2d; color: #8f8c85; font-size: 12px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--accent); }

.terminal {
    border: 1px solid #303337; border-radius: var(--radius-lg);
    background: #141619; box-shadow: 0 30px 80px rgba(0,0,0,.32); overflow: hidden;
}
.terminal-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid #2b2e32; color: #817f79; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3f4246; }
.terminal-dots i:first-child { background: var(--accent); }
.terminal-body { padding: 22px 20px; font-family: var(--font-mono); font-size: 12px; line-height: 1.9; color: #b7b4ad; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd { color: #f4f1ea; }
.terminal-body .comment { color: #6f726f; }
.terminal-response { margin: 0 20px 20px; padding: 15px; border: 1px solid #2c3033; border-radius: 8px; background: #0f1113; color: #9fb7a7; font-family: var(--font-mono); font-size: 11px; line-height: 1.8; overflow: auto; }
.terminal-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 17px; border-top: 1px solid #2b2e32; color: #797b78; font-size: 10.5px; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #4da576; }

.landing-band { background: var(--paper); color: var(--ink); }
.landing-band .eyebrow { color: var(--accent); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-head h2 { max-width: 580px; margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 780; }
.section-head p { max-width: 390px; margin: 0; color: var(--ink-muted); }
.feature-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); }
.feature-card { display: flex; flex-direction: column; min-height: 250px; padding: 28px; background: var(--paper-strong); }
.feature-card:first-child { background: var(--ink); color: #f7f4ed; }
.feature-card:first-child p { color: #aba8a0; }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 38px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--accent); }
.feature-card:first-child .feature-icon { border-color: #3a3d40; }
.feature-card h3 { margin-bottom: 12px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.65; }
.feature-index { margin-top: auto; padding-top: 25px; color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; }
.feature-card:first-child .feature-index { color: #797b78; }

.steps-section { padding: 78px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }
.step { padding-top: 20px; border-top: 2px solid var(--ink); }
.step span { color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.step h3 { margin: 14px 0 9px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-muted); font-size: 14px; }

.cta-band { padding: 72px 0 88px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(30px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--accent); color: #fff; }
.cta-panel h2 { max-width: 650px; margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.05em; }
.cta-panel p { max-width: 520px; margin: 13px 0 0; color: #ffd8d0; }
.cta-panel .btn { flex: 0 0 auto; background: #fff; color: var(--ink); }
.cta-panel .btn:hover { background: #f1e9e2; }
.marketing-footer { border-top: 1px solid #292b2e; padding: 26px 0 38px; color: #85827b; font-size: 12px; }
.marketing-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.marketing-footer nav { display: flex; gap: 20px; }
.marketing-footer a:hover { color: #fff; }

/* Auth */
body.auth { min-height: 100vh; background: var(--paper); }
.auth-shell { display: grid; grid-template-columns: minmax(420px, .95fr) minmax(420px, 1.05fr); min-height: 100vh; }
.auth-aside {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    min-height: 100vh; padding: clamp(30px, 5vw, 58px); overflow: hidden;
    background: #0f1113; color: #f5f2eb;
}
.auth-aside::after {
    position: absolute; right: -120px; bottom: -170px; width: 430px; height: 430px;
    border: 1px solid #33363a; border-radius: 50%; content: "";
    box-shadow: 0 0 0 42px #16181b, 0 0 0 84px #121416;
}
.auth-aside .brand { position: relative; z-index: 2; }
.auth-aside-content { position: relative; z-index: 1; max-width: 600px; margin-top: auto; margin-bottom: auto; padding: 64px 0; }
.auth-aside h1 { margin: 22px 0; font-size: clamp(42px, 5.5vw, 76px); font-weight: 780; letter-spacing: -.065em; line-height: .96; }
.auth-aside h1 em { color: var(--accent); font-style: normal; }
.auth-aside p { max-width: 470px; margin: 0; color: #aaa79f; font-size: 16px; }
.auth-points { display: grid; gap: 12px; margin-top: 38px; padding: 0; list-style: none; color: #cbc7be; font-size: 13px; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points svg { width: 15px; height: 15px; color: var(--accent); }
.auth-aside-foot { position: relative; z-index: 1; color: #737670; font-size: 11px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(430px, 100%); }
.auth-card-header { margin-bottom: 34px; }
.auth-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.auth-header-row .brand { margin-bottom: 0; }
.auth-card-header .brand { margin-bottom: 38px; }
.auth-card h2 { margin: 0 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.045em; }
.auth-card .sub { margin: 0; color: var(--ink-muted); font-size: 14px; }
.auth-form { display: grid; gap: 18px; margin-top: 30px; }
.field { display: grid; gap: 7px; }
.field > label, .field-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #33352f; font-size: 12.5px; font-weight: 700; }
.field input, .field select, .field textarea, .input {
    width: 100%; min-height: 44px; padding: 10px 12px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--paper-strong); color: var(--ink); font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: #a29e94; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
    border-color: var(--ink); outline: 0; box-shadow: 0 0 0 3px rgba(17,19,21,.08);
}
.field .hint { color: var(--ink-muted); font-size: 11.5px; line-height: 1.5; }
.field .error { color: var(--danger); font-size: 11.5px; font-weight: 600; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: -2px; }
.auth-row a, .text-link { color: var(--accent-dark); font-size: 12.5px; font-weight: 700; }
.auth-row a:hover, .text-link:hover { text-decoration: underline; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 12.5px; }
.check input { width: 15px; height: 15px; accent-color: var(--accent); }
.auth-submit { min-height: 47px; margin-top: 2px; }
.auth-footer { margin-top: 26px; color: var(--ink-muted); font-size: 13px; text-align: center; }
.auth-footer a { color: var(--ink); font-weight: 700; }
.auth-footer a:hover { color: var(--accent-dark); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: #a09c92; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.auth-note { margin: 0; color: var(--ink-muted); font-size: 11.5px; line-height: 1.6; text-align: center; }
.auth-note code { padding: 2px 5px; border-radius: 3px; background: var(--paper-muted); font-family: var(--font-mono); font-size: 10.5px; }
.auth-success { padding: 17px; border: 1px solid #b8d2c2; border-radius: var(--radius-sm); background: var(--success-soft); color: #234d39; font-size: 13px; }

/* Dashboard */
body.dashboard { background: #f3f2ee; }
.dashboard-shell { min-height: 100vh; }
.sidebar {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 0;
    display: flex; flex-direction: column; width: var(--sidebar);
    padding: 24px 16px 16px; background: #101214; color: #e9e6df;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 28px; }
.sidebar-head .brand-mark { width: 29px; height: 29px; }
.sidebar-close { display: none; padding: 5px; border: 0; background: none; color: #8e918d; }
.sidebar-scope { display: flex; align-items: center; gap: 10px; margin: 0 4px 24px; padding: 10px 11px; border: 1px solid #2b2e31; border-radius: 8px; background: #17191c; }
.sidebar-scope-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #292c30; color: #e5e2db; font-size: 11px; font-weight: 800; }
.sidebar-scope strong { display: block; color: #efebe4; font-size: 12px; line-height: 1.3; }
.sidebar-scope span { display: block; color: #7d807c; font-size: 10.5px; }
.sidebar-scope svg { width: 13px; height: 13px; margin-left: auto; color: #6e716e; }
.sidebar-label { margin: 0 10px 8px; color: #6e716e; font-size: 9.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-label:not(:first-of-type) { margin-top: 25px; }
.sidebar-nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 10px; border-radius: 7px; color: #969994; font-size: 13px; font-weight: 600; transition: background .15s, color .15s; }
.nav-item svg { width: 16px; height: 16px; color: #70736f; }
.nav-item:hover { background: #1b1e21; color: #f2eee7; }
.nav-item.is-active { background: #26292c; color: #fff; }
.nav-item.is-active svg { color: var(--accent); }
.nav-item .nav-count { margin-left: auto; padding: 1px 6px; border-radius: 4px; background: #30343a; color: #a7aaa6; font-size: 10px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid #272a2d; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; background: #34383c; color: #f3efe7; font-size: 11px; font-weight: 800; }
.sidebar-user strong { display: block; max-width: 130px; overflow: hidden; color: #e8e4dc; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { display: block; max-width: 130px; overflow: hidden; color: #747773; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-logout { display: inline-flex; align-items: center; gap: 9px; width: 100%; margin-top: 9px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #8d908b; font-size: 12px; text-align: left; }
.sidebar-logout:hover { background: #211316; color: #f1b9b1; }
.sidebar-logout svg { width: 15px; height: 15px; }
.sidebar-scrim { display: none; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
    position: sticky; z-index: 30; top: 0; display: flex; align-items: center;
    justify-content: space-between; min-height: var(--header); gap: 16px;
    padding: 0 clamp(20px, 4vw, 42px); border-bottom: 1px solid #dfdcd4;
    background: rgba(243, 242, 238, .92); backdrop-filter: blur(10px);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mobile-menu { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #8b887e; font-size: 11.5px; }
.breadcrumb span { color: var(--ink); font-weight: 700; }
.breadcrumb svg { width: 12px; height: 12px; color: #b4b0a5; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: var(--ink-muted); font-size: 11.5px; font-weight: 700; }
.topbar-link:hover { color: var(--ink); }
.topbar-link svg { width: 15px; height: 15px; }
.topbar-sep { width: 1px; height: 19px; background: var(--line); }
.topbar-user { display: flex; align-items: center; gap: 8px; }
.topbar-user .avatar { width: 29px; height: 29px; background: var(--ink); font-size: 10px; }
.topbar-user span { font-size: 11.5px; font-weight: 700; }
.page { width: min(1290px, 100%); margin: 0 auto; padding: 36px clamp(20px, 4vw, 42px) 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 27px; }
.page-head h1 { margin: 0 0 7px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.045em; }
.page-head p { max-width: 670px; margin: 0; color: var(--ink-muted); font-size: 13.5px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.page-kicker { margin-bottom: 9px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 23px; }
.stat { position: relative; min-height: 128px; padding: 18px 19px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); box-shadow: var(--shadow-sm); }
.stat::after { position: absolute; top: 0; right: 0; width: 52px; height: 2px; content: ""; background: var(--line); }
.stat:first-child::after { width: 100%; background: var(--accent); }
.stat-label { display: flex; align-items: center; gap: 7px; color: #78756c; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stat-label svg { width: 13px; height: 13px; color: #a7a399; }
.stat-value { margin: 16px 0 5px; font-size: clamp(24px, 2.4vw, 31px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stat-value em { color: var(--accent); font-style: normal; }
.stat-note { color: #969187; font-size: 10.5px; }
.stat-note strong { color: var(--success); font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 62px; padding: 15px 19px; border-bottom: 1px solid #e9e5dc; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.025em; }
.panel-head p { margin: 3px 0 0; color: var(--ink-muted); font-size: 11.5px; }
.panel-body { padding: 19px; }
.panel-body.panel-flush { padding: 0; }
.panel-foot { padding: 12px 19px; border-top: 1px solid #e9e5dc; background: #fbfaf6; }
.panel-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-dark); font-size: 11.5px; font-weight: 750; }
.panel-link svg { width: 13px; height: 13px; }
.panel + .panel { margin-top: 15px; }
.panel-section + .panel-section { margin-top: 15px; }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 19px; border-bottom: 1px solid #ece8df; text-align: left; vertical-align: middle; }
.table th { color: #8c887e; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.table td { color: #454740; font-size: 12.5px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbf7; }
.table .strong { color: var(--ink); font-weight: 700; }
.table .mono { color: #555851; font-size: 11.5px; }
.table .amount { color: var(--ink); font-weight: 750; white-space: nowrap; }
.table .align-right { text-align: right; }
.table .row-action { color: var(--accent-dark); font-size: 11.5px; font-weight: 750; }
.table .row-action:hover { text-decoration: underline; }
.empty-state { padding: 40px 22px; color: var(--ink-muted); text-align: center; }
.empty-state svg { width: 28px; height: 28px; margin: 0 auto 12px; color: #bcb7ab; }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; }
.empty-state p { margin: 0; font-size: 12px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #ece8df; }
.list-row:last-child { border-bottom: 0; }
.list-row .title { display: block; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.list-row .meta { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 11px; }
.list-row .right { flex: 0 0 auto; text-align: right; }
.list-row .right strong { display: block; font-size: 12.5px; }
.list-row .right small { color: var(--ink-muted); font-size: 10px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 19px; border-top: 1px solid #e9e5dc; color: var(--ink-muted); font-size: 11.5px; }
.pagination-links { display: flex; align-items: center; gap: 6px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-strong); color: var(--ink-muted); font-size: 11px; font-weight: 700; }
.page-link:hover { border-color: var(--line-strong); color: var(--ink); }
.page-link.is-disabled { opacity: .4; pointer-events: none; }
.page-link svg { width: 13px; height: 13px; }

.credential { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); }
.credential + .credential { margin-top: 10px; }
.credential-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.credential-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.credential-title h3 { margin: 0; font-size: 13.5px; }
.credential-key { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; color: #787b75; font-family: var(--font-mono); font-size: 11px; }
.credential-key code { color: #52564f; }
.copy-icon { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #817e76; }
.copy-icon:hover { color: var(--ink); }
.copy-icon svg { width: 12px; height: 12px; }
.credential-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.credential-details { margin-top: 13px; border-top: 1px solid #ece8df; }
.credential-details summary { display: flex; align-items: center; gap: 6px; padding-top: 12px; color: var(--accent-dark); cursor: pointer; font-size: 11.5px; font-weight: 700; list-style: none; }
.credential-details summary::-webkit-details-marker { display: none; }
.credential-details summary::before { content: "+"; font-family: var(--font-mono); font-size: 14px; }
.credential-details[open] summary::before { content: "−"; }
.credential-form { display: grid; gap: 10px; margin-top: 13px; }
.credential-form textarea { min-height: 72px; }
.credential-form .btn { justify-self: start; }
.inline-form { display: flex; align-items: flex-end; gap: 9px; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.form-note { color: var(--ink-muted); font-size: 11.5px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-option { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fcfbf7; color: #555850; font-size: 11.5px; }
.check-option input { width: 14px; height: 14px; accent-color: var(--accent); }
.switch-row { display: flex; align-items: center; gap: 9px; color: #4f524b; font-size: 12px; font-weight: 600; }
.switch-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.info-list { display: grid; gap: 0; margin: 0; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #ece8df; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--ink-muted); font-size: 12px; }
.info-row dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; }
.summary-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid #ecd1c7; border-radius: var(--radius); background: #fff4ef; }
.summary-strip strong { display: block; font-size: 13px; }
.summary-strip p { margin: 3px 0 0; color: var(--ink-muted); font-size: 11.5px; }

/* Docs */
body.docs { background: #f7f5f0; color: var(--ink); }
.docs-header {
    position: sticky; z-index: 70; top: 0; height: var(--header);
    border-bottom: 1px solid #dfdbd1; background: rgba(255, 253, 249, .97);
    backdrop-filter: blur(10px);
}
.docs-header-inner { display: flex; align-items: center; gap: 17px; width: 100%; height: 100%; padding: 0 22px; }
.docs-menu { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.docs-header .brand { flex: 0 0 auto; }
.docs-header .brand-mark { width: 28px; height: 28px; border-radius: 6px; font-size: 15px; }
.docs-header .brand-name { font-size: 14px; }
.header-divider { width: 1px; height: 23px; background: var(--line); }
.header-title { color: #686a63; font-size: 12px; font-weight: 650; white-space: nowrap; }
.docs-search { position: relative; flex: 1; max-width: 430px; margin-left: auto; }
.docs-search svg { position: absolute; top: 50%; left: 11px; width: 15px; height: 15px; color: #99958b; transform: translateY(-50%); pointer-events: none; }
.docs-search input { width: 100%; height: 35px; padding: 7px 42px 7px 34px; border: 1px solid #d9d4c9; border-radius: 6px; background: #fffdf9; color: var(--ink); font-size: 12px; transition: border-color .15s, box-shadow .15s; }
.docs-search input:focus { border-color: #a8a399; outline: 0; box-shadow: 0 0 0 3px rgba(17,19,21,.06); }
.docs-search kbd { position: absolute; top: 50%; right: 8px; padding: 2px 5px; border: 1px solid #ddd8cd; border-radius: 3px; background: #f6f3ec; color: #99958b; font-family: var(--font-mono); font-size: 9px; transform: translateY(-50%); }
.docs-header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.docs-header-actions .btn { min-height: 32px; padding: 6px 11px; font-size: 11.5px; }
.docs-header-actions .topbar-link { padding: 6px; }
.docs-body { display: grid; grid-template-columns: 274px minmax(0, 1fr); min-height: calc(100vh - var(--header)); }
.docs-sidebar {
    position: sticky; top: var(--header); align-self: start; height: calc(100vh - var(--header));
    overflow-y: auto; padding: 27px 17px 30px 23px; border-right: 1px solid #dfdbd1;
    background: #fbfaf6; scrollbar-width: thin;
}
.docs-side-group + .docs-side-group { margin-top: 27px; }
.docs-side-label { display: flex; align-items: center; gap: 7px; margin: 0 7px 8px; color: #979288; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.docs-side-label .num { color: var(--accent); font-family: var(--font-mono); font-size: 9px; }
.docs-nav { display: grid; gap: 1px; }
.docs-nav-link { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; color: #676a63; font-size: 12.2px; line-height: 1.45; transition: background .13s, color .13s; }
.docs-nav-link::before { width: 3px; height: 3px; flex: 0 0 auto; border-radius: 50%; background: #c1bdb3; content: ""; }
.docs-nav-link:hover { background: #f0ede6; color: var(--ink); }
.docs-nav-link.is-active { background: #f5e4df; color: #a52d20; font-weight: 750; }
.docs-nav-link.is-active::before { background: var(--accent); }
.docs-nav-link .nav-tag { margin-left: auto; color: #9b978e; font-family: var(--font-mono); font-size: 8.5px; }
.docs-side-foot { margin-top: 28px; padding: 14px; border: 1px solid #e2ded4; border-radius: 7px; background: #f4f1e9; }
.docs-side-foot strong { display: block; margin-bottom: 3px; font-size: 11.5px; }
.docs-side-foot p { margin: 0 0 9px; color: #858176; font-size: 10.5px; line-height: 1.55; }
.docs-side-foot a { color: var(--accent-dark); font-size: 10.5px; font-weight: 750; }
.docs-side-foot a:hover { text-decoration: underline; }
.docs-main-wrap { display: flex; justify-content: center; min-width: 0; padding: 47px clamp(25px, 5vw, 74px) 80px; }
.docs-main { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; width: 100%; gap: 54px; }
.docs-toc { display: none; }
.docs-article { min-width: 0; }
.docs-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; color: #9a968c; font-size: 10.5px; }
.docs-breadcrumb a:hover { color: var(--accent-dark); }
.docs-breadcrumb svg { width: 11px; height: 11px; }
.docs-breadcrumb strong { color: #555850; font-weight: 700; }
.docs-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.docs-eyebrow .version { padding: 2px 6px; border: 1px solid #e5b6aa; border-radius: 3px; background: #fff; color: #a52d20; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0; }
.docs-title { margin: 0 0 14px; font-size: clamp(38px, 5vw, 56px); font-weight: 820; letter-spacing: -.06em; line-height: .98; }
.docs-lead { max-width: 620px; margin: 0; color: #676a63; font-size: 16px; line-height: 1.7; }
.docs-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 22px; color: #99958b; font-size: 10.5px; }
.docs-meta span { display: inline-flex; align-items: center; gap: 6px; }
.docs-meta svg { width: 12px; height: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 32px; }
.quick-card { display: flex; flex-direction: column; min-height: 112px; padding: 14px; border: 1px solid #dfdbd1; border-radius: 7px; background: #fffdf9; transition: border-color .15s, transform .15s; }
.quick-card:hover { border-color: #c8c2b6; transform: translateY(-1px); }
.quick-card .quick-icon { display: grid; place-items: center; width: 27px; height: 27px; margin-bottom: 14px; border-radius: 5px; background: #f5e4df; color: var(--accent-dark); }
.quick-card svg { width: 14px; height: 14px; }
.quick-card strong { display: block; margin-bottom: 3px; font-size: 11.5px; }
.quick-card span { color: #88847a; font-size: 10.5px; line-height: 1.45; }
.docs-callout { display: flex; gap: 12px; margin: 27px 0 5px; padding: 15px 16px; border: 1px solid #dfdbd1; border-left: 3px solid var(--ink); border-radius: 5px; background: #fbf9f4; color: #5c6058; font-size: 12.5px; line-height: 1.65; }
.docs-callout .ci { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; background: #eae6dc; color: var(--ink); }
.docs-callout svg { width: 13px; height: 13px; }
.docs-callout strong { color: var(--ink); }
.docs-callout.is-warning { border-left-color: var(--warning); background: #fcf7ea; }
.docs-callout.is-warning .ci { background: #f1e3bf; color: var(--warning); }
.docs-callout.is-accent { border-left-color: var(--accent); background: #fff4ef; }
.docs-callout.is-accent .ci { background: #f5dbd4; color: var(--accent-dark); }
.doc-section { padding-top: 42px; margin-top: 42px; border-top: 1px solid #dfdbd1; scroll-margin-top: 92px; }
.doc-section:first-of-type { margin-top: 46px; }
.doc-section h2 { margin: 0 0 12px; font-size: 28px; font-weight: 800; letter-spacing: -.045em; }
.doc-section h3 { margin: 30px 0 10px; font-size: 17px; font-weight: 750; }
.doc-section h4 { margin: 22px 0 8px; font-size: 13px; font-weight: 800; }
.doc-section p { color: #62665e; font-size: 13.5px; line-height: 1.75; }
.doc-section > p { max-width: 690px; }
.doc-section ul, .doc-section ol { margin: 13px 0 20px; padding-left: 20px; color: #62665e; font-size: 13px; line-height: 1.8; }
.doc-section li + li { margin-top: 3px; }
.doc-section li::marker { color: var(--accent); }
.doc-section a { color: var(--accent-dark); font-weight: 650; }
.doc-section a:hover { text-decoration: underline; }
.doc-section code:not(pre code) { padding: 2px 5px; border: 1px solid #e1ddd3; border-radius: 3px; background: #f2efe8; color: #4f534c; font-family: var(--font-mono); font-size: 11px; }
.kbd { padding: 2px 5px; border: 1px solid #ddd8cd; border-bottom-width: 2px; border-radius: 3px; background: #fff; font-family: var(--font-mono); font-size: 9px; }
.section-label-row { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.section-label-row .slash { color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.endpoint { margin: 19px 0; overflow: hidden; border: 1px solid #dcd7cc; border-radius: 8px; background: #fffdf9; }
.endpoint-head { display: flex; align-items: center; gap: 11px; padding: 12px 14px; }
.endpoint-method { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 4px 7px; border-radius: 3px; background: #ece9e1; color: #4b4e47; font-family: var(--font-mono); font-size: 9px; font-weight: 800; letter-spacing: .03em; }
.endpoint-method.post { background: #f5ddd7; color: #a52d20; }
.endpoint-method.delete { background: #3a1d1b; color: #ffb5a7; }
.endpoint-method.put { background: #f1e6ce; color: #755208; }
.endpoint-path { margin: 0; color: #343730; font-family: var(--font-mono); font-size: 11.5px; overflow-wrap: anywhere; }
.endpoint-desc { margin-left: auto; color: #8d897f; font-size: 10.5px; white-space: nowrap; }
.endpoint-body { padding: 0 14px 13px 73px; color: #7a7d75; font-size: 11.5px; }
.endpoint-body p { margin: 0; font-size: 11.5px; line-height: 1.55; }
.code-card { margin: 18px 0; overflow: hidden; border: 1px solid #292c2e; border-radius: 7px; background: #151719; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; border-bottom: 1px solid #2b2e31; background: #1b1d1f; color: #92948f; font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.code-head .lang { color: #b9b6ae; }
.code-copy { display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px; border: 0; background: transparent; color: #8b8e89; font-family: var(--font-sans); font-size: 9px; }
.code-copy:hover { color: #fff; }
.code-copy svg { width: 12px; height: 12px; }
.code-card pre { margin: 0; padding: 16px; overflow-x: auto; color: #c9c6bf; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.75; tab-size: 4; }
.code-card pre .c { color: #747a72; }
.code-card pre .k { color: #ed8b79; }
.code-card pre .s { color: #b5c99a; }
.code-card pre .n { color: #d9bd83; }
.code-card pre .p { color: #a8b9c9; }
.param-table { width: 100%; margin: 17px 0; border-collapse: collapse; border: 1px solid #dfdbd1; border-radius: 7px; overflow: hidden; }
.param-table th { padding: 9px 12px; border-bottom: 1px solid #e8e4db; background: #f3f0e9; color: #88847a; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.param-table td { padding: 10px 12px; border-bottom: 1px solid #ece8df; color: #62665e; font-size: 11.5px; vertical-align: top; }
.param-table tr:last-child td { border-bottom: 0; }
.param-table td code { color: #4c5049; font-family: var(--font-mono); font-size: 10.5px; }
.param-table .req { display: inline-block; margin-left: 4px; padding: 1px 4px; border-radius: 2px; background: #f5ddd7; color: #a52d20; font-size: 8px; font-weight: 800; letter-spacing: .03em; }
.param-table .optional { display: inline-block; margin-left: 4px; padding: 1px 4px; border-radius: 2px; background: #eeece6; color: #89857a; font-size: 8px; font-weight: 700; }
.docs-next { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 35px; padding-top: 20px; border-top: 1px solid #dfdbd1; }
.docs-next-label { display: block; margin-bottom: 3px; color: #99958b; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.docs-next a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 750; }
.docs-next a:hover { color: var(--accent-dark); }
.docs-next a svg { width: 13px; height: 13px; color: var(--accent); }
.docs-toc h3 { margin: 0 0 10px; color: #99958b; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.docs-toc nav { display: grid; gap: 2px; border-left: 1px solid #dfdbd1; }
.docs-toc a { padding: 4px 0 4px 12px; border-left: 2px solid transparent; margin-left: -1px; color: #99958b; font-size: 10.5px; line-height: 1.45; }
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.is-active { border-left-color: var(--accent); color: #a52d20; font-weight: 650; }
.docs-scrim { display: none; }
@media (min-width: 1280px) {
    .docs-main { grid-template-columns: minmax(0, 760px) 190px; gap: 56px; }
    .docs-toc { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding-top: 3px; scrollbar-width: thin; }
}
.docs-search-empty { display: none; margin: 12px 7px; padding: 10px; color: #9a968c; font-size: 10.5px; line-height: 1.5; }
.docs-search-empty.is-visible { display: block; }

/* Error pages */
body.error-page { display: grid; min-height: 100vh; place-items: center; background: #101214; color: #f4f1ea; }
.error-wrap { width: min(620px, calc(100% - 40px)); padding: 40px 0; }
.error-code { margin: 30px 0 12px; color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: .15em; }
.error-wrap h1 { margin: 0 0 15px; font-size: clamp(42px, 8vw, 72px); letter-spacing: -.06em; }
.error-wrap p { max-width: 480px; color: #a5a39d; font-size: 15px; line-height: 1.7; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.error-wrap .btn-dark-outline { border-color: #3b3e42; }

.language-switcher {
    display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
    padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 999px;
    color: var(--ink-muted); font-size: 10.5px; font-weight: 800;
    letter-spacing: .06em; line-height: 1;
}
.language-switcher a { padding: 4px 3px; border-radius: 4px; transition: color .18s ease, background .18s ease; }
.language-switcher a:hover { color: var(--ink); }
.language-switcher a.is-active { color: var(--accent); }
.language-switcher > span { color: var(--line-strong); }
body.marketing .language-switcher,
body.error-page .language-switcher { border-color: #3b3e42; color: #aaa69d; }
body.marketing .language-switcher a:hover,
body.error-page .language-switcher a:hover { color: #fff; }
body.marketing .language-switcher a.is-active,
body.error-page .language-switcher a.is-active { color: var(--accent); }
.auth-card-header .language-switcher { margin-bottom: 18px; }
.topbar-actions .language-switcher { margin-right: 2px; }
.docs-header-actions .language-switcher { margin-right: 4px; }
.error-wrap .language-switcher { position: absolute; top: 24px; right: 24px; }

/* Responsive */
@media (max-width: 1180px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 42px; }
    .hero h1 { font-size: clamp(46px, 6.4vw, 78px); }
    .docs-main { grid-template-columns: minmax(0, 760px); }
    .docs-toc { display: none; }
}
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-card:first-child { grid-column: 1 / -1; min-height: 210px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-scrim { display: block; position: fixed; z-index: 55; inset: 0; background: rgba(10,12,14,.5); }
    .sidebar-close { display: inline-flex; }
    .workspace { margin-left: 0; }
    .mobile-menu { display: inline-flex; }
    .docs-body { grid-template-columns: 1fr; }
    .docs-sidebar {
        position: fixed; z-index: 75; top: var(--header); bottom: auto; left: 0; width: min(310px, 88vw);
        height: calc(100vh - var(--header)); height: calc(100dvh - var(--header));
        border-right: 1px solid #dfdbd1; transform: translateX(-102%);
        transition: transform .22s ease;
    }
    body.docs-sidebar-open { overflow: hidden; }
    body.docs-sidebar-open .docs-sidebar { transform: none; }
    body.docs-sidebar-open .docs-scrim { display: block; position: fixed; z-index: 74; inset: var(--header) 0 0; background: rgba(10,12,14,.38); }
    .docs-menu { display: inline-flex; }
    .docs-main-wrap { padding-top: 38px; }
}
@media (max-width: 900px) {
    .docs-header .header-title, .docs-header .header-divider { display: none; }
    .auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .auth-aside { min-height: 0; padding: 24px 24px; }
    .auth-aside-content { display: none; }
    .auth-aside-foot { display: none; }
    .auth-aside .brand { margin: 0; }
    .auth-main { padding: 36px 24px 54px; }
    .auth-header-row { justify-content: flex-end; margin-bottom: 18px; }
    .auth-card-header .brand { display: none; }
}
@media (max-width: 760px) {
    .container { width: min(100% - 36px, 1240px); }
    .marketing-nav {
        position: absolute; top: 72px; right: 18px; left: 18px; display: none;
        padding: 10px; border: 1px solid #303337; border-radius: 9px; background: #151719;
        box-shadow: var(--shadow);
    }
    body.nav-open .marketing-nav { display: grid; }
    .marketing-nav a { padding: 10px; border-radius: 5px; }
    .marketing-nav a:hover { background: #222528; }
    .marketing-actions .btn-outline { display: none; }
    .nav-toggle { display: inline-flex; }
    .hero { padding: 58px 0 55px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero h1 { font-size: clamp(45px, 12.5vw, 72px); }
    .hero-meta { gap: 13px; margin-top: 33px; }
    .hero-meta span { font-size: 10.5px; }
    .section-head { display: block; }
    .section-head p { margin-top: 14px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card:first-child { grid-column: auto; }
    .feature-card { min-height: 205px; }
    .steps-grid { grid-template-columns: 1fr; gap: 22px; }
    .cta-panel { display: block; }
    .cta-panel .btn { margin-top: 24px; }
    .marketing-footer-inner { display: block; }
    .marketing-footer nav { margin-top: 13px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .page-head { display: block; }
    .page-actions { margin-top: 17px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .check-grid { grid-template-columns: 1fr; }
    .topbar-user > span:not(.avatar) { display: none; }
    .topbar-link span { display: none; }
    .docs-title { font-size: clamp(35px, 11vw, 48px); }
    .quick-grid { grid-template-columns: 1fr; }
    .quick-card { min-height: auto; }
    .quick-card .quick-icon { margin-bottom: 10px; }
    .endpoint-head { flex-wrap: wrap; }
    .endpoint-desc { width: 100%; margin: 2px 0 0 59px; }
    .endpoint-body { padding-left: 14px; }
    .docs-main-wrap { padding: 30px 20px 62px; }
    .docs-header-inner { gap: 10px; padding: 0 14px; }
    .docs-header .brand-name { display: none; }
    .docs-search { max-width: none; }
    .docs-header-actions .topbar-link { display: none; }
    .docs-search kbd { display: none; }
    .docs-header-actions .btn span { display: none; }
    .docs-header-actions .btn { min-width: 34px; padding: 6px; }
    .docs-header-actions .btn svg { margin: 0; }
}
@media (max-width: 560px) {
    .topbar { padding-inline: 16px; }
    .page { padding: 27px 16px 44px; }
    .stat-grid { gap: 9px; }
    .stat { min-height: 111px; padding: 14px; }
    .stat-value { margin-top: 13px; font-size: 24px; }
    .stat-label { font-size: 9px; }
    .panel-head { padding-inline: 15px; }
    .panel-body { padding: 15px; }
    .table th, .table td { padding: 11px 15px; }
    .table .hide-sm { display: none; }
    .credential { padding: 14px; }
    .credential-head { display: block; }
    .credential-actions { margin-top: 12px; }
    .pagination { display: block; }
    .pagination-links { margin-top: 8px; }
    .inline-form .field { flex-basis: 100%; }
    .inline-form .btn { width: 100%; }
    .auth-main { padding-inline: 18px; }
    .auth-card h2 { font-size: 28px; }
    .docs-header .brand-mark { width: 26px; height: 26px; }
    .docs-search input { height: 33px; padding-left: 31px; font-size: 11.5px; }
    .docs-search svg { left: 9px; }
    .docs-main-wrap { padding-inline: 16px; }
    .docs-section h2 { font-size: 25px; }
    .docs-callout { padding: 12px; font-size: 11.5px; }
    .param-table { display: block; overflow-x: auto; }
    .param-table th, .param-table td { min-width: 115px; }
    .code-card pre { font-size: 10.5px; }
    .docs-next { align-items: flex-start; }
    .docs-next > div:last-child { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
@media print {
    .sidebar, .topbar, .page-actions, .btn, .docs-header, .docs-sidebar, .docs-toc, .docs-next, .marketing-header, .marketing-footer, .auth-aside { display: none !important; }
    body, .workspace, .page, .docs-main-wrap, .docs-main { margin: 0 !important; padding: 0 !important; background: #fff !important; color: #000 !important; }
    .panel, .stat, .credential { box-shadow: none !important; break-inside: avoid; }
    a { text-decoration: none !important; }
}
