:root { color-scheme: dark; --bg: #101310; --panel: #171b18; --line: #343a35; --text: #f5f6f3; --muted: #a5aca6; --accent: #f3ff00; --green: #3ddc84; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-family: "Instrument Sans", Arial, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.admin-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--line); background: #0d100e; }
.admin-topbar img { display: block; width: 112px; height: 44px; object-fit: contain; }
.admin-topbar > div { display: flex; align-items: center; gap: 9px; color: #c8cdc9; font-size: 13px; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #3ddc8418; }
.admin-page { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 80px; }
.admin-state { max-width: 620px; margin: 12vh auto 0; text-align: center; }
.admin-state h1, .dashboard-heading h1 { margin: 6px 0 10px; font-size: clamp(32px, 5vw, 48px); line-height: 1; }
.admin-state > p:not(.eyebrow), .dashboard-heading p { color: var(--muted); line-height: 1.55; }
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; }
.primary-button, .secondary-button, .complete-order, .cancel-order { min-height: 42px; padding: 0 16px; border-radius: 7px; font-weight: 800; }
.primary-button, .complete-order { border: 0; background: var(--accent); color: #101310; }
.secondary-button { border: 1px solid var(--line); background: transparent; color: var(--text); }
.setup-note { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
code { color: var(--accent); }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.dashboard-heading h1 { margin-bottom: 6px; }
.dashboard-heading p:last-child { margin: 0; font-size: 13px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.status-tabs { display: flex; gap: 6px; overflow-x: auto; }
.status-tabs button { min-height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); white-space: nowrap; font-weight: 700; }
.status-tabs button.is-active { border-color: var(--line); background: var(--panel); color: var(--text); }
.status-tabs span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 10px; background: #ffffff10; font-size: 11px; }
.search-field { flex: 0 1 290px; }
.search-field input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--panel); color: var(--text); }
.search-field input:focus { border-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.admin-feedback { min-height: 20px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.admin-feedback.is-error { color: #ffaaa4; }
.orders-list { display: grid; gap: 10px; margin-top: 12px; }
.order-card { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px 160px; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.order-code { margin: 0 0 6px; font-size: 17px; }
.order-date, .order-contact, .order-products { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.cashback-note { margin: 7px 0 0; color: #d5dc72; font-size: 11px; font-weight: 700; }
.order-products { color: var(--text); }
.order-total { text-align: right; font-size: 19px; font-weight: 800; }
.order-status { display: inline-flex; width: max-content; margin-bottom: 7px; padding: 4px 8px; border-radius: 4px; background: #ffffff0b; color: var(--muted); font-size: 11px; font-weight: 800; }
.order-status.notified { background: #f3ff0014; color: var(--accent); }
.order-status.completed { background: #3ddc8414; color: var(--green); }
.order-status.expired, .order-status.cancelled { background: #ffffff0b; color: #929a94; }
.order-actions { display: grid; gap: 7px; }
.order-actions a { color: #75dc99; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.cancel-order { border: 1px solid #ffffff25; background: transparent; color: #c9ceca; }
.cancel-order:hover { border-color: #ffaaa4; color: #ffaaa4; }
.complete-order:disabled, .cancel-order:disabled { cursor: wait; opacity: .55; }
.empty-orders { padding: 50px 20px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }
@media (max-width: 820px) { .admin-toolbar { align-items: stretch; flex-direction: column; } .status-tabs { width: 100%; } .search-field { flex-basis: auto; width: 100%; } .order-card { grid-template-columns: 1fr auto; } .order-summary { grid-column: 1; } .order-price { grid-column: 2; grid-row: 1; } .order-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .admin-page { width: min(100% - 28px, 1120px); padding-top: 30px; } .admin-topbar { padding-inline: 14px; } .dashboard-heading { align-items: flex-start; } .order-card { padding: 15px; gap: 14px; } .order-actions { grid-template-columns: 1fr; } }
body.admin-auth-pending { visibility: hidden; }
