@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-400.ttf") format("truetype");
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-500.ttf") format("truetype");
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-600.ttf") format("truetype");
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-700.ttf") format("truetype");
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-800.ttf") format("truetype");
}

:root {
    color-scheme: light;
    --navy-950: #071426;
    --navy-900: #0b1d36;
    --navy-800: #12315a;
    --blue-700: #1859c9;
    --blue-600: #246bdb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --green-600: #16a36a;
    --violet-600: #7657df;
    --amber-600: #d97706;
    --text: #152238;
    --muted: #65748b;
    --muted-light: #8d9aae;
    --line: #e3eaf3;
    --line-strong: #d3deeb;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --canvas: #f2f6fb;
    --shadow-xs: 0 1px 2px rgba(12, 35, 68, .04);
    --shadow-sm: 0 8px 24px rgba(12, 35, 68, .07);
    --shadow-md: 0 20px 50px rgba(12, 35, 68, .11);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 100% 0, rgba(59, 130, 246, .07), transparent 28rem),
        var(--canvas);
    color: var(--text);
    font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .22);
    outline-offset: 2px;
}

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

.sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    padding: 28px 20px 22px;
    background:
        radial-gradient(circle at 25% 0, rgba(59, 130, 246, .24), transparent 20rem),
        linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 58%, #123a70 130%);
    color: #fff;
    box-shadow: 10px 0 35px rgba(7, 20, 38, .08);
}

.sidebar::after {
    position: absolute;
    right: -75px;
    bottom: 55px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    content: "";
}

.sidebar-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px 32px;
}

.sidebar-logo,
.brand-mark,
.mobile-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #5b9bff, #2064d5);
    color: #fff;
    font-weight: 800;
    letter-spacing: .05em;
    box-shadow: 0 10px 26px rgba(37, 107, 219, .35);
}

.sidebar-logo {
    width: 48px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    font-size: 14px;
}

.sidebar-logo-image {
    flex: 0 0 auto;
    width: 138px;
    height: auto;
    padding: 8px 10px;
    border-radius: 9px;
    border-color: rgba(255, 255, 255, .18);
    background: #fff;
    box-shadow: 0 10px 26px rgba(7, 20, 38, .24);
}

.sidebar-logo-image img {
    display: block;
    width: 100%;
    height: auto;
}

.sidebar-brand strong,
.sidebar-brand small,
.sidebar-source strong,
.sidebar-source small { display: block; }

.sidebar-brand strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.sidebar-brand small { margin-top: 2px; color: #99abc3; font-size: 11px; }

.sidebar-nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #b7c7dc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-nav a.active {
    border-color: rgba(126, 174, 255, .18);
    background: linear-gradient(90deg, rgba(59, 130, 246, .25), rgba(59, 130, 246, .10));
    color: #fff;
    box-shadow: inset 3px 0 #6ca5ff;
}

.sidebar-nav svg {
    width: 19px;
    flex: 0 0 auto;
    fill: currentColor;
}

.sidebar-source {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    backdrop-filter: blur(12px);
}

.sidebar-source strong { font-size: 12px; font-weight: 600; }
.sidebar-source small { margin-top: 2px; color: #93a7c1; font-size: 10px; }

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #2cd889;
    box-shadow: 0 0 0 5px rgba(44, 216, 137, .12);
}

.token-promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1360px;
    margin: 0 auto 24px;
    padding: 24px 28px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #fff 70%);
    box-shadow: var(--shadow-xs);
}
.token-promo-card h2 { margin: 5px 0 7px; color: var(--navy-900); font-size: 22px; }
.token-promo-card p:last-child { margin: 0; color: var(--muted); }
.promo-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.payment-body { min-height: 100vh; background: linear-gradient(145deg, #edf4ff, #f8fafc 46%, #eef2ff); }
.payment-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 60px; }
.compact-payment-shell { width: min(920px, calc(100% - 32px)); }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--blue-600); font-weight: 700; text-decoration: none; }
.payment-hero { margin-bottom: 24px; text-align: center; }
.payment-hero h1 { margin: 7px 0 10px; color: var(--navy-900); font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; }
.payment-hero p:last-child { max-width: 760px; margin: 0 auto; color: var(--muted); line-height: 1.7; }
.conversion-banner { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; padding: 16px 20px; border: 1px solid #86efac; border-radius: 16px; background: #f0fdf4; color: #166534; text-align: center; }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.payment-card, .qr-card, .bank-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.payment-card h2 { margin: 6px 0 22px; color: var(--navy-900); }
.payment-label { display: block; margin-bottom: 8px; color: var(--navy-800); font-weight: 700; }
.payment-card select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy-900); font: inherit; }
.purchase-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.purchase-preview div { padding: 16px; border-radius: 14px; background: var(--slate-50); }
.purchase-preview span, .purchase-preview strong { display: block; }
.purchase-preview span { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.purchase-preview strong { color: var(--blue-600); font-size: 20px; }
.wide-button { width: 100%; min-height: 50px; text-decoration: none; }
.payment-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.purchase-history { display: flex; flex-direction: column; gap: 9px; }
.purchase-history > a { display: flex; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy-900); text-decoration: none; }
.purchase-history span, .purchase-history strong, .purchase-history small { display: block; }
.purchase-history small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.history-amount { text-align: right; }
.status-paid { color: #067647 !important; }
.status-pending, .status-underpaid { color: #b54708 !important; }
.status-expired, .status-manual_review { color: #b42318 !important; }
.payment-status { margin: 0 auto 20px; padding: 12px 18px; border-radius: 999px; width: fit-content; background: #fff7ed; color: #b54708; font-weight: 800; }
.payment-status.status-paid { background: #ecfdf3; }
.qr-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; }
.qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.qr-card img { width: min(100%, 330px); border-radius: 14px; }
.qr-card strong { margin-top: 12px; color: var(--navy-900); }
.qr-card small { margin-top: 6px; color: var(--muted); }
.paid-check { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: #ecfdf3; color: #039855; font-size: 82px; font-weight: 800; }
.bank-card { display: flex; flex-direction: column; gap: 2px; }
.bank-card > div { position: relative; padding: 14px 82px 14px 0; border-bottom: 1px solid var(--line); }
.bank-card > div:last-child { border-bottom: 0; }
.bank-card span, .bank-card strong { display: block; }
.bank-card span { margin-bottom: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.bank-card strong { color: var(--navy-900); font-size: 17px; }
.bank-card button { position: absolute; right: 0; bottom: 14px; padding: 7px 10px; color: var(--blue-600); background: #eff6ff; font-size: 11px; }
.transfer-content strong { color: #b42318; font-size: 23px; letter-spacing: .06em; }
.payment-warning { margin-top: 20px; padding: 16px 18px; border: 1px solid #fed7aa; border-radius: 14px; background: #fff7ed; color: #9a3412; text-align: center; }
.form-error { margin-top: 8px; color: #b42318; }
.promotion-code-field { margin-top: 18px; }
.promotion-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promotion-input-row input { min-width: 0; padding: 12px 13px; border: 1px solid #dfc48e; border-radius: 10px; background: #fff; color: var(--navy-900); font-weight: 700; text-transform: uppercase; }
.promotion-input-row button { padding: 0 15px; border: 0; border-radius: 10px; background: #8a5709; color: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.promotion-feedback { min-height: 18px; margin-top: 8px; font-size: 9px; font-weight: 700; }
.promotion-feedback.success { color: #067647; }
.promotion-feedback.error { color: #b42318; }
.purchase-preview { grid-template-columns: 1fr 1fr; }
.promotion-preview { display: none; }
.promotion-preview.active { display: block; border: 1px solid #f5c56b; background: #fffaf0; }
.promotion-preview.active strong { color: #b54708; }
.total-credit-preview { border: 1px solid #93c5fd; background: #eff6ff !important; }
.total-credit-preview strong { color: var(--blue-700) !important; }
.promotion-detail strong { color: #b54708; }
.total-credit-detail { margin-top: 3px; padding: 17px 12px !important; border: 1px solid #bfdbfe !important; border-radius: 11px; background: #eff6ff; }
.total-credit-detail strong { color: var(--blue-700); font-size: 20px; }

@media (max-width: 760px) {
    .token-promo-card, .conversion-banner { align-items: stretch; flex-direction: column; }
    .payment-grid, .qr-layout { grid-template-columns: 1fr; }
    .purchase-preview { grid-template-columns: 1fr; }
}

.dashboard-main {
    min-width: 0;
    padding: 38px 42px 24px;
}

.topbar,
.filter-panel,
.metric-grid,
.usage-card,
.dashboard-footer,
.management-layout,
.notice {
    width: 100%;
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.topbar h1 {
    margin: 5px 0 7px;
    color: var(--navy-900);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.045em;
}

.eyebrow {
    margin: 0;
    color: var(--blue-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.eyebrow.light { color: #9bc2ff; }
.subtitle { margin: 0; color: var(--muted); font-size: 13px; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.account-identity {
    display: flex;
    max-width: 310px;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border: 1px solid #cfe0f5;
    border-radius: 13px;
    background: linear-gradient(145deg, #fff, #f3f8ff);
    box-shadow: var(--shadow-xs);
}

.account-avatar {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--blue-600);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.account-identity small,
.account-identity strong { display: block; }
.account-identity small { margin-bottom: 2px; color: var(--muted); font-size: 9px; }
.account-identity strong { overflow: hidden; color: var(--navy-900); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.source-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-xs);
}

.source-badge small,
.source-badge strong { display: block; }
.source-badge small { margin-bottom: 1px; color: var(--muted); font-size: 10px; }
.source-badge strong { color: var(--navy-800); font-size: 12px; font-weight: 700; }

button,
.filter-button,
.secondary-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

button:hover,
.secondary-button:hover,
.primary-button:hover { transform: translateY(-1px); }

.icon-button {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    box-shadow: var(--shadow-xs);
}

.icon-button:hover { border-color: #bfd1e8; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.icon-button svg { width: 20px; }

.sidebar-nav svg,
.icon-button svg,
.section-icon svg,
.metric-icon svg,
.empty-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.filter-panel,
.usage-card,
.management-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-sm);
}

.filter-panel {
    margin-bottom: 22px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
}

.filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.filter-heading > div:first-child { display: flex; align-items: center; gap: 11px; }
.filter-heading strong,
.filter-heading small { display: block; }
.filter-heading strong { color: var(--navy-900); font-size: 13px; font-weight: 700; }
.filter-heading small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    background: var(--blue-50);
    color: var(--blue-600);
}

.section-icon svg { width: 18px; }
.quick-filters { display: flex; gap: 5px; padding: 4px; border-radius: 11px; background: #f1f5f9; }

.filter-button {
    min-height: 33px;
    padding: 7px 12px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
}

.filter-button:hover { color: var(--blue-700); }
.filter-button.active { background: #fff; color: var(--blue-700); box-shadow: 0 2px 8px rgba(25, 66, 124, .10); }

.date-filter { display: flex; align-items: flex-end; gap: 10px; }
.date-filter label { display: grid; flex: 0 1 190px; gap: 5px; }
.date-filter label span { color: var(--muted); font-size: 10px; font-weight: 700; }

.date-filter input,
.customer-form input[type="text"],
.customer-form input[type="email"],
.customer-form input[type="password"],
.login-card input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.date-filter input { min-height: 40px; padding: 9px 11px; font-size: 11px; }

.date-filter input:focus,
.customer-form input:focus,
.login-card input:focus {
    border-color: #78aaf5;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .10);
}

.date-arrow { align-self: center; margin-top: 21px; color: var(--muted-light); }

.date-filter button,
.primary-button,
.login-submit {
    min-height: 40px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff;
    box-shadow: 0 7px 16px rgba(36, 107, 219, .18);
    font-size: 11px;
}

.date-filter button:hover,
.primary-button:hover,
.login-submit:hover { box-shadow: 0 10px 22px rgba(36, 107, 219, .25); }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 22px;
}

.metric-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 128px;
    overflow: hidden;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.metric-card:hover { transform: translateY(-3px); border-color: #cfdaea; box-shadow: var(--shadow-md); }

.metric-card.primary {
    border-color: transparent;
    background:
        radial-gradient(circle at 100% 0, rgba(129, 178, 255, .34), transparent 52%),
        linear-gradient(145deg, #10294d 0%, #1754a1 63%, #2574dd 120%);
    color: #fff;
}

.metric-card.primary::after {
    position: absolute;
    right: -28px;
    bottom: -65px;
    width: 135px;
    height: 135px;
    border: 20px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
    content: "";
}

.metric-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.metric-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.metric-icon.violet { background: #f1edff; color: var(--violet-600); }
.metric-icon.green { background: #eafaf3; color: var(--green-600); }
.metric-icon svg { width: 21px; }

.metric-card > div:last-child { min-width: 0; }
.metric-card span,
.metric-card strong,
.metric-card small { display: block; }
.metric-card span { color: var(--muted); font-size: 10px; font-weight: 600; }
.metric-card strong { margin: 4px 0 3px; color: var(--navy-900); font-size: clamp(20px, 2vw, 25px); font-weight: 800; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
.metric-card small { color: var(--muted-light); font-size: 9px; }
.metric-card.primary span,
.metric-card.primary small { color: rgba(255, 255, 255, .72); }
.metric-card.primary strong { color: #fff; }

.usage-card { overflow: hidden; border-radius: var(--radius-md); }

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 23px;
    border-bottom: 1px solid var(--line);
}

.card-heading h2 { margin: 0 0 3px; color: var(--navy-900); font-size: 17px; font-weight: 750; letter-spacing: -.025em; }
.card-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.result-count { padding: 6px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 9px; font-weight: 700; white-space: nowrap; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 670px; border-collapse: collapse; }
th,
td { text-align: left; }

thead th {
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

tbody td { padding: 16px 20px; border-bottom: 1px solid #edf1f6; font-size: 11px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f8fbff; }

.api-cell { display: flex; align-items: center; gap: 12px; }
.api-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: linear-gradient(145deg, #e7f1ff, #d8e9ff);
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 800;
}

.api-cell strong,
.api-cell small { display: block; }
.api-cell strong { color: var(--navy-900); font-size: 11px; font-weight: 700; }
.api-cell small { margin-top: 2px; color: var(--muted-light); font-size: 8px; }
.request-pill { display: inline-flex; min-width: 42px; justify-content: center; padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 700; }
.cost-value { color: var(--blue-700); font-size: 11px; font-weight: 750; }
tfoot th { padding: 15px 20px; background: #f8fafc; color: var(--navy-900); font-size: 10px; }

.empty { padding: 58px 24px !important; text-align: center; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); }
.empty-icon svg { width: 22px; }
.empty strong { display: block; margin-bottom: 4px; color: var(--navy-900); }
.empty p { margin: 0; color: var(--muted); }

.dashboard-footer { padding: 18px 4px 0; color: var(--muted-light); font-size: 9px; text-align: center; }

.secondary-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--navy-800);
    box-shadow: var(--shadow-xs);
    font-size: 11px;
}

.secondary-button:hover { border-color: #b8c9df; box-shadow: var(--shadow-sm); }
.notice { margin-bottom: 18px; padding: 12px 15px; border: 1px solid #bdebd6; border-radius: 12px; background: #edfbf5; color: #10714a; font-size: 11px; font-weight: 600; }

.management-layout { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(0, 1.35fr); align-items: start; gap: 22px; }
.management-card { padding: 24px; border-radius: var(--radius-md); }
.form-card { position: sticky; top: 28px; }
.management-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.management-heading h2 { margin: 4px 0 0; color: var(--navy-900); font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.management-heading a { color: var(--blue-600); font-size: 10px; font-weight: 700; text-decoration: none; }

.customer-form { display: grid; gap: 16px; }
.customer-form > label { display: grid; gap: 6px; }
.customer-form > label > span { color: #40506a; font-size: 10px; font-weight: 700; }
.customer-form input[type="text"],
.customer-form input[type="email"],
.customer-form input[type="password"] { min-height: 43px; padding: 11px 13px; font-size: 12px; }
.customer-form label > small { color: var(--muted-light); font-size: 9px; }
.customer-form em { color: #c03636; font-size: 9px; font-style: normal; }
.customer-form ul { display: grid; gap: 4px; max-height: 245px; margin: 0; padding: 8px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); list-style: none; }
.customer-form ul label { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; color: #40506a; cursor: pointer; font-size: 10px; font-weight: 500; transition: background .15s ease; }
.customer-form ul label:hover { background: #fff; }
.customer-form input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue-600); }
.field-error { padding: 10px 12px; border: 1px solid #f3c7c7; border-radius: 10px; background: #fff2f2; color: #a83232; font-size: 10px; }
.primary-button { width: 100%; min-height: 44px; margin-top: 2px; }

.user-list { display: grid; gap: 10px; }
.user-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.user-row:hover { transform: translateY(-1px); border-color: #c7d6e8; box-shadow: var(--shadow-sm); }
.user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, #e8f2ff, #d9e9ff); color: var(--blue-700); font-size: 14px; font-weight: 800; }
.user-info { min-width: 0; }
.user-info > strong,
.user-info > span { display: block; }
.user-info > strong { color: var(--navy-900); font-size: 12px; font-weight: 700; }
.user-info > span { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.api-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.api-tags small { padding: 4px 7px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 8px; font-weight: 600; }
.api-tags .muted-tag { background: #f1f5f9; color: var(--muted); }
.user-actions { display: grid; justify-items: end; gap: 8px; }
.user-actions a { color: var(--blue-600); font-size: 9px; font-weight: 700; text-decoration: none; }
.status-pill { padding: 5px 8px; border-radius: 999px; background: #eafaf3; color: #108153; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-pill.inactive { background: #fff0f0; color: #b23b3b; }
.empty-user-list { padding: 45px 20px; border: 1px dashed var(--line-strong); border-radius: 13px; text-align: center; }
.empty-user-list strong { color: var(--navy-900); }
.empty-user-list p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

.member-cost-report { width: 100%; max-width: 1360px; margin: 22px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.member-report-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 24px 18px; }
.member-report-header h2 { margin: 4px 0; color: var(--navy-900); font-size: 20px; letter-spacing: -.03em; }
.member-report-header p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }
.member-total { min-width: 210px; padding: 13px 16px; border: 1px solid #d7e6f8; border-radius: 12px; background: linear-gradient(145deg, #f8fbff, #edf5ff); text-align: right; }
.member-total span,
.member-total strong { display: block; }
.member-total span { color: var(--muted); font-size: 9px; font-weight: 700; }
.member-total strong { margin-top: 2px; color: var(--blue-700); font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.member-report-filter { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 17px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.member-date-filter { justify-content: flex-end; }
.member-cost-table .user-avatar.compact { width: 36px; height: 36px; font-size: 12px; }
.member-cost-table .api-cell small { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-tags { margin-top: 0; }
.member-cost-value { color: var(--blue-700); font-size: 13px; font-weight: 800; }

.management-page .dashboard-main {
    background:
        radial-gradient(circle at 92% 3%, rgba(59, 130, 246, .08), transparent 24rem),
        linear-gradient(180deg, #f6f9fd 0%, #f2f6fb 100%);
}

.management-page .topbar { margin-bottom: 24px; }
.management-page .management-layout { grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.35fr); gap: 24px; }
.management-page .management-card { position: relative; overflow: hidden; border-color: #dce5f0; box-shadow: 0 14px 38px rgba(20, 49, 90, .08); }
.management-page .management-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--blue-600), #6aa4ff); content: ""; }
.management-page .management-heading { padding-top: 5px; }
.management-page .management-heading h2 { font-size: 21px; }
.management-page .user-list-heading { align-items: flex-end; gap: 14px; }
.management-page .user-list-card { padding-right: 16px; padding-bottom: 16px; }
.management-page .user-list-card .user-list-heading { margin-right: 8px; margin-bottom: 14px; }
.user-list-hint { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--muted); font-size: 9px; font-weight: 600; }
.user-list-hint span { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 6px; background: var(--blue-50); color: var(--blue-600); font-size: 11px; }
.user-sort-form { display: grid; min-width: 190px; gap: 5px; }
.user-sort-form label { color: var(--muted); font-size: 9px; font-weight: 700; }
.user-sort-form select { min-height: 38px; padding: 8px 32px 8px 11px; border: 1px solid #d5e0ed; border-radius: 9px; background: #fff; color: var(--navy-900); font: inherit; font-size: 10px; font-weight: 700; }
.registered-at { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.user-actions form { margin: 0; }
.delete-user-button, .table-delete-button { border: 0; background: transparent; color: #b42318; cursor: pointer; font: inherit; font-size: 9px; font-weight: 700; }
.delete-user-button { padding: 6px 9px; border-radius: 8px; background: #fff1f0; }
.delete-user-button:hover, .table-delete-button:hover { color: #8a1c13; }
.management-page .customer-form { gap: 17px; }
.management-page .customer-form > label > span { color: #31445f; font-size: 11px; }
.management-page .customer-form input[type="text"],
.management-page .customer-form input[type="email"],
.management-page .customer-form input[type="password"] { min-height: 46px; background: #fbfdff; }
.management-page .customer-form ul { max-height: 220px; padding: 9px; border-color: #d8e2ee; background: #f7faff; }
.management-page .customer-form ul label { min-height: 36px; background: rgba(255, 255, 255, .7); }
.management-page .customer-form [id$="api_ids"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 252px; padding: 9px; overflow-x: hidden; overflow-y: auto; border: 1px solid #d8e2ee; border-radius: 12px; background: #f7faff; scrollbar-color: #b8c9dd transparent; scrollbar-width: thin; }
.management-page .customer-form [id$="api_ids"] > div { min-width: 0; }
.management-page .customer-form [id$="api_ids"] label { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 9px; overflow: hidden; border: 1px solid #e7edf5; border-radius: 9px; background: #fff; color: #33445d; cursor: pointer; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.management-page .customer-form [id$="api_ids"] label:hover { border-color: #b9cde7; background: var(--blue-50); color: var(--blue-700); }
.management-page .customer-form [id$="api_ids"] input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--blue-600); }
.management-page .primary-button { min-height: 47px; font-size: 12px; }
.management-page .user-list-scroll { max-height: clamp(460px, 64vh, 720px); padding: 2px 8px 4px 2px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #9eb5cf #edf3f9; scrollbar-gutter: stable; scrollbar-width: thin; }
.management-page .user-list-scroll:focus-visible { border-radius: 12px; outline: 2px solid rgba(37, 107, 219, .35); outline-offset: 2px; }
.management-page .user-list-scroll::-webkit-scrollbar { width: 9px; }
.management-page .user-list-scroll::-webkit-scrollbar-track { border-radius: 999px; background: #edf3f9; }
.management-page .user-list-scroll::-webkit-scrollbar-thumb { border: 2px solid #edf3f9; border-radius: 999px; background: linear-gradient(180deg, #b4c7dc, #89a6c6); }
.management-page .user-list-scroll::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #9eb7d2, #6f91b7); }
.management-page .user-list { gap: 12px; }
.management-page .user-row { padding: 16px; border-color: #dfe7f1; background: linear-gradient(145deg, #fff, #fbfdff); }
.management-page .user-row:hover { border-color: #b9cde6; box-shadow: 0 12px 28px rgba(20, 49, 90, .09); }
.management-page .user-avatar { box-shadow: inset 0 0 0 1px rgba(37, 107, 219, .08); }
.management-page .user-info > strong { font-size: 13px; }
.management-page .user-info > span { font-size: 10px; }
.management-page .user-actions a { padding: 6px 9px; border-radius: 8px; background: var(--blue-50); font-size: 9px; }
.management-page .member-cost-report { margin-top: 26px; border-color: #dce5f0; box-shadow: 0 16px 42px rgba(20, 49, 90, .09); }
.management-page .member-report-header { padding: 26px 28px 22px; background: linear-gradient(135deg, #fff 0%, #f7fbff 100%); }
.management-page .member-report-header h2 { font-size: 23px; }
.management-page .member-total { min-width: 240px; padding: 15px 18px; border-color: #cfe0f5; box-shadow: inset 0 1px 0 #fff; }
.management-page .member-total strong { font-size: 23px; }
.management-page .member-report-filter { padding: 18px 28px; background: #f7f9fc; }
.management-page .member-report-filter .quick-filters { padding: 5px; border: 1px solid #e2e9f2; background: #edf2f8; }
.management-page .member-report-filter .filter-button { min-height: 36px; padding: 8px 15px; font-size: 10px; }
.management-page .member-report-filter .filter-button.active { color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); box-shadow: 0 7px 16px rgba(36, 107, 219, .19); }
.management-page .member-date-filter input { min-width: 155px; background: #fff; }
.management-page .member-search-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.management-page .member-search-form { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.management-page .member-search-form label { display: flex; align-items: center; min-width: 280px; max-width: 520px; flex: 1; overflow: hidden; border: 1px solid #cfdae8; border-radius: 11px; background: #f9fbfd; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.management-page .member-search-form label:focus-within { border-color: #8eb5ea; background: #fff; box-shadow: 0 0 0 3px rgba(37, 107, 219, .1); }
.management-page .member-search-form label > span { display: inline-flex; width: 40px; height: 42px; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--blue-600); font-size: 19px; font-weight: 800; }
.management-page .member-search-form input { width: 100%; min-width: 0; height: 42px; padding: 10px 13px 10px 0; border: 0; outline: 0; background: transparent; color: var(--navy-900); font: inherit; font-size: 11px; }
.management-page .member-search-form button { min-height: 42px; padding: 10px 17px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 750; box-shadow: 0 7px 16px rgba(36, 107, 219, .16); }
.management-page .member-search-form > a { padding: 9px 4px; color: #b42318; font-size: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.management-page .member-search-result { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 5px; color: var(--muted); text-align: right; }
.management-page .member-search-result strong { color: var(--navy-900); font-size: 16px; }
.management-page .member-search-result span { font-size: 9px; font-weight: 700; }
.management-page .member-search-result small { grid-column: 1 / -1; margin-top: 2px; font-size: 8px; }
.management-page .member-cost-scroll { max-height: clamp(460px, 64vh, 720px); overflow: auto; overscroll-behavior: contain; scrollbar-color: #9eb5cf #edf3f9; scrollbar-gutter: stable; scrollbar-width: thin; }
.management-page .member-cost-scroll:focus-visible { outline: 2px solid rgba(37, 107, 219, .35); outline-offset: -2px; }
.management-page .member-cost-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.management-page .member-cost-scroll::-webkit-scrollbar-track { background: #edf3f9; }
.management-page .member-cost-scroll::-webkit-scrollbar-thumb { border: 2px solid #edf3f9; border-radius: 999px; background: linear-gradient(135deg, #b4c7dc, #89a6c6); }
.management-page .member-cost-scroll::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #9eb7d2, #6f91b7); }
.management-page .member-cost-scroll .member-cost-table thead { position: sticky; top: 0; z-index: 2; }
.management-page .member-cost-scroll .member-cost-table thead th { box-shadow: inset 0 -1px 0 var(--line); }
.management-page .member-cost-table thead th { padding: 14px 24px; background: #f4f7fb; }
.management-page .member-cost-table tbody td { padding: 17px 24px; }
.management-page .member-cost-table tbody tr:last-child td { border-bottom: 0; }
.management-page .member-cost-value { display: inline-flex; min-width: 104px; justify-content: flex-end; padding: 7px 10px; border-radius: 9px; background: var(--blue-50); font-size: 13px; }
.management-page .member-cost-table { min-width: 1320px; }
.credit-value, .spent-value, .remaining-value { white-space: nowrap; color: var(--navy-900); font-size: 12px; }
.spent-value { color: var(--blue-700); }
.remaining-value { color: #067647; }
.remaining-value.over-limit { color: #b42318; }
.usage-progress { display: grid; min-width: 110px; gap: 5px; }
.usage-progress-track { width: 100%; height: 7px; overflow: hidden; border-radius: 999px; background: #e8edf4; }
.usage-progress-track span { display: block; height: 100%; border-radius: inherit; background: #17a673; }
.usage-progress-track span.warning { background: #e3a008; }
.usage-progress-track span.danger,
.usage-progress-track span.exhausted { background: #d92d20; }
.usage-progress small { color: var(--muted); font-size: 9px; font-weight: 700; }
.table-edit-link { display: inline-flex; padding: 7px 10px; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); font-size: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.table-actions { display: flex; align-items: center; gap: 8px; }
.table-actions form { margin: 0; }
.table-delete-button { padding: 7px 10px; border-radius: 8px; background: #fff1f0; white-space: nowrap; }

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at 10% 15%, rgba(59, 130, 246, .14), transparent 25rem),
        radial-gradient(circle at 90% 85%, rgba(80, 124, 197, .12), transparent 26rem),
        #edf3fa;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(430px, .9fr);
    width: min(1080px, 100%);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 35px 95px rgba(14, 42, 80, .18);
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 54px;
    background:
        radial-gradient(circle at 95% 5%, rgba(95, 156, 255, .32), transparent 19rem),
        linear-gradient(145deg, #08182d 0%, #123969 62%, #1e68bd 125%);
    color: #fff;
}

.login-brand::after {
    position: absolute;
    right: -90px;
    bottom: -95px;
    width: 300px;
    height: 300px;
    border: 45px solid rgba(255, 255, 255, .045);
    border-radius: 50%;
    content: "";
}

.brand-mark,
.mobile-mark { width: 52px; height: 50px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 15px; font-size: 15px; }
.mobile-mark { display: none; margin-bottom: 24px; }
.auth-brand-logo,
.mobile-brand-logo { position: relative; z-index: 1; display: inline-flex; width: fit-content; align-items: center; padding: 10px 14px; border-radius: 9px; background: #fff; box-shadow: 0 12px 30px rgba(2, 13, 31, .22); }
.auth-brand-logo img,
.mobile-brand-logo img { display: block; width: 190px; max-width: 100%; height: auto; }
.mobile-brand-logo { display: none; margin-bottom: 25px; padding: 8px 11px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mobile-brand-logo img { width: 155px; }
.login-brand > div { position: relative; z-index: 1; }
.login-brand h1 { margin: 13px 0 17px; font-size: clamp(36px, 4vw, 46px); font-weight: 800; line-height: 1.17; letter-spacing: -.05em; }
.login-brand p:not(.eyebrow) { max-width: 460px; margin: 0; color: #c1d2e8; font-size: 13px; line-height: 1.8; }
.brand-features { display: grid; gap: 11px; color: #d7e4f3; font-size: 11px; font-weight: 500; }
.login-brand .brand-operated { position: relative; z-index: 1; margin-top: 18px; color: #9fb8d7; font-size: 9px; font-weight: 600; letter-spacing: .02em; }

.login-card { display: flex; flex-direction: column; justify-content: center; padding: 60px 55px; }
.login-heading { margin-bottom: 28px; }
.login-heading h2 { margin: 7px 0 9px; color: var(--navy-900); font-size: 29px; font-weight: 800; line-height: 1.25; letter-spacing: -.04em; }
.login-form { display: grid; gap: 17px; }
.login-form label { display: grid; gap: 7px; }
.login-form label > span { color: #40506a; font-size: 10px; font-weight: 700; }
.login-card input { min-height: 46px; padding: 12px 13px; font-size: 12px; }
.password-field { position: relative; }
.password-field input { padding-right: 65px; }
.password-toggle { position: absolute; top: 50%; right: 7px; min-height: 32px; padding: 6px 9px; transform: translateY(-50%); background: transparent; color: var(--blue-600); font-size: 9px; }
.password-toggle:hover { transform: translateY(-50%); background: var(--blue-50); }
.login-submit { display: flex; justify-content: space-between; width: 100%; min-height: 47px; margin-top: 3px; padding: 12px 16px; }
.error { display: grid; gap: 2px; margin: -8px 0 18px; padding: 12px 14px; border: 1px solid #f1c7c7; border-radius: 11px; background: #fff2f2; color: #a83636; font-size: 10px; }
.error strong { font-size: 11px; }
.login-help { margin: 18px 0 0; color: var(--muted-light); font-size: 9px; text-align: center; }
.login-help a { color: var(--blue-600); font-weight: 700; }
.auth-shell { min-height: 650px; }
.auth-icon { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid #cfe0f6; border-radius: 17px; background: linear-gradient(145deg, #f3f8ff, #e7f1ff); color: var(--blue-600); box-shadow: 0 10px 24px rgba(36, 107, 219, .12); font-size: 22px; font-weight: 800; }
.auth-icon-success { border-color: #c9eadb; background: linear-gradient(145deg, #f0fbf6, #e2f7ed); color: #16855c; }
.auth-icon-error { border-color: #f1cccc; background: linear-gradient(145deg, #fff7f7, #ffebeb); color: #b43c3c; }
.auth-security-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 13px 14px; border: 1px solid #dce7f4; border-radius: 12px; background: #f7faff; color: #61718a; }
.auth-security-note span { line-height: 1.5; }
.auth-security-note p { margin: 0; font-size: 9px; line-height: 1.65; }
.login-form small { color: #718098; font-size: 9px; line-height: 1.5; }
.login-form em { color: #b43c3c; font-size: 9px; font-style: normal; }
.register-shell { min-height: 720px; }
.register-brand { padding-top: 45px; padding-bottom: 45px; }
.register-brand h1 { font-size: clamp(34px, 3.7vw, 44px); }
.register-card { justify-content: flex-start; overflow-y: auto; padding-top: 43px; padding-bottom: 34px; }
.register-card .login-heading { margin-bottom: 18px; }
.register-steps { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin: 0 0 22px; padding: 10px 12px; border: 1px solid #dce8f6; border-radius: 12px; background: #f6f9fd; color: #5c6d85; font-size: 8px; font-weight: 700; white-space: nowrap; }
.register-steps i { color: #9aabc0; font-style: normal; }
.register-privacy { margin: 14px auto 0; max-width: 390px; color: #8491a4; font-size: 8px; line-height: 1.65; text-align: center; }
.auth-links { display: flex; justify-content: center; gap: 14px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #edf1f6; color: #66758b; font-size: 8px; font-weight: 600; }
.auth-links a { text-decoration: none; }
.auth-links a:hover { color: var(--blue-600); }
.login-submit:disabled { cursor: wait; opacity: .78; }
.login-submit.is-loading .submit-arrow { animation: auth-pulse .9s ease-in-out infinite alternate; }
@keyframes auth-pulse { to { opacity: .25; } }

@media (max-width: 1180px) {
    .app-shell { grid-template-columns: 232px minmax(0, 1fr); }
    .dashboard-main { padding: 32px 28px 22px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .management-layout { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); }
    .management-page .management-layout { grid-template-columns: minmax(320px, .8fr) minmax(460px, 1.2fr); }
}

@media (max-width: 900px) {
    .app-shell { display: block; }
    .sidebar { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: 100%; height: auto; padding: 16px 20px; }
    .sidebar::after,
    .sidebar-source { display: none; }
    .sidebar-brand { padding: 0; }
    .sidebar-brand small { display: none; }
    .sidebar-logo { width: 43px; height: 41px; }
    .sidebar-logo-image { width: 128px; height: auto; }
    .sidebar-nav { flex-direction: row; justify-content: flex-end; }
    .sidebar-nav a { min-height: 41px; padding: 9px 12px; }
    .sidebar-nav a.active { box-shadow: none; }
    .dashboard-main { padding: 28px 22px 20px; }
    .form-card { position: static; }
    .management-layout { grid-template-columns: 1fr; }
    .management-page .management-layout { grid-template-columns: 1fr; }
    .management-page .user-list-scroll { max-height: 620px; }
    .management-page .member-search-bar { align-items: stretch; flex-direction: column; }
    .management-page .member-search-result { text-align: left; }
    .management-page .member-cost-scroll { max-height: 620px; }
    .login-shell { grid-template-columns: 1fr; width: min(560px, 100%); min-height: 0; }
    .login-brand { display: none; }
    .mobile-mark { display: inline-flex; }
    .mobile-brand-logo { display: inline-flex; }
}

@media (max-width: 680px) {
    .sidebar { display: block; padding: 15px; }
    .sidebar-brand { justify-content: center; margin-bottom: 12px; }
    .sidebar-nav { justify-content: center; }
    .sidebar-nav a { flex: 1; justify-content: center; font-size: 11px; }
    .dashboard-main { padding: 24px 14px 18px; }
    .topbar { align-items: flex-start; margin-bottom: 22px; }
    .topbar h1 { font-size: 29px; }
    .topbar-actions { align-items: flex-end; }
    .account-identity { max-width: 260px; }
    .source-badge { display: none; }
    .filter-panel { padding: 17px; }
    .filter-heading { align-items: flex-start; flex-direction: column; }
    .quick-filters { width: 100%; }
    .filter-button { flex: 1; }
    .date-filter { display: grid; grid-template-columns: 1fr 1fr; }
    .date-filter label { min-width: 0; }
    .date-arrow { display: none; }
    .date-filter button { grid-column: 1 / -1; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
    .metric-card { min-height: 122px; padding: 17px; }
    .metric-icon { width: 40px; height: 40px; }
    .metric-card strong { font-size: 19px; }
    .card-heading { padding: 18px; }
    .management-card { padding: 19px; }
    .management-page .user-list-card { padding-right: 11px; padding-bottom: 12px; }
    .management-page .user-list-card .user-list-heading { margin-right: 8px; }
    .management-page .user-list-heading { align-items: stretch; flex-direction: column; }
    .management-page .user-list-scroll { max-height: 540px; padding-right: 7px; }
    .user-sort-form { width: 100%; }
    .user-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .member-report-filter { align-items: stretch; flex-direction: column; }
    .member-date-filter { width: 100%; justify-content: flex-start; }
    .management-page .member-report-header,
    .management-page .member-report-filter { padding-right: 19px; padding-left: 19px; }
    .management-page .member-search-bar { padding: 14px 19px; }
    .management-page .member-search-form { align-items: stretch; flex-wrap: wrap; }
    .management-page .member-search-form label { min-width: 100%; max-width: none; }
    .management-page .member-search-form button { flex: 1; }
    .management-page .member-cost-scroll { max-height: 540px; }
    .management-page .member-date-filter input { min-width: 0; }
    .management-page .customer-form [id$="api_ids"] { grid-template-columns: 1fr; }
    .login-page { padding: 16px; }
    .login-shell { border-radius: 22px; }
    .login-card { min-height: 590px; padding: 36px 26px; }
    .login-heading h2 { font-size: 26px; }
    .register-card { min-height: 0; padding-top: 30px; padding-bottom: 27px; }
    .register-steps { overflow-x: auto; justify-content: flex-start; }
    .auth-links { flex-wrap: wrap; }
}

/* Partner reseller control center */
.reseller-dashboard { --reseller-primary: #2563eb; background: #f3f6fb; color: #142033; }
.reseller-shell { grid-template-columns: 270px minmax(0, 1fr); }
.reseller-sidebar { background: linear-gradient(180deg, #111827 0%, #172554 58%, #0f172a 100%); }
.reseller-brand-block { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 18px 17px; border-bottom: 1px solid rgba(255,255,255,.1); }
.reseller-brand-block img { width: 48px; height: 48px; object-fit: contain; padding: 5px; border-radius: 13px; background: #fff; }
.reseller-brand-block div { display: grid; gap: 3px; min-width: 0; }
.reseller-brand-block small { color: #93c5fd; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.reseller-brand-block strong { overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.reseller-nav { padding: 18px 12px; }
.reseller-nav a { gap: 12px; border-radius: 12px; color: #cbd5e1; }
.reseller-nav a span { display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,.08); color: #bfdbfe; font-size: 11px; }
.reseller-nav a:hover, .reseller-nav a.active { background: linear-gradient(135deg, var(--reseller-primary), #06b6d4); color: #fff; box-shadow: 0 12px 26px rgba(2,132,199,.24); }
.reseller-nav a.active span { background: rgba(255,255,255,.18); color: #fff; }
.reseller-sidebar-note { display: flex; gap: 10px; margin: auto 14px 17px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(15,23,42,.45); }
.reseller-sidebar-note div { display: grid; gap: 3px; }
.reseller-sidebar-note strong { color: #e2e8f0; font-size: 10px; }
.reseller-sidebar-note small { color: #94a3b8; font-size: 8px; }
.reseller-main { padding: 31px 34px 40px; background: radial-gradient(circle at top right, color-mix(in srgb, var(--reseller-primary) 9%, transparent), transparent 30%), #f3f6fb; }
.reseller-topbar { margin-bottom: 26px; }
.reseller-topbar h1 { font-size: 29px; letter-spacing: -.035em; }
.reseller-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.reseller-kpi-grid article { position: relative; overflow: hidden; min-height: 128px; padding: 21px; border: 1px solid #dce4ef; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(15,23,42,.05); }
.reseller-kpi-grid article::after { content: ""; position: absolute; right: -20px; bottom: -35px; width: 90px; height: 90px; border-radius: 999px; background: color-mix(in srgb, var(--reseller-primary) 13%, transparent); }
.reseller-kpi-grid article span { display: block; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.reseller-kpi-grid article strong { display: block; margin: 14px 0 7px; color: #0f172a; font-size: 27px; }
.reseller-kpi-grid article small { color: #94a3b8; font-size: 9px; }
.reseller-kpi-grid article.wallet { grid-column: span 4; min-height: 100px; background: linear-gradient(120deg, #0f172a, #172554 62%, var(--reseller-primary)); }
.reseller-kpi-grid article.wallet span, .reseller-kpi-grid article.wallet small { color: #bfdbfe; }
.reseller-kpi-grid article.wallet strong { color: #fff; }
.reseller-command-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; margin-bottom: 22px; }
.reseller-endpoint-card, .reseller-quick-card { padding: 25px; border: 1px solid #d9e3ef; border-radius: 19px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.reseller-endpoint-card h2, .reseller-quick-card h2 { margin: 5px 0 13px; font-size: 20px; }
.endpoint-value { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; padding: 12px 13px; border: 1px solid color-mix(in srgb, var(--reseller-primary) 30%, #dbe4ef); border-radius: 12px; background: color-mix(in srgb, var(--reseller-primary) 6%, #f8fafc); }
.endpoint-value code { overflow: hidden; flex: 1; color: #0f172a; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-value button { border: 0; border-radius: 9px; padding: 8px 11px; background: var(--reseller-primary); color: #fff; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; }
.reseller-endpoint-card p, .reseller-quick-card p { color: #64748b; font-size: 10px; line-height: 1.7; }
.reseller-quick-card > div:last-child { display: flex; gap: 9px; margin-top: 18px; }
.domain-status { display: inline-flex !important; width: fit-content; padding: 7px 10px; border-radius: 999px; font-weight: 800; }
.domain-status.active { background: #dcfce7; color: #15803d; }
.domain-status.pending { background: #fef3c7; color: #b45309; }
.domain-status.none { background: #e2e8f0; color: #475569; }
.reseller-api-card { border-top: 4px solid var(--reseller-primary); }
.reseller-api-layout { display: grid; grid-template-columns: minmax(260px, .34fr) minmax(0, .66fr); gap: 20px; }
.reseller-api-form { display: grid; align-content: start; gap: 13px; padding: 18px; border: 1px solid #dbe4ef; border-radius: 15px; background: #f8fafc; }
.reseller-api-form label, .reseller-settings-form label { display: grid; gap: 7px; color: #334155; font-size: 10px; font-weight: 800; }
.reseller-api-form input, .reseller-api-form select, .reseller-settings-form input, .reseller-settings-form select { width: 100%; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 11px; background: #fff; color: #0f172a; font: inherit; }
.reseller-api-form small, .reseller-settings-form small { color: #94a3b8; font-size: 8px; font-weight: 500; line-height: 1.55; }
.reseller-report-toolbar { border-left: 4px solid var(--reseller-primary); }
.reseller-client-layout { display: grid; grid-template-columns: minmax(280px, .33fr) minmax(0, .67fr); gap: 20px; }
.reseller-client-form-card { align-self: start; }
.reseller-client-table td > small { display: block; margin-top: 4px; color: #94a3b8; }
.reseller-client-table .status-pill { margin-top: 7px; }
.profit-value { color: #15803d; }
.reseller-settings-grid { display: grid; grid-template-columns: minmax(0, .58fr) minmax(330px, .42fr); gap: 21px; }
.reseller-preview-card { padding: 25px; border-radius: 20px; background: linear-gradient(155deg, #0f172a, #172554); color: #fff; box-shadow: 0 20px 45px rgba(15,23,42,.22); }
.reseller-preview-card .eyebrow { color: #93c5fd; }
.brand-preview { display: grid; gap: 7px; margin: 20px 0; padding: 24px; border-radius: 17px; background: linear-gradient(135deg, var(--preview-color), #06b6d4); }
.brand-preview img { width: 58px; height: 58px; object-fit: contain; padding: 5px; border-radius: 12px; background: #fff; }
.brand-preview strong { font-size: 22px; }
.brand-preview span { color: rgba(255,255,255,.78); font-size: 10px; }
.domain-preview { display: grid; gap: 9px; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.06); }
.domain-preview span { color: #94a3b8; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.domain-preview code { overflow-wrap: anywhere; color: #fff; font-size: 13px; font-weight: 800; }
.domain-guide { margin-top: 22px; color: #cbd5e1; font-size: 10px; line-height: 1.7; }
.domain-guide h3 { color: #fff; font-size: 15px; }
.domain-guide code { color: #7dd3fc; }
.domain-guide ol { padding-left: 18px; }

@media (max-width: 1100px) {
    .reseller-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .reseller-kpi-grid article.wallet { grid-column: span 2; }
    .reseller-command-grid, .reseller-api-layout, .reseller-client-layout, .reseller-settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .reseller-shell { grid-template-columns: 1fr; }
    .reseller-sidebar { position: static; min-height: auto; }
    .reseller-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
    .reseller-sidebar-note { display: none; }
    .reseller-main { padding: 22px 15px 34px; }
    .reseller-topbar { align-items: flex-start; flex-direction: column; }
    .reseller-kpi-grid { grid-template-columns: 1fr; }
    .reseller-kpi-grid article.wallet { grid-column: span 1; }
    .endpoint-value { align-items: stretch; flex-direction: column; }
    .reseller-quick-card > div:last-child { flex-direction: column; }
}

@media (max-width: 460px) {
    .sidebar-brand { justify-content: flex-start; }
    .sidebar-nav a { padding: 9px 8px; }
    .sidebar-nav svg { width: 17px; }
    .topbar { display: block; }
    .topbar > .secondary-button { margin-top: 16px; }
    .topbar-actions { position: static; justify-content: space-between; margin-top: 15px; }
    .account-identity { max-width: calc(100% - 52px); }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 105px; }
    .card-heading { align-items: flex-start; }
    .result-count { white-space: normal; text-align: center; }
    .user-row { grid-template-columns: 42px minmax(0, 1fr); }
    .user-actions { grid-column: 1 / -1; grid-row: auto; display: flex; align-items: center; justify-content: space-between; }
    .member-report-header { align-items: stretch; flex-direction: column; }
    .member-total { min-width: 0; text-align: left; }
    .member-date-filter { display: grid; grid-template-columns: 1fr 1fr; }
    .member-date-filter button { grid-column: 1 / -1; }
}

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

.commercial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.summary-card,.api-management-panel,.key-reveal{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px}.summary-card span{display:block;color:#64748b}.summary-card strong{display:block;font-size:28px;margin-top:8px}.key-reveal{background:#ecfdf5;border-color:#86efac}.key-reveal code{display:block;margin:12px 0;padding:12px;background:#052e16;color:#fff;border-radius:8px;word-break:break-all}.inline-key-form{display:flex;gap:10px;margin:16px 0}.inline-key-form input{flex:1;padding:12px;border:1px solid #cbd5e1;border-radius:8px}.inline-key-form button,.managed-key-list button{padding:10px 16px;border:0;border-radius:8px;background:#0f766e;color:#fff}.managed-key-list>div{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid #e5e7eb}.managed-key-list small{display:block;color:#64748b;margin-top:4px}@media(max-width:800px){.commercial-grid{grid-template-columns:1fr}.inline-key-form{flex-direction:column}}

.legacy-key-notice { margin: 16px 0; padding: 14px 16px; border: 1px solid #f4c7a1; border-radius: 11px; background: #fff8f1; color: #8a3b12; }
.legacy-key-notice strong { display: block; margin-bottom: 4px; font-size: 11px; }
.legacy-key-notice p { margin: 0; font-size: 9px; line-height: 1.65; }

.activity-card { margin-top: 22px; }
.activity-heading { align-items: flex-start; }
.transparency-note { display: flex; align-items: flex-start; gap: 14px; margin: 0 32px 20px; padding: 16px 18px; border: 1px solid #cfe0f6; border-radius: 12px; background: linear-gradient(135deg, #f5f9ff, #fbfdff); color: var(--navy-800); }
.transparency-note .transparency-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: #e3efff; color: var(--blue-600); font-size: 14px; font-weight: 900; }
.transparency-note strong { display: block; margin-bottom: 4px; font-size: 12px; }
.transparency-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.activity-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 32px 22px; }
.activity-stat { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.activity-stat > span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; font-size: 15px; font-weight: 900; }
.activity-stat small, .activity-stat strong { display: block; }
.activity-stat small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.activity-stat strong { margin-top: 3px; color: var(--navy-900); font-size: 19px; line-height: 1.1; }
.success-stat > span { background: #e8f8f0; color: #148553; }
.failed-stat > span { background: #fff0f0; color: #c43c3c; }
.input-stat > span { background: #eaf2ff; color: #2867c7; }
.output-stat > span { background: #f1edff; color: #7652cc; }
.activity-table { min-width: 1120px; }
.activity-table td { vertical-align: middle; }
.activity-table td strong, .activity-table td small { display: block; }
.activity-table td small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.activity-table code { padding: 4px 7px; border-radius: 7px; background: #f1f5f9; color: #334155; font-size: 10px; white-space: nowrap; }
.request-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.request-status.success { background: #e8f8f0; color: #148553; }
.request-status.failed { background: #fff0f0; color: #c43c3c; }
.activity-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; padding: 16px 22px; border-top: 1px solid var(--line); }
.activity-pagination a { color: var(--blue-600); font-size: 11px; font-weight: 700; text-decoration: none; }
.activity-pagination a:last-child { justify-self: end; }
.activity-pagination strong { color: var(--muted); font-size: 10px; }

@media (max-width: 760px) {
    .activity-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .transparency-note, .activity-summary { margin-right: 14px; margin-left: 14px; }
}

/* Public Token Codex landing page */
.landing-page { background: #fff; color: var(--navy-900); }
.landing-page main { overflow: hidden; }
.landing-nav { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 78px; padding: 12px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(211, 222, 235, .8); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); }
.landing-logo { display: inline-flex; width: fit-content; align-items: center; padding: 6px 8px; border-radius: 8px; }
.landing-logo img { display: block; width: 190px; max-width: 100%; height: auto; }
.landing-nav nav { display: flex; align-items: center; gap: 30px; }
.landing-nav nav a, .landing-login { color: #40536e; font-size: 12px; font-weight: 700; text-decoration: none; }
.landing-nav nav a:hover, .landing-login:hover { color: var(--blue-600); }
.landing-nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.landing-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--blue-600); border-radius: 12px; background: linear-gradient(135deg, var(--blue-600), #164fb8); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 12px 28px rgba(36, 107, 219, .2); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.landing-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(36, 107, 219, .27); }
.landing-button.small { min-height: 42px; padding: 10px 18px; border-radius: 10px; }
.landing-button.large { min-height: 56px; padding: 15px 28px; border-radius: 14px; font-size: 13px; }
.landing-button.secondary { border-color: #cad7e7; background: #fff; color: var(--navy-800); box-shadow: none; }
.landing-button.secondary:hover { border-color: #8db4e8; background: var(--blue-50); }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr); align-items: center; gap: 76px; min-height: 690px; padding: 86px max(24px, calc((100vw - 1180px) / 2)) 96px; background: radial-gradient(circle at 86% 18%, rgba(59, 130, 246, .14), transparent 25rem), radial-gradient(circle at 12% 82%, rgba(22, 163, 106, .08), transparent 24rem), linear-gradient(145deg, #f8fbff, #fff 48%, #f5f9ff); }
.landing-hero-copy { position: relative; z-index: 1; }
.landing-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 7px 6px 14px; border: 1px solid #c9dcf6; border-radius: 999px; background: #fff; color: var(--blue-700); font-size: 10px; font-weight: 700; box-shadow: var(--shadow-xs); }
.landing-kicker strong { padding: 7px 11px; border-radius: 999px; background: #eaf3ff; font-size: 10px; }
.landing-hero h1 { max-width: 720px; margin: 24px 0 22px; font-size: clamp(43px, 5.4vw, 72px); line-height: 1.08; letter-spacing: -.055em; }
.landing-hero h1 span { color: var(--blue-600); }
.landing-lead { max-width: 700px; margin: 0; color: #556780; font-size: 17px; line-height: 1.8; }
.landing-lead strong { color: var(--navy-900); }
.landing-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.landing-cta-row.centered { justify-content: center; }
.landing-trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: #63738a; font-size: 10px; font-weight: 700; }
.landing-trust-row span::first-letter { color: var(--green-600); }
.landing-price-spotlight { position: relative; padding: 34px; overflow: hidden; border: 1px solid #c4d9f5; border-radius: 28px; background: rgba(255, 255, 255, .95); box-shadow: 0 34px 80px rgba(21, 68, 130, .16); }
.landing-price-spotlight::before { position: absolute; top: -100px; right: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(59, 130, 246, .09); content: ""; }
.spotlight-label { position: relative; margin: 0 0 22px; color: var(--blue-600); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.spotlight-equation { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 13px; }
.spotlight-equation div { padding: 22px 14px; border: 1px solid var(--line); border-radius: 18px; background: #f8fafc; text-align: center; }
.spotlight-equation .spotlight-result { border-color: #93c5fd; background: linear-gradient(145deg, #eff6ff, #dcecff); }
.spotlight-equation strong, .spotlight-equation span { display: block; }
.spotlight-equation strong { font-size: 54px; line-height: 1; letter-spacing: -.06em; }
.spotlight-equation span { margin-top: 9px; color: var(--muted); font-size: 10px; font-weight: 700; }
.spotlight-equation b { color: var(--blue-600); font-size: 25px; }
.spotlight-saving { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1px 12px; margin-top: 18px; padding: 18px 20px; border-radius: 17px; background: linear-gradient(135deg, #0d2140, #164a89); color: #fff; }
.spotlight-saving span { align-self: center; font-size: 11px; font-weight: 700; }
.spotlight-saving strong { grid-row: 1 / 3; grid-column: 2; font-size: 35px; line-height: 1; }
.spotlight-saving small { color: #b9d2f2; font-size: 9px; }
.spotlight-note { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; text-align: center; }
.landing-section { padding: 100px max(24px, calc((100vw - 1180px) / 2)); }
.landing-section-heading { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.landing-section-heading.left { max-width: 800px; margin-left: 0; text-align: left; }
.landing-section-heading h2 { margin: 9px 0 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.18; letter-spacing: -.04em; }
.landing-section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.pricing-section { background: #fff; }
.pricing-comparison { position: relative; display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; max-width: 930px; margin: 0 auto; }
.pricing-card { position: relative; min-height: 300px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.pricing-card.featured { border: 2px solid var(--blue-500); background: linear-gradient(150deg, #fff, #f1f7ff); box-shadow: 0 25px 60px rgba(36, 107, 219, .16); }
.pricing-card-label { color: var(--navy-800); font-size: 12px; font-weight: 800; }
.pricing-amount { margin: 27px 0 24px; }
.pricing-amount strong, .pricing-amount span { display: block; }
.pricing-amount strong { font-size: 47px; line-height: 1; letter-spacing: -.05em; }
.pricing-card.featured .pricing-amount strong { color: var(--blue-600); }
.pricing-amount span { margin-top: 9px; color: var(--muted); font-size: 10px; }
.pricing-divider { height: 1px; margin-bottom: 23px; background: var(--line); }
.pricing-card p { margin: 0 0 16px; color: #56677f; }
.pricing-card p strong { color: var(--navy-900); }
.pricing-ratio { display: inline-flex; padding: 7px 10px; border-radius: 8px; background: #eef2f7; color: #55667d; font-size: 9px; font-weight: 800; }
.pricing-card.featured .pricing-ratio { background: #dbeafe; color: var(--blue-700); }
.pricing-badge { position: absolute; top: -16px; right: 24px; padding: 9px 13px; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .08em; box-shadow: 0 10px 22px rgba(36, 107, 219, .25); }
.pricing-versus { position: relative; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border: 5px solid #fff; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 10px; font-weight: 800; }
.pricing-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1060px; margin: 34px auto 0; }
.pricing-examples div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: #f9fbfd; }
.pricing-examples span, .pricing-examples strong, .pricing-examples small, .pricing-examples em { display: block; }
.pricing-examples span { color: var(--muted); font-size: 9px; }
.pricing-examples strong { color: var(--navy-900); font-size: 14px; }
.pricing-examples small { color: var(--muted); font-size: 9px; }
.pricing-examples b { grid-row: 1 / 3; grid-column: 2; color: var(--blue-600); }
.pricing-examples em { grid-column: 1 / -1; margin-top: 9px; color: var(--blue-700); font-size: 11px; font-style: normal; font-weight: 800; }
.benefit-section { background: linear-gradient(145deg, #f4f8fd, #eef4fb); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-grid article { position: relative; min-height: 210px; padding: 28px; overflow: hidden; border: 1px solid #dce6f1; border-radius: 20px; background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-xs); }
.benefit-grid article > span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-50); color: var(--blue-600); font-size: 10px; font-weight: 800; }
.benefit-grid h3 { margin: 22px 0 9px; font-size: 17px; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.process-section { background: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-grid article { position: relative; padding: 26px 22px; border-top: 2px solid #dbe7f5; }
.process-grid article:not(:last-child)::after { position: absolute; top: 41px; right: -14px; color: #b7c9df; content: "→"; font-size: 20px; }
.process-grid strong { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 12px; }
.process-grid h3 { margin: 20px 0 8px; font-size: 15px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.landing-final-cta { padding: 88px 24px; background: radial-gradient(circle at 20% 0, rgba(88, 151, 255, .3), transparent 26rem), linear-gradient(135deg, #071426, #123b70); color: #fff; text-align: center; }
.landing-final-cta > img { width: 215px; padding: 8px 13px; border-radius: 10px; background: #fff; }
.landing-final-cta h2 { max-width: 760px; margin: 11px auto 14px; font-size: clamp(32px, 4.5vw, 50px); line-height: 1.18; letter-spacing: -.04em; }
.landing-final-cta > p:not(.eyebrow) { max-width: 720px; margin: 0 auto; color: #b9cbe2; }
.landing-final-cta .eyebrow { margin-top: 28px; }
.landing-button.light { border-color: #fff; background: #fff; color: var(--navy-900); box-shadow: 0 16px 35px rgba(0, 0, 0, .18); }
.landing-button.outline-light { border-color: rgba(255, 255, 255, .45); background: transparent; color: #fff; box-shadow: none; }
.landing-disclaimer { display: flex; align-items: flex-start; gap: 12px; padding: 20px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: #fffaf0; color: #765c2a; font-size: 10px; line-height: 1.7; }
.landing-disclaimer strong { flex: 0 0 auto; }
.landing-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 105px; padding: 24px max(24px, calc((100vw - 1180px) / 2)); background: #fff; color: var(--muted); font-size: 10px; }
.landing-footer img { display: block; width: 165px; height: auto; }
.landing-footer > div { display: flex; justify-content: flex-end; gap: 22px; }
.landing-footer a { color: var(--navy-800); font-weight: 700; text-decoration: none; }

.integration-preview-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr); align-items: center; gap: 64px; background: #f7faff; }
.integration-preview-copy h2 { max-width: 720px; margin: 9px 0 17px; font-size: clamp(32px, 4vw, 48px); line-height: 1.18; letter-spacing: -.04em; }
.integration-preview-copy > p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.supported-model-callout { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; padding: 14px 17px; border: 1px solid #a9c9ef; border-radius: 14px; background: #fff; box-shadow: var(--shadow-xs); }
.supported-model-callout span { color: var(--blue-600); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.supported-model-callout strong { color: var(--navy-900); font-size: 17px; }
.supported-model-callout small { color: var(--muted); }
.supported-model-callout code { color: var(--navy-900); font-weight: 700; }
.model-id-list { display: inline-flex; flex-wrap: wrap; gap: 7px; }
.model-id-list code { padding: 5px 8px; border: 1px solid #d8e6f7; border-radius: 8px; background: var(--blue-50); white-space: nowrap; }
.integration-base-card { padding: 32px; border: 1px solid #c9dcf6; border-radius: 22px; background: #fff; box-shadow: 0 22px 55px rgba(21, 68, 130, .12); }
.integration-base-card > span { display: block; margin-bottom: 13px; color: var(--blue-600); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.integration-base-card > code { display: block; overflow-wrap: anywhere; color: var(--navy-900); font-size: 16px; font-weight: 700; }
.integration-base-card > small { display: block; margin-top: 15px; color: var(--muted); line-height: 1.7; }

.guide-page { background: #f6f9fd; color: var(--navy-900); }
.guide-nav { position: sticky; top: 0; z-index: 20; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr); align-items: center; gap: 70px; min-height: 500px; padding: 80px max(24px, calc((100vw - 1180px) / 2)); background: radial-gradient(circle at 85% 20%, rgba(59, 130, 246, .16), transparent 25rem), linear-gradient(145deg, #f8fbff, #fff); }
.guide-hero h1 { max-width: 760px; margin: 10px 0 20px; font-size: clamp(42px, 5vw, 64px); line-height: 1.08; letter-spacing: -.05em; }
.guide-hero > div:first-child > p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.guide-model-badge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; padding: 14px 17px; border: 1px solid #a9c9ef; border-radius: 14px; background: #fff; box-shadow: var(--shadow-xs); }
.guide-model-badge span { color: var(--blue-600); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.guide-model-badge strong { font-size: 18px; }
.guide-model-badge small { color: var(--muted); }
.guide-model-badge code { color: var(--navy-900); font-weight: 700; }
.guide-endpoint-card { padding: 30px; border: 1px solid #bdd5f3; border-radius: 24px; background: #fff; box-shadow: 0 28px 70px rgba(21, 68, 130, .15); }
.guide-endpoint-card > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guide-endpoint-card span { color: var(--blue-600); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-endpoint-card > code { display: block; margin: 24px 0 16px; overflow-wrap: anywhere; color: var(--navy-900); font-size: 17px; font-weight: 700; }
.guide-endpoint-card small { color: var(--muted); line-height: 1.65; }
.guide-endpoint-card small code { color: var(--navy-800); }
.guide-section { padding: 88px max(24px, calc((100vw - 1180px) / 2)); }
.guide-section:nth-of-type(odd) { background: #fff; }
.guide-section-heading { max-width: 780px; margin-bottom: 42px; }
.guide-section-heading h2 { margin: 9px 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.18; letter-spacing: -.04em; }
.guide-section-heading > p:last-child:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.75; }
.guide-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-step-grid article { padding: 25px; border: 1px solid #dce6f1; border-radius: 18px; background: #fff; box-shadow: var(--shadow-xs); }
.guide-step-grid strong { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy-900); color: #fff; font-size: 11px; }
.guide-step-grid h3 { margin: 20px 0 8px; font-size: 15px; }
.guide-step-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.guide-note { margin-top: 22px; padding: 18px 20px; border: 1px solid #f1d89a; border-radius: 14px; background: #fffaf0; color: #765c2a; font-size: 11px; line-height: 1.75; }
.guide-note code { color: #594313; font-weight: 700; }
.guide-note.important { border-color: #f0b8b1; background: #fff4f2; color: #8f2f23; }
.guide-note.important code { color: #7a271a; }
.guide-tools-section { background: #eef4fb !important; }
.guide-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.guide-tab { min-height: 43px; padding: 10px 17px; border: 1px solid #cad7e7; border-radius: 11px; background: #fff; color: var(--navy-800); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.guide-tab:hover, .guide-tab.active { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.guide-panel { display: none; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); gap: 30px; padding: 30px; border: 1px solid #d7e3f1; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.guide-panel.active { display: grid; }
.guide-panel-copy h3 { margin: 0 0 12px; font-size: 24px; }
.guide-panel-copy p, .guide-panel-copy li { color: var(--muted); font-size: 11px; line-height: 1.75; }
.guide-panel-copy ul { padding-left: 18px; }
.guide-panel-copy code { color: var(--navy-900); font-weight: 700; }
.code-stack { display: grid; gap: 14px; }
.code-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #263b55; border-radius: 16px; background: #071426; }
.code-card.wide { max-width: 900px; }
.code-card pre { margin: 0; padding: 50px 22px 24px; overflow: auto; color: #d8e8fb; font-size: 12px; line-height: 1.7; tab-size: 2; }
.code-card code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-label { position: absolute; top: 15px; left: 19px; color: #8fb4df; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.copy-button { min-height: 34px; padding: 7px 12px; border: 1px solid #b9cee8; border-radius: 9px; background: #fff; color: var(--navy-800); cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; }
.copy-button:hover { border-color: var(--blue-600); color: var(--blue-600); }
.code-card > .copy-button { position: absolute; top: 11px; right: 12px; z-index: 1; border-color: #38536f; background: #11263e; color: #d8e8fb; }
.troubleshooting-section { background: #fff !important; }
.troubleshooting-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.troubleshooting-grid article { padding: 24px; border: 1px solid #dce6f1; border-radius: 17px; background: #f9fbfe; }
.troubleshooting-grid article > code { color: #b42318; font-weight: 800; }
.troubleshooting-grid p { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.troubleshooting-grid p code { color: var(--navy-800); }
.guide-cta { padding-top: 76px; padding-bottom: 76px; }

@media (max-width: 980px) {
    .landing-nav { grid-template-columns: 1fr auto; }
    .landing-nav nav { display: none; }
    .landing-hero { grid-template-columns: 1fr; gap: 45px; padding-top: 68px; }
    .landing-price-spotlight { width: min(100%, 600px); }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid article:nth-child(2)::after { display: none; }
    .pricing-examples { grid-template-columns: 1fr; }
    .integration-preview-section, .guide-hero { grid-template-columns: 1fr; gap: 40px; }
    .guide-step-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .landing-nav { min-height: 68px; padding-right: 16px; padding-left: 16px; }
    .landing-logo { padding: 4px; }
    .landing-logo img { width: 145px; }
    .landing-login { display: none; }
    .landing-button.small { min-height: 38px; padding: 8px 12px; font-size: 10px; }
    .landing-hero { min-height: auto; padding: 54px 18px 70px; }
    .landing-hero h1 { margin-top: 20px; font-size: 42px; }
    .landing-lead { font-size: 14px; }
    .landing-cta-row { flex-direction: column; }
    .landing-cta-row .landing-button { width: 100%; }
    .landing-trust-row { align-items: flex-start; flex-direction: column; gap: 9px; }
    .landing-price-spotlight { padding: 24px 18px; border-radius: 22px; }
    .spotlight-equation strong { font-size: 42px; }
    .spotlight-equation span { font-size: 8px; }
    .landing-section { padding: 72px 18px; }
    .landing-section-heading { margin-bottom: 36px; }
    .pricing-comparison { grid-template-columns: 1fr; gap: 25px; }
    .pricing-versus { position: absolute; top: calc(50% - 25px); left: calc(50% - 25px); }
    .pricing-card { min-height: auto; padding: 28px; }
    .benefit-grid, .process-grid { grid-template-columns: 1fr; }
    .process-grid article::after { display: none; }
    .landing-disclaimer { flex-direction: column; }
    .landing-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .landing-footer > div { justify-content: center; }
    .integration-preview-section { padding: 72px 18px; }
    .integration-base-card { padding: 24px 18px; }
    .guide-hero { min-height: auto; padding: 58px 18px 66px; }
    .guide-hero h1 { font-size: 40px; }
    .guide-endpoint-card { padding: 23px 18px; }
    .guide-section { padding: 68px 18px; }
    .guide-step-grid, .troubleshooting-grid { grid-template-columns: 1fr; }
    .guide-tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
    .guide-tab { padding: 9px 10px; }
    .guide-panel { padding: 20px 14px; }
    .code-card pre { padding-right: 16px; padding-left: 16px; font-size: 10px; }
    .promo-actions { align-items: stretch; flex-direction: column; }
}

/* Simple partner portal */
.partner-body { margin: 0; background: #f6f7f9; color: #172033; font-size: 14px; }
.partner-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e5e7eb; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.partner-header-inner { display: flex; align-items: center; gap: 28px; width: min(1180px, calc(100% - 32px)); min-height: 70px; margin: 0 auto; }
.partner-brand { display: flex; align-items: center; gap: 10px; min-width: 210px; color: #172033; text-decoration: none; }
.partner-brand img { width: 38px; height: 38px; object-fit: contain; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; }
.partner-brand span { display: grid; gap: 2px; min-width: 0; }
.partner-brand strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.partner-brand small { color: #7b8494; font-size: 10px; }
.partner-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.partner-nav a { padding: 9px 11px; border-radius: 7px; color: #596273; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.partner-nav a:hover { background: #f1f4f8; color: #172033; }
.partner-nav a.active { background: color-mix(in srgb, var(--reseller-primary) 10%, #fff); color: var(--reseller-primary); }
.partner-account { display: flex; align-items: center; gap: 10px; }
.partner-account > span { max-width: 190px; overflow: hidden; color: #667085; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.partner-account button { min-height: 34px; padding: 7px 11px; border: 1px solid #d8dde6; border-radius: 7px; background: #fff; color: #3f4858; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.partner-account button:hover { border-color: #aeb7c5; color: #172033; }
.partner-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 48px; }
.partner-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.partner-page-heading h1 { margin: 0 0 6px; color: #172033; font-size: 28px; letter-spacing: -.03em; }
.partner-page-heading p { margin: 0; color: #687386; font-size: 13px; line-height: 1.6; }
.partner-body .primary-button, .partner-body .secondary-button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 9px 15px; border-radius: 8px; font-size: 12px; font-weight: 750; text-decoration: none; }
.partner-body .primary-button { border: 1px solid var(--reseller-primary); background: var(--reseller-primary); color: #fff; }
.partner-body .secondary-button { border: 1px solid #d7dce4; background: #fff; color: #344054; }
.partner-body .notice { margin-bottom: 18px; border-radius: 9px; font-size: 12px; }
.partner-summary-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.partner-summary-card { min-height: 108px; padding: 18px; border: 1px solid #e1e5eb; border-radius: 11px; background: #fff; }
.partner-summary-card span { display: block; color: #6f7888; font-size: 11px; font-weight: 700; }
.partner-summary-card strong { display: block; margin: 12px 0 5px; color: #172033; font-size: 23px; letter-spacing: -.02em; }
.partner-summary-card small { color: #8a93a2; font-size: 10px; line-height: 1.5; }
.partner-summary-card.primary { border-left: 4px solid var(--reseller-primary); }
.partner-summary-card.primary strong { color: var(--reseller-primary); }
.partner-endpoint-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid #dce2ea; border-radius: 10px; background: #fff; }
.partner-endpoint-bar > div { display: flex; min-width: 0; align-items: center; gap: 12px; }
.partner-endpoint-bar span { color: #6c7585; font-size: 11px; font-weight: 700; }
.partner-endpoint-bar code { overflow: hidden; color: #172033; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.partner-endpoint-bar small { color: #667085; font-size: 10px; }
.partner-endpoint-bar button { padding: 8px 12px; border: 1px solid #d7dce4; border-radius: 7px; background: #fff; color: #344054; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.partner-body .usage-card { border: 1px solid #e1e5eb; border-radius: 11px; background: #fff; box-shadow: none; }
.partner-body .card-heading { padding: 19px 20px; border-bottom: 1px solid #edf0f3; }
.partner-body .card-heading h2 { margin: 0 0 5px; font-size: 17px; }
.partner-body .card-heading p { margin: 0; color: #727c8c; font-size: 11px; line-height: 1.55; }
.partner-api-section { margin-bottom: 24px; }
.partner-inline-form { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr) auto; gap: 12px; align-items: end; padding: 18px 20px; border-bottom: 1px solid #edf0f3; background: #fafbfc; }
.partner-inline-form label { display: grid; gap: 6px; }
.partner-inline-form label > span, .partner-body .customer-form label > span { color: #485264; font-size: 11px; font-weight: 700; }
.partner-inline-form select, .partner-inline-form input, .partner-body .customer-form input, .partner-body .customer-form select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d7dce4; border-radius: 7px; background: #fff; color: #172033; font: inherit; font-size: 12px; }
.partner-inline-form small, .partner-body .customer-form small { color: #8a93a2; font-size: 9px; line-height: 1.5; }
.partner-body table { font-size: 12px; }
.partner-body th { color: #687386; font-size: 10px; }
.partner-body td { color: #344054; }
.partner-body td small { margin-top: 3px; color: #8a93a2; font-size: 9px; }
.partner-report-heading { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: end; gap: 16px; margin: 30px 0 14px; }
.partner-report-heading h2 { margin: 0 0 5px; font-size: 19px; }
.partner-report-heading p { margin: 0; color: #7b8494; font-size: 11px; }
.partner-body .quick-filters { display: flex; gap: 5px; }
.partner-body .filter-button { min-height: 36px; padding: 8px 11px; border-radius: 7px; font-size: 10px; }
.partner-body .date-filter { display: flex; align-items: end; gap: 6px; }
.partner-body .date-filter label { display: grid; gap: 3px; }
.partner-body .date-filter label span { font-size: 9px; }
.partner-body .date-filter input { min-height: 36px; padding: 7px 8px; border-radius: 7px; font-size: 10px; }
.partner-body .date-filter button { min-height: 36px; padding: 8px 12px; border-radius: 7px; font-size: 10px; }
.partner-two-column { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr); gap: 18px; align-items: start; }
.partner-form-card .customer-form { display: grid; gap: 14px; padding: 20px; }
.partner-form-card .customer-form label { display: grid; gap: 6px; }
.partner-form-card .customer-form input[type="checkbox"] { width: 17px; min-height: 17px; }
.partner-form-card .customer-form em { color: #b42318; font-size: 10px; font-style: normal; }
.partner-domain-content { display: grid; gap: 10px; padding: 20px; }
.partner-domain-content > span { color: #6f7888; font-size: 11px; font-weight: 700; }
.partner-domain-content > code { overflow-wrap: anywhere; padding: 12px; border: 1px solid #e1e5eb; border-radius: 7px; background: #f8fafc; color: #172033; font-size: 12px; font-weight: 700; }
.partner-domain-content hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid #edf0f3; }
.partner-domain-content h3 { margin: 0; font-size: 14px; }
.partner-domain-content ol { margin: 0; padding-left: 19px; color: #687386; font-size: 11px; line-height: 1.8; }
.partner-domain-content ol code { color: #172033; font-weight: 700; }
.partner-body .domain-status { border-radius: 7px; font-size: 10px; }

@media (max-width: 980px) {
    .partner-header-inner { flex-wrap: wrap; gap: 8px 18px; padding: 12px 0; }
    .partner-brand { min-width: 0; flex: 1; }
    .partner-nav { order: 3; width: 100%; overflow-x: auto; }
    .partner-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-report-heading { grid-template-columns: 1fr; align-items: start; }
    .partner-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .partner-header-inner, .partner-container { width: min(100% - 22px, 1180px); }
    .partner-header { position: static; }
    .partner-brand small, .partner-account > span { display: none; }
    .partner-account button { padding: 7px 9px; }
    .partner-nav a { padding: 8px 9px; font-size: 11px; }
    .partner-container { padding-top: 24px; }
    .partner-page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
    .partner-page-heading h1 { font-size: 24px; }
    .partner-summary-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .partner-summary-card { min-height: 96px; padding: 14px; }
    .partner-summary-card.primary { grid-column: 1 / -1; }
    .partner-summary-card strong { font-size: 20px; }
    .partner-endpoint-bar { align-items: stretch; flex-direction: column; }
    .partner-endpoint-bar > div { align-items: flex-start; flex-direction: column; gap: 5px; }
    .partner-endpoint-bar code { width: 100%; overflow-wrap: anywhere; white-space: normal; }
    .partner-inline-form { grid-template-columns: 1fr; }
    .partner-body .card-heading { align-items: flex-start; gap: 12px; padding: 16px; }
    .partner-body .card-heading .secondary-button { width: 100%; }
    .partner-body .date-filter { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .partner-body .date-filter button { grid-column: 1 / -1; }
    .partner-body .quick-filters { width: 100%; }
    .partner-body .filter-button { flex: 1; text-align: center; }
}
