/* CODMEX design system — shared by the Mini App, admin panel and website.
   Near-black base, blue to violet neon gradient, glass surfaces, hexagon </> motif.
   Motion = transform/opacity only (150–250 ms) and fully disabled under prefers-reduced-motion. */
:root {
  --bg: #0A0A12;
  --bg-2: #0D0B1A;
  --surface: #13121F;
  --surface-2: #1A1830;
  --surface-3: #232042;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F4F3FF;
  --text-2: #B9B6D3;
  --text-3: #7C799A;
  --blue: #2E8BFF;
  --blue-2: #1E6BFF;
  --violet: #8A3FFF;
  --violet-2: #B14BFF;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--violet) 60%, var(--violet-2) 100%);
  --grad-soft: linear-gradient(135deg, rgba(46, 139, 255, .16), rgba(138, 63, 255, .16));
  --glow: 0 0 0 1px rgba(138, 63, 255, .35), 0 8px 32px -8px rgba(98, 76, 255, .55);
  --ok: #2FD48A;
  --ok-bg: rgba(47, 212, 138, .12);
  --warn: #FFB547;
  --warn-bg: rgba(255, 181, 71, .12);
  --bad: #FF5470;
  --bad-bg: rgba(255, 84, 112, .12);
  --gold: #FFC857;
  --silver: #C9D3EA;
  --bronze: #E0955C;
  /* glass */
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .075);
  --glass-line: rgba(255, 255, 255, .10);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .08);
  --blur: blur(16px) saturate(150%);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --link: #8DB8FF;
  --inset: rgba(8, 7, 18, .55);
  --chrome: rgba(19, 18, 31, .84);
  --chrome-strong: rgba(19, 18, 31, .95);
  --tint: rgba(138, 63, 255, .16);
  --field: rgba(255, 255, 255, .07);
  --card-glass: linear-gradient(180deg, rgba(30, 28, 50, .72), rgba(20, 19, 34, .78));
  --hi-1: rgba(255, 255, 255, .035);
  --hi-2: rgba(255, 255, 255, .012);
  --backdrop: rgba(4, 3, 12, .72);
  --toast: rgba(35, 32, 66, .94);
  --paycard: linear-gradient(135deg, #1B2550, #2A1857);
  --shadow-card: none;
  --aurora-1: rgba(138, 63, 255, .20);
  --aurora-2: rgba(46, 139, 255, .16);
  --aurora-3: rgba(98, 76, 255, .12);
  --lattice-op: .5;
  --accent-t: #B9A5FF; --chip-t: #CFC6FF; --ico-t: #A9B8FF; --tab-on: #fff;
  --info-t: #8DB8FF; --info-n: #BCD6FF; --warn-n: #FFD9A0; --bad-n: #FFB3C0; --ok-n: #A9F0CF; --bad-t: #FF8DA0;
  color-scheme: dark;
}

/* ---------- light ("kunduzgi") theme: same brand, same tokens, daylight surfaces ---------- */
:root[data-theme="light"] {
  --bg: #F4F3FB;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1EFFA;
  --surface-3: #E6E2F6;
  --line: rgba(28, 20, 80, .09);
  --line-2: rgba(28, 20, 80, .17);
  --text: #17142E;
  --text-2: #4A4670;
  --text-3: #6F6B93;
  --blue: #1F78F0;
  --violet: #7A35E6;
  --violet-2: #8F3BEA;
  --grad-soft: linear-gradient(135deg, rgba(46, 139, 255, .12), rgba(138, 63, 255, .12));
  --glow: 0 0 0 1px rgba(138, 63, 255, .25), 0 10px 28px -10px rgba(98, 76, 255, .35);
  --ok: #0E9F63;
  --ok-bg: rgba(14, 159, 99, .11);
  --warn: #B86E00;
  --warn-bg: rgba(217, 138, 0, .13);
  --bad: #D92C4A;
  --bad-bg: rgba(217, 44, 74, .10);
  --gold: #E59B00;
  --silver: #8E9AB8;
  --bronze: #C2763A;
  --glass: rgba(255, 255, 255, .72);
  --glass-2: rgba(255, 255, 255, .92);
  --glass-line: rgba(28, 20, 80, .10);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .95);
  --link: #1F5FD0;
  --inset: rgba(28, 20, 80, .05);
  --chrome: rgba(255, 255, 255, .86);
  --chrome-strong: rgba(255, 255, 255, .96);
  --tint: rgba(106, 47, 214, .10);
  --field: rgba(60, 50, 130, .08);
  --card-glass: linear-gradient(180deg, #FFFFFF, #FBFAFF);
  --hi-1: rgba(255, 255, 255, 0);
  --hi-2: rgba(255, 255, 255, 0);
  --backdrop: rgba(30, 22, 70, .42);
  --toast: rgba(255, 255, 255, .97);
  --paycard: linear-gradient(135deg, #E4ECFF, #EFE5FF);
  --shadow-card: 0 1px 2px rgba(28, 20, 80, .05), 0 12px 28px -18px rgba(60, 40, 140, .28);
  --aurora-1: rgba(138, 63, 255, .13);
  --aurora-2: rgba(46, 139, 255, .12);
  --aurora-3: rgba(98, 76, 255, .07);
  --lattice-op: .35;
  --accent-t: #6A2FD6; --chip-t: #5B2BC4; --ico-t: #4B4FD0; --tab-on: #2D1B8F;
  --info-t: #1650B5; --info-n: #14439A; --warn-n: #7A4A00; --bad-n: #A8142F; --ok-n: #0B6B44; --bad-t: #C21F3E;
  color-scheme: light;
}
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, fill .3s ease, stroke .3s ease, box-shadow .3s ease !important;
}
.theme-btn .ico + .ico, .theme-btn-wide .ico + .ico { display: none; }
:root[data-theme="light"] .theme-btn .ico:first-child, :root[data-theme="light"] .theme-btn-wide .ico:first-child { display: none; }
:root[data-theme="light"] .theme-btn .ico + .ico, :root[data-theme="light"] .theme-btn-wide .ico + .ico { display: inline-block; }
.theme-btn-wide { gap: 8px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* aurora + faint hexagon lattice (the logo motif) */
.tech-bg {
  background:
    radial-gradient(900px 520px at 105% -8%, var(--aurora-1), transparent 62%),
    radial-gradient(760px 480px at -15% 6%, var(--aurora-2), transparent 62%),
    radial-gradient(600px 400px at 50% 112%, var(--aurora-3), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.tech-bg::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--lattice-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97' fill='none' stroke='%238A7BFF' stroke-opacity='.07'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17L28 2ZM28 62v33M2 47 2 77l26 15M54 47v30L28 92'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.ico { display: inline-block; flex: none; vertical-align: -.2em; }

/* ---------- text helpers */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.big-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout */
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 12px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 14px 0; }

/* ---------- surfaces */
.card {
  background: linear-gradient(180deg, var(--hi-1), var(--hi-2)), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.card.glow { box-shadow: var(--glow); border-color: transparent; }
.card.flat { background: var(--surface-2); }
.card-grad {
  position: relative; border-radius: var(--r-lg); padding: 18px; background: var(--grad); color: #fff; overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(98, 76, 255, .8);
}
.card-grad::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 90% -20%, rgba(255, 255, 255, .25), transparent 60%); pointer-events: none; }
.edge { position: relative; }
.edge::before { /* gradient hairline border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(46, 139, 255, .6), rgba(138, 63, 255, .15) 40%, rgba(177, 75, 255, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- buttons (compact: the label always fits; long labels shrink the gap, never overflow) */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; min-width: 44px; max-width: 100%; padding: 8px 16px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--glass-2); color: var(--text);
  font: 700 14.5px/1.1 var(--font); letter-spacing: -.005em; cursor: pointer; overflow: hidden;
  transition: transform .15s var(--ease), filter .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
  text-decoration: none !important; white-space: nowrap; user-select: none; -webkit-user-select: none;
}
.btn > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.15; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 10px 26px -12px rgba(98, 76, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn.primary::after { /* soft shine sweep */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%); pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
}
@media (hover: hover) { .btn.primary:hover::after { transform: translateX(120%); transition: transform .6s var(--ease); } }
.btn.ok { background: var(--ok); border-color: transparent; color: #062216; }
.btn.danger { background: var(--bad-bg); border-color: rgba(255, 84, 112, .4); color: var(--bad-t); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { min-height: 52px; font-size: 15.5px; border-radius: 14px; padding: 0 20px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer;
  transition: transform .15s var(--ease), background .15s ease;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn:hover { background: var(--glass-2); }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--inset); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(138, 63, 255, .2); }
.hint { font-size: 12px; color: var(--text-3); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--text-2); }
.check input { width: 20px; height: 20px; accent-color: var(--violet); flex: none; margin-top: 1px; }
.file-drop {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 92px; padding: 14px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--inset); color: var(--text-2); cursor: pointer; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: var(--violet); background: rgba(138, 63, 255, .06); }
.file-drop input { display: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); flex: none; transition: background .2s ease; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--grad); border-color: transparent; }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--violet-2); outline-offset: 2px; }

/* ---------- badges, chips, tabs */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: rgba(46, 139, 255, .14); color: var(--info-t); }
.badge.grad { background: var(--grad); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 36px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
/* segmented control with a sliding indicator (set --n buttons and --i active index) */
.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); padding: 4px; border-radius: 13px; background: var(--inset); border: 1px solid var(--line); }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 3)); border-radius: 10px; background: var(--grad); box-shadow: 0 6px 18px -8px rgba(98, 76, 255, .9); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .22s var(--ease); }
.seg button { position: relative; z-index: 1; min-height: 38px; padding: 0 6px; border: 0; background: transparent; color: var(--text-2); font: 700 13.5px var(--font); cursor: pointer; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.seg button.on { color: #fff; }

/* ---------- product tiles */
.logo-tile { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(138, 63, 255, .28), transparent 60%), var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.logo-tile .ico { color: var(--text-3); }

/* ---------- rating */
.rating { display: inline-flex; align-items: center; gap: 2px; color: var(--gold); vertical-align: middle; }
.rating .off { color: var(--surface-3); }
.rating-num { font-weight: 800; }

/* ---------- tables (admin) */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 700; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.flagged td { background: rgba(255, 84, 112, .06); }

/* ---------- overlays */
.sheet-backdrop { position: fixed; inset: 0; background: var(--backdrop); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--hi-1), var(--hi-2)), var(--bg-2);
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .24s var(--ease);
}
.sheet .grabber { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -8px auto 14px; }
@media (min-width: 720px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 22px; border-bottom: 1px solid var(--line-2); } }
.toast-host { position: fixed; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top)); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 8px; max-width: 480px; width: fit-content; padding: 11px 16px; border-radius: 14px; background: var(--toast); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-weight: 600; font-size: 14px; animation: down .22s var(--ease); }
.toast.ok { border-color: rgba(47, 212, 138, .5); } .toast.ok .ico { color: var(--ok); }
.toast.bad { border-color: rgba(255, 84, 112, .5); } .toast.bad .ico { color: var(--bad); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 16px; animation: fade .18s ease; cursor: zoom-out; }
.lightbox img { max-height: 92vh; max-width: 94vw; border-radius: 12px; }

.empty { text-align: center; padding: 36px 16px; color: var(--text-3); }
.empty .ico-wrap { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-soft); color: var(--ico-t); border: 1px solid rgba(138, 63, 255, .25); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; align-items: flex-start; }
.notice > .ico { margin-top: 2px; }
.notice.warn { background: var(--warn-bg); border: 1px solid rgba(255, 181, 71, .3); color: var(--warn-n); }
.notice.info { background: rgba(46, 139, 255, .1); border: 1px solid rgba(46, 139, 255, .3); color: var(--info-n); }
.notice.bad { background: var(--bad-bg); border: 1px solid rgba(255, 84, 112, .3); color: var(--bad-n); }
.notice.ok { background: var(--ok-bg); border: 1px solid rgba(47, 212, 138, .3); color: var(--ok-n); }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--violet-2); animation: spin .7s linear infinite; }
.stars { color: var(--gold); letter-spacing: 1px; }
.prewrap { white-space: pre-wrap; word-wrap: break-word; }

/* ---------- motion */
.reveal { animation: rise .32s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.page-in { animation: pagein .24s var(--ease) both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(28px); opacity: 0; } }
@keyframes down { from { transform: translateY(-12px); opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
@keyframes pagein { from { transform: translateY(8px); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- calm mode (admin): readability first — no blur, no glow, flat surfaces */
body.calm { background: var(--bg); }
body.calm.tech-bg { background: radial-gradient(900px 480px at 100% -10%, rgba(138, 63, 255, .08), transparent 60%), var(--bg); }
body.calm.tech-bg::before { display: none; }
body.calm .btn.primary { box-shadow: none; }
body.calm .btn.primary::after { display: none; }
body.calm .card.glow { box-shadow: none; border-color: var(--line-2); }
body.calm .glass { -webkit-backdrop-filter: none; backdrop-filter: none; }


/* ---------- product cover: generated "licence card" art (used when a product has no picture, and as the backdrop for its icon) ---------- */
.cover { position: relative; isolation: isolate; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: #fff;
  background: var(--cv, linear-gradient(135deg, #1E6BFF, #7A3CFF)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97' fill='none' stroke='%23fff' stroke-opacity='.16'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17L28 2ZM28 62v33M2 47 2 77l26 15M54 47v30L28 92'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(120% 100% at 15% 0%, #000 0%, transparent 72%); mask-image: radial-gradient(120% 100% at 15% 0%, #000 0%, transparent 72%); }
.cover::after { content: ""; position: absolute; right: -14%; bottom: -34%; width: 68%; aspect-ratio: 1; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M50 6 90 28v44L50 94 10 72V28L50 6Z'/%3E%3Cpath d='m41 38-12 12 12 12M59 38l12 12-12 12M54 34 46 66' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.cover .glyph { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; text-shadow: 0 6px 24px rgba(10, 6, 40, .45); }
.cover .app-ic { width: 46%; max-width: 132px; aspect-ratio: 1; border-radius: 24%; object-fit: cover; box-shadow: 0 14px 30px -8px rgba(10, 6, 40, .55), 0 0 0 1px rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); }
.cover.lg { aspect-ratio: 16 / 10; border-radius: 22px; }
.cover.lg .glyph { font-size: 78px; }
.cover.lg .app-ic { width: 38%; max-width: 168px; }
.cover .cb { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 2; }
.cover .cb span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.2; color: #fff; background: rgba(10, 8, 30, .5); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cover .cb .top { background: linear-gradient(135deg, #FFB43D, #FF7A45); color: #3A1A00; border-color: transparent; }
.cover .cr { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(10, 8, 30, .55); border: 1px solid rgba(255, 255, 255, .2); z-index: 2; }
.cover .cr .ico { color: #FFC24D; }
.a0 { --cv: linear-gradient(135deg, #1E6BFF 0%, #7A3CFF 100%); }
.a1 { --cv: linear-gradient(135deg, #7A3CFF 0%, #D23CFF 100%); }
.a2 { --cv: linear-gradient(135deg, #0EA5E9 0%, #4F46E5 100%); }
.a3 { --cv: linear-gradient(135deg, #2E8BFF 0%, #12B5A0 100%); }
.a4 { --cv: linear-gradient(135deg, #5B3CFF 0%, #FF4D8D 100%); }
.a5 { --cv: linear-gradient(135deg, #1B2A6B 0%, #8A3FFF 100%); }
.money, .pc-price, .price, .big-num { font-variant-numeric: tabular-nums; }
