/* UFOPay merchant desk - tokens, reset, controls */
:root {
  --ink-0: #07090f; --ink-1: #0d1019; --ink-2: #141826; --ink-3: #1d2335;
  --line: rgba(190, 205, 255, .09); --line-2: rgba(190, 205, 255, .17);
  --tx: #e9ecf6; --tx-2: #aab2c8; --tx-3: #8089a0;
  --ion: #c6f35f; --ion-ink: #11160a; --ion-soft: rgba(198, 243, 95, .12);
  --bad: #ff8d7d; --bad-soft: rgba(255, 141, 125, .12); --warn: #f6c35e; --warn-soft: rgba(246, 195, 94, .12);
  --r-panel: 18px; --r-ctl: 11px;
  --f-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --f-disp: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Cascadia Mono", "SF Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --z-dock: 20; --z-top: 10; --z-toast: 40;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--ink-0); color: var(--tx); font: 400 14px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--ion); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font: 500 12.5px var(--f-mono); color: var(--tx-2); letter-spacing: .01em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--ion); color: var(--ion-ink); }
.muted { color: var(--tx-3); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }

/* controls */
label { display: block; color: var(--tx-2); font-size: 12.5px; font-weight: 500; }
input, select { width: 100%; height: 46px; margin-top: 7px; padding: 0 14px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-ctl); color: var(--tx); transition: border-color .2s, background .2s; }
input::placeholder { color: var(--tx-3); }
input:hover, select:hover { border-color: rgba(190, 205, 255, .3); }
input:focus, select:focus { outline: none; border-color: var(--ion); background: var(--ink-3); }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--tx-2) 50%), linear-gradient(135deg, var(--tx-2) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
option { background: var(--ink-2); }
input[type=date] { color-scheme: dark; }
label small { display: block; margin-top: 6px; color: var(--tx-3); font-weight: 400; }
button { cursor: pointer; height: 44px; padding: 0 20px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: transparent; color: var(--tx); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s; }
button:hover { background: var(--ink-3); }
button:active { transform: translateY(1px) scale(.985); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--ion); color: var(--ion-ink); border-color: var(--ion); font-weight: 700; }
button.primary:hover { background: #d6fa7e; }
button.wide { width: 100%; height: 50px; }
button.mini { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; color: var(--tx-2); }
button.quiet { border-color: transparent; color: var(--tx-2); height: 36px; padding: 0 10px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.alert { margin-top: 14px; padding: 11px 14px; border-radius: var(--r-ctl); background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(255, 141, 125, .28); font-size: 13px; }
.alert[hidden] { display: none; }
.notice { padding: 11px 14px; border-radius: var(--r-ctl); background: var(--warn-soft); color: var(--warn); font-size: 13px; margin-bottom: 18px; }
.empty { padding: 56px 16px; text-align: center; color: var(--tx-3); }
.skeleton { display: grid; gap: 12px; padding: 4px 0; }
.skeleton i { display: block; height: 18px; border-radius: 8px; background: linear-gradient(100deg, var(--ink-2) 30%, var(--ink-3) 50%, var(--ink-2) 70%); background-size: 220% 100%; animation: sheen 1.4s linear infinite; }
.skeleton i:nth-child(2) { width: 72%; } .skeleton i:nth-child(3) { width: 48%; }
@keyframes sheen { to { background-position: -220% 0; } }
.toast { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -14px); opacity: 0; pointer-events: none; z-index: var(--z-toast); background: var(--tx); color: var(--ink-0); padding: 10px 18px; border-radius: 999px; font-weight: 600; transition: .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
