: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; }
.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; }
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 { border: 0; border-radius: 12px; padding: 12px 16px; color: white; font-weight: 800; cursor: pointer; }
button.primary { width: 100%; background: linear-gradient(135deg, #5678ff, #8d63ff); }
button.secondary { background: transparent; border: 1px solid var(--line); color: #c7d2e4; }
button:disabled { cursor: wait; opacity: .6; }
.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); }
.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; }
.status-badge.processing { color: var(--gold); border-color: #76582d; }
.status-badge.success { color: var(--green); border-color: #2d765e; }
.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; }
.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; }
.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); }
.table-panel { margin-top: 18px; }
.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; }
td code { color: #b9c7dd; }
.table-status { border-radius: 99px; padding: 4px 8px; background: #243047; }
.table-status.success { color: var(--green); }
.table-status.failed, .table-status.timed_out { color: var(--red); }
@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; } }
@media (max-width: 520px) { .page { width: min(100% - 20px, 1180px); padding-top: 28px; } .hero { grid-template-columns: 1fr; } .flow-strip { padding: 14px; } .inline-form { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr 1fr; } }
