:root {
    --ink: #142425;
    --muted: #667676;
    --paper: #f7f5ef;
    --card: #fffefa;
    --line: #dfe5df;
    --lime: #c9f05d;
    --lime-dark: #a8db23;
    --forest: #153d38;
    --forest-2: #0d2e2b;
    --sky: #dff2eb;
    --red: #b5473c;
    --amber: #9a6a12;
    --blue: #276b80;
    --shadow: 0 24px 70px rgba(23, 48, 45, .12);
    --radius: 20px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { width: min(1240px, calc(100% - 48px)); margin: 0 auto; min-height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--forest); color: var(--lime); font-weight: 900; font-size: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; letter-spacing: -.02em; }
.brand strong { font-size: 18px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.brand-light { color: white; }
.brand-light .brand-mark { background: var(--lime); color: var(--forest); }
.brand-light small { color: rgba(255,255,255,.55); }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav > a:not(.button) { text-decoration: none; font-size: 14px; font-weight: 650; color: var(--muted); }

.button { min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; text-decoration: none; font-weight: 760; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(168, 219, 35, .42); outline-offset: 2px; }
.button-primary { background: var(--lime); color: var(--forest-2); box-shadow: 0 10px 26px rgba(147, 189, 35, .22); }
.button-primary:hover { background: var(--lime-dark); }
.button-primary:disabled { cursor: not-allowed; opacity: .46; transform: none; box-shadow: none; }
.button-quiet { color: var(--forest); background: transparent; border: 1px solid #cfd8d2; box-shadow: none; }
.button-dark { background: var(--forest); color: white; }
.button-small { min-height: 38px; padding: 0 15px; font-size: 13px; border-radius: 10px; }
.button-large { min-height: 56px; border-radius: 14px; }

.checkout-hero { width: min(1240px, calc(100% - 48px)); min-height: calc(100vh - 170px); margin: 0 auto; padding: 42px 0 76px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 7vw, 112px); align-items: center; }
.hero-copy { padding: 0 0 24px; }
.kicker, .eyebrow { display: block; font-size: 11px; line-height: 1.3; font-weight: 850; text-transform: uppercase; letter-spacing: .17em; color: #668219; }
.hero-copy h1 { margin: 18px 0 24px; max-width: 620px; font-size: clamp(54px, 6vw, 88px); line-height: .93; letter-spacing: -.075em; font-weight: 810; }
.hero-copy > p { max-width: 530px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.trust-list { margin-top: 44px; display: grid; gap: 17px; }
.trust-list > div { display: flex; align-items: center; gap: 16px; }
.trust-list > div > span { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #e8e7de; color: #6c7b75; font-size: 10px; font-weight: 850; }
.trust-list p { display: flex; flex-direction: column; margin: 0; }
.trust-list strong { font-size: 14px; }
.trust-list small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.checkout-card { position: relative; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(20, 61, 56, .1); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.checkout-card::before { content: ""; position: absolute; inset: -18px 36px auto; height: 18px; border-radius: 22px 22px 0 0; background: rgba(255, 254, 250, .58); border: 1px solid rgba(20, 61, 56, .06); border-bottom: 0; }
.card-heading { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.card-heading span { color: var(--muted); font-size: 12px; }
.card-heading h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.035em; }
.secure-pill { width: fit-content; padding: 7px 11px; border-radius: 999px; background: var(--sky); color: var(--forest) !important; font-size: 10px !important; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.setup-notice { margin: -10px 0 24px; padding: 15px 17px; display: grid; grid-template-columns: 1fr auto; gap: 3px 20px; border-radius: 14px; border: 1px solid #eadcab; background: #fff9df; }
.setup-notice strong { font-size: 13px; }
.setup-notice span { color: #796d45; font-size: 12px; }
.setup-notice a { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 12px; font-weight: 800; }

.payment-form, .settings-grid, .setup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field-span-2 { grid-column: span 2; }
.field label, .copy-label { font-size: 12px; line-height: 1.2; font-weight: 790; color: #415351; }
.field input, .field select, .search-field input, .filter-bar select { width: 100%; height: 51px; border: 1px solid #d9e0dc; border-radius: 12px; background: #fbfcf9; color: var(--ink); padding: 0 15px; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.field input:hover, .field select:hover { border-color: #bdc9c2; }
.field input:focus, .field select:focus { border-color: #a5c847; background: white; box-shadow: 0 0 0 4px rgba(168, 219, 35, .12); outline: 0; }
.field small { color: #8a9693; font-size: 11px; line-height: 1.45; }
.amount-field { position: relative; }
.advanced { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.advanced summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; color: var(--forest); font-size: 13px; font-weight: 780; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: "+"; margin-right: 9px; color: #6f9120; }
.advanced[open] summary::before { content: "−"; }
.advanced summary span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 500; }
.advanced-grid { padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-note { margin: -9px 0 0; color: #89938f; text-align: center; font-size: 11px; }

.site-footer { width: min(1240px, calc(100% - 48px)); margin: 0 auto; min-height: 72px; border-top: 1px solid #dedfd8; display: flex; align-items: center; justify-content: space-between; color: #87908c; font-size: 11px; }
.flash-stack { position: fixed; z-index: 30; top: 88px; left: 50%; width: min(600px, calc(100% - 32px)); transform: translateX(-50%); }
.flash { padding: 13px 16px; border: 1px solid transparent; border-radius: 12px; background: white; box-shadow: 0 12px 40px rgba(19, 45, 42, .15); font-size: 13px; }
.flash + .flash { margin-top: 8px; }
.flash-success { border-color: #cfe6a0; background: #f7ffe5; color: #3b5d1c; }
.flash-error { border-color: #efc4bf; background: #fff2ef; color: #963b32; }
.flash-warning { border-color: #eadca8; background: #fff9df; color: #765e18; }

.result-shell { min-height: calc(100vh - 164px); padding: 70px 24px 100px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #fff 0, var(--paper) 55%); }
.result-card { width: min(680px, 100%); text-align: center; }
.success-orbit { width: 86px; height: 86px; margin: 0 auto 28px; padding: 10px; border: 1px solid #dce8c8; border-radius: 50%; }
.success-orbit span { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--forest); font-size: 29px; font-weight: 900; }
.result-card h1 { margin: 12px 0; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.055em; }
.result-card > p { max-width: 540px; margin: 0 auto; color: var(--muted); line-height: 1.65; }
.payment-summary { margin: 36px 0 24px; padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: left; }
.payment-summary > div { padding: 0 16px; display: flex; flex-direction: column; gap: 6px; }
.payment-summary > div + div { border-left: 1px solid var(--line); }
.payment-summary span { color: var(--muted); font-size: 11px; }
.payment-summary strong { font-size: 16px; }
.copy-label { display: block; margin: 0 0 8px; text-align: left; }
.copy-box { min-width: 0; padding: 7px; display: flex; gap: 8px; border: 1px solid #ced8d2; border-radius: 14px; background: white; box-shadow: 0 8px 30px rgba(25, 54, 51, .06); }
.copy-box input { min-width: 0; width: 100%; border: 0; padding: 0 9px; outline: 0; background: transparent; color: #50605e; font-size: 12px; }
.copy-box button { flex: none; border: 0; border-radius: 9px; padding: 0 14px; background: var(--forest); color: white; cursor: pointer; font-size: 11px; font-weight: 750; }
.copy-box button.copied { background: #6b8b1e; }
.result-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-id { margin-top: 28px !important; font-size: 11px; }
.payment-id code { color: #6a7875; }

.auth-page { background: var(--forest-2); color: white; }
.auth-page::before { content: ""; position: fixed; width: 520px; height: 520px; left: -160px; bottom: -230px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 240, 93, .2), transparent 68%); pointer-events: none; }
.auth-shell { min-height: 100vh; padding: 44px 24px 80px; display: flex; flex-direction: column; align-items: center; }
.auth-shell > .brand { margin-right: auto; margin-left: max(0px, calc((100% - 1160px) / 2)); }
.auth-card { width: min(460px, 100%); margin: auto; padding: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: #fffefa; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.27); }
.auth-card-wide { width: min(720px, 100%); margin-top: 52px; }
.auth-card h1 { margin: 10px 0 9px; font-size: 38px; letter-spacing: -.05em; }
.auth-intro { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-form { display: grid; gap: 18px; }
.auth-form .button { margin-top: 4px; }
.auth-back { display: block; margin-top: 23px; color: var(--muted); text-align: center; text-decoration: none; font-size: 12px; }
.auth-flashes { width: min(520px, 100%); margin: 26px auto -18px; }
.setup-divider { grid-column: 1 / -1; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.setup-divider span { font-size: 12px; font-weight: 800; }
.setup-divider small { color: var(--muted); }
.error-card { text-align: center; }
.error-code { color: #84a42d; font-size: 11px; font-weight: 900; letter-spacing: .2em; }

.admin-page { background: #f1f3ef; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 22px 24px; display: flex; flex-direction: column; background: var(--forest-2); color: white; }
.sidebar .brand { margin: 0 8px 48px; }
.side-nav { display: grid; gap: 7px; }
.side-nav a { padding: 13px 14px; display: flex; align-items: center; gap: 13px; border-radius: 11px; color: rgba(255,255,255,.68); text-decoration: none; font-size: 13px; font-weight: 680; }
.side-nav a span { font-size: 9px; letter-spacing: .1em; color: rgba(255,255,255,.32); }
.side-nav a:hover { background: rgba(255,255,255,.05); color: white; }
.side-nav a.active { background: var(--lime); color: var(--forest-2); }
.side-nav a.active span { color: #617d18; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 8px; }
.sidebar-bottom a, .sidebar-bottom button { width: 100%; padding: 11px 13px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.56); text-align: left; text-decoration: none; cursor: pointer; font-size: 12px; }
.sidebar-bottom a:hover, .sidebar-bottom button:hover { color: white; background: rgba(255,255,255,.05); }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 116px; padding: 25px clamp(24px, 4vw, 56px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dde3dd; background: rgba(247,248,245,.88); }
.admin-topbar h1 { margin: 6px 0 0; font-size: 30px; letter-spacing: -.045em; }
.admin-user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-user span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--lime); }
.admin-content { padding: 32px clamp(24px, 4vw, 56px) 60px; }
.admin-flashes { margin: 20px clamp(24px, 4vw, 56px) -10px; }
.admin-alert { margin-bottom: 24px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-radius: 15px; border: 1px solid #e8d99a; background: #fff8d8; }
.admin-alert div { display: flex; flex-direction: column; gap: 4px; }
.admin-alert strong { font-size: 14px; }
.admin-alert span { color: #77683b; font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { min-height: 154px; padding: 22px; display: flex; flex-direction: column; border: 1px solid #e0e4df; border-radius: 17px; background: #fbfcf9; }
.stat-card > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-card strong { margin: auto 0 7px; font-size: 38px; letter-spacing: -.045em; }
.stat-card small { color: #8b9793; font-size: 10px; }
.stat-dark { background: var(--forest); border-color: var(--forest); color: white; }
.stat-dark > span, .stat-dark small { color: rgba(255,255,255,.58); }
.admin-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 20px; }
.panel { min-width: 0; border: 1px solid #e0e4df; border-radius: 17px; background: #fbfcf9; }
.panel-heading, .panel-intro { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #e5e8e4; }
.panel-heading h2, .panel-intro h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.025em; }
.panel-heading > a { color: #567512; text-decoration: none; font-size: 11px; font-weight: 800; }
.panel-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 18px; background: #f4f6f2; color: #7d8985; text-align: left; text-transform: uppercase; letter-spacing: .07em; font-size: 9px; }
td { padding: 15px 18px; border-top: 1px solid #e7eae6; color: #43514f; white-space: nowrap; }
td strong, td small { display: block; }
td small { max-width: 220px; margin-top: 4px; overflow: hidden; color: #8b9592; text-overflow: ellipsis; }
td code { padding: 4px 6px; border-radius: 5px; background: #edf0ec; font-size: 10px; }
.row-link { color: #577914; font-weight: 800; text-decoration: none; }
.status { width: fit-content; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; font-size: 10px !important; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-created { background: #ecf0ed; color: #64716d; }
.status-new { background: #e5f1f5; color: var(--blue); }
.status-processing { background: #fff0ca; color: var(--amber); }
.status-completed { background: #e6f6cf; color: #517715; }
.status-failed { background: #f9dfdc; color: var(--red); }
.status-bg-new { background: var(--blue) !important; }
.status-bg-processing { background: #d79b22 !important; }
.status-bg-completed { background: #76a529 !important; }
.status-bg-failed { background: var(--red) !important; }
.timeline { padding: 12px 22px 18px; }
.timeline a { position: relative; padding: 11px 0 11px 23px; display: flex; text-decoration: none; }
.timeline a:not(:last-child)::before { content: ""; position: absolute; top: 24px; bottom: -12px; left: 5px; width: 1px; background: #dfe5df; }
.timeline-dot { position: absolute; top: 17px; left: 0; width: 11px; height: 11px; border: 3px solid white; border-radius: 50%; background: #92a09c; box-shadow: 0 0 0 1px #cdd5d0; }
.timeline p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.timeline strong { font-size: 12px; }
.timeline small { color: var(--muted); font-size: 10px; }
.empty-state { min-height: 230px; padding: 30px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); text-align: center; }
.empty-state::before { content: "—"; width: 44px; height: 44px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 50%; background: #edf0ec; color: #8b9692; }
.empty-state strong { color: var(--ink); font-size: 14px; }
.empty-state span { margin-top: 5px; font-size: 11px; }
.empty-state.compact { min-height: 180px; }

.filter-bar { padding: 17px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e3e7e2; }
.search-field { min-width: 220px; max-width: 420px; flex: 1; position: relative; }
.search-field span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7e8a86; font-size: 19px; }
.search-field input { height: 42px; padding-left: 38px; background: white; }
.filter-bar select { width: 175px; height: 42px; background: white; }
.reset-filter { color: var(--muted); font-size: 11px; }
.orders-table td:first-child small { max-width: 150px; }
.detail-heading { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.detail-heading > a { color: var(--muted); font-size: 12px; text-decoration: none; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; }
.detail-main { padding: 28px; }
.detail-main h2 { margin: 7px 0 24px; font-size: 25px; }
.detail-amount { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 32px; font-weight: 800; letter-spacing: -.045em; }
.detail-amount small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.detail-list { margin: 12px 0 25px; }
.detail-list > div { padding: 11px 0; display: grid; grid-template-columns: 130px 1fr; gap: 20px; border-bottom: 1px solid #e9ece8; }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 650; }
.compact-copy { min-height: 44px; }
.compact-copy button { padding: 0 11px; }
.detail-events { overflow: hidden; }
.callback-list details { border-bottom: 1px solid var(--line); }
.callback-list summary { position: relative; padding: 16px 18px 16px 43px; display: grid; grid-template-columns: 1fr auto; cursor: pointer; list-style: none; }
.callback-list summary::-webkit-details-marker { display: none; }
.callback-list summary .timeline-dot { left: 20px; }
.callback-list summary strong { font-size: 12px; }
.callback-list time { color: var(--muted); font-size: 10px; }
.callback-list pre { margin: 0 15px 15px; padding: 14px; overflow-x: auto; border-radius: 10px; background: var(--forest-2); color: #d7eee5; font-size: 10px; line-height: 1.55; }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.settings-panel { overflow: hidden; }
.settings-panel .settings-grid { padding: 24px; }
.settings-grid-3 { grid-template-columns: repeat(3, 1fr); }
.settings-side { grid-column: 2; grid-row: 1 / span 2; }
.settings-side .panel { padding-bottom: 20px; }
.settings-side .panel > .eyebrow, .settings-side .panel > h3, .settings-side .panel > .copy-box, .settings-side .panel > .hint { margin-left: 20px; margin-right: 20px; }
.settings-side .panel > .eyebrow { margin-top: 22px; }
.settings-side h3 { margin-top: 7px; font-size: 17px; }
.hint { color: var(--muted); font-size: 10px; line-height: 1.55; }
.settings-save { grid-column: 1 / -1; position: sticky; bottom: 16px; padding: 13px 15px 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #d9dfd8; border-radius: 14px; background: rgba(255,255,252,.95); box-shadow: 0 14px 35px rgba(20, 49, 45, .1); backdrop-filter: blur(12px); }
.settings-save span { color: var(--muted); font-size: 11px; }
.security-panel { max-width: 720px; overflow: hidden; }
.security-form { padding: 24px; display: grid; gap: 19px; }
.security-form .button { width: fit-content; margin-top: 4px; }

@media (max-width: 1050px) {
    .checkout-hero { grid-template-columns: 1fr; width: min(720px, calc(100% - 40px)); padding-top: 70px; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .trust-list { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .trust-list > div { align-items: flex-start; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid, .detail-grid { grid-template-columns: 1fr; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-side { grid-column: 1; grid-row: auto; }
}

@media (max-width: 760px) {
    .site-header { width: calc(100% - 32px); min-height: 74px; }
    .header-nav > a:not(.button) { display: none; }
    .checkout-hero { width: calc(100% - 28px); padding-top: 42px; gap: 45px; }
    .hero-copy h1 { font-size: 52px; }
    .trust-list { grid-template-columns: 1fr; width: fit-content; margin-inline: auto; }
    .checkout-card { padding: 24px 19px; border-radius: 22px; }
    .payment-form, .advanced-grid, .setup-form { grid-template-columns: 1fr; }
    .field, .field-wide, .field-span-2 { grid-column: 1; }
    .setup-notice { grid-template-columns: 1fr; }
    .setup-notice a { grid-row: auto; grid-column: auto; margin-top: 8px; }
    .site-footer { width: calc(100% - 32px); flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
    .payment-summary { grid-template-columns: 1fr; gap: 13px; }
    .payment-summary > div { padding: 0; }
    .payment-summary > div + div { padding-top: 13px; border-left: 0; border-top: 1px solid var(--line); }
    .result-actions { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 22px; }
    .auth-shell { padding-inline: 16px; }
    .admin-shell { display: block; }
    .sidebar { position: static; height: auto; padding: 18px; flex-direction: row; align-items: center; overflow-x: auto; }
    .sidebar .brand { margin: 0 18px 0 0; }
    .side-nav { display: flex; }
    .side-nav a { white-space: nowrap; }
    .side-nav a span, .sidebar-bottom { display: none; }
    .admin-topbar { min-height: 92px; padding: 20px; }
    .admin-topbar h1 { font-size: 25px; }
    .admin-content { padding: 20px 14px 50px; }
    .admin-flashes { margin: 16px 14px -4px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { min-height: 132px; padding: 17px; }
    .stat-card strong { font-size: 31px; }
    .filter-bar { flex-wrap: wrap; }
    .search-field { min-width: 100%; }
    .filter-bar select { flex: 1; }
    .settings-grid-3 { grid-template-columns: 1fr; }
    .settings-save { bottom: 8px; }
    .settings-save span { display: none; }
    .settings-save .button { width: 100%; }
}

@media (max-width: 440px) {
    .brand small { display: none; }
    .hero-copy h1 { font-size: 44px; }
    .checkout-card::before { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-user { font-size: 0; }
    .sidebar { align-items: flex-start; }
    .sidebar .brand > span:last-child { display: none; }
}

/* Smart Digital Solutions — public checkout */
.public-page {
    --public-bg: #070810;
    --public-panel: rgba(12, 15, 29, .84);
    --public-panel-strong: rgba(9, 12, 24, .96);
    --public-line: rgba(156, 175, 255, .18);
    --public-text: #f7f8ff;
    --public-muted: #aab0c2;
    --public-violet: #8b6cff;
    --public-blue: #56b9ff;
    --public-coral: #ff765f;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--public-text);
    background-color: var(--public-bg);
    background-image:
        linear-gradient(90deg, rgba(7, 8, 16, .98) 0%, rgba(7, 8, 16, .91) 32%, rgba(7, 8, 16, .43) 68%, rgba(7, 8, 16, .76) 100%),
        radial-gradient(circle at 72% 20%, rgba(91, 72, 214, .22), transparent 34%),
        url('/assets/digital-human-hero.png');
    background-repeat: no-repeat;
    background-position: center, center, right top;
    background-size: cover, cover, max(980px, 64vw) auto;
    background-attachment: fixed;
}

.public-page::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: .23;
    background-image:
        linear-gradient(rgba(126, 112, 235, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 112, 235, .12) 1px, transparent 1px);
    background-size: 160px 160px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 60%, #000 100%);
}

.public-page > * {
    position: relative;
    z-index: 1;
}

.public-page .site-header {
    width: min(1480px, calc(100% - 72px));
    min-height: 104px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.public-page .brand {
    color: var(--public-text);
}

.public-page .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    background: linear-gradient(145deg, #fff 0%, #d9dcff 100%);
    color: #090b14;
    font-size: 27px;
    font-style: italic;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.public-page .brand strong {
    font-size: 17px;
    font-weight: 650;
}

.public-page .brand small {
    margin-top: 4px;
    color: #aeb4c7;
    font-size: 10px;
}

.public-page .header-nav {
    gap: 32px;
}

.public-page .header-nav > a:not(.button) {
    color: #e5e7f3;
    font-size: 13px;
}

.connection-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(151, 165, 231, .2);
    border-radius: 999px;
    background: rgba(9, 12, 23, .42);
    color: #c8ccdc;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.connection-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6be5ba;
    box-shadow: 0 0 14px rgba(107, 229, 186, .85);
}

.public-page .checkout-hero {
    width: min(1480px, calc(100% - 72px));
    min-height: calc(100vh - 178px);
    padding: 72px 0 90px;
    grid-template-columns: minmax(420px, .86fr) minmax(560px, 1.14fr);
    gap: clamp(36px, 5vw, 88px);
    align-items: start;
}

.public-page .hero-copy {
    position: sticky;
    top: 150px;
    padding: 24px 0 60px;
}

.public-page .kicker {
    color: #9ca7ff;
    font-size: 10px;
    letter-spacing: .28em;
}

.public-page .hero-copy h1 {
    margin: 22px 0 25px;
    max-width: 780px;
    color: #fff;
    font-size: clamp(66px, 6.7vw, 110px);
    line-height: .84;
    letter-spacing: -.075em;
    font-weight: 760;
    text-wrap: balance;
}

.public-page .hero-copy h1 span {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .86);
    text-stroke: 1.5px rgba(255, 255, 255, .86);
}

.public-page .hero-copy > p {
    max-width: 520px;
    color: var(--public-muted);
    font-size: 15px;
    line-height: 1.75;
}

.hero-label {
    width: fit-content;
    margin-top: 30px;
    padding: 12px 17px;
    border: 1px solid rgba(255, 255, 255, .34);
    color: #f7f8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    background: rgba(8, 10, 20, .26);
    backdrop-filter: blur(8px);
}

.public-page .trust-list {
    margin-top: 42px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.public-page .trust-list > div {
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
}

.public-page .trust-list > div > span {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(132, 157, 255, .26);
    background: rgba(102, 87, 207, .16);
    color: #a9b2ff;
}

.public-page .trust-list strong {
    color: #eceefa;
    font-size: 11px;
}

.public-page .trust-list small {
    color: #858da3;
    font-size: 10px;
    line-height: 1.35;
}

.public-page .checkout-card,
.public-page .result-card {
    border: 1px solid var(--public-line);
    background:
        linear-gradient(145deg, rgba(26, 29, 51, .9), rgba(8, 11, 23, .9)),
        var(--public-panel);
    box-shadow: 0 40px 110px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(24px) saturate(120%);
}

.public-page .checkout-card {
    padding: clamp(25px, 3vw, 42px);
    border-radius: 24px;
}

.public-page .checkout-card::before {
    inset: -1px 52px auto;
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, #7eb8ff, #a579ff, #ff806c, transparent);
    box-shadow: 0 0 22px rgba(129, 104, 255, .65);
}

.public-page .card-heading {
    margin-bottom: 29px;
}

.public-page .card-heading > div > span {
    color: #8e96aa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .17em;
}

.public-page .card-heading h2 {
    color: #fff;
    font-size: 25px;
}

.public-page .secure-pill {
    border: 1px solid rgba(100, 219, 188, .2);
    background: rgba(63, 178, 147, .12);
    color: #82e5c6 !important;
}

.public-page .setup-notice {
    grid-template-columns: 1fr;
    border-color: rgba(255, 177, 90, .25);
    background: rgba(126, 74, 28, .18);
}

.public-page .setup-notice strong {
    color: #ffd8ac;
}

.public-page .setup-notice span {
    color: #c0a98d;
}

.public-page .field label,
.public-page .copy-label {
    color: #d4d8e7;
    font-size: 11px;
}

.public-page .field input,
.public-page .field select {
    height: 55px;
    border-color: rgba(164, 177, 225, .16);
    background: rgba(5, 8, 18, .62);
    color: #f4f5fb;
}

.public-page .field input::placeholder {
    color: #70778a;
}

.public-page .field input:hover,
.public-page .field select:hover {
    border-color: rgba(144, 166, 255, .34);
}

.public-page .field input:focus,
.public-page .field select:focus {
    border-color: #7e8fff;
    background: rgba(10, 13, 28, .92);
    box-shadow: 0 0 0 4px rgba(117, 103, 244, .13), 0 0 30px rgba(82, 120, 255, .08);
}

.public-page .field small,
.public-page .form-note {
    color: #7f8799;
}

.public-page .advanced {
    border-color: rgba(164, 177, 225, .14);
}

.public-page .advanced summary {
    color: #dfe2ef;
}

.public-page .advanced summary::before {
    color: #8fa4ff;
}

.public-page .advanced summary span {
    color: #7d8496;
}

.public-page .button-primary {
    border: 1px solid rgba(255, 255, 255, .13);
    background: linear-gradient(100deg, #696df1 0%, #9d67e7 54%, #f17976 100%);
    color: #fff;
    box-shadow: 0 14px 38px rgba(98, 86, 227, .26);
}

.public-page .button-primary:hover {
    background: linear-gradient(100deg, #777bf8 0%, #aa74ef 54%, #f58782 100%);
}

.public-page .button-primary:disabled {
    border-color: rgba(255, 255, 255, .06);
    background: #303449;
    color: #858b9c;
}

.public-page .button-quiet {
    border-color: rgba(158, 171, 223, .2);
    background: rgba(15, 18, 33, .7);
    color: #e8eaf4;
}

.public-page .flash {
    border-color: rgba(163, 176, 232, .19);
    background: rgba(16, 19, 34, .96);
    color: #f2f3fa;
}

.public-page .site-footer {
    width: min(1480px, calc(100% - 72px));
    border-color: rgba(255, 255, 255, .09);
    color: #737b8f;
}

.public-page .result-shell {
    min-height: calc(100vh - 176px);
    background: transparent;
}

.public-page .result-card {
    padding: clamp(32px, 5vw, 60px);
    border-radius: 26px;
}

.public-page .success-orbit {
    border-color: rgba(126, 151, 255, .3);
}

.public-page .success-orbit span {
    background: linear-gradient(145deg, #6f79f4, #ba69d6);
    color: #fff;
    box-shadow: 0 0 34px rgba(128, 99, 237, .44);
}

.public-page .result-card h1 {
    color: #fff;
}

.public-page .result-card > p {
    color: var(--public-muted);
}

.public-page .payment-summary {
    border-color: var(--public-line);
    background: rgba(4, 7, 16, .48);
}

.public-page .payment-summary > div + div {
    border-color: var(--public-line);
}

.public-page .payment-summary span {
    color: #878fa3;
}

.public-page .copy-box {
    border-color: var(--public-line);
    background: rgba(4, 7, 16, .62);
    box-shadow: none;
}

.public-page .copy-box input {
    color: #bbc2d5;
}

.public-page .copy-box button {
    background: #7276ef;
}

.public-page .payment-id code {
    color: #9ba3b7;
}

@media (max-width: 1120px) {
    .public-page {
        background-image:
            linear-gradient(180deg, rgba(7, 8, 16, .66) 0%, rgba(7, 8, 16, .92) 42%, #070810 100%),
            url('/assets/digital-human-hero.png');
        background-position: center, 68% top;
        background-size: cover, auto 760px;
    }

    .public-page .checkout-hero {
        width: min(760px, calc(100% - 40px));
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .public-page .hero-copy {
        position: relative;
        top: auto;
        padding-top: 95px;
        text-align: left;
    }

    .public-page .hero-copy > p {
        margin-inline: 0;
    }
}

@media (max-width: 760px) {
    .public-page {
        background-position: center, 62% top;
        background-size: cover, auto 610px;
        background-attachment: scroll;
    }

    .public-page .site-header,
    .public-page .site-footer {
        width: calc(100% - 32px);
    }

    .public-page .site-header {
        min-height: 82px;
    }

    .public-page .header-nav > a {
        display: none;
    }

    .connection-pill {
        padding: 9px 11px;
        font-size: 0;
    }

    .connection-pill::after {
        content: "Secure";
        font-size: 10px;
    }

    .public-page .checkout-hero {
        width: calc(100% - 28px);
        padding-top: 16px;
        gap: 28px;
    }

    .public-page .hero-copy {
        padding: 78px 0 24px;
    }

    .public-page .hero-copy h1 {
        font-size: clamp(50px, 16vw, 74px);
    }

    .public-page .trust-list {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .public-page .checkout-card {
        padding: 25px 19px;
    }

    .public-page .result-shell {
        padding: 44px 14px 72px;
    }
}

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

/* PayID-only public checkout */
.payid-page {
    --payid-black: #000000;
    --payid-dark-grey: #4a4a49;
    --payid-light-grey: #dadada;
    --payid-off-white: #f4f4f1;
    --payid-paper: #ffffff;
    color: #111111;
    background: var(--payid-off-white);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .95), transparent 32%),
        radial-gradient(circle at 92% 24%, rgba(218, 218, 218, .52), transparent 34%);
    background-attachment: fixed;
}

.payid-page::before {
    opacity: .5;
    background-image:
        linear-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, .045) 1px, transparent 1px);
    background-size: 96px 96px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000 100%);
    mask-image: linear-gradient(90deg, transparent, #000 45%, #000 100%);
}

.payid-page .site-header {
    border-color: rgba(0, 0, 0, .12);
}

.payid-page .brand {
    color: var(--payid-black);
}

.payid-page .brand-mark {
    background: var(--payid-black);
    color: #fff;
    box-shadow: none;
}

.payid-page .brand small,
.payid-page .hero-copy > p,
.payid-page .trust-list small,
.payid-page .field small,
.payid-page .form-note {
    color: #686865;
}

.payid-page .header-nav > a:not(.button) {
    color: #171717;
}

.payid-page .connection-pill {
    border-color: rgba(0, 0, 0, .15);
    background: rgba(255, 255, 255, .66);
    color: #333331;
}

.payid-page .connection-pill i {
    background: #111;
    box-shadow: none;
}

.payid-page .checkout-hero {
    grid-template-columns: minmax(390px, .82fr) minmax(560px, 1.18fr);
}

.payid-page .kicker {
    color: #4a4a49;
}

.payid-page .hero-copy h1 {
    color: var(--payid-black);
    font-size: clamp(62px, 6.2vw, 102px);
    line-height: .89;
}

.payid-page .hero-copy h1 span {
    display: inline-block;
    padding: .02em .13em .07em;
    border-radius: .13em;
    background: var(--payid-black);
    color: #fff;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    letter-spacing: -.06em;
}

.payid-page .hero-label {
    border-color: var(--payid-black);
    background: var(--payid-paper);
    color: var(--payid-black);
}

.payid-page .trust-list > div > span {
    border-color: #c8c8c5;
    background: #fff;
    color: #222;
}

.payid-page .trust-list strong {
    color: #161616;
}

.payid-page .checkout-card,
.payid-page .result-card {
    border: 1px solid #cececa;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .12), inset 0 1px 0 #fff;
    backdrop-filter: blur(20px);
}

.payid-page .checkout-card::before {
    background: var(--payid-black);
    box-shadow: none;
}

.payid-page .card-heading > div > span {
    color: #777774;
}

.payid-page .card-heading h2 {
    color: #111;
}

.payid-page .secure-pill {
    border-color: #c9c9c5;
    background: #f1f1ee;
    color: #222 !important;
}

.payid-method {
    position: relative;
    margin: 0 0 27px;
    min-height: 92px;
    padding: 20px 128px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 16px;
    background: var(--payid-black);
    color: #fff;
    overflow: hidden;
}

.payid-method::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -68px;
    top: -72px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(255, 255, 255, .04), 0 0 0 48px rgba(255, 255, 255, .03);
}

.payid-method strong {
    font-size: 29px;
    line-height: 1;
    letter-spacing: -.055em;
}

.payid-method > span {
    margin-top: 8px;
    color: #c8c8c4;
    font-size: 11px;
}

.payid-method small {
    position: absolute;
    z-index: 1;
    right: 22px;
    bottom: 21px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.payid-page .field label,
.payid-page .copy-label {
    color: #30302e;
}

.payid-page .field input,
.payid-page .field select {
    border-color: #d3d3cf;
    background: #fafaf8;
    color: #111;
}

.payid-page .field input::placeholder {
    color: #8c8c87;
}

.payid-page .field input:hover,
.payid-page .field select:hover {
    border-color: #9b9b97;
}

.payid-page .field input:focus,
.payid-page .field select:focus {
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .09);
}

.fixed-value {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #d3d3cf;
    border-radius: 12px;
    background: #efefec;
    color: #111;
}

.fixed-value strong {
    font-size: 15px;
}

.fixed-value span {
    color: #777773;
    font-size: 10px;
}

.payid-page .button-primary {
    border-color: #000;
    background: #000;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.payid-page .button-primary:hover {
    background: #2d2d2b;
}

.payid-page .button-primary:disabled {
    border-color: #cdcdc9;
    background: #d8d8d4;
    color: #888884;
}

.payid-page .button-quiet {
    border-color: #c9c9c5;
    background: #f5f5f2;
    color: #171717;
}

.payid-page .site-footer {
    border-color: rgba(0, 0, 0, .12);
    color: #777773;
}

.payid-page .result-shell {
    background: transparent;
}

.payid-page .success-orbit {
    border-color: #c7c7c3;
}

.payid-page .success-orbit span {
    background: #000;
    color: #fff;
    box-shadow: none;
}

.payid-page .result-card h1,
.payid-page .payment-summary strong {
    color: #111;
}

.payid-page .result-card > p,
.payid-page .payment-summary span {
    color: #6d6d69;
}

.payid-page .payment-summary,
.payid-page .copy-box {
    border-color: #d3d3cf;
    background: #f7f7f4;
}

.payid-page .payment-summary > div + div {
    border-color: #d3d3cf;
}

.payid-page .copy-box input {
    color: #333331;
}

.payid-page .copy-box button {
    background: #000;
}

.payid-page .payment-id code {
    color: #62625f;
}

@media (max-width: 1120px) {
    .payid-page {
        background: var(--payid-off-white);
    }

    .payid-page .checkout-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .payid-page .hero-copy {
        padding-top: 42px;
    }

    .payid-page .hero-copy h1 {
        font-size: clamp(48px, 15vw, 68px);
    }

    .payid-method {
        padding-right: 104px;
    }
}

/* Compact official layout */
.payid-page .site-header,
.payid-page .site-footer {
    width: min(1160px, calc(100% - 48px));
}

.payid-page .site-header {
    min-height: 82px;
}

.payid-page .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 23px;
}

.payid-page .checkout-hero {
    width: min(1160px, calc(100% - 48px));
    min-height: calc(100vh - 154px);
    padding: 48px 0 72px;
    grid-template-columns: minmax(340px, 390px) minmax(520px, 640px);
    justify-content: space-between;
    gap: clamp(48px, 7vw, 92px);
    align-items: start;
}

.payid-page .hero-copy {
    top: 126px;
    padding: 28px 0 44px;
}

.payid-page .hero-copy h1 {
    margin: 18px 0 22px;
    font-size: clamp(48px, 4.6vw, 70px);
    line-height: .94;
    letter-spacing: -.065em;
}

.payid-page .hero-copy > p {
    max-width: 390px;
    font-size: 14px;
    line-height: 1.7;
}

.official-points {
    margin-top: 30px;
    display: grid;
    gap: 0;
    border-top: 1px solid #cececa;
}

.official-points span {
    position: relative;
    padding: 12px 0 12px 20px;
    border-bottom: 1px solid #dededa;
    color: #4b4b48;
    font-size: 11px;
    font-weight: 650;
}

.official-points span::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111;
    transform: translateY(-50%);
}

.payid-page .checkout-card {
    width: 100%;
    max-width: 640px;
    padding: 32px;
    border-radius: 18px;
}

.payid-page .card-heading {
    margin-bottom: 22px;
}

.payid-page .card-heading h2 {
    margin-top: 5px;
    font-size: 22px;
}

.payid-page .setup-notice {
    margin: -2px 0 20px;
    padding: 12px 14px;
    border-color: #d4c4b6;
    border-radius: 10px;
    background: #f4eee8;
}

.payid-page .setup-notice strong {
    color: #4d3426;
}

.payid-page .setup-notice span {
    color: #79685d;
}

.payid-page .payid-method {
    min-height: 72px;
    margin-bottom: 22px;
    padding: 15px 112px 15px 18px;
    border-radius: 12px;
}

.payid-page .payid-method strong {
    font-size: 23px;
}

.payid-page .payid-method > span {
    margin-top: 5px;
    font-size: 10px;
}

.payid-page .payid-method small {
    right: 17px;
    bottom: 17px;
}

.payid-page .payment-form {
    gap: 16px 14px;
}

.payid-page .field {
    gap: 7px;
}

.payid-page .field input,
.payid-page .field select,
.payid-page .fixed-value {
    height: 48px;
    border-radius: 10px;
}

.payid-page .button-large {
    min-height: 50px;
    border-radius: 10px;
}

.payid-page .form-note {
    margin-top: -7px;
}

.payid-page .result-card {
    max-width: 620px;
    padding: 42px;
    border-radius: 18px;
}

/* Admin and sign-in visual system */
.admin-page {
    background: #f3f3f0;
    color: #171717;
}

.admin-page .admin-shell {
    grid-template-columns: 228px minmax(0, 1fr);
}

.admin-page .sidebar {
    padding: 26px 18px 20px;
    background: #111111;
}

.admin-page .sidebar .brand {
    margin: 0 8px 38px;
}

.admin-page .brand-light {
    color: #fff;
}

.admin-page .brand-light .brand-mark,
.auth-page .brand-light .brand-mark {
    background: #fff;
    color: #111;
}

.admin-page .brand-light small,
.auth-page .brand-light small {
    color: rgba(255, 255, 255, .54);
}

.admin-page .side-nav {
    gap: 5px;
}

.admin-page .side-nav a {
    padding: 12px 13px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .62);
}

.admin-page .side-nav a.active {
    background: #fff;
    color: #111;
}

.admin-page .side-nav a.active span {
    color: #777;
}

.admin-page .admin-topbar {
    min-height: 92px;
    padding: 20px clamp(24px, 3vw, 42px);
    border-color: #d8d8d4;
    background: rgba(250, 250, 248, .9);
}

.admin-page .admin-topbar h1 {
    font-size: 27px;
}

.admin-page .eyebrow {
    color: #777773;
}

.admin-page .admin-user {
    color: #686865;
}

.admin-page .admin-user span {
    background: #111;
    color: #fff;
}

.admin-page .admin-content {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding: 28px clamp(24px, 3vw, 42px) 54px;
}

.admin-page .admin-flashes {
    margin: 18px clamp(24px, 3vw, 42px) -8px;
}

.admin-page .admin-alert {
    margin-bottom: 18px;
    padding: 15px 17px;
    border-color: #c9c9c5;
    border-radius: 11px;
    background: #fff;
}

.admin-page .admin-alert span {
    color: #6e6e6a;
}

.admin-page .button-primary,
.admin-page .button-dark,
.auth-page .button-primary {
    border-color: #111;
    background: #111;
    color: #fff;
    box-shadow: none;
}

.admin-page .button-primary:hover,
.admin-page .button-dark:hover,
.auth-page .button-primary:hover {
    background: #333331;
}

.admin-page .stats-grid {
    gap: 12px;
}

.admin-page .stat-card {
    min-height: 132px;
    padding: 19px;
    border-color: #d9d9d5;
    border-radius: 12px;
    background: #fff;
}

.admin-page .stat-card strong {
    font-size: 34px;
}

.admin-page .stat-dark {
    border-color: #111;
    background: #111;
    color: #fff;
}

.admin-page .admin-grid {
    margin-top: 16px;
    gap: 16px;
}

.admin-page .panel {
    border-color: #d9d9d5;
    border-radius: 12px;
    background: #fff;
}

.admin-page .panel-heading,
.admin-page .panel-intro {
    padding: 19px 21px;
    border-color: #e1e1dd;
}

.admin-page .panel-heading > a,
.admin-page .row-link {
    color: #111;
}

.admin-page th {
    background: #f3f3f0;
    color: #73736f;
}

.admin-page td {
    border-color: #e7e7e3;
    color: #333330;
}

.admin-page td code,
.admin-page .empty-state::before {
    background: #efefec;
}

.admin-page .field input,
.admin-page .field select,
.admin-page .search-field input,
.admin-page .filter-bar select {
    border-color: #d1d1cd;
    background: #fff;
    color: #171717;
}

.admin-page .field input:focus,
.admin-page .field select:focus {
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
}

.admin-page .copy-box {
    border-color: #d1d1cd;
    background: #fff;
}

.admin-page .copy-box button {
    background: #111;
}

.admin-page .settings-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
}

.admin-page .settings-save {
    border-color: #d3d3cf;
    border-radius: 11px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .09);
}

.payid-lock {
    min-height: 70px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 18px;
    border-radius: 10px;
    background: #111;
    color: #fff;
}

.settings-grid-payid {
    grid-template-columns: 1fr 1fr;
}

.payid-lock > span {
    grid-column: 1;
    color: #aaa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.payid-lock strong {
    grid-column: 1;
    font-size: 20px;
}

.payid-lock small {
    grid-column: 2;
    grid-row: 1 / 3;
    color: #ddd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.auth-page {
    background: #111;
    color: #fff;
}

.auth-page::before {
    background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 68%);
}

.auth-page .auth-card {
    max-width: 430px;
    padding: 34px;
    border-color: #d7d7d3;
    border-radius: 16px;
    background: #fff;
    color: #171717;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .34);
}

.auth-page .kicker,
.auth-page .error-code {
    color: #666662;
}

.auth-page .field input,
.auth-page .field select {
    border-color: #d1d1cd;
    background: #fafaf8;
    color: #111;
}

.auth-page .field input:focus,
.auth-page .field select:focus {
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
}

@media (max-width: 1120px) {
    .payid-page .checkout-hero {
        width: min(660px, calc(100% - 40px));
        grid-template-columns: 1fr;
        justify-content: initial;
        gap: 24px;
    }

    .payid-page .hero-copy {
        position: relative;
        top: auto;
        padding: 26px 0 20px;
    }

    .payid-page .hero-copy > p {
        margin-inline: 0;
    }

    .payid-page .checkout-card {
        max-width: none;
    }

    .admin-page .settings-layout {
        grid-template-columns: 1fr;
    }

    .admin-page .settings-side {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .payid-page .site-header,
    .payid-page .site-footer {
        width: calc(100% - 28px);
    }

    .payid-page .checkout-hero {
        width: calc(100% - 24px);
        padding-top: 18px;
    }

    .payid-page .hero-copy {
        padding-top: 24px;
    }

    .payid-page .checkout-card,
    .payid-page .result-card {
        padding: 22px 17px;
        border-radius: 14px;
    }

    .admin-page .admin-shell {
        display: block;
    }

    .admin-page .sidebar {
        position: static;
        height: auto;
        padding: 15px;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
    }

    .admin-page .sidebar .brand {
        margin: 0 16px 0 0;
    }

    .admin-page .side-nav {
        display: flex;
    }

    .admin-page .admin-content {
        padding: 18px 12px 44px;
    }

    .settings-grid-payid {
        grid-template-columns: 1fr;
    }

    .auth-page .auth-card {
        padding: 28px 21px;
    }
}
