/* =====================================================================
   Respire — storefront + admin design system
   ===================================================================== */
:root {
  --accent: #8b7bff;
  --bg: #060709;
  --bg-2: #0a0b0e;
  --panel: #0e0f13;
  --panel-2: #131419;
  --panel-3: #191a20;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #eceef2;
  --text-2: #b6b9c3;
  --muted: #80848f;
  --faint: #565a65;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 40%, transparent);
  --ok: #22c55e;
  --ok-2: #10b981;
  --info: #3b82f6;
  --warn: #f59e0b;
  --bad: #ef4444;
  --off: #6b7280;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Saira", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column;
}
body > main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 56px 0; }
.display { font-family: var(--display); letter-spacing: .01em; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: .85rem; }
.xs { font-size: .75rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ------------------------------------------------------------------ logo */
.logo-mark { width: 34px; height: auto; color: #fff; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.28rem; letter-spacing: .02em; }
.brand-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .35); }
.brand-name small { font-weight: 400; opacity: .7; font-size: .85em; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --b-bg: var(--panel-3); --b-fg: var(--text); --b-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-fg); font: 600 .92rem/1 var(--font); cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap; user-select: none;
}
.btn:hover { color: var(--b-fg); border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { --b-bg: #fff; --b-fg: #07080a; --b-line: #fff; box-shadow: 0 8px 30px -10px rgba(255, 255, 255, .35); }
.btn-primary:hover { --b-bg: #f1f1f4; box-shadow: 0 12px 36px -10px rgba(255, 255, 255, .45); }
.btn-accent { --b-bg: var(--accent); --b-fg: #fff; --b-line: transparent; box-shadow: 0 10px 34px -12px var(--accent); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { --b-bg: transparent; --b-line: transparent; color: var(--text-2); }
.btn-ghost:hover { --b-bg: rgba(255, 255, 255, .05); }
.btn-outline { --b-bg: transparent; }
.btn-danger { --b-bg: rgba(239, 68, 68, .12); --b-fg: #fca5a5; --b-line: rgba(239, 68, 68, .35); }
.btn-danger:hover { --b-bg: rgba(239, 68, 68, .2); border-color: rgba(239, 68, 68, .6); }
.btn-success { --b-bg: rgba(34, 197, 94, .12); --b-fg: #86efac; --b-line: rgba(34, 197, 94, .35); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .84rem; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: .78rem; border-radius: 7px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 10px; }

/* ------------------------------------------------------------------ badges & pills */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: rgba(255, 255, 255, .06);
  color: var(--text-2); border: 1px solid var(--line); white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 60%, #fff); border-color: var(--accent-line); }
.badge-ok { background: rgba(34, 197, 94, .1); color: #86efac; border-color: rgba(34, 197, 94, .3); }
.badge-warn { background: rgba(245, 158, 11, .1); color: #fcd34d; border-color: rgba(245, 158, 11, .3); }
.badge-bad { background: rgba(239, 68, 68, .1); color: #fca5a5; border-color: rgba(239, 68, 68, .3); }
.badge-info { background: rgba(59, 130, 246, .1); color: #93c5fd; border-color: rgba(59, 130, 246, .3); }
.badge-sale { background: linear-gradient(135deg, #ff4d6d, #ff8a3d); color: #fff; border: 0; }

.status-pill {
  --c: var(--off);
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: color-mix(in srgb, var(--c) 55%, #fff);
  background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  white-space: nowrap;
}
.status-pill .dot, .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; position: relative; }
.status-pill .dot::after, .dot.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--c); opacity: .35;
  animation: pulse 2s ease-out infinite;
}
.s-undetected { --c: var(--ok-2); }
.s-operational { --c: var(--ok); }
.s-updating { --c: var(--info); }
.s-maintenance { --c: var(--warn); }
.s-offline { --c: var(--off); }
.s-offline .dot::after { display: none; }
.s-detected { --c: var(--bad); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

/* ------------------------------------------------------------------ announcement bar + nav */
.topbar {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, #0b0b10), #0b0b10 60%);
  border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--text-2); text-align: center; padding: 8px 16px;
}
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(6, 7, 9, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: .92rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; }
.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 5px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; color: var(--text); font: 500 .9rem var(--font);
}
.avatar {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000));
  color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase;
}
.avatar-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.3rem; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .18s ease;
}
.user-menu.open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; font: 500 .9rem var(--font);
  color: var(--text-2); background: none; border: 0; cursor: pointer; text-align: left;
}
.dropdown a:hover, .dropdown button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dropdown .head { padding: 10px 12px 8px; }
.dropdown svg { width: 16px; height: 16px; opacity: .8; }

.mobile-menu { display: none; }

/* ------------------------------------------------------------------ flash */
.flash-wrap { position: fixed; top: calc(var(--nav-h) + 14px); right: 18px; z-index: 80; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.flash {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .9rem; animation: slideIn .35s ease;
}
.flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--info); box-shadow: 0 0 12px var(--info); }
.flash-success::before { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.flash-error::before { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.flash .x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 0 0 8px; }
.flash.out { opacity: 0; transform: translateX(20px); transition: .3s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.glow {
  position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; filter: blur(110px); opacity: .32; pointer-events: none;
  background: radial-gradient(circle, var(--accent), transparent 65%);
}
.glow-a { top: -260px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.glow-b { top: -120px; right: -220px; opacity: .18; background: radial-gradient(circle, #5ad1ff, transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  color: var(--text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); margin-bottom: 22px;
}
.eyebrow .tag { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; }
.hero h1 {
  font-family: var(--display); font-size: clamp(2.6rem, 6.2vw, 4.8rem); line-height: 1.0; font-weight: 700; letter-spacing: -.015em; margin-bottom: 22px;
  background: linear-gradient(180deg, #fff 30%, #a9acb6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .hl { background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--text-2); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .n { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.hero-stats .l { color: var(--muted); font-size: .84rem; }

.live-card {
  position: relative; border-radius: var(--r-xl); padding: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.live-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--accent-line), transparent 40%, transparent 60%, rgba(255, 255, 255, .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.live-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.live-head .t { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.live-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; transition: background .2s; }
.live-row:hover { background: rgba(255, 255, 255, .04); }
.live-row .name { flex: 1; min-width: 0; font-weight: 500; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-row .game { font-size: .75rem; color: var(--muted); }
.game-chip {
  --g: var(--accent); width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font: 700 .72rem var(--display); letter-spacing: .04em; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--g) 70%, #000), color-mix(in srgb, var(--g) 20%, #000));
  border: 1px solid color-mix(in srgb, var(--g) 40%, transparent);
}

/* ------------------------------------------------------------------ section heads */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.section-head h2 { margin: 0; font-family: var(--display); }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 520px; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-sm { padding: 18px; border-radius: var(--r); }
.card-flat { background: var(--panel-2); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-head h3 { margin: 0; font-size: 1.02rem; }
.card-hover { transition: transform .25s ease, border-color .25s ease, background .25s; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--line-2); }

/* game tiles */
.g-tile {
  --g: var(--accent); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px;
  padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); isolation: isolate;
  transition: transform .3s ease, border-color .3s ease;
}
.g-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--g) 38%, transparent), transparent 60%), linear-gradient(180deg, transparent, rgba(0, 0, 0, .6));
  transition: opacity .3s;
}
.g-tile img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: .45; transition: transform .6s ease, opacity .3s; }
.g-tile .abbr {
  position: absolute; top: 14px; right: 18px; z-index: -1; font: 800 4.6rem/1 var(--display); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--g) 55%, transparent); opacity: .7; transition: transform .4s ease;
}
.g-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g) 45%, transparent); }
.g-tile:hover img.bg { transform: scale(1.06); opacity: .6; }
.g-tile:hover .abbr { transform: translateX(-6px); }
.g-tile h3 { font-family: var(--display); font-size: 1.3rem; margin: 0 0 4px; }
.g-tile .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.g-tile .arrow { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); transition: .25s; }
.g-tile:hover .arrow { background: var(--g); color: #000; }

/* product cards */
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.p-card {
  --g: var(--accent); display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--panel);
  border: 1px solid var(--line); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; position: relative;
}
.p-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g) 35%, var(--line-2)); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--g) 45%, transparent); }
.p-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-media .tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.p-media .st { position: absolute; bottom: 12px; left: 12px; z-index: 2; }
.p-media .st .status-pill { background: rgba(6, 7, 9, .75); backdrop-filter: blur(8px); }
.art {
  --g: var(--accent); position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--g) 45%, transparent), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--g) 22%, transparent), transparent 60%),
    linear-gradient(135deg, #0d0e12, #08090b);
}
.art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(135deg, transparent 20%, #000 80%); -webkit-mask-image: linear-gradient(135deg, transparent 20%, #000 80%);
}
.art .mark { width: 28%; opacity: .9; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--g) 60%, transparent)); position: relative; }
.art .abbr { position: absolute; right: 16px; top: 10px; font: 800 3.2rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14); }
.p-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.p-game { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--g) 70%, #fff); margin-bottom: 6px; }
.p-body h3 { margin: 0 0 6px; font-size: 1.12rem; }
.p-body .tl { color: var(--muted); font-size: .9rem; margin: 0 0 18px; flex: 1; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.price small { font-family: var(--font); font-weight: 500; color: var(--muted); font-size: .75rem; margin-right: 4px; }
.price-old { color: var(--faint); text-decoration: line-through; font-size: .85rem; margin-left: 6px; font-weight: 500; font-family: var(--font); }

/* announcements */
.ann { position: relative; padding: 22px 22px 22px 24px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.ann::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--info); }
.ann-success::before { background: var(--ok); } .ann-warning::before { background: var(--warn); } .ann-update::before { background: var(--accent); }
.ann .meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .8rem; margin-bottom: 10px; }
.ann h3 { margin-bottom: 8px; }
.ann p { color: var(--text-2); font-size: .93rem; margin: 0; }

/* features */
.feature { padding: 26px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: color-mix(in srgb, var(--accent) 50%, #fff);
}
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .92rem; }

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 56px; border: 1px solid var(--line-2); isolation: isolate;
  background: radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), var(--panel);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band .bgmark { position: absolute; right: -40px; bottom: -60px; width: 360px; opacity: .05; z-index: -1; }
.cta-band h2 { font-family: var(--display); margin-bottom: 8px; }
.cta-band p { color: var(--text-2); margin: 0; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: .92rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------ page header */
.page-head { padding: 56px 0 36px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 120% at 10% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}
.page-head h1 { font-family: var(--display); margin-bottom: 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 640px; }
.crumbs { display: flex; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > label, .label { font-size: .84rem; font-weight: 600; color: var(--text-2); }
.field .help { font-size: .78rem; color: var(--muted); }
.field .err, .err { font-size: .8rem; color: #fca5a5; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=date],
select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); font: 400 .93rem var(--font); transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2380848f' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); background: #0c0d11; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: rgba(239, 68, 68, .55); }
input[type=color] { width: 54px; height: 44px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
input[type=file] { width: 100%; padding: 10px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--bg-2); color: var(--muted); font: .85rem var(--font); cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--text); font: 600 .82rem var(--font); cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; color: var(--text-2); user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; margin: 2px 0 0; border-radius: 5px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; display: grid; place-items: center; transition: .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: .9rem; color: var(--text-2); }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); cursor: pointer; position: relative; transition: .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #9095a0; transition: .2s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { left: 20px; background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.input-icon input { padding-left: 40px; }

/* auth */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 48px 20px; position: relative; overflow: hidden; isolation: isolate; }
.auth-wrap .glow-a { top: -200px; left: 50%; margin-left: -310px; }
.auth-card { width: 100%; max-width: 440px; background: rgba(14, 15, 19, .85); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.auth-card .logo-mark { width: 44px; margin-bottom: 22px; display: block; }
.auth-card h1 { font-size: 1.6rem; font-family: var(--display); margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; font-size: .93rem; }
.auth-alt { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 22px; }
.auth-alt a { color: #fff; font-weight: 600; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: .88rem; margin-bottom: 18px; border: 1px solid; }
.alert-error { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .3); color: #fecaca; }
.alert-info { background: rgba(59, 130, 246, .08); border-color: rgba(59, 130, 246, .3); color: #bfdbfe; }
.alert-warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); color: #fde68a; }
.alert-ok { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .3); color: #bbf7d0; }
.pw-meter { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .3s, background .3s; }

/* ------------------------------------------------------------------ store */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { --g: var(--accent); display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: .88rem; font-weight: 500; background: var(--panel); transition: .2s; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.chip.active { background: #fff; color: #000; border-color: #fff; }
.chip .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--g); }
.toolbar form { margin-left: auto; display: flex; gap: 8px; }
.toolbar select { width: auto; height: 38px; border-radius: 999px; padding-left: 16px; font-size: .86rem; }
.toolbar input[type=search] { height: 38px; border-radius: 999px; width: 220px; font-size: .86rem; }
.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty svg { width: 36px; height: 36px; margin: 0 auto 14px; opacity: .5; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* product page */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; opacity: .55; transition: .2s; padding: 0; background: var(--panel); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--accent-line); }
.buybox { position: sticky; top: calc(var(--nav-h) + 20px); }
.buybox h1 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.buybox .tl { color: var(--text-2); font-size: 1rem; margin-bottom: 20px; }
.plans { display: grid; gap: 10px; margin: 20px 0; }
.plan { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; transition: .2s; }
.plan:hover { border-color: rgba(255, 255, 255, .22); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; transition: .2s; }
.plan:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan:has(input:checked) .radio { border-color: var(--accent); border-width: 5px; }
.plan .nm { font-weight: 600; flex: 1; }
.plan .nm small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.plan .pr { text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.plan .pr s { display: block; font: 500 .78rem var(--font); color: var(--faint); }
.plan .save { position: absolute; top: -9px; right: 12px; }
.meta-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.meta-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: .9rem; }
.meta-list > div + div { border-top: 1px solid var(--line); }
.meta-list .k { color: var(--muted); }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .93rem; }
.feat-list li svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 2px; }
.prose { color: var(--text-2); font-size: 1rem; line-height: 1.75; }
.prose p { margin-bottom: 1.1em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 12px 16px; color: var(--muted); font: 600 .92rem var(--font); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs .active { color: #fff; border-bottom-color: var(--accent); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: .88rem; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--text-2); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* checkout */
.co-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; font-size: .93rem; color: var(--text-2); }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; color: #fff; font-weight: 700; font-size: 1.15rem; }
.summary-line.total .v { font-family: var(--display); font-size: 1.5rem; }
.co-item { display: flex; gap: 16px; align-items: center; }
.co-thumb { width: 96px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; position: relative; flex: none; border: 1px solid var(--line); }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .8rem; margin-top: 14px; }
.secure svg { width: 14px; height: 14px; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35); color: var(--ok); box-shadow: 0 0 60px -10px rgba(34, 197, 94, .5); }
.success-ic svg { width: 32px; height: 32px; }
.key-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); font-family: var(--mono); font-size: .9rem; letter-spacing: .04em; }
.key-box .k { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-box .k.blur { filter: blur(5px); user-select: none; }

/* status page */
.status-hero { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--r-lg); border: 1px solid; margin-bottom: 32px; }
.status-hero.ok { background: rgba(34, 197, 94, .06); border-color: rgba(34, 197, 94, .25); }
.status-hero.warn { background: rgba(245, 158, 11, .06); border-color: rgba(245, 158, 11, .25); }
.status-hero.bad { background: rgba(239, 68, 68, .06); border-color: rgba(239, 68, 68, .25); }
.status-hero .big { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.status-hero.ok .big { background: rgba(34, 197, 94, .15); color: var(--ok); }
.status-hero.warn .big { background: rgba(245, 158, 11, .15); color: var(--warn); }
.status-hero.bad .big { background: rgba(239, 68, 68, .15); color: var(--bad); }
.status-hero h2 { font-size: 1.25rem; margin: 0 0 2px; }
.status-group { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; margin-bottom: 18px; }
.status-group-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: linear-gradient(90deg, color-mix(in srgb, var(--g, var(--accent)) 10%, transparent), transparent 50%); }
.status-group-head h3 { margin: 0; flex: 1; }
.status-row { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-top: 1px solid var(--line); }
.status-row .nm { flex: 1; min-width: 0; }
.status-row .nm a { font-weight: 500; }
.status-row .note { display: block; color: var(--muted); font-size: .82rem; }
.status-row .upd { color: var(--faint); font-size: .78rem; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.flash-change { animation: flashc 1.4s ease; }
@keyframes flashc { 0% { background: var(--accent-soft); } 100% { background: transparent; } }

/* ------------------------------------------------------------------ account */
.acct { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding: 40px 0 72px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 4px; }
.side-nav .who { display: flex; gap: 12px; align-items: center; padding: 6px 8px 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.side-nav .who .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .92rem; transition: .15s; }
.side-nav a svg { width: 18px; height: 18px; opacity: .75; }
.side-nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.side-nav a.active { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.side-nav a.active svg { color: var(--accent); opacity: 1; }
.side-nav .count { margin-left: auto; font-size: .72rem; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; }
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.acct-head h1 { font-size: 1.7rem; font-family: var(--display); margin: 0 0 4px; }
.acct-head p { color: var(--muted); margin: 0; }
.kpi { padding: 20px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.kpi .l { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.kpi .l svg { width: 15px; height: 15px; }
.kpi .v { font: 700 1.7rem/1.2 var(--display); margin-top: 8px; }
.kpi .s { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.sub-card { --g: var(--accent); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.sub-card + .sub-card { margin-top: 12px; }
.sub-card .progress { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; margin-top: 10px; max-width: 280px; }
.sub-card .progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #fff)); }
.sub-details { grid-column: 1 / -1; display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .018); }
.table .t-main { font-weight: 600; color: var(--text); }
.table .t-sub { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.table a.t-main:hover { color: var(--accent); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }

/* tickets */
.thread { display: grid; gap: 16px; }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.msg .avatar { width: 40px; height: 40px; border-radius: 11px; }
.msg-body { padding: 16px 18px; border-radius: 4px 16px 16px 16px; background: var(--panel); border: 1px solid var(--line); }
.msg-staff .msg-body { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); border-color: var(--accent-line); }
.msg-staff .avatar { background: linear-gradient(135deg, #fff, #9a9da8); color: #000; }
.msg-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.msg-head .n { font-weight: 600; font-size: .92rem; }
.msg-head .t { color: var(--faint); font-size: .78rem; margin-left: auto; }
.msg-text { color: var(--text-2); font-size: .93rem; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.reply-box { margin-top: 22px; padding: 18px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.reply-box textarea { min-height: 110px; background: var(--bg-2); }
.t-status-open { --c: var(--info); }
.t-status-answered { --c: var(--ok); }
.t-status-closed { --c: var(--off); }
.prio-urgent { color: #fca5a5; } .prio-high { color: #fcd34d; } .prio-low { color: var(--muted); }

/* pagination */
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* error page */
.err-page { min-height: calc(100vh - var(--nav-h) - 200px); display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.err-page .code { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--display); background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .08)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); z-index: 90; padding: 12px 18px; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .9rem; opacity: 0; transition: .25s; pointer-events: none; display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok::before, .toast.bad::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.toast.bad::before { background: var(--bad); }

/* ======================================================================
   ADMIN
   ====================================================================== */
.admin-body { background: #07080a; }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #0a0b0e; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; }
.sidebar .brand { padding: 4px 10px 22px; font-size: 1.1rem; }
.sidebar .brand .logo-mark { width: 28px; }
.side-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 18px 12px 8px; }
.sidebar a.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-size: .9rem; font-weight: 500; transition: .15s; position: relative; }
.sidebar a.nav-item svg { width: 17px; height: 17px; opacity: .7; flex: none; }
.sidebar a.nav-item:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.sidebar a.nav-item.active { background: linear-gradient(90deg, var(--accent-soft), rgba(255, 255, 255, .02)); color: #fff; }
.sidebar a.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar a.nav-item.active svg { opacity: 1; color: var(--accent); }
.sidebar .count { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
.side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.side-user { display: flex; gap: 10px; align-items: center; padding: 8px; }
.side-user .n { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.role-tag { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; display: inline-block; }
.role-owner { background: linear-gradient(135deg, #fff, #c9cbd3); color: #000; }
.role-admin { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 55%, #fff); border: 1px solid var(--accent-line); }
.role-moderator { background: rgba(59, 130, 246, .12); color: #93c5fd; border: 1px solid rgba(59, 130, 246, .3); }
.role-customer { background: rgba(255, 255, 255, .05); color: var(--muted); border: 1px solid var(--line); }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: rgba(7, 8, 10, .8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.admin-top .title { font-weight: 600; }
.admin-top .crumbs { margin: 0; }
.admin-content { padding: 32px; max-width: 1400px; width: 100%; }
.admin-content .acct-head h1 { font-size: 1.55rem; }
.side-toggle { display: none; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.stat .l { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 500; }
.stat .l .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--text-2); }
.stat .l .ic svg { width: 15px; height: 15px; }
.stat .v { font: 700 1.85rem/1.1 var(--display); margin-top: 14px; }
.stat .s { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); min-height: 3px; position: relative; transition: filter .2s; }
.bars .bar:hover { filter: brightness(1.25); }
.bars .bar[data-v]:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 6px; font-size: .74rem; white-space: nowrap; }
.bars .lb { font-size: .66rem; color: var(--faint); white-space: nowrap; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.list-row:first-child { border-top: 0; padding-top: 0; }
.log-action { font-family: var(--mono); font-size: .8rem; color: color-mix(in srgb, var(--accent) 55%, #fff); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.log-action.sec { color: #fca5a5; background: rgba(239, 68, 68, .1); }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.form-layout .aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.section-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.section-card > h3 { font-size: 1rem; margin-bottom: 4px; }
.section-card > .desc { color: var(--muted); font-size: .85rem; margin-bottom: 20px; }
.plan-rows { display: grid; gap: 10px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 110px 120px 120px 110px 40px; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.plan-row input, .plan-row select { height: 38px; font-size: .88rem; background: var(--panel); }
.plan-head { display: grid; grid-template-columns: minmax(0, 1.4fr) 110px 120px 120px 110px 40px; gap: 10px; padding: 0 10px; font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.img-tile { position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.img-tile img { width: 100%; height: 100%; object-fit: cover; }
.img-tile .ops { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 6px; justify-content: flex-end; opacity: 0; transition: .2s; }
.img-tile:hover .ops, .img-tile:focus-within .ops { opacity: 1; }
.img-tile .ops .btn { background: rgba(6, 7, 9, .85); backdrop-filter: blur(6px); }
.cover-preview { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 12px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.preview-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview-strip img { width: 88px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.danger-zone { border-color: rgba(239, 68, 68, .3); background: linear-gradient(180deg, rgba(239, 68, 68, .04), var(--panel)); }
.status-select { width: 170px; height: 36px; font-size: .85rem; border-radius: 999px; padding-left: 14px; }
.status-admin-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.status-admin-row input { height: 36px; font-size: .85rem; }
.status-admin-row .saved { font-size: .76rem; color: var(--faint); text-align: right; }
.perm-matrix td, .perm-matrix th { text-align: center; }
.perm-matrix td:first-child, .perm-matrix th:first-child { text-align: left; }
.yes { color: var(--ok); font-weight: 700; } .no { color: var(--faint); }
.inline-form { display: inline; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; font-size: .9rem; }
.kv .k { color: var(--muted); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .form-layout .aside { position: static; }
  .plan-row, .plan-head { grid-template-columns: minmax(0, 1fr) 90px 100px 100px 96px 38px; }
}
@media (max-width: 960px) {
  .hero-grid, .pd-grid, .co-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding: 64px 0 56px; }
  .buybox { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .acct { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 0 0 4px; scrollbar-width: none; }
  .side-nav .who { display: none; }
  .side-nav a { white-space: nowrap; flex: none; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 70; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  body.side-open .sidebar { transform: none; }
  body.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 60; }
  .side-toggle { display: inline-flex; }
  .admin-top { padding: 0 18px; }
  .admin-content { padding: 22px 18px; }
  .status-admin-row { grid-template-columns: 1fr 1fr; }
  .status-admin-row .saved { text-align: left; }
}
@media (max-width: 820px) {
  .nav-links, .nav-actions .hide-m, .admin-top .hide-m { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: rgba(6, 7, 9, .97); backdrop-filter: blur(14px); padding: 20px 24px; flex-direction: column; gap: 4px; }
  body.menu-open .mobile-menu { display: flex; }
  .mobile-menu a { padding: 14px 6px; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; }
  .toolbar form { margin-left: 0; width: 100%; }
  .toolbar input[type=search] { flex: 1; width: auto; }
  .plan-head { display: none; }
  .plan-row { grid-template-columns: 1fr 1fr; }
  .plan-row > :first-child { grid-column: 1 / -1; }
  .user-chip .nm { display: none; }
  .user-chip { padding-right: 5px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .p-grid, .grid-2, .grid-3, .grid-4, .form-grid, .feat-list { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 2.6rem; }
  .hero-cta .btn { flex: 1; }
  .admin-top .crumbs { display: none; }
  .acct-head .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat .v { font-size: 1.45rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-stats { gap: 26px; }
  .cta-band { padding: 32px 24px; }
  .auth-card { padding: 26px 22px; }
  .sub-card { grid-template-columns: auto minmax(0, 1fr); }
  .sub-card > .row:last-child { grid-column: 1 / -1; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .status-row { flex-wrap: wrap; }
  .status-row .upd { width: 100%; order: 3; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv .k { margin-top: 8px; }
  .status-admin-row { grid-template-columns: 1fr; }
  .status-select { width: 100%; }
  .table td, .table th { padding: 12px; }
}

.grid-dash { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1100px) { .grid-dash, .grid-side { grid-template-columns: minmax(0, 1fr); } }

.status-select[data-s] { border-color: color-mix(in srgb, var(--c) 45%, transparent); color: color-mix(in srgb, var(--c) 50%, #fff); }
.status-select[data-s=undetected] { --c: var(--ok-2); } .status-select[data-s=operational] { --c: var(--ok); }
.status-select[data-s=updating] { --c: var(--info); } .status-select[data-s=maintenance] { --c: var(--warn); }
.status-select[data-s=offline] { --c: var(--off); } .status-select[data-s=detected] { --c: var(--bad); }
.status-select option { color: var(--text); background: var(--panel-2); }

.hero-grid > *, .pd-grid > *, .co-grid > *, .acct > *, .form-layout > *, .grid > * { min-width: 0; }
.aside > *, .stack > * { min-width: 0; }
@media (max-width: 820px) {
  .toolbar input[type=search] { min-width: 0; }
  .toolbar select { max-width: 46%; flex: none; }
}
