/* RahroNet — one stylesheet for the shop, the seller area, the admin panel and the sub page. */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-var.woff2") format("woff2-variations"), url("../fonts/vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0b0e;
  --bg-2: #0e1014;
  --card: #121419;
  --card-2: #171a20;
  --line: #1f232a;
  --line-2: #2b3039;
  --ink: #eef0f3;
  --ink-2: #aab0bb;
  --ink-3: #6f7682;
  --lime: #c6f432;
  --lime-ink: #11140a;
  --coral: #ff7a59;
  --sky: #4cc9f0;
  --amber: #f6b93b;
  --ok: #4ade80;
  --bad: #ff5d5d;
  --r: 14px;
  --r-sm: 10px;
  --pad: 20px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.75 "Vazirmatn", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--lime-ink); }
.num, .ltr { font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; flex: none; }
/* grid and flex children may shrink below their content (long links, codes) */
.stack > *, .split > *, .svc > *, .svc-card > *, .grid2 > *, .grid3 > *, .stats > *, .card { min-width: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: left; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.hide { display: none !important; }

/* ------------------------------------------------------------------ frame */

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-weight: 800; }
.brand b i { font-style: normal; color: var(--lime); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14px; }
.nav a:hover { color: var(--ink); background: var(--card); }
.nav a.on { color: var(--ink); }
.nav .btn { margin-inline-start: 6px; }

.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--ink-3); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.foot .brand { font-size: 15px; color: var(--ink-2); }
.foot .brand svg { width: 22px; height: 22px; }
.foot nav { display: flex; gap: 18px; margin-inline-start: auto; }
.foot a:hover { color: var(--ink); }

main { padding: 28px 0 0; }
.page-head { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.page-head .grow { flex: 1; }
.eyebrow { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ controls */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--card-2); color: var(--ink); font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { border-color: #3a404b; background: #1c2027; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.go { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn.go:hover { background: #d4ff4a; }
.btn.bad { color: #ffb4a6; border-color: #4a2626; background: #1d1212; }
.btn.bad:hover { background: #2a1515; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); background: var(--card); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12px; }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.8; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198, 244, 50, .12); }
.field input[dir=ltr] { text-align: left; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: right .15s; }
.switch input:checked { background: var(--lime); }
.switch input:checked::after { right: 19px; background: var(--lime-ink); }

/* ------------------------------------------------------------------ surfaces */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2, .card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .spacer + * { margin-inline-start: auto; }
.section { margin-top: 34px; }
.section > h2 { font-size: 18px; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); border-color: rgba(74, 222, 128, .25); }
.badge.warn { color: var(--amber); border-color: rgba(246, 185, 59, .25); }
.badge.bad { color: var(--bad); border-color: rgba(255, 93, 93, .25); }
.badge.info { color: var(--sky); border-color: rgba(76, 201, 240, .25); }
.badge.plain::before { display: none; }

.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .5; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.table a.rowlink { font-weight: 600; }
.table a.rowlink:hover { color: var(--lime); }
.scroll-x { overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

/* ------------------------------------------------------------------ the route: metro-line motif */

.route { position: relative; height: 10px; border-radius: 99px; background: var(--line); overflow: visible; }
.route > i { position: absolute; inset-block: 0; right: 0; border-radius: 99px; background: var(--lime); width: calc(var(--p, 0) * 1%); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.route > i::after { content: ""; position: absolute; left: -5px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--bg); border: 3px solid var(--lime); }
.route.warn > i { background: var(--amber); } .route.warn > i::after { border-color: var(--amber); }
.route.bad > i { background: var(--bad); } .route.bad > i::after { border-color: var(--bad); }
.route.thin { height: 6px; }
.route.thin > i::after { width: 10px; height: 10px; margin-top: -5px; left: -3px; border-width: 2px; }

.stations { display: flex; align-items: flex-start; margin: 4px 0 2px; }
.stations li { list-style: none; flex: 1; position: relative; text-align: center; font-size: 12px; color: var(--ink-3); padding-top: 22px; }
.stations li::before { content: ""; position: absolute; top: 5px; left: 50%; width: 100%; height: 3px; background: var(--line-2); }
.stations li:first-child::before { display: none; }
.stations li::after { content: ""; position: absolute; top: 0; right: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line-2); box-sizing: border-box; }
.stations { padding: 0; }
.stations li.done { color: var(--ink-2); }
.stations li.done::before, .stations li.done::after { background: var(--lime); border-color: var(--lime); }
.stations li.done::after { background: var(--lime); }
.stations li.now { color: var(--ink); font-weight: 600; }
.stations li.now::before { background: var(--lime); }
.stations li.now::after { border-color: var(--lime); box-shadow: 0 0 0 5px rgba(198, 244, 50, .14); }
.stations li.fail::after { border-color: var(--bad); }

/* ------------------------------------------------------------------ home */

.hero { position: relative; padding: 44px 0 10px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; margin: 0; font-weight: 900; letter-spacing: -0.04em; }
.hero h1 span { color: var(--lime); }
.hero .lines { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.netmap { margin-top: 30px; padding: 20px 22px; display: grid; gap: 14px; }
.netmap .track { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 8px 4px 2px; scrollbar-width: none; }
.netmap .track::-webkit-scrollbar { display: none; }
.netmap .stop { display: grid; justify-items: center; gap: 8px; min-width: 112px; position: relative; font-size: 13px; color: var(--ink-2); text-align: center; }
.netmap .stop::before { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 3px; background: var(--lime); opacity: .85; }
.netmap .stop:first-child::before { display: none; }
.netmap .dot { width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 3px solid var(--lime); position: relative; z-index: 1; }
.netmap .stop.off .dot { border-color: var(--ink-3); }
.netmap .stop.off::before { background: var(--line-2); }
.netmap .stop small { color: var(--ink-3); font-size: 11px; }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.plan { position: relative; display: grid; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.plan::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--c, var(--lime)); }
.plan .vol { display: flex; align-items: baseline; gap: 6px; }
.plan .vol b { font-size: 42px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; }
.plan .vol span { color: var(--ink-2); font-weight: 600; }
.plan .meta { display: flex; gap: 14px; color: var(--ink-2); font-size: 13px; }
.plan .meta span { display: inline-flex; align-items: center; gap: 6px; }
.plan .meta svg { width: 15px; height: 15px; opacity: .7; }
.plan .price { display: flex; align-items: baseline; gap: 6px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.plan .price b { font-size: 22px; font-weight: 800; }
.plan .price small { color: var(--ink-3); }
.plan .tag { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); }
.plan:nth-child(4n+2) { --c: var(--sky); }
.plan:nth-child(4n+3) { --c: var(--coral); }
.plan:nth-child(4n+4) { --c: var(--amber); }

.custom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; }
.custom .figure { font-size: 48px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.custom input[type=range] { width: 100%; accent-color: var(--lime); }
.custom .total { display: grid; gap: 4px; padding: 18px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.custom .total b { font-size: 24px; }

/* ------------------------------------------------------------------ auth */

.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 30px 0; }
.auth .card { width: min(400px, 100%); padding: 28px; }
.auth h1 { margin: 0 0 4px; font-size: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 20px; }
.seg a { text-align: center; padding: 8px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.seg a.on { background: var(--card-2); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
.pw { position: relative; }
.pw button { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 6px; }
.pw button svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ account */

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 14px; color: var(--ink-3); font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs a:hover { color: var(--ink-2); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--lime); }
.tabs a .count { font-size: 11px; background: var(--lime); color: var(--lime-ink); border-radius: 99px; padding: 0 7px; line-height: 18px; }

.svc { display: grid; gap: 16px; }
.svc-card { display: grid; gap: 14px; }
.svc-card .title { display: flex; align-items: center; gap: 10px; }
.svc-card .title b { font-size: 16px; }
.svc-card .figures { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.svc-card .figures b { display: block; color: var(--ink); font-size: 18px; font-weight: 700; }
.linkbox { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 6px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: left; font: 13px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ink-2); padding: 0 8px; }

.big-usage { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.ring { width: 150px; height: 150px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .t { stroke: var(--line); }
.ring .v { stroke: var(--lime); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.ring.warn .v { stroke: var(--amber); } .ring.bad .v { stroke: var(--bad); }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .c b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.ring .c small { color: var(--ink-3); font-size: 12px; }

.pay-amount { display: grid; gap: 4px; padding: 22px; border-radius: var(--r); background: linear-gradient(135deg, #1a1f12, #111318 60%); border: 1px solid #2e3a17; }
.pay-amount b { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
.cardno { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.cardno code { font: 600 22px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; direction: ltr; flex: 1; text-align: left; }
.drop { position: relative; display: grid; place-items: center; gap: 6px; min-height: 170px; padding: 18px; border-radius: var(--r); border: 1.5px dashed var(--line-2); background: var(--bg-2); text-align: center; color: var(--ink-3); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--lime); background: #12150c; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { max-height: 220px; border-radius: 10px; }
.drop svg { width: 34px; height: 34px; opacity: .6; }

.thread { display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 12px 15px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { justify-self: start; border-bottom-right-radius: 4px; }
.msg.them { justify-self: end; background: #141a0c; border-color: #2a3514; border-bottom-left-radius: 4px; }
.msg small { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-3); }

/* ------------------------------------------------------------------ seller */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; }
.stat small { color: var(--ink-3); font-size: 12px; }
.stat b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.stat.hl { background: linear-gradient(160deg, #1b2210, var(--card) 70%); border-color: #2c3816; }
.stat.hl b { color: var(--lime); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 90px; }
.bars i { flex: 1; min-height: 3px; background: var(--line-2); border-radius: 4px 4px 2px 2px; height: calc(var(--h) * 1%); position: relative; }
.bars i.today { background: var(--lime); }
.bars i:hover { background: var(--sky); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { height: 36px; min-width: 52px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-2); cursor: pointer; font-weight: 600; }
.presets button.on, .presets button:hover { border-color: var(--lime); color: var(--ink); }
.list { display: grid; }
.list .item { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.list .item:last-child { border-bottom: 0; }
.list .item .who b { display: block; font-weight: 600; }
.list .item .who small { color: var(--ink-3); font-size: 12px; }
.list .item:hover .who b { color: var(--lime); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { max-width: 280px; height: 40px; }
.results { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }

/* ------------------------------------------------------------------ admin */

.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-left: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bg-2); }
.side .brand { padding: 4px 8px 18px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--ink-2); font-size: 14px; }
.side a svg { width: 18px; height: 18px; opacity: .75; }
.side a:hover { background: var(--card); color: var(--ink); }
.side a.on { background: var(--card-2); color: var(--ink); }
.side a.on svg { opacity: 1; color: var(--lime); }
.side a .count { margin-inline-start: auto; font-size: 11px; background: var(--lime); color: var(--lime-ink); border-radius: 99px; padding: 0 7px; line-height: 18px; font-weight: 700; }
.side .bottom { margin-top: auto; }
.admin main { padding: 26px 30px 60px; min-width: 0; }
.receipt-img { width: 100%; max-height: 640px; object-fit: contain; border-radius: 12px; background: #000; cursor: zoom-in; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* ------------------------------------------------------------------ overlays */

.toast-host { position: fixed; z-index: 90; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); animation: up .25s cubic-bezier(.2, .8, .2, 1); pointer-events: auto; }
.toast.bad { background: #ff6b5e; color: #1a0705; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(4, 5, 7, .72); backdrop-filter: blur(4px); animation: fade .2s; }
.modal .card { width: min(440px, 100%); max-height: 90vh; overflow: auto; }
.modal .qr { background: #fff; padding: 14px; border-radius: 12px; display: grid; place-items: center; }
.modal .qr svg, .modal .qr img { width: 100%; max-width: 300px; height: auto; }
@keyframes fade { from { opacity: 0; } }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); padding: 10px; gap: 2px; }
  .side .brand, .side .bottom { display: none; }
  .side a { white-space: nowrap; }
  .admin main { padding: 20px 16px 50px; }
  .split, .custom { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .nav a:not(.btn) { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .big-usage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .list .item { grid-template-columns: minmax(0, 1fr) auto; }
  .list .item .usage { grid-column: 1 / -1; order: 3; }
  .page-head h1 { font-size: 22px; }
  .hero { padding-top: 26px; }
  .msg { max-width: 92%; }
  .cardno code { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
