/* NewPay dashboard — self-contained, no build step. */
:root {
    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface-2: #f9fafc;
    --border: #e7e9f0;
    --text: #111827;
    --text-2: #4b5563;
    --muted: #8a93a6;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: #eef0ff;
    --success: #059669;  --success-soft: #e7f8f1;
    --warning: #c2710c;  --warning-soft: #fff5e5;
    --danger: #dc2645;   --danger-soft: #fdecef;
    --info: #7c3aed;     --info-soft: #f3edff;
    --neutral: #64748b;  --neutral-soft: #f1f3f7;
    --sidebar: #0f1222;
    --sidebar-text: #a5abc3;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-lg: 0 12px 32px -12px rgba(16, 24, 40, .18);
    --sidebar-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, p { margin: 0; }
svg.icon { width: 18px; height: 18px; flex-shrink: 0; }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- App shell ---------- */
.shell { min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: var(--sidebar-w);
    display: flex; flex-direction: column;
    background: var(--sidebar);
    padding: 20px 14px;
    transition: transform .25s ease;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 6px 16px -4px rgba(124, 58, 237, .6);
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--sidebar-text); }

.nav-label { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5d6380; }
.nav a {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 10px; margin-bottom: 2px;
    border-radius: 9px;
    color: var(--sidebar-text); font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.active { background: rgba(99, 102, 241, .18); color: #fff; }
.nav a.active svg { color: #a5b4fc; }

.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.user { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: #262b45; color: #c7d2fe; font-weight: 600; font-size: 13px;
}
.user-name { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-mail { color: var(--sidebar-text); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout {
    margin-left: auto; padding: 7px; border: 0; border-radius: 8px;
    background: transparent; color: var(--sidebar-text); cursor: pointer;
}
.logout:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.main { margin-left: var(--sidebar-w); min-width: 0; }
.topbar { display: none; }
.content { max-width: 1180px; margin: 0 auto; padding: 32px 32px 56px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.page-sub { margin-top: 4px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--muted); font-weight: 500; font-size: 13px; }

.backdrop { display: none; }

/* ---------- Cards / grid ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 15px; font-weight: 600; }
.card-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.stack { display: grid; gap: 20px; align-content: start; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }

.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.stat-value { margin-top: 12px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-hint { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.stat-hero { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); border: 0; color: #fff; }
.stat-hero .stat-label, .stat-hero .stat-hint { color: rgba(255, 255, 255, .75); }
.stat-hero .stat-icon { background: rgba(255, 255, 255, .16); }

.tone-success { background: var(--success-soft); color: var(--success); }
.tone-warning { background: var(--warning-soft); color: var(--warning); }
.tone-primary { background: var(--primary-soft); color: var(--primary); }
.tone-info { background: var(--info-soft); color: var(--info); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 15px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    font: inherit; font-weight: 600; font-size: 13.5px; white-space: nowrap;
    cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn svg.icon { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); border-color: #d6d9e3; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #f5c6cf; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-block { width: 100%; }
.btn-lg { height: 46px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field + .field { margin-top: 16px; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.req { color: var(--danger); }
.help { font-size: 12.5px; color: var(--muted); }
.input, .select {
    width: 100%; height: 42px; padding: 0 13px;
    font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid #dcdfe8; border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a93a6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input::placeholder { color: #a3aabb; }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.input-lg { height: 52px; font-size: 20px; font-weight: 600; }
.input-group { display: flex; gap: 8px; }
.input-group > :first-child { flex: 1; min-width: 0; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.input-prefix > .input { padding-left: 30px; }
.row-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-2[hidden] { display: none; }
.row-2 > .field { margin-top: 0; }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.section-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.divider { height: 1px; background: var(--border); margin: 22px 0; border: 0; }

.chips { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 10px;
    border: 1px solid #dcdfe8; border-radius: var(--radius-sm);
    font-weight: 500; color: var(--text-2); text-align: center; background: var(--surface);
    transition: all .15s;
}
.chip:hover span { border-color: #c4c9d6; }
.chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(79, 70, 229, .25); }

.pill-btn { border: 0; border-radius: 6px; padding: 3px 9px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-emerald { background: var(--success-soft); color: var(--success); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-amber::before { animation: pulse 1.4s ease-in-out infinite; }
.badge-rose { background: var(--danger-soft); color: var(--danger); }
.badge-violet { background: var(--info-soft); color: var(--info); }
.badge-slate { background: var(--neutral-soft); color: var(--neutral); }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; border: 1px solid; }
.alert-success { background: var(--success-soft); color: #065f46; border-color: #bfe9d6; }
.alert-error { background: var(--danger-soft); color: #9f1239; border-color: #f7c5ce; }

/* ---------- Tables ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.toolbar .search { flex: 1 1 240px; position: relative; }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.toolbar .search .input { padding-left: 36px; height: 38px; }
.toolbar .select { width: auto; min-width: 160px; height: 38px; }

.table { width: 100%; border-collapse: collapse; }
.table th { padding: 11px 18px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.link { cursor: pointer; transition: background .12s; }
.table tbody tr.link:hover { background: var(--surface-2); }
.table .right { text-align: right; }
.table .strong { font-weight: 600; color: var(--text); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 36px; height: 36px; color: #c4c9d6; margin-bottom: 8px; }

/* Activity list */
.list { list-style: none; margin: 0; padding: 0; }
.list a { display: flex; align-items: center; gap: 14px; padding: 13px 22px; color: inherit; border-bottom: 1px solid var(--border); }
.list li:last-child a { border-bottom: 0; }
.list a:hover { background: var(--surface-2); }
.list-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 12.5px; color: var(--muted); }
.list-end { text-align: right; display: grid; gap: 4px; justify-items: end; }

/* Details */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.dl dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.dl dd { margin: 3px 0 0; font-weight: 500; word-break: break-all; }
.hero-amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hero-amount .amount { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }

.cashier { margin-top: 20px; padding: 18px; border-radius: 12px; background: linear-gradient(135deg, #eef0ff, #f6efff); border: 1px solid #e0e1fb; }
.cashier-title { font-weight: 600; color: #3730a3; margin-bottom: 10px; }

pre.code { margin: 0; padding: 16px; border-radius: 12px; background: #0f1222; color: #d5d9ec; font-size: 12px; overflow-x: auto; max-height: 420px; }
details.collapse summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; font-weight: 600; }
details.collapse summary::-webkit-details-marker { display: none; }
details.collapse summary svg { transition: transform .2s; color: var(--muted); }
details.collapse[open] summary svg { transform: rotate(180deg); }
details.collapse .collapse-body { padding: 0 22px 22px; }

/* Logs */
.log summary { display: flex; align-items: center; gap: 12px; padding: 13px 18px; cursor: pointer; list-style: none; border-bottom: 1px solid var(--border); }
.log summary::-webkit-details-marker { display: none; }
.log summary:hover { background: var(--surface-2); }
.log-tag { width: 50px; text-align: center; padding: 2px 0; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.log-endpoint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; white-space: nowrap; }
.log-body { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.pager-links { display: flex; gap: 6px; }
.pager-links a, .pager-links span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 500; }
.pager-links span { opacity: .45; }

.health { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c4c9d6; }
.dot-ok { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.dot-bad { background: #fb7185; box-shadow: 0 0 0 3px rgba(251, 113, 133, .25); }

/* ---------- Auth / guest ---------- */
.guest { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.guest-art {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 48px;
    background: radial-gradient(circle at 20% 20%, #6366f1 0, transparent 45%), radial-gradient(circle at 80% 70%, #a855f7 0, transparent 45%), #0f1222;
    color: #fff;
}
.guest-art h2 { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; max-width: 420px; }
.guest-art p { margin-top: 14px; color: #c3c7de; max-width: 400px; font-size: 15px; }
.guest-cards { display: grid; gap: 12px; max-width: 360px; }
.glass { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); }
.glass .list-icon { background: rgba(255, 255, 255, .12); }
.guest-form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.guest-box { width: 100%; max-width: 380px; }
.guest-box h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.guest-box .page-sub { margin-bottom: 28px; }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 500; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 7px; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }

.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.result { max-width: 420px; width: 100%; text-align: center; padding: 40px 28px; }
.result-icon { width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.result-icon svg { width: 32px; height: 32px; }

/* ---------- Payment links ---------- */
.link-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.link-card { padding: 20px; display: grid; gap: 16px; align-content: start; }
.link-card.is-off { opacity: .7; }
.link-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.link-url { display: flex; gap: 8px; }
.link-url .input { flex: 1; min-width: 0; height: 38px; background: var(--surface-2); }
.link-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.link-stats div { display: grid; gap: 2px; font-size: 12.5px; }
.link-stats strong { font-size: 16px; color: var(--text); }
.link-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }
textarea.input { resize: vertical; font: inherit; }
[data-mode][hidden] { display: none; }

/* Public checkout page */
.checkout {
    min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
    background: radial-gradient(circle at 15% 10%, #e0e3ff 0, transparent 40%), radial-gradient(circle at 85% 90%, #f1e6ff 0, transparent 40%), var(--bg);
}
.checkout-card { width: 100%; max-width: 460px; padding: 28px; box-shadow: var(--shadow-lg); }
.checkout-head { display: flex; align-items: center; gap: 12px; }
.checkout-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.checkout-amount { margin-top: 20px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.checkout-desc { margin-top: 8px; color: var(--text-2); white-space: pre-line; }
.checkout-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.checkout-foot svg { width: 14px; height: 14px; }
.checkout .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .nav-open .sidebar { transform: none; }
    .nav-open .backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(15, 18, 34, .45); }
    .main { margin-left: 0; }
    .topbar {
        position: sticky; top: 0; z-index: 20;
        display: flex; align-items: center; gap: 12px;
        height: 60px; padding: 0 16px;
        background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
    }
    .topbar .brand { padding: 0; color: var(--text); }
    .menu-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--text); display: grid; }
    .content { padding: 24px 20px 48px; }
    .grid-main, .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .guest { grid-template-columns: minmax(0, 1fr); }
    .guest-art { display: none; }
}
@media (max-width: 640px) {
    .content { padding: 20px 16px 40px; }
    .page-title { font-size: 21px; }
    .page-actions { width: 100%; }
    .page-actions > * { flex: 1; }
    .page-actions form { display: flex; }
    .page-actions .btn { width: 100%; }
    .stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .row-2, .dl, .log-body { grid-template-columns: minmax(0, 1fr); }
    .card-body { padding: 18px; }
    .card-head, .list a { padding-left: 18px; padding-right: 18px; }
    .toolbar .select { flex: 1; }
    .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .log-meta .log-time { display: none; }
    .link-grid { grid-template-columns: minmax(0, 1fr); }
    .checkout { padding: 16px; align-items: start; }
    .checkout-card { padding: 22px 18px; }

    /* Tables become stacked cards */
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { padding: 12px 18px; border-bottom: 1px solid var(--border); }
    .table tbody tr:last-child { border-bottom: 0; }
    .table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 0; border: 0; text-align: right; }
    .table td::before { content: attr(data-label); font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; }
    .table td.empty { display: block; text-align: center; }
    .table td.empty::before { content: none; }
    .table .right { text-align: right; }
}

/* Payment-method brand logos */
.method-logo { display: inline-flex; flex: none; width: 18px; height: 18px; font-style: normal; }
.method-logo svg { width: 100%; height: 100%; }
.method-cell { display: inline-flex; align-items: center; gap: 8px; }
.chip span { justify-content: flex-start; gap: 8px; }
.method-logo--applepay, .method-logo--googlepay { width: 30px; height: 30px; margin: -6px -2px; }

/* ---------- Merchant platform ---------- */
.or-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: var(--text-3, #6b7280); font-size: 12.5px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border, #e5e7eb); }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.code-input { letter-spacing: 10px; text-align: center; font-size: 24px; font-weight: 700; }
.sandbox-ribbon { margin: -4px 0 18px; padding: 8px 12px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-align: center; }
.mode-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; margin-bottom: 20px; font-size: 14px; }
.mode-banner strong { color: #78350f; }
.secret-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #f8fafc); border: 1px dashed #cbd5e1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.secret-box button { margin-left: auto; flex: none; }
.docs { max-width: 860px; margin: 0 auto; padding: 32px 16px 80px; }
.docs h1 { font-size: 32px; letter-spacing: -.02em; }
.docs h2 { font-size: 22px; margin: 40px 0 10px; padding-top: 10px; border-top: 1px solid var(--border, #e5e7eb); }
.docs h3 { font-size: 16px; margin: 24px 0 8px; }
.docs p, .docs li { color: var(--text-2); line-height: 1.65; }
.docs ul { padding-left: 20px; }
.docs pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
.docs code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.docs :not(pre) > code { background: #eef2ff; color: #3730a3; padding: 1px 6px; border-radius: 6px; }
.docs table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.docs th, .docs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border, #e5e7eb); vertical-align: top; }
.docs .endpoint { display: inline-flex; gap: 8px; align-items: center; font-family: ui-monospace, monospace; font-size: 14px; background: #f1f5f9; padding: 6px 10px; border-radius: 8px; }
.docs .verb { font-weight: 700; color: #4f46e5; }
.docs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.docs-nav a { padding: 6px 12px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 13px; font-weight: 600; text-decoration: none; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
