:root {
  --bg: #07110f;
  --surface: rgba(17, 31, 28, .78);
  --surface-solid: #11201d;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f5f8f4;
  --muted: #9aaba5;
  --accent: #b7f36b;
  --accent-dark: #72a338;
  --cyan: #71e4d1;
  --danger: #ff8f7a;
  --warning: #ffd36a;
  --shadow: 0 28px 70px rgba(0, 0, 0, .35);
  --font: "DM Sans", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 999px; filter: blur(120px); pointer-events: none; opacity: .24; z-index: -1; }
.ambient-one { width: 520px; height: 520px; background: #70db8a; top: -280px; right: -180px; }
.ambient-two { width: 400px; height: 400px; background: #096f62; bottom: -240px; left: -160px; }
.site-header { width: min(1160px, calc(100% - 40px)); margin: 0 auto; height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: #10200b; border-radius: 10px 4px 10px 4px; font-weight: 800; }
.security-pill { color: var(--muted); border: 1px solid var(--line); background: rgba(12, 24, 21, .65); border-radius: 999px; padding: 9px 14px; font-size: 13px; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 0 5px rgba(183,243,107,.12); }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hero { max-width: 780px; padding: 76px 0 52px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .18em; margin: 0 0 16px; text-transform: uppercase; }
.hero h1, .auth-card h1, .admin-header h1 { letter-spacing: -.055em; line-height: 1.03; margin: 0; }
.hero h1 { font-size: clamp(44px, 7vw, 82px); max-width: 760px; }
.hero-copy { color: var(--muted); font-size: 18px; max-width: 650px; margin: 26px 0 0; }
.sandbox-banner { display: inline-flex; margin-top: 24px; color: var(--warning); background: rgba(255,211,106,.08); border: 1px solid rgba(255,211,106,.22); padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 22px; align-items: start; }
.glass-card, .panel { background: linear-gradient(145deg, rgba(21,39,35,.88), rgba(11,24,21,.84)); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.form-card, .status-card { border-radius: 24px; padding: 34px; }
.step-head { display: flex; gap: 17px; align-items: flex-start; margin-bottom: 30px; }
.step-number { width: 38px; height: 38px; border: 1px solid rgba(183,243,107,.35); color: var(--accent); border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; }
.step-number.muted { color: var(--muted); border-color: var(--line-strong); }
.step-head h2, .panel-head h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.step-head p, .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: #dce5e1; margin: 18px 0 8px; }
.label-row { display: flex; align-items: flex-end; justify-content: space-between; }
.label-row .field-label { margin-bottom: 8px; }
.field-note { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
input, select, textarea { width: 100%; color: var(--text); background: rgba(5,14,12,.62); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; outline: none; transition: border .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 126px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
input:focus, select:focus, textarea:focus { border-color: rgba(183,243,107,.65); box-shadow: 0 0 0 4px rgba(183,243,107,.08); }
.input-help { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 12px; margin: 22px 0 18px; cursor: pointer; }
.consent-row input { width: 16px; height: 16px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.primary-button, .secondary-button { border: 0; cursor: pointer; border-radius: 12px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; transition: transform .15s, opacity .15s; }
.primary-button { width: 100%; padding: 14px 17px; color: #14230d; background: var(--accent); }
.secondary-button { padding: 10px 15px; color: var(--text); background: var(--surface-solid); border: 1px solid var(--line-strong); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: wait; }
.link-button { text-decoration: none; }
.form-error { min-height: 20px; color: var(--danger); font-size: 13px; margin: 10px 0 0; }
.empty-status { text-align: center; padding: 46px 14px 62px; }
.status-orb { margin: 0 auto 24px; width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid rgba(113,228,209,.23); background: rgba(113,228,209,.04); border-radius: 50%; }
.status-orb span { width: 18px; height: 18px; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 24px var(--cyan); }
.empty-status h3 { margin: 0; font-size: 17px; }
.empty-status p { color: var(--muted); font-size: 13px; margin: 10px auto 0; max-width: 300px; }
.order-code { background: rgba(5,14,12,.55); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 26px; }
.order-code span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.order-code strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-family: ui-monospace, monospace; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; min-height: 70px; position: relative; color: var(--muted); }
.timeline li > span { width: 13px; height: 13px; border: 2px solid #4f625c; border-radius: 50%; flex: none; margin-top: 4px; position: relative; z-index: 1; background: var(--surface-solid); }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 16px; width: 1px; height: 53px; background: #30413c; }
.timeline b { display: block; color: inherit; font-size: 14px; }.timeline small { font-size: 12px; }
.timeline li.current { color: var(--text); }.timeline li.current > span { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(183,243,107,.09); }
.timeline li.done { color: #dce5e1; }.timeline li.done > span { border-color: var(--accent); background: var(--accent); }.timeline li.done::before { background: var(--accent-dark); }
.status-message { border-radius: 11px; padding: 12px 14px; margin-top: 8px; color: var(--cyan); background: rgba(113,228,209,.07); font-size: 13px; }
.status-message.success { color: var(--accent); background: rgba(183,243,107,.08); }.status-message.error { color: var(--danger); background: rgba(255,143,122,.08); }
.text-button { color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.live-status > .text-button { margin-top: 15px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 26px 0 90px; }
.trust-grid article { border-top: 1px solid var(--line); padding: 22px 4px; }.trust-grid span { color: var(--accent); font-size: 12px; }.trust-grid h3 { font-size: 15px; margin: 10px 0 4px; }.trust-grid p { color: var(--muted); font-size: 13px; margin: 0; }
footer { width: min(1160px, calc(100% - 40px)); margin: auto; padding: 24px 0 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.auth-body { display: grid; place-items: center; padding: 30px; }.auth-card { width: min(440px, 100%); border-radius: 24px; padding: 38px; }.auth-card .brand { margin-bottom: 52px; }.auth-card h1 { font-size: 42px; }.auth-copy { color: var(--muted); margin: 14px 0 28px; }.auth-card .primary-button { margin-top: 24px; }
.admin-body { background: #0a1210; }.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; border-right: 1px solid var(--line); background: #0d1916; padding: 28px 24px; display: flex; flex-direction: column; z-index: 2; }.sidebar nav { margin-top: 58px; display: grid; gap: 8px; }.sidebar nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 9px; font-size: 14px; }.sidebar nav a.active, .sidebar nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.admin-main { margin-left: 250px; padding: 42px; min-height: 100vh; }.admin-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }.admin-header h1 { font-size: 42px; }.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }.metric-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #10201c; }.metric-grid span { display: block; color: var(--muted); font-size: 12px; }.metric-grid strong { display: block; margin-top: 9px; font-size: 32px; letter-spacing: -.04em; }.metric-grid .warning strong { color: var(--warning); }
.admin-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); gap: 18px; }.panel { border-radius: 18px; padding: 22px; box-shadow: none; }.wide-panel { grid-column: 1 / -1; }.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }.panel-head select { width: auto; min-width: 150px; padding: 8px 11px; font-size: 12px; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: 13px; }th { color: var(--muted); font-size: 11px; text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }td { padding: 15px 12px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }td strong, td small { display: block; }td small { color: var(--muted); margin-top: 3px; }.empty-cell { text-align: center; color: var(--muted); padding: 36px; }.status-tag { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 11px; }.status-tag.success { color: var(--accent); background: rgba(183,243,107,.08); }.status-tag.manual_review { color: var(--warning); background: rgba(255,211,106,.08); }.status-tag.failed { color: var(--danger); background: rgba(255,143,122,.08); }.error-detail { max-width: 260px; color: var(--danger); }.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }.row-actions button { border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 6px; font-size: 10px; padding: 4px 6px; cursor: pointer; }
.compact-form .primary-button { margin-top: 20px; }.code-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }.code-result > div { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 12px; }.code-result textarea { min-height: 180px; }.provider-card { background: rgba(5,14,12,.5); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }.provider-card span, .provider-card small { display: block; color: var(--muted); font-size: 12px; }.provider-card strong { display: block; font-size: 30px; margin: 8px 0 12px; }.toast { position: fixed; right: 24px; bottom: 24px; background: var(--accent); color: #14230d; padding: 12px 17px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); z-index: 10; }
.compact-form h3 { margin: 0 0 10px; font-size: 16px; }
.cdk-table { margin-top: 22px; }
.status-tag.unbound { color: var(--warning); background: rgba(255,211,106,.08); }
.status-tag.waiting_card { color: var(--danger); background: rgba(255,143,122,.08); }
.status-tag.ready { color: var(--cyan); background: rgba(113,228,209,.08); }
.status-tag.waiting_manual { color: var(--cyan); background: rgba(113,228,209,.08); }
.status-tag.processing { color: var(--accent); background: rgba(183,243,107,.08); }
.inventory-grid { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(500px, 1.35fr); gap: 24px; align-items: start; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.modal-card { width: min(720px, 100%); padding: 24px; border: 1px solid var(--line-strong); border-radius: 20px; background: #10201c; box-shadow: var(--shadow); }
.modal-card textarea { min-height: 240px; margin: 16px 0; }
.danger-note { color: var(--warning); border: 1px solid rgba(255,211,106,.22); background: rgba(255,211,106,.07); border-radius: 10px; padding: 11px 13px; font-size: 12px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; }.trust-grid { grid-template-columns: 1fr; }.sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; }.sidebar nav { margin: 0 0 0 auto; display: flex; }.sidebar-foot { display: none; }.admin-main { margin-left: 0; padding: 28px 20px; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.admin-grid { grid-template-columns: 1fr; }.wide-panel { grid-column: auto; }.inventory-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .site-header { height: 72px; }.security-pill { display: none; }.hero { padding: 48px 0 34px; }.hero h1 { font-size: 45px; }.hero-copy { font-size: 15px; }.form-card, .status-card { padding: 24px 20px; border-radius: 18px; }.shell, .site-header, footer { width: min(100% - 24px, 1160px); }.trust-grid { padding-bottom: 50px; }footer { display: grid; gap: 5px; }.sidebar { padding: 18px; }.sidebar nav { display: none; }.admin-header { align-items: flex-start; }.admin-header h1 { font-size: 32px; }.metric-grid { gap: 8px; }.metric-grid article { padding: 14px; }.metric-grid strong { font-size: 25px; }.admin-main { padding: 24px 12px; }.panel { padding: 16px 12px; }.auth-card { padding: 28px 22px; } }
