:root {
  --bg: #05070c;
  --panel: #0b111b;
  --panel-2: #101827;
  --line: rgba(132, 158, 207, .22);
  --muted: #92a0b7;
  --text: #f4f7fc;
  --primary: #3977f6;
  --primary-2: #7c4dff;
  --success: #4be0aa;
  --warning: #ffc768;
  --danger: #ff7aa8;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 80% 0%, rgba(63, 101, 220, .18), transparent 32%), var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.checkout-shell { width: min(1180px, calc(100% - 32px)); margin: auto; padding: 28px 0 64px; }
.checkout-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 42px; }
.checkout-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.checkout-brand img { width: 42px; height: 42px; border-radius: 12px; }
.checkout-brand strong { display: block; font-size: 14px; }
.checkout-brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nav-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-link { display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; color: #dce7fb; background: rgba(15, 23, 38, .72); text-decoration: none; font-size: 12px; font-weight: 750; }
.checkout-hero { max-width: 800px; margin-bottom: 30px; }
.eyebrow { color: #79a7ff; font: 750 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 14px 0 14px; font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -.06em; }
.lead { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16, 24, 39, .97), rgba(8, 12, 20, .98)); box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.panel-body { padding: clamp(22px, 4vw, 34px); }
.panel h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.035em; }
.panel-intro { margin: 0 0 24px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #dce6f7; font-size: 12px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(132, 158, 207, .26); border-radius: 12px; color: #fff; background: #070b12; outline: none; transition: .18s ease; }
.field input, .field select { height: 51px; padding: 0 14px; }
.field textarea { min-height: 118px; padding: 13px 14px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #6095ff; box-shadow: 0 0 0 4px rgba(57, 119, 246, .14); }
.field-note { color: #74839b; font-size: 10px; line-height: 1.5; }
.amount-wrap { position: relative; }
.amount-wrap span { position: absolute; inset: 0 auto 0 14px; display: grid; place-items: center; color: #8da6d0; font-size: 12px; font-weight: 800; }
.amount-wrap input { padding-left: 45px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; color: #aeb9ca; font-size: 11px; line-height: 1.55; }
.check-row input { margin-top: 3px; }
.primary-button { width: 100%; min-height: 54px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 15px 35px rgba(57, 119, 246, .24); font-weight: 850; cursor: pointer; }
.primary-button:hover { filter: brightness(1.08); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: #eaf1ff; background: #101827; text-decoration: none; font-weight: 780; font-size: 12px; cursor: pointer; }
.lookup-form { display: grid; gap: 12px; }
.lookup-form input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; color: #fff; background: #070b12; outline: none; }
.lookup-form button { min-height: 48px; border: 1px solid rgba(89, 139, 255, .5); border-radius: 11px; color: #fff; background: rgba(57, 119, 246, .2); font-weight: 800; cursor: pointer; }
.info-stack { display: grid; gap: 12px; }
.info-card { padding: 17px; border: 1px solid rgba(132, 158, 207, .16); border-radius: 14px; background: rgba(5, 9, 16, .55); }
.info-card small { color: #7599d8; font: 700 10px ui-monospace, monospace; letter-spacing: .1em; }
.info-card strong { display: block; margin-top: 8px; font-size: 14px; }
.info-card p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.alert { margin: 0 0 18px; padding: 13px 14px; border: 1px solid rgba(255, 122, 168, .35); border-radius: 12px; color: #ffd6e4; background: rgba(156, 35, 78, .15); font-size: 12px; line-height: 1.55; }
.alert.success { border-color: rgba(75, 224, 170, .35); color: #caffec; background: rgba(29, 130, 94, .15); }
.alert.warning { border-color: rgba(255, 199, 104, .35); color: #ffe6b7; background: rgba(126, 86, 19, .15); }
.invoice-wrap { width: min(900px, calc(100% - 28px)); margin: 28px auto 70px; }
.invoice-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: #111827; box-shadow: 0 35px 100px rgba(0, 0, 0, .42); }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; padding: 34px; color: #f5f8ff; background: linear-gradient(135deg, #111827, #183a87); }
.invoice-head img { width: 48px; height: 48px; border-radius: 12px; }
.invoice-head h1 { margin: 11px 0 0; font-size: 34px; letter-spacing: -.04em; }
.invoice-head-meta { text-align: right; }
.invoice-head-meta small { display: block; color: #9eb8e6; font-size: 10px; letter-spacing: .1em; }
.invoice-head-meta strong { display: block; margin-top: 7px; font: 750 13px ui-monospace, monospace; }
.invoice-body { padding: 34px; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 30px; }
.invoice-parties small, .invoice-summary small { color: #687386; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.invoice-parties strong { display: block; margin: 8px 0 4px; }
.invoice-parties p { margin: 0; color: #647083; font-size: 12px; line-height: 1.6; }
.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table th, .invoice-table td { padding: 14px 12px; border-bottom: 1px solid #e4e8ef; text-align: left; font-size: 12px; }
.invoice-table th { color: #69758a; background: #f6f8fb; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.invoice-table th:last-child, .invoice-table td:last-child { text-align: right; }
.invoice-total { display: flex; justify-content: flex-end; margin-top: 22px; }
.invoice-total div { width: min(340px, 100%); }
.total-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; color: #687386; font-size: 12px; }
.total-row.grand { margin-top: 5px; padding-top: 16px; border-top: 2px solid #19243a; color: #111827; font-size: 18px; font-weight: 850; }
.invoice-status { display: inline-flex; margin-top: 12px; padding: 7px 10px; border-radius: 999px; color: #8a5e00; background: #fff0c5; font: 800 10px ui-monospace, monospace; letter-spacing: .07em; }
.invoice-status.paid { color: #08714d; background: #d7faeb; }
.invoice-status.error { color: #a12555; background: #ffe1ec; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid #e7eaf0; }
.invoice-actions .primary-button { width: auto; min-width: 220px; padding: 0 22px; }
.invoice-actions .secondary-button { color: #24334d; background: #f4f6f9; border-color: #d9dee7; }
.invoice-note { margin-top: 22px; padding: 14px; border-radius: 12px; color: #5d6b7e; background: #f5f7fa; font-size: 11px; line-height: 1.6; }
.admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 17px; }
.admin-shell { width: min(1320px, calc(100% - 32px)); margin: auto; padding: 30px 0 70px; }
.admin-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.admin-top h1 { margin: 9px 0 5px; font-size: clamp(36px, 5vw, 62px); }
.admin-grid { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(0, 1.4fr); gap: 17px; align-items: start; }
.admin-list { overflow: auto; }
.admin-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px; border-bottom: 1px solid rgba(132, 158, 207, .13); text-align: left; font-size: 11px; vertical-align: top; }
.admin-table th { color: #97a8c3; background: #101827; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { color: #dce5f3; }
.admin-table a { color: #8db4ff; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #ffe0a0; background: rgba(151, 103, 24, .25); font: 750 9px ui-monospace, monospace; }
.status-pill.paid { color: #bdffe4; background: rgba(26, 139, 95, .25); }
.login-card { width: min(430px, calc(100% - 30px)); margin: 12vh auto; padding: 30px; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.secure-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; color: #718098; font-size: 10px; line-height: 1.55; }
@media (max-width: 850px) { .checkout-grid, .admin-grid { grid-template-columns: 1fr; } .admin-top { display: grid; } .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .admin-stats { grid-template-columns: 1fr; } .checkout-shell { width: min(100% - 20px, 1180px); padding-top: 18px; } .checkout-nav { align-items: flex-start; } .nav-actions .nav-link:first-child { display: none; } .form-grid, .invoice-parties { grid-template-columns: 1fr; } .invoice-head { display: grid; padding: 24px; } .invoice-head-meta { text-align: left; } .invoice-body { padding: 22px; } h1 { font-size: 43px; } }
@media print { body { background: #fff; } .invoice-wrap { width: 100%; margin: 0; } .invoice-card { box-shadow: none; border: 0; } .invoice-actions, .checkout-nav, .alert { display: none !important; } }
