:root {
  color-scheme: dark;
  --bg: #070b13;
  --panel: #111826;
  --panel-soft: #151f31;
  --line: #27344a;
  --text: #eff4ff;
  --muted: #8f9db4;
  --green: #5ce6b6;
  --blue: #728cff;
  --red: #ff7e91;
  --gold: #f2bd69;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0, #172744 0, transparent 38%), radial-gradient(circle at 100% 20%, #24214a 0, transparent 34%), var(--bg); color: var(--text); font: 15px/1.55 Inter, ui-sans-serif, system-ui, sans-serif; }
.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 60px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(34px, 5vw, 62px); letter-spacing: -.055em; line-height: 1; }
h2 { font-size: 23px; letter-spacing: -.025em; }
h3 { font-size: 18px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .2em; margin-bottom: 8px; }
.hero { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; max-width: 780px; }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--green), var(--blue)); color: #071018; font-size: 25px; font-weight: 900; box-shadow: 0 15px 50px #5ce6b633; }
.hero-copy { color: var(--muted); max-width: 680px; margin-top: 16px; font-size: 16px; }
.runtime-banner { margin: 24px 0 18px; padding: 16px 18px; border: 1px solid; border-radius: 14px; font-weight: 850; letter-spacing: .01em; }
.runtime-banner.mock, .runtime-banner.blocked { color: #ffe5e9; background: #5e1825cc; border-color: #ff7e91; box-shadow: 0 0 0 3px #ff7e9114; }
.runtime-banner.live { color: #dffff4; background: #103a31cc; border-color: #5ce6b6; }
.flow-strip { display: flex; align-items: center; gap: 16px; margin: 34px 0 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: #0d1421bb; }
.flow-strip div { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.flow-strip b { color: var(--green); font-size: 11px; }
.flow-strip span { color: #bec9da; }
.flow-strip i { height: 1px; flex: 1; background: var(--line); }
.customer-grid, .admin-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #121b2aee, #0d1420ee); padding: 24px; box-shadow: 0 20px 65px #0005; }
.section-head, .admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.pill, .status-badge { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 800; color: var(--green); white-space: nowrap; }
label { display: grid; gap: 8px; margin: 16px 0; color: #bec9da; font-size: 13px; }
.field-block { margin: 16px 0; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.field-label-row label { display: block; margin: 0; }
.field-help, .section-copy { color: var(--muted); font-size: 12px; }
.field-help { margin-bottom: 9px; }
.help-link { color: #aebcff; font-size: 12px; font-weight: 800; text-decoration: none; border-bottom: 1px solid #728cff66; transition: color .16s ease, border-color .16s ease; }
.help-link:hover { color: white; border-color: #aebcff; }
.help-link:focus-visible { outline: 3px solid #9aabff66; outline-offset: 4px; border-radius: 4px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); color: var(--text); padding: 12px 13px; outline: none; font: inherit; }
textarea { resize: vertical; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #728cff22; }
button { position: relative; isolation: isolate; border: 0; border-radius: 12px; padding: 12px 16px; color: white; font-weight: 800; cursor: pointer; transform: translateY(0); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease, filter .16s ease; }
button::after { content: ''; position: absolute; z-index: -1; inset: 1px; border-radius: inherit; background: linear-gradient(180deg, #ffffff24, transparent 48%); opacity: .72; pointer-events: none; }
button:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.06); }
button:not(:disabled):active { transform: translateY(1px) scale(.985); filter: brightness(.96); }
button:focus-visible { outline: 3px solid #9aabff99; outline-offset: 3px; }
button.primary { width: 100%; background: linear-gradient(135deg, #5678ff, #8d63ff); box-shadow: 0 8px 20px #5678ff3d, inset 0 1px 0 #ffffff33; }
button.primary:not(:disabled):hover { box-shadow: 0 13px 28px #5678ff52, inset 0 1px 0 #ffffff44; }
button.primary.compact { width: auto; }
button.secondary { background: linear-gradient(180deg, #1a2639b8, #111a29b8); border: 1px solid var(--line); color: #c7d2e4; box-shadow: inset 0 1px 0 #ffffff12; }
button.secondary:not(:disabled):hover { border-color: #667eae; box-shadow: 0 8px 20px #0004, inset 0 1px 0 #ffffff20; }
button:disabled { cursor: not-allowed; opacity: .52; }
.privacy-note { padding: 13px; border-radius: 12px; background: #0a2a2533; border: 1px solid #315d53; margin: 16px 0; }
.privacy-note span { color: var(--green); font-size: 12px; font-weight: 800; }
.privacy-note p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-message { min-height: 23px; margin-top: 12px; color: var(--muted); }
.form-message.success { color: var(--green); }
.form-message.error { color: var(--red); }
.confirm-panel { margin-top: 20px; padding: 20px; border: 1px solid #526de0; border-radius: 16px; background: linear-gradient(145deg, #17213a, #121a2a); box-shadow: inset 0 0 0 1px #728cff18; }
.confirm-panel h3 { font-size: 22px; }
.confirm-copy { color: var(--muted); margin-top: 8px; }
.confirm-facts { display: grid; gap: 10px; margin: 18px 0; }
.confirm-facts div { border: 1px solid var(--line); border-radius: 12px; background: #0c1320; padding: 12px 14px; }
.confirm-facts dt { color: var(--muted); font-size: 12px; }
.confirm-facts dd { margin: 4px 0 0; color: var(--text); font-weight: 850; font-size: 17px; overflow-wrap: anywhere; }
.confirm-facts div:last-child dd { color: var(--green); font-size: 20px; }
.confirm-actions { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.progress-track { height: 8px; background: #080d16; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--blue)); transition: width .35s ease; }
.status-main { display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: center; margin: 28px 0; }
.status-main > span { font-size: 26px; font-weight: 900; color: var(--green); }
.status-main p { color: var(--muted); margin-top: 4px; }
.execution-log { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #080e18; }
.execution-log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); background: #101927; }
.execution-log-head strong { font-size: 12px; letter-spacing: .08em; }
.execution-log-head span { color: var(--muted); font-size: 10px; }
.execution-log ol { list-style: none; max-height: 240px; margin: 0; padding: 8px 0; overflow-y: auto; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.execution-log li { display: grid; grid-template-columns: 66px 42px 1fr; gap: 8px; padding: 6px 12px; color: #c4d0e3; }
.execution-log li + li { border-top: 1px solid #1d293a88; }
.execution-log time { color: #66758d; }
.execution-log b { color: var(--blue); font-weight: 800; }
.execution-log li.success b { color: var(--green); }
.execution-log li.warning b { color: var(--gold); }
.execution-log li.error b { color: var(--red); }
.execution-log li.empty { grid-template-columns: 66px 1fr; color: var(--muted); }
.status-badge.processing { color: var(--gold); border-color: #76582d; }
.status-badge.success { color: var(--green); border-color: #2d765e; }
.status-badge.mock { color: var(--red); border-color: #78384a; }
.status-badge.failed { color: var(--red); border-color: #78384a; }
.order-facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.order-facts div { display: grid; grid-template-columns: 90px 1fr; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.order-facts div:last-child { border-bottom: 0; }
.order-facts dt { color: var(--muted); }
.order-facts dd { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.status-panel .secondary { margin-top: 16px; }
.lookup-panel { margin-top: 18px; }
.lookup-panel .section-head { align-items: center; }
.section-copy { max-width: 650px; margin-top: 7px; }
.lookup-form > label { margin: 0 0 8px; }
.lookup-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.lookup-controls button { min-width: 170px; }
.lookup-result { margin-top: 18px; padding: 20px; border: 1px solid #3a4e70; border-radius: 16px; background: linear-gradient(145deg, #141e30, #0d1523); box-shadow: inset 0 1px 0 #ffffff0d; }
.lookup-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.lookup-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.lookup-facts div { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #0b1320; padding: 12px 14px; }
.lookup-facts dt { color: var(--muted); font-size: 11px; }
.lookup-facts dd { margin: 4px 0 0; color: var(--text); font-weight: 800; overflow-wrap: anywhere; }
.lookup-facts .lookup-email-fact { grid-column: 1 / -1; border-color: #315d53; background: #0c211f; }
.lookup-email-fact dd { color: var(--green); font-size: 18px; }
.lookup-order-message, .lookup-legacy-note { margin-top: 12px; padding: 11px 13px; border-radius: 11px; font-size: 12px; }
.lookup-order-message { color: #c7d2e4; background: #111b2b; }
.lookup-legacy-note { color: var(--gold); border: 1px solid #76582d; background: #33271466; }
.hidden { display: none !important; }
footer { text-align: center; color: #66758d; margin-top: 30px; font-size: 12px; }
.admin-header { align-items: center; }
.admin-auth { display: flex; gap: 8px; width: min(440px, 100%); }
.admin-auth input { flex: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 18px; }
.stats-grid article { border: 1px solid var(--line); border-radius: 16px; background: #101827cc; padding: 18px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.stats-grid article:hover { transform: translateY(-2px); border-color: #3c4f70; box-shadow: 0 13px 28px #0003; }
.stats-grid span { display: block; color: var(--muted); font-size: 12px; }
.stats-grid strong { display: block; margin-top: 6px; font-size: 30px; }
.inline-form { display: grid; grid-template-columns: 1fr 90px 110px; gap: 8px; }
.codes-output { margin: 12px 0; }
.provider-list { display: grid; gap: 10px; }
.provider-list div { display: flex; justify-content: space-between; padding: 12px; border-radius: 12px; background: var(--panel-soft); }
.provider-list .ok { color: var(--green); }
.provider-list .bad { color: var(--red); }
.card-routing-box {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.card-routing-box .field-label-row { align-items: center; margin-bottom: 5px; }
.card-routing-box .field-label-row .eyebrow { margin-bottom: 4px; }
.card-routing-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}
.card-routing-form label { margin: 0; }
.card-routing-form button { width: 100%; }
.card-routing-form select:disabled { cursor: not-allowed; opacity: .55; }
.card-routing-box .form-message { min-height: 18px; margin-top: 9px; }
.table-panel { margin-top: 18px; }
.table-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.card-import-form { display: grid; grid-template-columns: minmax(180px, 260px) auto; gap: 8px; align-items: center; }
.card-import-form input { margin: 0; }
.manual-payment-panel { grid-column: 1 / -1; }
.manual-payment-panel.feature-disabled form { opacity: .55; }
.manual-payment-grid { display: grid; grid-template-columns: minmax(160px, .35fr) minmax(0, 1.65fr); gap: 8px; align-items: end; }
.manual-payment-grid label { margin: 0; }
.manual-payment-card-field input { font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.manual-payment-actions { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 12px; align-items: center; }
.manual-payment-actions .form-message { margin: 0; }
.manual-payment-status { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.manual-payment-status-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.manual-payment-status-head > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.manual-payment-status-head strong { font-size: 16px; }
.manual-payment-status-head > b { color: var(--green); font-size: 15px; }
.manual-payment-progress { height: 8px; margin: 12px 0 16px; overflow: hidden; border-radius: 4px; background: #26334a; }
.manual-payment-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #58d6a7, #7d91ff); transition: width .25s ease; }
.manual-payment-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.manual-payment-facts div { min-width: 0; padding-right: 12px; border-right: 1px solid var(--line); }
.manual-payment-facts div:last-child { border-right: 0; }
.manual-payment-facts dt { color: var(--muted); font-size: 11px; }
.manual-payment-facts dd { margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; }
.manual-payment-detail { margin-top: 14px; color: #d6deeb; font-size: 13px; }
.manual-payment-logs { display: grid; gap: 6px; max-height: 150px; margin-top: 12px; padding: 0; overflow-y: auto; list-style: none; }
.manual-payment-logs li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding-top: 6px; border-top: 1px solid #29354a; color: var(--muted); font-size: 12px; }
.manual-payment-logs time { color: #91a0b7; font-variant-numeric: tabular-nums; }
.cdk-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.cdk-summary-grid article { border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); padding: 14px; }
.cdk-summary-grid span, .cdk-summary-grid small { display: block; color: var(--muted); }
.cdk-summary-grid strong { display: block; margin: 5px 0 2px; color: var(--green); font-size: 20px; }
.cdk-summary-grid small { font-size: 10px; }
.filter-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.filter-row label { margin: 0; }
.filter-result { align-self: center; justify-self: end; color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 11px 10px; font-size: 12px; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.selection-cell { width: 38px; text-align: center; }
.selection-cell input { width: 16px; height: 16px; margin: 0; accent-color: #68d5a7; cursor: pointer; }
.selection-cell input:disabled { cursor: not-allowed; opacity: .35; }
.cdk-pagination { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; }
.pagination-buttons { display: flex; align-items: center; gap: 6px; }
.pagination-button { width: 36px; min-width: 36px; height: 34px; padding: 0; font-size: 20px; line-height: 1; }
.pagination-info { min-width: 92px; text-align: center; color: var(--muted); font-size: 12px; }
.cdk-pagination label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }
.cdk-pagination select { width: 78px; padding: 7px 9px; }
tbody tr { transition: background-color .14s ease, box-shadow .14s ease; }
tbody tr:hover { background: #202d432e; box-shadow: inset 3px 0 0 #728cff; }
td code { color: #b9c7dd; }
.table-status { border-radius: 99px; padding: 4px 8px; background: #243047; }
.table-status.success { color: var(--green); }
.table-status.mock_success { color: var(--red); }
.table-status.unused { color: var(--green); }
.table-status.used { color: var(--muted); }
.table-status.failed, .table-status.timed_out { color: var(--red); }
.cdk-code { color: #dce6f7; font-weight: 700; }
.legacy-note { display: block; color: var(--gold); margin-top: 3px; font-size: 10px; }
.row-actions { display: flex; gap: 6px; }
.mini-button { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #263853, #17243a); padding: 6px 10px; font-size: 11px; box-shadow: inset 0 1px 0 #ffffff1c; }
.mini-button.danger { border-color: #8b4353; background: linear-gradient(180deg, #5d2635, #381b2a); color: #ffdce3; }
.mini-button.danger:not(:disabled):hover { border-color: #ff7e91; box-shadow: 0 7px 16px #ff7e9126, inset 0 1px 0 #ffffff20; }
.mini-button:disabled { cursor: not-allowed; }
.fulfillment-tag { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 4px 8px; font-weight: 800; }
.fulfillment-tag.real { color: var(--green); border-color: #2d765e; }
.fulfillment-tag.mock { color: var(--red); border-color: #78384a; }
.security-dialog {
  width: min(440px, calc(100% - 32px));
  max-width: none;
  border: 1px solid #3b4b65;
  border-radius: 8px;
  padding: 0;
  background: #101827;
  color: var(--text);
  box-shadow: 0 24px 70px #000b;
}
.security-dialog::backdrop { background: #050810c7; backdrop-filter: blur(3px); }
.security-dialog form { padding: 24px; }
.security-dialog h2 { font-size: 21px; }
.security-dialog label { margin: 16px 0 8px; }
.security-dialog .form-message { margin-top: 10px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.dialog-actions button { width: 100%; }
@media (max-width: 820px) { .customer-grid, .admin-grid { grid-template-columns: 1fr; } .flow-strip { overflow-x: auto; } .flow-strip i { min-width: 30px; } .stats-grid { grid-template-columns: 1fr 1fr; } .admin-header { flex-direction: column; align-items: stretch; } .cdk-summary-grid { grid-template-columns: 1fr; } .filter-row { grid-template-columns: 1fr 1fr; } .filter-result { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 520px) { .page { width: min(100% - 20px, 1180px); padding-top: 28px; } .hero { grid-template-columns: 1fr; } .flow-strip { padding: 14px; } .inline-form, .confirm-actions, .filter-row, .lookup-controls, .lookup-facts, .card-import-form { grid-template-columns: 1fr; } .field-label-row { align-items: flex-start; flex-direction: column; gap: 5px; } .lookup-panel .section-head { align-items: flex-start; flex-direction: column; } .lookup-facts .lookup-email-fact { grid-column: auto; } .lookup-controls button { width: 100%; } .stats-grid { grid-template-columns: 1fr 1fr; } .table-actions { width: 100%; justify-content: stretch; } .table-actions button { flex: 1; } .cdk-pagination { align-items: flex-start; flex-direction: column; } .security-dialog form { padding: 20px; } .dialog-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Buyer-facing light theme. Admin pages intentionally keep the dark palette above. */
.customer-shell {
  color-scheme: light;
  --customer-bg: #f3f6fa;
  --customer-surface: #ffffff;
  --customer-surface-soft: #f8fafc;
  --customer-line: #e1e7ef;
  --customer-line-strong: #cbd6e4;
  --customer-text: #172033;
  --customer-muted: #677386;
  --customer-blue: #087df2;
  --customer-blue-dark: #0568cc;
  --customer-blue-soft: #eaf4ff;
  --customer-green: #10a878;
  --customer-green-soft: #e9f9f3;
  --customer-red: #dc455b;
  --customer-red-soft: #fff0f2;
  --customer-gold: #a86a0a;
  margin: 0;
  min-height: 100vh;
  background: var(--customer-bg);
  color: var(--customer-text);
}

.customer-shell * { letter-spacing: 0; }

.customer-shell .site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 66px;
  border-bottom: 1px solid #e7ebf1;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 10px rgba(34, 55, 82, .04);
  backdrop-filter: blur(12px);
}

.customer-shell .site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  gap: 20px;
}

.customer-shell .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--customer-text);
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
}

.customer-shell .site-brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--customer-blue);
  color: #fff;
  box-shadow: 0 7px 17px rgba(8, 125, 242, .24);
  font-size: 16px;
  font-weight: 900;
}

.customer-shell .site-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-shell .site-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #98a4b6;
  box-shadow: 0 0 0 5px rgba(152, 164, 182, .12);
}

.customer-shell .site-status.ready i {
  background: var(--customer-green);
  box-shadow: 0 0 0 5px rgba(16, 168, 120, .12);
}

.customer-shell .site-status.warning i {
  background: #e9a13a;
  box-shadow: 0 0 0 5px rgba(233, 161, 58, .13);
}

.customer-shell .customer-page {
  width: min(1180px, calc(100% - 40px));
  padding: 42px 0 34px;
}

.customer-shell .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.customer-shell .hero .eyebrow,
.customer-shell .section-head .eyebrow,
.customer-shell .confirm-panel .eyebrow,
.customer-shell .lookup-result-head .eyebrow {
  margin-bottom: 7px;
  color: var(--customer-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.customer-shell h1,
.customer-shell h2,
.customer-shell h3 {
  color: var(--customer-text);
  letter-spacing: 0;
}

.customer-shell h1 {
  font-size: 42px;
  line-height: 1.15;
}

.customer-shell h2 { font-size: 21px; }
.customer-shell h3 { font-size: 17px; }

.customer-shell .hero-copy {
  max-width: 620px;
  margin-top: 12px;
  color: var(--customer-muted);
  font-size: 15px;
}

.customer-shell .trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.customer-shell .trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--customer-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #536074;
  font-size: 12px;
  font-weight: 750;
}

.customer-shell .trust-row i {
  color: var(--customer-blue);
  font-style: normal;
  font-weight: 900;
}

.customer-shell .runtime-banner {
  max-width: 960px;
  margin: 24px auto 14px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
}

.customer-shell .runtime-banner.mock,
.customer-shell .runtime-banner.blocked {
  border-color: #f0b7bf;
  background: var(--customer-red-soft);
  color: #a92f43;
}

.customer-shell .runtime-banner.live {
  border-color: #a9decf;
  background: var(--customer-green-soft);
  color: #087554;
}

.customer-shell .flow-strip {
  max-width: 1060px;
  margin: 22px auto 16px;
  padding: 14px 20px;
  border-color: var(--customer-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
}

.customer-shell .flow-strip div { gap: 7px; }
.customer-shell .flow-strip b { color: var(--customer-blue); }
.customer-shell .flow-strip span { color: #5e6a7d; font-size: 12px; }
.customer-shell .flow-strip i { background: #d8e0ea; }

.customer-shell .customer-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 16px;
}

.customer-shell .panel {
  scroll-margin-top: 82px;
  border-color: var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface);
  box-shadow: 0 12px 32px rgba(38, 57, 79, .08), 0 2px 7px rgba(38, 57, 79, .04);
}

.customer-shell .redeem-panel,
.customer-shell .status-panel { padding: 22px; }

.customer-shell .section-head { margin-bottom: 18px; }

.customer-shell .pill,
.customer-shell .status-badge {
  border-color: var(--customer-line-strong);
  background: var(--customer-surface-soft);
  color: var(--customer-blue);
}

.customer-shell label { color: #49566a; }
.customer-shell .field-help,
.customer-shell .section-copy { color: var(--customer-muted); }

.customer-shell .help-link {
  color: var(--customer-blue);
  border-bottom-color: rgba(8, 125, 242, .32);
}

.customer-shell .help-link:hover {
  color: var(--customer-blue-dark);
  border-bottom-color: var(--customer-blue-dark);
}

.customer-shell .help-link:focus-visible {
  outline-color: rgba(8, 125, 242, .28);
}

.customer-shell input,
.customer-shell textarea,
.customer-shell select {
  border-color: var(--customer-line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--customer-text);
  box-shadow: inset 0 1px 2px rgba(26, 42, 64, .025);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.customer-shell input::placeholder,
.customer-shell textarea::placeholder { color: #98a3b3; }

.customer-shell input:hover,
.customer-shell textarea:hover,
.customer-shell select:hover {
  border-color: #b8c5d5;
  background: #fff;
}

.customer-shell input:focus,
.customer-shell textarea:focus,
.customer-shell select:focus {
  border-color: var(--customer-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 125, 242, .12);
}

.customer-shell button {
  min-height: 43px;
  border-radius: 8px;
  transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, filter .18s ease;
}

.customer-shell button::after {
  inset: 1px 1px auto;
  height: 45%;
  border-radius: 7px 7px 4px 4px;
  background: rgba(255, 255, 255, .16);
  opacity: 1;
}

.customer-shell button:not(:disabled):hover { transform: translateY(-1px); }
.customer-shell button:not(:disabled):active { transform: translateY(1px) scale(.99); }

.customer-shell button:focus-visible {
  outline-color: rgba(8, 125, 242, .35);
}

.customer-shell button.primary {
  background: var(--customer-blue);
  box-shadow: 0 7px 16px rgba(8, 125, 242, .2), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.customer-shell button.primary:not(:disabled):hover {
  background: #1087f7;
  box-shadow: 0 9px 20px rgba(8, 125, 242, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.customer-shell button.primary:not(:disabled):active {
  background: var(--customer-blue-dark);
  box-shadow: 0 3px 8px rgba(8, 125, 242, .2), inset 0 2px 3px rgba(0, 47, 94, .16);
}

.customer-shell button.secondary {
  border-color: var(--customer-line-strong);
  background: #fff;
  color: #3f4b5e;
  box-shadow: 0 2px 5px rgba(38, 57, 79, .05);
}

.customer-shell button.secondary:not(:disabled):hover {
  border-color: #9dafc3;
  background: #f8fafc;
  box-shadow: 0 6px 14px rgba(38, 57, 79, .09);
}

.customer-shell .privacy-note {
  border-color: #b9e5d8;
  background: var(--customer-green-soft);
}

.customer-shell .privacy-note span { color: #087554; }
.customer-shell .privacy-note p { color: #5c6d69; }
.customer-shell .form-message { color: var(--customer-muted); }
.customer-shell .form-message.success { color: var(--customer-green); }
.customer-shell .form-message.error { color: var(--customer-red); }

.customer-shell .confirm-panel {
  border-color: #b9d7f7;
  border-radius: 8px;
  background: var(--customer-blue-soft);
  box-shadow: inset 3px 0 0 var(--customer-blue);
}

.customer-shell .confirm-copy { color: #5c6d82; }

.customer-shell .confirm-facts div {
  border-color: #d2e2f4;
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
}

.customer-shell .confirm-facts dt { color: var(--customer-muted); }
.customer-shell .confirm-facts dd { color: var(--customer-text); }
.customer-shell .confirm-facts div:last-child dd { color: var(--customer-green); }

.customer-shell .progress-track {
  border-color: #dce4ee;
  background: #edf1f6;
}

.customer-shell .progress-track span { background: var(--customer-blue); }
.customer-shell .status-main > span { color: var(--customer-blue); }
.customer-shell .status-main p { color: var(--customer-muted); }

.customer-shell .execution-log {
  border-color: var(--customer-line);
  border-radius: 8px;
  background: #fbfcfe;
}

.customer-shell .execution-log-head {
  border-bottom-color: var(--customer-line);
  background: #f5f8fb;
}

.customer-shell .execution-log-head strong { color: #344157; }
.customer-shell .execution-log-head span { color: var(--customer-muted); }
.customer-shell .execution-log li { color: #4f5d70; }
.customer-shell .execution-log li + li { border-top-color: #edf0f4; }
.customer-shell .execution-log time { color: #8c98a9; }
.customer-shell .execution-log b { color: var(--customer-blue); }
.customer-shell .execution-log li.success b { color: var(--customer-green); }
.customer-shell .execution-log li.warning b { color: var(--customer-gold); }
.customer-shell .execution-log li.error b { color: var(--customer-red); }
.customer-shell .execution-log li.empty { color: var(--customer-muted); }

.customer-shell .status-badge.processing {
  border-color: #edcf98;
  background: #fff8e8;
  color: var(--customer-gold);
}

.customer-shell .status-badge.success {
  border-color: #a9decf;
  background: var(--customer-green-soft);
  color: #087554;
}

.customer-shell .status-badge.mock,
.customer-shell .status-badge.failed {
  border-color: #f0b7bf;
  background: var(--customer-red-soft);
  color: #a92f43;
}

.customer-shell .order-facts {
  border-color: var(--customer-line);
  border-radius: 8px;
}

.customer-shell .order-facts div { border-bottom-color: var(--customer-line); }
.customer-shell .order-facts dt { color: var(--customer-muted); }
.customer-shell .order-facts dd { color: #344157; }

.customer-shell .lookup-panel {
  margin-top: 16px;
  padding: 22px;
}

.customer-shell .lookup-result {
  border-color: #c7d8eb;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: inset 3px 0 0 var(--customer-blue);
}

.customer-shell .lookup-facts div {
  border-color: var(--customer-line);
  border-radius: 7px;
  background: #fff;
}

.customer-shell .lookup-facts dt { color: var(--customer-muted); }
.customer-shell .lookup-facts dd { color: var(--customer-text); }

.customer-shell .lookup-facts .lookup-email-fact {
  border-color: #b9e5d8;
  background: var(--customer-green-soft);
}

.customer-shell .lookup-email-fact dd { color: #087554; }

.customer-shell .lookup-order-message {
  background: #eef4fa;
  color: #4f5d70;
}

.customer-shell .lookup-legacy-note {
  border-color: #edcf98;
  background: #fff8e8;
  color: var(--customer-gold);
}

.customer-shell footer { color: #8390a2; }

@media (max-width: 820px) {
  .customer-shell .site-header-inner,
  .customer-shell .customer-page { width: min(100% - 28px, 1180px); }
  .customer-shell .customer-page { padding-top: 32px; }
  .customer-shell .customer-grid { grid-template-columns: 1fr; }
  .customer-shell .flow-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    padding-inline: 8px;
  }
  .customer-shell .flow-strip i { display: none; }
  .customer-shell .flow-strip div {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 0 4px;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 900px) { .manual-payment-facts { grid-template-columns: 1fr 1fr; } .manual-payment-facts div:nth-child(2) { border-right: 0; } }
@media (max-width: 520px) { .manual-payment-grid, .manual-payment-actions, .manual-payment-facts, .manual-payment-logs li { grid-template-columns: 1fr; } .manual-payment-status-head, .manual-payment-status-head > div { align-items: flex-start; flex-direction: column; } .manual-payment-facts div { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) {
  .card-routing-form { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .customer-shell .site-header { height: 58px; }
  .customer-shell .site-header-inner,
  .customer-shell .customer-page { width: min(100% - 20px, 1180px); }
  .customer-shell .site-brand { font-size: 13px; }
  .customer-shell .site-brand-mark { width: 32px; height: 32px; }
  .customer-shell .site-status span { display: none; }
  .customer-shell .customer-page { padding-top: 25px; }
  .customer-shell h1 { font-size: 32px; }
  .customer-shell .hero-copy { font-size: 14px; }
  .customer-shell .trust-row { gap: 6px; margin-top: 16px; }
  .customer-shell .trust-row span { min-height: 30px; padding: 4px 9px; font-size: 11px; }
  .customer-shell .runtime-banner { margin-top: 18px; }
  .customer-shell .flow-strip { margin-top: 14px; padding: 12px; }
  .customer-shell .redeem-panel,
  .customer-shell .status-panel,
  .customer-shell .lookup-panel { padding: 17px; }
  .customer-shell .section-head { gap: 10px; }
  .customer-shell .pill,
  .customer-shell .status-badge { padding: 5px 8px; }
  .customer-shell .status-main { grid-template-columns: 58px 1fr; gap: 12px; }
  .customer-shell .status-main > span { font-size: 22px; }
  .customer-shell .execution-log li { grid-template-columns: 58px 36px 1fr; gap: 6px; padding-inline: 9px; }
}

/* Admin authentication screen. The dashboard remains on the existing operator palette after login. */
.admin-shell .admin-login-view {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #f3f6fa;
  color: #172033;
  color-scheme: light;
}

.admin-shell .admin-login-card {
  width: min(100%, 480px);
  padding: 38px 40px 30px;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(37, 57, 82, .12), 0 2px 8px rgba(37, 57, 82, .05);
}

.admin-shell .admin-login-brand {
  margin-bottom: 13px;
  color: #4175aa;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  letter-spacing: 0;
}

.admin-shell .admin-login-card h1 {
  color: #172033;
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1.15;
}

.admin-shell .admin-login-copy {
  margin-top: 11px;
  color: #6f7d91;
  font-size: 14px;
}

.admin-shell .admin-login-card label {
  display: block;
  margin: 24px 0 8px;
  color: #25334a;
  font-size: 13px;
  font-weight: 800;
}

.admin-shell .admin-login-card input {
  min-height: 50px;
  border-color: #cbd7e4;
  border-radius: 8px;
  background: #fff;
  color: #172033;
}

.admin-shell .admin-login-card input:focus {
  border-color: #087df2;
  box-shadow: 0 0 0 3px rgba(8, 125, 242, .12);
}

.admin-shell .admin-login-card button {
  width: 100%;
  margin-top: 25px;
  background: #087df2;
  box-shadow: 0 8px 18px rgba(8, 125, 242, .22);
}

.admin-shell .admin-login-card button:not(:disabled):hover {
  background: #1087f7;
  box-shadow: 0 11px 23px rgba(8, 125, 242, .3);
}

.admin-shell .admin-login-card .form-message {
  min-height: 22px;
  margin: 12px 0 0;
  text-align: center;
}

.admin-shell .admin-login-footer {
  margin-top: 22px;
  color: #99a6b8;
  font-size: 12px;
  text-align: center;
}

.admin-shell .admin-session {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-shell .admin-session span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 520px) {
  .admin-shell .admin-login-card { padding: 30px 22px 24px; }
  .admin-shell .admin-login-card h1 { font-size: 30px; }
}
