/* ==========================================================================
   NFAVault admin. Same structure as the other stores' "Glass" admin (floating sidebar,
   Ctrl K, dashboard) in NFAVault's own look: purple-black base, Geist, logo purple, glass panels.
   Loaded after /css/site.css, so it reuses the site's tokens, buttons, fields and sign-in.
   ========================================================================== */
.ax {
  --side: 272px; --r: 20px; --r-sm: 12px;
  --glass: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  --glass-line: rgba(255,255,255,.09);
  --bad: #ff6b7d; --info: #7cc8ff;
  min-height: 100svh; background: var(--bg);
}
.ax-boot { display: grid; place-items: center; height: 100svh; }
.ax-boot img { animation: axPulse 1.4s ease-in-out infinite; }
@keyframes axPulse { 50% { opacity: .35; transform: scale(.94); } }

/* ---------- shell ---------- */
.ax-shell { position: relative; isolation: isolate; display: flex; min-height: 100svh; }
.ax-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ax-bg i { position: absolute; display: block; border-radius: 50%; filter: blur(10px); }
.ax-bg i:nth-child(1) { width: 1100px; height: 640px; right: -260px; top: -340px; background: radial-gradient(closest-side, rgba(var(--acc-rgb), .2), transparent); animation: axDrift 18s ease-in-out infinite; }
.ax-bg i:nth-child(2) { width: 800px; height: 600px; left: 10%; bottom: -380px; background: radial-gradient(closest-side, rgba(var(--acc-rgb), .09), transparent); animation: axDrift 22s ease-in-out infinite reverse; }
.ax-bg i:nth-child(3) { width: 520px; height: 420px; left: -200px; top: 20%; background: radial-gradient(closest-side, rgba(99, 102, 241, .07), transparent); }
@keyframes axDrift { 50% { transform: translate(-60px, 40px) scale(1.06); } }
.ax-work { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ax-main { width: 100%; max-width: 1560px; margin: 0 auto; padding: 26px 34px 70px; animation: axIn .45s var(--ease) both; }
@keyframes axIn { from { opacity: 0; transform: translateY(8px); } }

/* sidebar */
.ax-side { position: sticky; top: 0; z-index: 50; flex: none; width: var(--side); height: 100svh; padding: 12px 0 12px 12px; }
.ax-side__in { display: flex; flex-direction: column; height: 100%; padding: 16px 12px 12px; border-radius: 24px; border: 1px solid var(--glass-line);
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 80px -30px rgba(0,0,0,.8); }
.ax-brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 16px; text-decoration: none; }
.ax-brand__logo { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px;
  background: linear-gradient(145deg, rgba(var(--acc-rgb), .35), rgba(var(--acc-rgb), .06)); border: 1px solid rgba(var(--acc-rgb), .4);
  box-shadow: 0 10px 26px -10px rgba(var(--acc-rgb), .8), inset 0 1px 0 rgba(255,255,255,.15); }
.ax-brand__logo img { width: 26px; height: auto; }
.ax-brand b { display: block; font-size: 16px; letter-spacing: -.02em; line-height: 1.1; }
.ax-brand small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.ax-store { display: flex; align-items: center; gap: 11px; margin: 0 0 16px; padding: 10px 11px; border-radius: 15px; text-decoration: none; color: var(--ink-2);
  background: linear-gradient(120deg, rgba(var(--acc-rgb), .17), rgba(var(--acc-rgb), .03)); border: 1px solid rgba(var(--acc-rgb), .25); transition: border-color .25s, transform .3s var(--ease); }
.ax-store:hover { border-color: rgba(var(--acc-rgb), .55); transform: translateY(-1px); }
.ax-store__mark { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: rgba(var(--acc-rgb), .25); border: 1px solid rgba(var(--acc-rgb), .4); }
.ax-store__mark img { width: 18px; }
.ax-store span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.ax-store b { font-size: 12.5px; color: var(--ink); }
.ax-store small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11px; }
.ax-store .i { width: 14px; height: 14px; }
.ax-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: axPing 2.2s infinite; }
@keyframes axPing { 0% { box-shadow: 0 0 0 0 rgba(62,230,160,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(62,230,160,0); } }
.ax-nav { position: relative; flex: 1; overflow: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.08) transparent; }
.ax-nav__mark { position: absolute; left: 4px; right: 4px; top: 0; z-index: 0; border-radius: 13px; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--acc-rgb), .26), rgba(var(--acc-rgb), .06)); border: 1px solid rgba(var(--acc-rgb), .35);
  box-shadow: 0 10px 30px -12px rgba(var(--acc-rgb), .8), inset 0 1px 0 rgba(255,255,255,.08); transition: transform .5s var(--ease), height .3s var(--ease), opacity .2s; }
.ax-nav__sec { margin-bottom: 6px; }
.ax-nav__title { padding: 10px 10px 6px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ax-nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; height: 40px; margin: 1px 0; padding: 0 9px; border-radius: 13px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s, background-color .2s; }
.ax-nav a:hover { color: var(--ink); background: rgba(255,255,255,.035); }
.ax-nav a[aria-current="page"] { color: #fff; background: transparent; }
.ax-nav__ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); transition: all .25s; }
.ax-nav__ic .i { width: 15px; height: 15px; }
.ax-nav a:hover .ax-nav__ic { color: var(--ink); border-color: var(--line-2); }
.ax-nav a[aria-current="page"] .ax-nav__ic { color: #fff; border-color: rgba(var(--acc-rgb), .7); background: linear-gradient(145deg, var(--acc), #6a0bbd); box-shadow: 0 6px 16px -4px rgba(var(--acc-rgb), .9); }
.ax-nav__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font: 700 11px var(--mono); color: #1a0d00; background: var(--warn); }
.ax-side__foot { display: grid; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ax-acct { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 15px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ax-av { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--acc), #3d0a6e); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); text-transform: uppercase; }
.ax-acct > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.ax-acct b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-acct small { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.ax-icbtn { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.ax-icbtn:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.ax-icbtn--bad:hover { color: #ffb3bd; background: rgba(255, 107, 125, .12); }
.ax-icbtn .i { width: 16px; height: 16px; }

/* top bar */
.ax-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; padding: 0 34px;
  background: linear-gradient(180deg, rgba(16, 14, 23, .9), rgba(16, 14, 23, .6)); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.ax-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); }
.ax-crumbs .i { width: 13px; height: 13px; }
.ax-crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.ax-top__end { display: flex; align-items: center; gap: 10px; }
.ax-search { display: flex; align-items: center; gap: 10px; width: 290px; height: 40px; padding: 0 8px 0 13px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.035); color: var(--muted); font: 500 13px var(--font); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.ax-search:hover { border-color: rgba(var(--acc-rgb), .45); color: var(--ink-2); background: rgba(255,255,255,.05); }
.ax-search .i { width: 16px; height: 16px; }
.ax-search span { margin-right: auto; }
kbd.ax-kbd, .ax-search kbd, .ax-cmd kbd { font: 600 10.5px var(--mono); color: var(--ink-2); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.ax-mbar { display: none; }

/* command search */
.ax-cmd { position: fixed; inset: 13vh 0 auto; width: min(620px, 92vw); max-height: 72vh; margin: 0 auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.ax-cmd::backdrop { background: rgba(5, 4, 9, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ax-cmd[open] .ax-cmd__in { animation: axPop .28s var(--ease); }
@keyframes axPop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.ax-cmd__in { display: flex; flex-direction: column; max-height: 72vh; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(22, 19, 31, .95);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 40px 120px -20px #000, inset 0 1px 0 rgba(255,255,255,.06); }
.ax-cmd__field { display: flex; align-items: center; gap: 12px; padding: 17px 18px; border-bottom: 1px solid var(--line); color: var(--acc); }
.ax-cmd__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 500 16px var(--font); }
.ax-cmd__list { overflow: auto; padding: 8px; }
.ax-cmd__list small { display: block; padding: 10px 10px 5px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ax-cmd__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink-2); text-decoration: none; }
.ax-cmd__item[aria-selected="true"] { background: rgba(var(--acc-rgb), .15); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .3); }
.ax-cmd__item .ax-nav__ic { width: 32px; height: 32px; }
.ax-cmd__item[aria-selected="true"] .ax-nav__ic { background: linear-gradient(145deg, var(--acc), #6a0bbd); border-color: transparent; color: #fff; }
.ax-cmd__item span:nth-child(2) { display: flex; flex-direction: column; margin-right: auto; }
.ax-cmd__item b { font-size: 13.5px; }
.ax-cmd__item em { font-style: normal; font-size: 12px; color: var(--muted); }
.ax-cmd__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }

/* ---------- page parts ---------- */
.ax-ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin: 4px 0 22px; }
.ax-ph h1 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; }
.ax-ph p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.ax-ph__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-card { position: relative; border-radius: var(--r); border: 1px solid var(--glass-line); background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.ax-card__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.ax-card__h h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ax-card__h a, .ax-link { font-size: 13px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; font-family: var(--font); }
.ax-card__h a:hover, .ax-link:hover { color: var(--ink); }
.ax-card__h .i, .ax-link .i { width: 14px; height: 14px; }
.ax-card__b { padding: 16px 20px 20px; }
.ax-grid { display: grid; gap: 16px; }
.ax-2 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.ax-2e { grid-template-columns: 1fr 1fr; }

/* KPI */
.ax-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ax-kpi { position: relative; overflow: hidden; padding: 16px 18px 14px; border-radius: var(--r); border: 1px solid var(--glass-line); background: var(--glass); animation: axIn .6s var(--ease) both; animation-delay: var(--d, 0s); }
.ax-kpi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 100% 0%, rgba(var(--acc-rgb), .14), transparent 60%); }
.ax-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.ax-kpi__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--acc); background: rgba(var(--acc-rgb), .12); border: 1px solid rgba(var(--acc-rgb), .25); }
.ax-kpi__ic .i { width: 15px; height: 15px; }
.ax-kpi b { display: block; margin: 10px 0 2px; font-size: 26px; letter-spacing: -.035em; font-weight: 600; font-variant-numeric: tabular-nums; }
.ax-kpi small { font-size: 12px; color: var(--muted); }
.ax-delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; font: 600 11.5px var(--mono); }
.ax-delta.up { color: var(--ok); background: rgba(62,230,160,.1); }
.ax-delta.down { color: var(--bad); background: rgba(255,107,125,.1); }
.ax-spark { display: block; width: 100%; height: 34px; margin-top: 8px; overflow: visible; }

/* chart */
.ax-chart { position: relative; height: 260px; margin-top: 8px; }
.ax-chart svg { width: 100%; height: 100%; overflow: visible; }
.ax-chart__tip { position: absolute; top: 0; z-index: 2; min-width: 120px; padding: 8px 11px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(22, 19, 31, .95);
  font-size: 12px; pointer-events: none; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; box-shadow: 0 16px 40px -12px #000; white-space: nowrap; }
.ax-chart__tip b { display: block; font: 600 14px var(--mono); color: var(--ink); }
.ax-chart__tip span { color: var(--muted); }
.ax-seg { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.ax-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 12.5px var(--font); cursor: pointer; }
.ax-seg button[aria-pressed="true"] { color: var(--ink); background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

/* lists, tables */
.ax-list { display: grid; }
.ax-li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.ax-li:first-child { border-top: 0; }
a.ax-li:hover, button.ax-li:hover { background: rgba(255,255,255,.02); }
button.ax-li { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; cursor: pointer; padding-inline: 0; }
.ax-li b { font-size: 13.5px; font-weight: 600; }
.ax-li small { display: block; font-size: 12px; color: var(--muted); }
.ax-li__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ink-2); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.ax-li__ic .i { width: 16px; height: 16px; }
.ax-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ax-tbl-wrap { overflow-x: auto; }
.ax-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ax-tbl th { padding: 12px 14px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ax-tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ax-tbl tr:last-child td { border-bottom: 0; }
.ax-tbl tbody tr { transition: background-color .15s; }
.ax-tbl tbody tr[data-row] { cursor: pointer; }
.ax-tbl tbody tr[data-row]:hover { background: rgba(255,255,255,.03); }
.ax-tbl .r { text-align: right; }
.ax-tbl td small { display: block; font-size: 12px; color: var(--muted); }
.ax-ellip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--c, var(--ink-2)); background: rgba(var(--crgb, 255,255,255), .1); border: 1px solid rgba(var(--crgb, 255,255,255), .22); }
.ax-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ax-pill--plain::before { display: none; }
.s-pending { --c: #f5b13d; --crgb: 245,177,61; }
.s-confirming { --c: #7cc8ff; --crgb: 124,200,255; }
.s-paid { --c: #ff9d5c; --crgb: 255,157,92; }
.s-delivered, .s-ok, .s-live { --c: #3ee6a0; --crgb: 62,230,160; }
.s-cancelled, .s-off, .s-failed { --c: #a39fb0; --crgb: 163,159,176; }
.s-refunded, .s-bad { --c: #ff6b7d; --crgb: 255,107,125; }
.s-acc { --c: #d9a6ff; --crgb: var(--acc-rgb); }

/* toolbar */
.ax-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.ax-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ax-tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.025);
  color: var(--ink-2); font: 500 13px var(--font); cursor: pointer; transition: all .2s; }
.ax-tab:hover { color: var(--ink); border-color: var(--line-2); }
.ax-tab[aria-pressed="true"] { color: #fff; border-color: rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .16); }
.ax-tab em { font: 600 11px var(--mono); font-style: normal; color: var(--muted); }
.ax-tab[aria-pressed="true"] em { color: #e7c9ff; }
.ax-bar .field { height: 40px; flex: 1 1 260px; max-width: 380px; margin-left: auto; }
.ax-bar .field input { font-size: 14px; }
.ax-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ax-empty { display: grid; justify-items: center; gap: 6px; padding: 54px 20px; text-align: center; color: var(--muted); }
.ax-empty .i { width: 30px; height: 30px; color: var(--ink-2); margin-bottom: 6px; }
.ax-empty b { color: var(--ink); font-size: 15px; }

/* forms */
.ax-form { display: grid; gap: 14px; }
.ax-row { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; }
.ax-f { display: grid; gap: 6px; min-width: 0; }
.ax-f > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.ax-f > small { font-size: 12px; color: var(--muted); }
.ax-in, .ax-f input:not([type="checkbox"]):not([type="radio"]), .ax-f select, .ax-f textarea {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(0,0,0,.22); color: var(--ink);
  font: 500 14px var(--font); outline: 0; transition: border-color .2s, box-shadow .2s; }
.ax-f textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.ax-f textarea.mono, .ax-in.mono { font-family: var(--mono); font-size: 13px; }
.ax-f select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.ax-f select option { background: #1a1724; }
.ax-in:focus, .ax-f input:focus, .ax-f select:focus, .ax-f textarea:focus { border-color: rgba(var(--acc-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .12); }
.ax-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.ax-switch { position: relative; width: 40px; height: 23px; flex: none; appearance: none; border-radius: 99px; background: rgba(255,255,255,.12); cursor: pointer; transition: background-color .25s; margin: 0; }
.ax-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ax-switch:checked { background: var(--acc); }
.ax-switch:checked::after { transform: translateX(17px); }
.ax-err { min-height: 0; margin: 0; font-size: 13px; color: #ff9aa6; }
.ax-err:empty { display: none; }
.ax-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 13px; border: 1px solid rgba(var(--acc-rgb), .25); background: rgba(var(--acc-rgb), .07); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ax-note .i { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--acc); }
.ax-note--warn { border-color: rgba(245,177,61,.3); background: rgba(245,177,61,.07); }
.ax-note--warn .i { color: var(--warn); }
.ax-note--ok { border-color: rgba(62,230,160,.3); background: rgba(62,230,160,.06); }
.ax-note--ok .i { color: var(--ok); }

/* drawers + modals */
.ax-dlg { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; overflow: visible; }
.ax-dlg::backdrop { background: rgba(5, 4, 9, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ax-drawer { position: fixed; inset: 0 0 0 auto; width: min(var(--w, 640px), 100vw); height: 100svh; margin: 0; }
.ax-drawer[open] .ax-dlg__in { animation: axSlide .45s var(--ease); }
@keyframes axSlide { from { transform: translateX(40px); opacity: 0; } }
.ax-modal { width: min(var(--w, 520px), calc(100vw - 24px)); margin: auto; }
.ax-modal[open] .ax-dlg__in { animation: axPop .3s var(--ease); }
.ax-dlg__in { display: flex; flex-direction: column; height: 100%; max-height: 100svh; border-left: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1a1625, #13101c); box-shadow: -40px 0 120px -30px #000; }
.ax-modal .ax-dlg__in { height: auto; max-height: 88svh; border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 40px 120px -20px #000; }
.ax-dlg__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.ax-dlg__h h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; font-weight: 600; }
.ax-dlg__h p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ax-dlg__b { flex: 1; overflow: auto; padding: 18px 22px 22px; overscroll-behavior: contain; }
.ax-dlg__f { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(0,0,0,.15); }
.ax-dlg__f .ax-push { margin-right: auto; }
.btn--danger { background: rgba(255, 107, 125, .12); border-color: rgba(255, 107, 125, .35); color: #ffb3bd; }
.btn--danger:hover { background: rgba(255, 107, 125, .2); }
.ax-sect { margin: 22px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ax-sect:first-child { margin-top: 0; }

/* order drawer */
.ax-kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 13.5px; }
.ax-kv dt { color: var(--muted); }
.ax-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ax-item { padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.ax-item + .ax-item { margin-top: 10px; }
.ax-item__h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ax-item__h b { font-size: 14px; }
.ax-item__h small { display: block; font-size: 12.5px; color: var(--muted); }
.ax-secret { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 11px; margin-top: 6px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.ax-secret code { flex: 1; min-width: 0; font: 500 12.5px var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.ax-secret em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.ax-rar { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 7px; font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--rc); background: rgba(var(--rc-rgb), .12); border: 1px solid rgba(var(--rc-rgb), .35); }
.ax-staffnote { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); }

/* products */
.ax-prow { display: grid; grid-template-columns: 54px minmax(0, 1fr) 130px 120px 90px 90px 28px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); cursor: pointer; transition: background-color .15s; }
.ax-prow:hover { background: rgba(255,255,255,.025); }
.ax-prow:first-child { border-top: 0; }
.ax-prow .cover { aspect-ratio: 1; border-radius: 12px; }
.ax-prow .cover__glyph { width: 70%; height: 70%; right: -10%; bottom: -10%; opacity: .35; }
.ax-prow b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-prow small { font-size: 12px; color: var(--muted); }
.ax-prow .i { width: 16px; height: 16px; color: var(--muted); }
.ax-stock { font: 600 13px var(--mono); }
.ax-stock.low { color: var(--warn); }
.ax-stock.out { color: var(--bad); }
.ax-opt { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) 92px 92px 140px 108px 34px; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.16); }
.ax-opt + .ax-opt { margin-top: 8px; }
.ax-opt .ax-in { height: 38px; font-size: 13px; padding: 0 10px; }
.ax-opt select.ax-in { appearance: none; }
.ax-opt__stock { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  color: var(--ink); font: 600 12.5px var(--font); cursor: pointer; white-space: nowrap; }
.ax-opt__stock:hover { border-color: rgba(var(--acc-rgb), .5); }
.ax-opt__stock .i { width: 14px; height: 14px; }
.ax-opt-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) 92px 92px 140px 108px 34px; gap: 8px; padding: 0 10px 6px; font-size: 11px; color: var(--muted); }

/* boxes */
.ax-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ax-box { overflow: hidden; cursor: pointer; transition: border-color .3s, transform .4s var(--ease); }
.ax-box:hover { border-color: rgba(var(--gl), .5); transform: translateY(-2px); }
.ax-box__stage { position: relative; display: grid; place-items: center; height: 230px; overflow: hidden; background: radial-gradient(60% 70% at 50% 45%, rgba(var(--gl), .25), transparent 70%); border-bottom: 1px solid var(--line); }
.ax-box__stage .mbox { transform: scale(.78); }
.ax-box__flag { position: absolute; top: 14px; left: 14px; }
.ax-box__b { padding: 16px 18px 18px; }
.ax-box__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ax-box__top h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.ax-box__top b { font: 600 17px var(--mono); }
.ax-box__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.ax-box__stats div { padding: 9px 10px; border-radius: 12px; background: rgba(0,0,0,.2); border: 1px solid var(--line); }
.ax-box__stats b { display: block; font: 600 15px var(--mono); }
.ax-box__stats small { font-size: 11.5px; color: var(--muted); }
.ax-odds { display: grid; gap: 7px; }
.ax-odds div { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px; color: var(--ink-2); }
.ax-odds div > i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.ax-odds div > i > i { display: block; height: 100%; width: var(--w); background: var(--rc); box-shadow: 0 0 10px rgba(var(--rc-rgb), .7); }
.ax-odds b { font: 600 12px var(--mono); }
.ax-tier { display: grid; grid-template-columns: minmax(0, 1.3fr) 118px 86px minmax(0, 1.6fr) 86px 34px; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.16); border-left: 3px solid var(--rc); }
.ax-tier + .ax-tier { margin-top: 8px; }
.ax-tier .ax-in { height: 38px; font-size: 13px; padding: 0 10px; }
.ax-tier-head { display: grid; grid-template-columns: minmax(0, 1.3fr) 118px 86px minmax(0, 1.6fr) 86px 34px; gap: 8px; padding: 0 10px 6px 13px; font-size: 11px; color: var(--muted); }
.ax-meter { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(0,0,0,.18); font-size: 13px; }
.ax-meter__bar { flex: 1; height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; display: flex; }
.ax-meter__bar i { height: 100%; background: var(--rc); }
.ax-meter b { font: 700 14px var(--mono); }
.ax-meter b.ok { color: var(--ok); }
.ax-meter b.bad { color: var(--bad); }
.ax-ev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ax-ev div { padding: 12px; border-radius: 13px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.ax-ev small { display: block; font-size: 11.5px; color: var(--muted); }
.ax-ev b { font: 600 16px var(--mono); }
.ax-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-theme { position: relative; width: 38px; height: 38px; border-radius: 12px; border: 2px solid transparent; background: linear-gradient(145deg, var(--c1), var(--c2) 55%, var(--c3)); cursor: pointer; appearance: none; margin: 0; }
.ax-theme:checked { border-color: #fff; box-shadow: 0 0 0 3px rgba(var(--gl), .5); }
.ax-boxprev { display: grid; place-items: center; height: 260px; margin: -4px 0 8px; border-radius: 18px; overflow: hidden; background: radial-gradient(60% 70% at 50% 45%, rgba(var(--gl), .28), transparent 70%), rgba(0,0,0,.2); border: 1px solid var(--line); }

/* reviews */
.ax-rv { display: grid; gap: 8px; padding: 16px 18px; border-top: 1px solid var(--line); }
.ax-rv:first-child { border-top: 0; }
.ax-rv__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--muted); }
.ax-rv__top b { color: var(--ink); }
.ax-stars { display: inline-flex; color: #ffc451; }
.ax-stars .i { width: 14px; height: 14px; fill: currentColor; }
.ax-stars .off { color: rgba(255,255,255,.18); }
.ax-rv p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ax-rv__reply { padding: 9px 12px; border-radius: 11px; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .2); font-size: 13px; color: var(--ink-2); }
.ax-rv__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* misc */
.ax-code { display: block; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); font: 500 13px/1.6 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.ax-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.ax-codes code { padding: 8px 10px; border-radius: 9px; background: rgba(0,0,0,.3); border: 1px solid var(--line); font: 600 13px var(--mono); text-align: center; }
.ax-hbar { display: grid; gap: 10px; }
.ax-hbar div { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 13px; }
.ax-hbar div > i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.ax-hbar div > i > i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, rgba(var(--acc-rgb), .6), var(--acc)); }
.ax-greet { margin-bottom: 20px; }
.ax-greet h1 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.04em; font-weight: 600; }
.ax-greet p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }

/* ---------- sign-in ---------- */
.ax-auth .signin__body { padding-top: 30px; }
.ax-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 6px; }
.ax-otp input { width: 100%; height: 58px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(255,255,255,.035); color: var(--ink); text-align: center;
  font: 600 24px var(--mono); outline: 0; transition: border-color .2s, box-shadow .2s, transform .2s var(--spring); }
.ax-otp input:focus { border-color: rgba(var(--acc-rgb), .65); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .14); transform: translateY(-2px); }
.ax-otp.bad input { border-color: rgba(255,107,125,.6); animation: axShake .4s; }
@keyframes axShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ax-qr { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; margin: 0 0 18px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.ax-qr__img { padding: 10px; border-radius: 12px; background: #fff; }
.ax-qr__img svg { width: 100%; height: auto; }
.ax-qr p { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.ax-qr code { display: block; font: 600 13px/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.ax-swap { margin-top: 12px; border: 0; background: none; padding: 0; color: var(--ink-2); font: 500 13px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ax-swap:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1380px) { .ax-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .ax-2 { grid-template-columns: 1fr; } .ax-prow { grid-template-columns: 54px minmax(0, 1fr) 110px 90px 28px; } .ax-prow > :nth-child(5), .ax-prow > :nth-child(6) { display: none; } }
@media (max-width: 1023px) {
  .ax-side { position: fixed; left: 0; top: 0; transform: translateX(-110%); transition: transform .45s var(--ease); }
  .ax-side.is-open { transform: none; }
  .ax-scrim { position: fixed; inset: 0; z-index: 45; border: 0; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .ax-mbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px; background: rgba(16, 14, 23, .88);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .ax-mbar img { width: 26px; }
  .ax-mbar b { font-size: 15px; }
  .ax-mbar em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d9a6ff; border: 1px solid rgba(var(--acc-rgb), .4); border-radius: 6px; padding: 3px 6px; }
  .ax-mbar .ax-icbtn:last-child { margin-left: auto; }
  .ax-top { display: none; }
  .ax-main { padding: 20px 16px 60px; }
  .ax-2e { grid-template-columns: 1fr; }
  .ax-opt, .ax-opt-head, .ax-tier, .ax-tier-head { grid-template-columns: 1fr 1fr; }
  .ax-opt-head, .ax-tier-head { display: none; }
  .ax-opt > :nth-child(1), .ax-opt > :nth-child(2), .ax-tier > :nth-child(1), .ax-tier > :nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .ax-kpis { grid-template-columns: 1fr 1fr; }
  .ax-kpis > :last-child { grid-column: 1 / -1; }
  .ax-row { grid-template-columns: 1fr; }
  .ax-prow { grid-template-columns: 46px minmax(0, 1fr) 70px; }
  .ax-prow > :nth-child(4), .ax-prow > :nth-child(7) { display: none; }
  .ax-kv { grid-template-columns: 100px 1fr; }
  .ax-qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ax-qr__img { width: 170px; }
  .ax-ev { grid-template-columns: 1fr; }
  .ax-bar .field { max-width: none; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ax-bg i, .ax-main, .ax-kpi { animation: none !important; } }
