/* DroDev Store — design system */
/* ----------------------------- Tokens ----------------------------- */
:root {
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --brand: #3b82f6;
  --brand-2: #1d4ed8;
  --brand-3: #60a5fa;
  --brand-soft: rgba(59, 130, 246, .14);
  --lime: #38bdf8;
  --lime-ink: #041424;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --star: #fbbf24;
  --star-empty: #3a3f52;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --header-h: 74px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}
[data-theme="dark"] {
  --bg: #08090f;
  --bg-soft: #0c0e17;
  --surface: #11131d;
  --surface-2: #171a26;
  --surface-3: #1e2231;
  --surface-hover: #202435;
  --border: rgba(255, 255, 255, .075);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #f1f2f8;
  --text-soft: #d5d8e6;
  --muted: #9aa0b6;
  --muted-2: #6f768d;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, .8);
  --header-bg: rgba(8, 9, 15, .82);
  --code-bg: #0b0d15;
  --selection: rgba(59, 130, 246, .35);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-soft: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eceefa;
  --surface-hover: #eef0f9;
  --border: rgba(18, 20, 38, .09);
  --border-strong: rgba(18, 20, 38, .16);
  --text: #121421;
  --text-soft: #333748;
  --muted: #646b83;
  --muted-2: #8a90a5;
  --star-empty: #d7dae7;
  --shadow: 0 26px 60px -30px rgba(30, 34, 70, .35);
  --shadow-sm: 0 12px 30px -22px rgba(30, 34, 70, .4);
  --header-bg: rgba(255, 255, 255, .88);
  --code-bg: #f1f3fa;
  --brand-3: #2563eb;
  --selection: rgba(59, 130, 246, .22);
  color-scheme: light;
}

/* ------------------------------ Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::selection, ::selection { background: var(--selection); color: var(--text); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { color: var(--text-soft); }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: .12em .42em;
  border-radius: 6px;
  font-size: .86em;
  color: var(--brand-3);
  word-break: break-word;
}
time, small { font-size: .82em; }
hr { border: 0; border-top: 1px solid var(--border); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-3); outline-offset: 3px; border-radius: 6px; }
::placeholder { color: var(--muted-2); opacity: 1; }
input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ---------------------------- Utilities --------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.muted { color: var(--muted); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); display: inline-block; flex: none; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.18em; display: inline-block; }
.icon--xs { width: .95em; height: .95em; }
.skip-link {
  position: fixed; top: -60px; left: 20px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 12px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; }
.grad-text {
  background: linear-gradient(100deg, var(--brand-3), var(--cyan) 55%, var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .73rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand-3);
}
.eyebrow .icon { width: 1em; height: 1em; }
.eyebrow--pill {
  background: var(--brand-soft); border: 1px solid rgba(59, 130, 246, .28);
  color: #bfdbfe; padding: 7px 13px; border-radius: 999px; letter-spacing: .08em;
}
.eyebrow--light { color: var(--lime); }
.section { padding: 66px 0; }
.section--tight { padding: 38px 0; }
.section--inline { padding: 10px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head > div { max-width: 640px; }
.section-head h2 { margin: 8px 0 6px; }
.section-head p { color: var(--muted); font-size: .96rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--brand-3); white-space: nowrap; transition: gap .2s; }
.link-arrow:hover { gap: 11px; }
.prose { color: var(--text-soft); line-height: 1.78; font-size: .98rem; }
.prose--small { font-size: .9rem; line-height: 1.7; }
.prose--legal { font-size: 1rem; line-height: 1.85; color: var(--text-soft); }

/* ------------------------------ Buttons --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: .88rem; line-height: 1.2;
  color: var(--text); background: var(--surface-2); cursor: pointer;
  white-space: nowrap; transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s, opacity .18s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 12px 28px -14px rgba(109, 74, 255, .9);
}
.btn--primary:hover { box-shadow: 0 16px 34px -14px rgba(109, 74, 255, 1); }
.btn--soft { background: var(--surface-3); border-color: var(--border); color: var(--text); }
.btn--soft:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text-soft); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .3); color: #fca5a5; }
.btn--danger:hover { background: rgba(248, 113, 113, .2); }
.btn--lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 12px 30px -16px rgba(56, 189, 248, .75); }
.btn--lime:hover { filter: brightness(1.04); }
.btn--ghost-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { padding: 7px 12px; font-size: .79rem; border-radius: 9px; }
.btn--lg { padding: 14px 24px; font-size: .98rem; border-radius: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-active { border-color: var(--brand); color: var(--brand-3); background: var(--brand-soft); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; color: var(--muted);
  border: 1px solid transparent; position: relative; transition: .18s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.icon-btn--danger:hover { background: rgba(248, 113, 113, .12); color: #fca5a5; }

/* ------------------------------ Chips ----------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px; font-size: .72rem;
  font-weight: 700; line-height: 1.35; border: 1px solid transparent; white-space: nowrap;
}
.chip .icon { width: 1em; height: 1em; }
.chip--muted { background: var(--surface-3); color: var(--muted); border-color: var(--border); }
.chip--brand { background: var(--brand-soft); color: #93c5fd; border-color: rgba(59, 130, 246, .3); }
.chip--success { background: rgba(52, 211, 153, .12); color: #6ee7b7; border-color: rgba(52, 211, 153, .28); }
.chip--warning { background: rgba(251, 191, 36, .12); color: #fcd34d; border-color: rgba(251, 191, 36, .28); }
.chip--danger { background: rgba(248, 113, 113, .12); color: #fca5a5; border-color: rgba(248, 113, 113, .28); }
.chip--info { background: rgba(34, 211, 238, .12); color: #67e8f9; border-color: rgba(34, 211, 238, .28); }
[data-theme="light"] .chip--brand { color: #1d4ed8; }
[data-theme="light"] .chip--success { color: #047857; }
[data-theme="light"] .chip--warning { color: #a16207; }
[data-theme="light"] .chip--danger { color: #b91c1c; }
[data-theme="light"] .chip--info { color: #0e7490; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

/* ------------------------------ Stars ----------------------------- */
.stars {
  --size: 14px; position: relative; display: inline-block;
  font-size: var(--size); line-height: 1; letter-spacing: 1.5px;
  font-family: "Segoe UI Symbol", "Apple Symbols", sans-serif;
  width: calc(var(--size) * 5.6); height: calc(var(--size) + 2px);
  vertical-align: middle; flex: none;
}
.stars::before { content: "★★★★★"; color: var(--star-empty); }
.stars span { position: absolute; inset: 0; overflow: hidden; width: var(--pct, 0%); white-space: nowrap; }
.stars span::before { content: "★★★★★"; color: var(--star); }
.rating-inline { display: inline-flex; align-items: center; gap: 6px; }
.rating-inline b { font-size: .86rem; }
.rating-inline em { font-style: normal; color: var(--muted); font-size: .8rem; }

/* ------------------------------ Forms ----------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span, .field > label { font-size: .8rem; font-weight: 700; color: var(--text-soft); letter-spacing: .01em; }
.field > span small, .field > label small { color: var(--muted-2); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 13px; color: var(--text);
  font-size: .9rem; transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface);
}
.field input:disabled, .field textarea:disabled, .field select:disabled { opacity: .6; cursor: not-allowed; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: rgba(248, 113, 113, .7); }
.field__hint { color: var(--muted-2); font-size: .75rem; line-height: 1.45; }
.field__error { color: #fca5a5; font-size: .76rem; font-weight: 600; }
[data-theme="light"] .field__error { color: #b91c1c; }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.form-subtitle { display: flex; align-items: center; gap: 7px; font-size: .98rem; margin: 18px 0 12px; }
.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-form--compact { gap: 12px; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .icon { position: absolute; left: 12px; color: var(--muted-2); width: 1.05em; height: 1.05em; pointer-events: none; z-index: 1; }
.input-icon input { padding-left: 38px; }
.input-icon--action input { padding-right: 42px; }
.input-action {
  position: absolute; right: 6px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--muted); z-index: 1;
}
.input-action:hover { background: var(--surface-3); color: var(--text); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span {
  display: inline-flex; align-items: center; padding: 0 11px;
  background: var(--surface-3); border: 1px solid var(--border); border-right: 0;
  border-radius: 11px 0 0 11px; color: var(--muted); font-size: .85rem; white-space: nowrap;
}
.input-prefix input { border-radius: 0 11px 11px 0; }
.checkbox { display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--text-soft); cursor: pointer; position: relative; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox > span {
  width: 19px; height: 19px; border-radius: 6px; border: 1px solid var(--border-strong);
  background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.checkbox > span .icon { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.6); transition: .16s; }
.checkbox input:checked + span { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked + span .icon { opacity: 1; transform: scale(1); }
.checkbox input:focus-visible + span { outline: 2px solid var(--brand-3); outline-offset: 2px; }
.checkbox em { font-style: normal; }
.checkbox em a { color: var(--brand-3); font-weight: 700; }
.checkbox--terms { align-items: flex-start; }
.checkbox--terms > span { margin-top: 1px; }
.checkbox.has-error > span { border-color: #f87171; }
.switch-field { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; }
.switch-field > span:first-child { font-size: .84rem; font-weight: 600; color: var(--text-soft); }
.switch-field b { display: block; color: var(--text); font-size: .87rem; }
.switch-field small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; margin-top: 2px; line-height: 1.45; }
.switch { position: relative; width: 44px; height: 25px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); flex: none; transition: .2s; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.switch i { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transition: .2s var(--ease); }
.switch.is-on, .switch:has(input:checked) { background: var(--brand); border-color: var(--brand); }
.switch.is-on i, .switch:has(input:checked) i { left: 22px; background: #fff; }
.switch-list { display: flex; flex-direction: column; gap: 16px; }
.select-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.select-wrap > .icon { color: var(--muted); width: 1em; height: 1em; pointer-events: none; }
.select-wrap > .icon:first-child { position: absolute; left: 11px; z-index: 1; }
.select-wrap > .icon:last-child { position: absolute; right: 11px; z-index: 1; }
.select-wrap select {
  appearance: none; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 34px 9px 34px; font-size: .82rem; font-weight: 600;
  color: var(--text-soft); cursor: pointer;
}
.select-wrap select:hover { border-color: var(--border-strong); }
.input-prefix:has(input:disabled) { opacity: .7; }

/* ---------------------------- Flash/Toast ------------------------- */
.flash-stack {
  position: fixed; top: calc(var(--header-h) + 12px); right: 18px; z-index: 140;
  display: flex; flex-direction: column; gap: 9px; width: min(380px, calc(100vw - 36px));
}
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 13px; border-radius: 13px; border: 1px solid var(--border-strong);
  background: var(--surface); box-shadow: var(--shadow); animation: slide-in .3s var(--ease);
}
.flash__icon { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.flash p { flex: 1; font-size: .85rem; line-height: 1.45; color: var(--text-soft); padding-top: 3px; }
.flash__close { color: var(--muted); padding: 3px; border-radius: 6px; }
.flash__close:hover { color: var(--text); background: var(--surface-2); }
.flash--success { border-color: rgba(52, 211, 153, .35); }
.flash--success .flash__icon { background: rgba(52, 211, 153, .14); color: #34d399; }
.flash--error, .flash--danger { border-color: rgba(248, 113, 113, .35); }
.flash--error .flash__icon, .flash--danger .flash__icon { background: rgba(248, 113, 113, .14); color: #f87171; }
.flash--warning { border-color: rgba(251, 191, 36, .35); }
.flash--warning .flash__icon { background: rgba(251, 191, 36, .14); color: #fbbf24; }
.flash--info { border-color: rgba(34, 211, 238, .3); }
.flash--info .flash__icon { background: rgba(34, 211, 238, .14); color: #22d3ee; }
.toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 180; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  padding: 10px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow); animation: toast-in .25s var(--ease); pointer-events: auto;
  display: inline-flex; align-items: center; gap: 7px;
}
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------ Header ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .8); }
.site-header__inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 40px; height: 40px; display: block; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__mark img { width: 100%; height: 100%; display: block; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.logo__text span { color: var(--brand-3); }
.logo__text small { display: block; font-family: var(--font-body); font-size: .5rem; letter-spacing: .32em; color: var(--muted-2); font-weight: 800; margin-top: 3px; }
.logo--compact .logo__mark { width: 36px; height: 36px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .nav-dropdown__toggle {
  padding: 9px 12px; border-radius: 10px; font-size: .86rem; font-weight: 600;
  color: var(--muted); white-space: nowrap; transition: .18s;
  display: inline-flex; align-items: center; gap: 5px;
}
.main-nav > a:hover, .nav-dropdown__toggle:hover { color: var(--text); background: var(--surface-2); }
.main-nav > a.is-active { color: var(--text); background: var(--surface-2); }
.nav-dropdown { position: relative; }
.nav-dropdown__toggle .icon { width: .95em; height: .95em; transition: transform .2s; }
.nav-dropdown[data-open] .nav-dropdown__toggle .icon { transform: rotate(180deg); }
.nav-dropdown__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: 440px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: .2s var(--ease); z-index: 20;
}
.nav-dropdown:hover .nav-dropdown__panel, .nav-dropdown[data-open] .nav-dropdown__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.nav-dropdown__grid a { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--text-soft); }
.nav-dropdown__grid a:hover { background: var(--surface-2); color: var(--text); }
.cat-emoji {
  width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cat, #3b82f6) 16%, transparent);
  font-size: .9rem; flex: none;
}
.nav-dropdown__all { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 9px 10px; border-top: 1px solid var(--border); font-size: .82rem; font-weight: 700; color: var(--brand-3); }
.header-search { position: relative; flex: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; }
.header-search__icon { position: absolute; left: 12px; color: var(--muted-2); z-index: 1; }
.header-search__icon .icon { width: 1.05em; height: 1.05em; }
.header-search input {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); padding: 0 134px 0 38px; font-size: .85rem;
  transition: .18s;
}
.header-search input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.header-search kbd {
  position: absolute; right: 84px; font-size: .65rem; color: var(--muted-2);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; background: var(--surface);
}
.header-search__submit {
  position: absolute; right: 4px; height: 34px; padding: 0 13px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: .76rem; font-weight: 700;
}
.header-search__submit:hover { background: var(--brand-2); }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; max-height: 420px; overflow-y: auto;
}
.search-suggest a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover { background: var(--surface-2); }
.search-suggest img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.search-suggest span { min-width: 0; }
.search-suggest b { display: block; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest small { color: var(--muted); font-size: .72rem; }
.search-suggest em { margin-left: auto; font-style: normal; font-size: .7rem; color: var(--muted-2); }
.search-suggest .suggest-empty { padding: 14px; font-size: .82rem; color: var(--muted); text-align: center; }
.search-suggest .suggest-head { padding: 8px 12px; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--muted-2); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.theme-toggle__light { display: none; }
[data-theme="light"] .theme-toggle__dark { display: none; }
[data-theme="light"] .theme-toggle__light { display: inline-flex; }
.badge-dot {
  position: absolute; top: 5px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: .6rem;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 7px; padding: 4px 7px 4px 4px; border-radius: 12px; cursor: pointer; list-style: none; border: 1px solid transparent; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: var(--surface-2); border-color: var(--border); }
.user-menu summary img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.user-menu__name { font-size: .82rem; font-weight: 700; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu summary > .icon { width: .9em; height: .9em; color: var(--muted); }
.user-menu__panel {
  position: absolute; right: 0; top: calc(100% + 9px); width: 236px; z-index: 40;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow); padding: 7px; animation: pop .18s var(--ease);
}
.user-menu__head { display: flex; gap: 9px; align-items: center; padding: 9px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.user-menu__head img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.user-menu__head b { display: block; font-size: .84rem; }
.user-menu__head small { color: var(--muted); font-size: .72rem; }
.user-menu__panel > a, .user-menu__panel form button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px;
  border-radius: 9px; font-size: .83rem; font-weight: 600; color: var(--text-soft); text-align: left;
}
.user-menu__panel > a:hover, .user-menu__panel form button:hover { background: var(--surface-2); color: var(--text); }
.user-menu__panel .icon { width: 1em; height: 1em; color: var(--muted); }
.mobile-toggle { display: none; }
.mobile-nav { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: none; } }
.header-login { padding: 8px 12px; }
.header-register { padding: 9px 14px; }
/* ------------------------------ Footer ---------------------------- */
.site-footer { margin-top: 40px; background: var(--bg-soft); border-top: 1px solid var(--border); padding: 54px 0 24px; }
.site-footer__top { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 32px; }
.site-footer__brand p { color: var(--muted); font-size: .85rem; line-height: 1.65; margin: 13px 0 15px; max-width: 300px; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col h4 { font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 5px; font-weight: 800; }
.site-footer__col a { font-size: .82rem; color: var(--muted); width: fit-content; }
.site-footer__col a:hover { color: var(--brand-3); }
.social-links { display: flex; gap: 7px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.social-links a:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.social-links--boxed { flex-wrap: wrap; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); margin-top: 38px; padding-top: 19px; position: relative; }
.site-footer__bottom p { font-size: .73rem; color: var(--muted-2); }
.to-top { position: absolute; right: 0; top: -18px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.to-top .icon { transform: rotate(180deg); width: 1em; height: 1em; }
.to-top:hover { color: var(--text); background: var(--surface-hover); }

/* ------------------------------- Hero ----------------------------- */
.hero { position: relative; padding: 56px 0 64px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero__orb--1 { width: 520px; height: 520px; background: #1e3a8a; top: -220px; left: -120px; }
.hero__orb--2 { width: 440px; height: 440px; background: #0e7490; top: -80px; right: -130px; opacity: .32; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 75%);
  opacity: .55;
}
[data-theme="light"] .hero__orb { opacity: .18; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.hero__copy h1 { margin: 18px 0 16px; font-size: clamp(2.35rem, 4.5vw, 3.65rem); letter-spacing: -.035em; }
.hero__lead { font-size: 1.02rem; line-height: 1.7; color: var(--muted); max-width: 560px; }
.hero-search { position: relative; display: flex; align-items: center; margin: 26px 0 14px; max-width: 580px; }
.hero-search__icon { position: absolute; left: 17px; color: var(--muted-2); }
.hero-search input {
  width: 100%; height: 58px; border-radius: 15px; border: 1px solid var(--border-strong);
  background: var(--surface); padding: 0 128px 0 48px; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.hero-search input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hero-search .btn { position: absolute; right: 7px; height: 44px; padding: 0 22px; border-radius: 11px; }
.hero-search .search-suggest { top: calc(100% + 8px); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: .78rem; color: var(--muted-2); }
.hero-tags a { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.hero-tags a:hover { color: var(--text); border-color: var(--border-strong); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-stats > div { display: flex; flex-direction: column; gap: 1px; }
.hero-stats b { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -.02em; }
.hero-stats span { font-size: .71rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.hero-stats__rating { flex-direction: row !important; align-items: center; gap: 8px !important; }
.hero-stats__rating .stars { --size: 13px; }
.hero-showcase { position: relative; display: flex; justify-content: center; }
.hero-showcase__glow { position: absolute; inset: 8% 4%; background: radial-gradient(circle at 40% 35%, rgba(59, 130, 246, .3), transparent 65%); filter: blur(40px); }
.spotlight {
  position: relative; width: 100%; max-width: 470px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  padding: 25px; box-shadow: var(--shadow); z-index: 1;
}
.spotlight__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.spotlight__icon { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow-sm); }
.spotlight__badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.spotlight h2 { font-size: 1.55rem; margin-bottom: 3px; }
.spotlight__dev { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--brand-3); }
.spotlight > p { margin: 10px 0 13px; font-size: .86rem; line-height: 1.6; color: var(--muted); }
.spotlight__rating { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); }
.spotlight__rating b { color: var(--text); font-size: .9rem; }
.spotlight__meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 15px 0; padding: 13px 0; border-block: 1px solid var(--border); }
.spotlight__meta span { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted); }
.spotlight__meta .icon { color: var(--brand-3); width: 1em; height: 1em; }
.spotlight__meta b { color: var(--text); }
.spotlight__actions { display: flex; gap: 8px; }
.spotlight__actions .btn:first-child { flex: 1; }
.spotlight__more { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.spotlight__more > span { font-size: .69rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted-2); }
.spotlight__more > div { display: flex; gap: 6px; }
.spotlight__more img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); }
.spotlight__more a:hover { transform: translateY(-2px); }
.hero-float {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px; font-size: .68rem; font-weight: 800;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.hero-float .icon { width: .95em; height: .95em; }
.hero-float--verified { top: -14px; right: 8%; color: var(--lime); }
.hero-float--platform { bottom: 68px; left: -18px; color: var(--cyan); }
.hero-float--platform .icon { color: var(--cyan); }

/* --------------------------- Platform strip ----------------------- */
.platform-strip { border-block: 1px solid var(--border); background: var(--bg-soft); }
.platform-strip__inner { display: flex; align-items: center; gap: 12px; padding: 17px 0; flex-wrap: wrap; }
.platform-strip__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--muted-2); margin-right: 4px; }
.platform-pill {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 13px; background: var(--surface);
  min-width: 196px; transition: .18s;
}
.platform-pill:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.platform-pill > span:first-child { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); }
.platform-pill > div { line-height: 1.25; }
.platform-pill b { font-size: .83rem; display: block; }
.platform-pill small { color: var(--muted-2); font-size: .66rem; letter-spacing: .03em; }
.platform-pill > .icon { margin-left: auto; color: var(--muted-2); width: .9em; height: .9em; }
.platform-pill--android > span:first-child { color: #7ee787; }
.platform-pill--windows > span:first-child { color: #55b9ff; }
.platform-pill--cross > span:first-child { color: var(--brand-3); }
.platform-strip__link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--brand-3); white-space: nowrap; }

/* --------------------------- Categories --------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 17px; border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(150deg, color-mix(in srgb, var(--cat, #3b82f6) 13%, var(--surface)), var(--surface) 70%);
  overflow: hidden; transition: .2s var(--ease);
}
.cat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cat, #3b82f6) 45%, transparent); box-shadow: var(--shadow-sm); }
.cat-card__icon {
  width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cat, #3b82f6) 18%, transparent); font-size: 1.1rem; margin-bottom: 5px;
}
.cat-card__name { font-weight: 800; font-size: .9rem; }
.cat-card__count { font-size: .72rem; color: var(--muted); }
.cat-card__arrow { position: absolute; right: 14px; bottom: 15px; color: color-mix(in srgb, var(--cat, #3b82f6) 75%, var(--text)); opacity: .7; }
.cat-card__arrow .icon { width: 1em; height: 1em; }
.top-cats-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.top-cats-row a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .79rem; font-weight: 600; color: var(--muted); }
.top-cats-row a:hover { color: var(--text); border-color: var(--border-strong); }

/* ----------------------------- App cards -------------------------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.app-card {
  display: flex; gap: 14px; padding: 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background .2s;
  min-width: 0;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); background: var(--surface-2); }
.app-card__icon { position: relative; flex: none; width: 70px; height: 70px; border-radius: 18px; }
.app-card__icon img { width: 70px; height: 70px; border-radius: 18px; object-fit: cover; }
.platform-dot {
  position: absolute; bottom: -4px; right: -4px; width: 24px; height: 24px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 2px solid var(--surface); color: var(--muted);
}
.platform-dot .icon { width: .78em; height: .78em; }
.platform-dot--android { color: #7ee787; }
.platform-dot--windows { color: #55b9ff; }
.platform-dot--cross { color: var(--brand-3); }
.app-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.app-card__top h3 { font-size: .96rem; line-height: 1.25; letter-spacing: -.01em; }
.app-card__top h3 a:hover { color: var(--brand-3); }
.app-card__rating { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.app-card__rating .stars { --size: 10px; }
.app-card__rating b { font-size: .7rem; color: var(--muted); }
.app-card__dev { display: block; font-size: .73rem; color: var(--brand-3); font-weight: 600; margin-top: 2px; }
.app-card__desc {
  font-size: .76rem; line-height: 1.5; color: var(--muted); margin: 7px 0 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card__meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; align-items: center; }
.app-card__meta span { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; color: var(--muted-2); }
.app-card__meta .icon { width: .95em; height: .95em; }
.app-card__cat { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apps-grid--catalog { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

/* ----------------------------- Rank rows -------------------------- */
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.rank-list { display: flex; flex-direction: column; }
.app-row {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px;
  border-radius: 12px; border-bottom: 1px solid var(--border); transition: .16s;
}
.rank-list .app-row:last-child { border-bottom: 0; }
.app-row:hover { background: var(--surface-2); transform: translateX(2px); }
.app-row__rank { font-family: var(--font-display); font-size: .84rem; font-weight: 800; color: var(--muted-2); width: 20px; text-align: center; flex: none; }
.app-row__icon { width: 50px; height: 50px; border-radius: 13px; object-fit: cover; flex: none; }
.app-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.app-row__body b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row__body > small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row__meta { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.app-row__meta .stars { --size: 10px; }
.app-row__meta small { font-size: .67rem; color: var(--muted-2); }
.app-row__action { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); flex: none; }
.app-row__action .icon { width: .95em; height: .95em; }
.app-row:hover .app-row__action { background: var(--brand); color: #fff; }

/* ----------------------------- Editors ---------------------------- */
.editors-panel {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; padding: 34px;
  border-radius: var(--radius-xl); border: 1px solid rgba(59, 130, 246, .28);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(59, 130, 246, .22), transparent 70%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(34, 211, 238, .1), transparent 70%),
    var(--surface);
}
.editors-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.editors-panel__head h2 { margin: 10px 0 8px; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.editors-panel__head p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin-bottom: 18px; }
.editors-panel__list { display: flex; flex-direction: column; gap: 6px; }
.editor-card {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 14px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 75%, transparent);
  transition: .18s;
}
.editor-card:hover { border-color: var(--border-strong); transform: translateX(3px); background: var(--surface-2); }
.editor-card img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.editor-card > span:nth-child(2) { flex: 1; min-width: 0; }
.editor-card b { display: block; font-size: .89rem; }
.editor-card small { color: var(--muted); font-size: .72rem; }
.editor-card__rating { display: flex; align-items: center; gap: 5px; }
.editor-card__rating .stars { --size: 10px; }
.editor-card__rating b { font-size: .74rem; color: var(--muted); }
.editor-card > .icon { color: var(--muted-2); width: 1em; height: 1em; }

/* ------------------------------ Dev CTA --------------------------- */
.dev-cta {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: 42px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center;
  background: linear-gradient(120deg, #0e1a2e 0%, #0d1524 55%, #0a1a24 100%);
  border: 1px solid rgba(59, 130, 246, .25); color: #fff;
}
.dev-cta__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, .08), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(59, 130, 246, .25), transparent 55%);
}
.dev-cta__copy { position: relative; z-index: 1; }
.dev-cta__copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 10px 0 10px; }
.dev-cta__copy > p { color: #b9bed6; font-size: .94rem; line-height: 1.7; max-width: 560px; }
.dev-cta__actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 17px; }
.dev-cta__features { display: flex; flex-wrap: wrap; gap: 16px; }
.dev-cta__features span { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: #9ca3c2; }
.dev-cta__features .icon { color: var(--lime); width: .95em; height: .95em; }
.dev-cta--small { grid-template-columns: 1fr; padding: 34px; }
.dev-cta__mock { position: relative; z-index: 1; }
.mock-window { background: #0b0d16; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px #000; transform: rotate(-1.5deg); }
.mock-window__bar { display: flex; gap: 5px; padding: 9px 11px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mock-window__bar i { width: 8px; height: 8px; border-radius: 50%; background: #2b3040; }
.mock-window__bar i:first-child { background: #f87171; }
.mock-window__bar i:nth-child(2) { background: #fbbf24; }
.mock-window__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-kpi { display: flex; align-items: baseline; gap: 8px; font-size: .7rem; color: #8d94ad; }
.mock-kpi b { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-left: auto; }
.mock-kpi em { font-style: normal; color: var(--lime); font-weight: 700; font-size: .68rem; }
.mock-chart { display: flex; align-items: flex-end; gap: 5px; height: 90px; }
.mock-chart span { flex: 1; height: var(--h); background: linear-gradient(180deg, #3b82f6, #1e3a8a); border-radius: 4px 4px 2px 2px; opacity: .85; }
.mock-chart span:nth-child(n+7) { background: linear-gradient(180deg, var(--lime), #0369a1); }
.mock-row { display: flex; align-items: center; gap: 7px; font-size: .66rem; color: #8d94ad; }
.mock-row b { margin-left: auto; color: #d7dbeb; }
.mock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.mock-dot--2 { background: var(--lime); }

/* ----------------------------- Catalog ---------------------------- */
.page-hero { position: relative; padding: 26px 0 38px; background: linear-gradient(180deg, var(--bg-soft), transparent); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero--catalog::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 65%);
  top: -300px; right: -80px; pointer-events: none;
}
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .74rem; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .icon { width: .75em; height: .75em; opacity: .6; }
.breadcrumbs--light { color: rgba(255, 255, 255, .55); }
.breadcrumbs--light a { color: rgba(255, 255, 255, .78); }
.breadcrumbs--light a:hover { color: #fff; }
.page-hero__row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-hero__row h1 { margin: 9px 0 7px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.page-hero__row p { color: var(--muted); font-size: .93rem; max-width: 620px; }
.page-hero__stats { display: flex; gap: 9px; }
.stat-pill { text-align: center; padding: 9px 16px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); min-width: 100px; }
.stat-pill b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.stat-pill span { font-size: .65rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.catalog-section { padding-top: 26px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 17px; }
.platform-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); }
.platform-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.platform-tabs a .icon { width: .95em; height: .95em; }
.platform-tabs a:hover { color: var(--text); }
.platform-tabs a.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.catalog-toolbar__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-drawer { position: relative; }
.filter-drawer > summary { list-style: none; }
.filter-drawer > summary::-webkit-details-marker { display: none; }
.filter-drawer__panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 320px; z-index: 30;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.filter-drawer[open] > summary { background: var(--surface-hover); }
.category-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: thin; }
.category-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .77rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.category-chips a:hover { color: var(--text); border-color: var(--border-strong); }
.category-chips a.is-active { background: var(--brand-soft); border-color: rgba(59, 130, 246, .4); color: var(--brand-3); }
.category-chips a em { font-style: normal; font-size: .65rem; background: var(--surface-3); padding: 1px 5px; border-radius: 999px; color: var(--muted-2); }
.category-chips .cat-emoji { width: 21px; height: 21px; border-radius: 6px; font-size: .72rem; }
.active-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 13px; border-radius: 11px; background: var(--surface); border: 1px dashed var(--border-strong); font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.active-filters a { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-3); font-weight: 700; }
.active-filters .icon { width: .9em; height: .9em; }
.catalog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.catalog-footer p { font-size: .78rem; color: var(--muted); }
.catalog-footer p b { color: var(--text-soft); }
.pagination { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pagination__arrow { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 7px 10px; border-radius: 9px; }
.pagination__arrow:hover { background: var(--surface-2); color: var(--text); }
.pagination__arrow.is-disabled { opacity: .35; pointer-events: none; }
.pagination__arrow .icon { width: .9em; height: .9em; }
.pagination__pages { display: flex; align-items: center; gap: 3px; }
.pagination__pages a, .pagination__pages span {
  min-width: 32px; height: 32px; padding: 0 7px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--muted);
}
.pagination__pages a:hover { background: var(--surface-2); color: var(--text); }
.pagination__pages .is-current { background: var(--brand); color: #fff; }
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 56px 22px; border-radius: var(--radius-lg); border: 1px dashed var(--border-strong);
  background: var(--surface); gap: 6px;
}
.empty-state__icon { width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-3); margin-bottom: 7px; }
.empty-state__icon .icon { width: 26px; height: 26px; }
.empty-state h3 { font-size: 1.15rem; }
.empty-state p { color: var(--muted); font-size: .86rem; max-width: 420px; margin-bottom: 8px; }
/* ---------------------------- App detail -------------------------- */
.app-detail { position: relative; padding-bottom: 34px; }
.app-detail__banner {
  position: absolute; top: 0; left: 0; right: 0; height: 320px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 20% 0%, rgba(59, 130, 246, .3), transparent 65%),
    radial-gradient(ellipse 50% 80% at 85% 10%, rgba(34, 211, 238, .14), transparent 60%),
    linear-gradient(180deg, #0d1424, var(--bg) 92%);
  border-bottom: 1px solid var(--border);
}
.app-detail__banner > img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.app-detail__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 15, .2), var(--bg) 95%); }
[data-theme="light"] .app-detail__banner { background: radial-gradient(ellipse 60% 90% at 20% 0%, rgba(59, 130, 246, .18), transparent 65%), radial-gradient(ellipse 50% 80% at 85% 10%, rgba(34, 211, 238, .12), transparent 60%), linear-gradient(180deg, #e6eefb, var(--bg) 92%); }
[data-theme="light"] .app-detail__banner::after { background: linear-gradient(180deg, rgba(245, 246, 251, .1), var(--bg) 95%); }
.app-detail > .container { position: relative; z-index: 1; padding-top: 22px; }
.preview-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; border-radius: 13px; margin-bottom: 16px;
  background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); color: #fcd34d;
}
.preview-banner > .icon { width: 1.15em; height: 1.15em; }
.preview-banner > div { flex: 1; min-width: 180px; color: #fde68a; }
.preview-banner b { display: block; font-size: .82rem; }
.preview-banner span { font-size: .76rem; opacity: .85; }
.app-header {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: flex-start;
  padding: 26px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); margin-bottom: 24px;
}
.app-header__icon { position: relative; width: 128px; height: 128px; flex: none; }
.app-header__icon img { width: 128px; height: 128px; border-radius: 28px; object-fit: cover; box-shadow: var(--shadow-sm); }
.app-header__platform { position: absolute; right: -5px; bottom: -5px; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); border: 3px solid var(--surface); color: var(--brand-3); }
.app-header__platform .icon { width: .95em; height: 1em; }
.app-header__titles { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.app-header__titles h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.app-header__byline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 7px 0 12px; font-size: .78rem; color: var(--muted); }
.app-header__byline a { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-3); font-weight: 700; }
.app-header__byline a img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.app-header__byline .icon { width: .9em; height: .9em; }
.app-header__desc { font-size: .9rem; line-height: 1.6; color: var(--text-soft); max-width: 680px; }
.app-header__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.app-rating-box { display: flex; align-items: center; gap: 9px; }
.app-rating-box > b { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; }
.app-rating-box > div { display: flex; flex-direction: column; gap: 3px; }
.app-rating-box span { font-size: .66rem; color: var(--muted-2); }
.app-rating-box .stars { --size: 12px; }
.meta-sep { width: 1px; height: 30px; background: var(--border); }
.app-meta-stat { display: flex; flex-direction: column; gap: 1px; }
.app-meta-stat b { font-size: .9rem; }
.app-meta-stat > span { font-size: .65rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.app-header__actions { width: 280px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.btn--download { width: 100%; justify-content: flex-start; gap: 11px; padding: 13px 16px; }
.btn--download > .icon { width: 22px; height: 22px; }
.btn--download > span { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.btn--download b { font-size: .92rem; }
.btn--download small { font-size: .66rem; font-weight: 600; opacity: .8; }
.app-header__secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.app-header__secondary form { display: flex; }
.app-header__secondary .btn { width: 100%; }
.app-header__hash { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: .68rem; color: var(--muted-2); }
.app-header__hash .icon { width: .9em; height: .9em; color: var(--green); }
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; align-items: start; }
.app-content, .app-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; min-width: 0; }
.panel-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 15px; }
.panel-card__head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; letter-spacing: -.015em; }
.panel-card__head h2 .icon { color: var(--brand-3); width: 1.05em; height: 1.05em; }
.panel-card__head > span { font-size: .72rem; color: var(--muted-2); }
.panel-card__head .link-arrow { font-size: .78rem; }
.gallery { display: flex; flex-direction: column; gap: 9px; }
.gallery__main { position: relative; aspect-ratio: 16 / 9; background: #090a10; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.gallery__slide { position: absolute; inset: 0; padding: 0; opacity: 0; visibility: hidden; transition: opacity .25s; }
.gallery__slide.is-active { opacity: 1; visibility: visible; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; background: rgba(10, 11, 18, .65); border: 1px solid rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); z-index: 2; }
.gallery__nav:hover { background: rgba(10, 11, 18, .9); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__count { position: absolute; right: 10px; bottom: 10px; background: rgba(10, 11, 18, .68); color: #d9dcec; padding: 3px 9px; border-radius: 999px; font-size: .7rem; z-index: 2; }
.gallery__count b { color: #fff; }
.gallery__thumbs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.gallery__thumbs button { width: 76px; height: 52px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); opacity: .55; flex: none; padding: 0; }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 200px; border: 1px dashed var(--border-strong); border-radius: 13px; color: var(--muted); }
.gallery-placeholder span { font-size: 2.4rem; }
.gallery-placeholder p { font-size: .82rem; max-width: 320px; text-align: center; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 5, 9, .94); display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__close:hover { background: rgba(255, 255, 255, .2); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tag-list a, .tag-list > span { font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.tag-list a:hover { color: var(--brand-3); border-color: rgba(59, 130, 246, .4); }
.version-list { display: flex; flex-direction: column; }
.version-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.version-row:last-child { border-bottom: 0; padding-bottom: 0; }
.version-row:first-child { padding-top: 0; }
.version-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--muted-2); margin-top: 5px; flex: none; }
.version-row.is-current .version-row__dot { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 4px rgba(56, 189, 248, .12); }
.version-row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.version-row__info b { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: .88rem; }
.version-row__info small { color: var(--muted-2); font-size: .72rem; }
.version-row__info p { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.review-summary { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 17px; }
.review-summary--stack { grid-template-columns: 130px 1fr; }
.review-score { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.review-score > b { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; }
.review-score .stars { --size: 13px; }
.review-score span { font-size: .68rem; color: var(--muted-2); }
.review-bars { display: flex; flex-direction: column; gap: 5px; }
.review-bar { display: flex; align-items: center; gap: 8px; font-size: .7rem; color: var(--muted); }
.review-bar > span:first-child { display: inline-flex; align-items: center; gap: 3px; width: 30px; flex: none; }
.review-bar__track { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.review-bar__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-3)); }
.review-bar b { width: 26px; text-align: right; font-size: .68rem; color: var(--muted-2); flex: none; }
.review-form-wrap { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: var(--surface-2); margin-bottom: 18px; }
.review-form-wrap__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-form-wrap__head img { border-radius: 11px; object-fit: cover; }
.review-form-wrap__head b { display: block; font-size: .88rem; }
.review-form-wrap__head small { color: var(--muted); font-size: .76rem; }
.review-form { display: flex; flex-direction: column; gap: 11px; }
.star-input { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.star-input label { cursor: pointer; color: var(--star-empty); transition: color .12s, transform .12s; padding: 1px; }
.star-input label .icon { width: 24px; height: 24px; }
.star-input label:hover { transform: scale(1.12); }
.star-input label:hover, .star-input label:has(~ label:hover),
.star-input label:has(input:checked), .star-input label:has(~ label input:checked) { color: var(--star); }
.star-input label:has(input:checked) .icon { fill: var(--star); }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input em { font-style: normal; font-size: .74rem; color: var(--muted); margin-left: 7px; }
.review-form__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-form__foot .field { flex: 1; min-width: 180px; }
.review-login { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: 14px; margin-bottom: 17px; }
.review-login > span { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-3); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.review-login > div { flex: 1; min-width: 180px; }
.review-login b { display: block; font-size: .85rem; }
.review-login p { font-size: .76rem; color: var(--muted); }
.review-list { display: flex; flex-direction: column; }
.review { display: flex; gap: 11px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review__avatar { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; }
.review__body { flex: 1; min-width: 0; }
.review__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.review__head b { font-size: .86rem; }
.review__head small { display: block; color: var(--muted-2); font-size: .7rem; }
.review__stars .stars { --size: 11px; }
.review__body h4 { font-size: .87rem; margin: 6px 0 2px; }
.review__body p { font-size: .82rem; line-height: 1.6; color: var(--text-soft); }
.review__device { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .68rem; color: var(--muted-2); }
.review__device .icon { width: .9em; height: .9em; }
.review-empty { display: flex; align-items: center; gap: 9px; padding: 18px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .83rem; }
.review-empty .icon { color: var(--brand-3); }
.app-sidebar .sidebar-card, .sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.sidebar-card h3 { display: flex; align-items: center; gap: 7px; font-size: .92rem; margin-bottom: 13px; }
.sidebar-card h3 .icon { color: var(--brand-3); width: 1em; height: 1em; }
.info-list { display: flex; flex-direction: column; gap: 0; }
.info-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .78rem; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted-2); flex: none; }
.info-list dd { text-align: right; color: var(--text-soft); font-weight: 600; display: flex; align-items: center; gap: 4px; justify-content: flex-end; flex-wrap: wrap; min-width: 0; }
.info-list dd .icon { width: .9em; height: .9em; }
.info-list--inline > div { padding: 6px 0; }
.info-list--inline dt { font-size: .7rem; }
.info-list--inline dd { font-size: .74rem; }
.sidebar-card__actions { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.sidebar-link { display: flex; align-items: center; gap: 7px; padding: 6px 2px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.sidebar-link:hover { color: var(--brand-3); }
.sidebar-link .icon { width: .95em; height: .95em; }
.dev-profile { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 9px; }
.dev-profile:hover { border-color: var(--border-strong); }
.dev-profile img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.dev-profile > span { flex: 1; min-width: 0; }
.dev-profile b { display: flex; align-items: center; gap: 3px; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-profile b .icon { color: var(--brand-3); width: .85em; height: .85em; }
.dev-profile small { color: var(--muted); font-size: .72rem; }
.sidebar-card > .btn--block + .sidebar-link { margin-top: 6px; }
.app-security { text-align: center; }
.security-badge { width: 44px; height: 44px; border-radius: 13px; background: rgba(52, 211, 153, .12); color: var(--green); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.app-security h3 { justify-content: center; }
.app-security p { font-size: .76rem; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.hash-box { display: block; font-size: .62rem; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; }
.report-box > summary { list-style: none; display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.report-box > summary::-webkit-details-marker { display: none; }
.report-box > summary .icon { color: #fca5a5; width: 1em; height: 1em; }
.report-box[open] > summary { color: var(--text); }
.report-box form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* --------------------------- Download page ------------------------ */
.blank-body { min-height: 100vh; }
.download-page { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 18px; overflow: hidden; }
.download-page__bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, .2), transparent 60%); }
.download-page__bg span { position: absolute; border-radius: 50%; filter: blur(80px); }
.download-page__bg span:first-child { width: 420px; height: 420px; background: #1e3a8a; top: -160px; left: -80px; opacity: .45; }
.download-page__bg span:last-child { width: 360px; height: 360px; background: #0e7490; bottom: -120px; right: -80px; opacity: .25; }
.download-card { position: relative; z-index: 1; width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; }
.download-card__brand { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.download-card__brand > span { font-size: .68rem; color: var(--green); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.download-card__icon { position: relative; margin-bottom: 15px; }
.download-card__icon img { width: 92px; height: 92px; border-radius: 22px; object-fit: cover; }
.download-card__check { position: absolute; right: -5px; bottom: -5px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #062b1c; display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--surface); }
.download-card__check .icon { width: .95em; height: .95em; }
.download-card h1 { font-size: 1.6rem; margin: 4px 0 3px; }
.download-card__meta { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.download-card__meta b { color: var(--text); }
.download-progress { width: 100%; max-width: 300px; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 8px; }
.download-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--lime)); animation: progress 5s var(--ease) forwards; }
@keyframes progress { to { width: 100%; } }
.download-card__hint { font-size: .74rem; color: var(--muted-2); margin-bottom: 14px; }
.download-card > .btn--block { max-width: 340px; }
.download-card__note { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; color: var(--muted-2); margin-top: 9px; }
.download-card__note .icon { width: .9em; height: .9em; }
.download-hash { width: 100%; margin-top: 18px; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); text-align: left; }
.download-hash span { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 800; margin-bottom: 2px; }
.download-hash code { border: 0; background: none; padding: 0; font-size: .64rem; display: block; overflow: hidden; text-overflow: ellipsis; }
.download-changelog { width: 100%; margin-top: 12px; text-align: left; border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; }
.download-changelog summary { font-size: .8rem; font-weight: 700; cursor: pointer; }
.download-changelog p { font-size: .78rem; color: var(--muted); margin-top: 7px; }
.download-steps { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 20px 0; }
.download-steps > div { text-align: center; padding: 11px 8px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); }
.download-steps span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-3); font-size: .7rem; font-weight: 800; margin-bottom: 5px; }
.download-steps p { font-size: .68rem; line-height: 1.45; color: var(--muted); }
.download-steps b { color: var(--text-soft); }
.download-card__footer { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 15px; font-size: .76rem; }
.download-card__footer a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; }
.download-card__footer a:hover { color: var(--brand-3); }
.download-card__footer .icon { width: .9em; height: .9em; }

/* ------------------------- Developer profile ---------------------- */
.dev-hero { position: relative; overflow: hidden; padding: 24px 0 44px; background: radial-gradient(ellipse 70% 100% at 30% 0%, rgba(59, 130, 246, .26), transparent 65%), linear-gradient(180deg, #0d1424, var(--bg)); border-bottom: 1px solid var(--border); }
.dev-hero__bg span { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: #0e7490; filter: blur(100px); opacity: .2; top: -180px; right: -100px; }
[data-theme="light"] .dev-hero { background: radial-gradient(ellipse 70% 100% at 30% 0%, rgba(59, 130, 246, .16), transparent 65%), linear-gradient(180deg, #e6eefb, var(--bg)); }
.dev-hero__profile { position: relative; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dev-hero__avatar { width: 104px; height: 104px; border-radius: 28px; object-fit: cover; border: 3px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow); }
.dev-hero__info { flex: 1; min-width: 240px; }
.dev-hero__info h1 { display: flex; align-items: center; gap: 7px; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 5px 0 4px; }
.dev-hero__info h1 .icon { color: var(--brand-3); width: .7em; height: .7em; }
.dev-hero__handle { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: .78rem; color: var(--muted); }
.dev-hero__handle .icon { width: .9em; height: .9em; }
.dev-hero__bio { font-size: .86rem; color: var(--text-soft); margin: 8px 0 7px; max-width: 620px; }
.dev-hero__web { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--brand-3); }
.dev-hero__web .icon { width: .95em; height: .95em; }
.dev-hero__stats { display: flex; gap: 9px; flex-wrap: wrap; }
.dev-hero__stats > div { min-width: 108px; padding: 10px 14px; border-radius: 13px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); text-align: center; }
[data-theme="light"] .dev-hero__stats > div { background: rgba(255, 255, 255, .6); border-color: var(--border); }
.dev-hero__stats b { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.dev-hero__stats span { font-size: .63rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
/* ------------------------------- Auth ----------------------------- */
.auth-body { background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 100vh; }
.auth-aside {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 30px 42px; color: #fff;
  background:
    radial-gradient(ellipse 70% 70% at 15% 0%, rgba(59, 130, 246, .35), transparent 65%),
    radial-gradient(ellipse 60% 60% at 90% 90%, rgba(34, 211, 238, .12), transparent 60%),
    linear-gradient(150deg, #0d1626, #0a0c16 70%);
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.auth-aside__glow { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--brand); filter: blur(140px); opacity: .18; top: 20%; left: -100px; }
.auth-aside__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.auth-aside__top .logo__text { color: #fff; }
.auth-aside__top .logo__text span { color: var(--brand-3); }
.auth-aside__top .logo__text small { color: rgba(255, 255, 255, .4); }
.auth-aside__content { position: relative; z-index: 2; margin: auto 0; max-width: 520px; padding: 40px 0; }
.auth-aside__content h2 { color: #fff; font-size: clamp(1.75rem, 2.7vw, 2.45rem); letter-spacing: -.03em; margin: 14px 0 12px; }
.auth-aside__content h2 em { font-style: normal; color: var(--lime); }
.auth-aside__content > p { color: #a9aec6; font-size: .95rem; line-height: 1.7; max-width: 440px; }
.auth-benefits { display: flex; flex-direction: column; gap: 13px; margin-top: 25px; }
.auth-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: #a9aec6; }
.auth-benefits li .icon { color: var(--lime); width: 1.05em; height: 1.05em; margin-top: 2px; }
.auth-benefits b { color: #fff; }
.auth-aside__apps { position: relative; height: 0; z-index: 1; }
.float-app {
  position: absolute; width: 54px; height: 54px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); box-shadow: 0 18px 40px -18px #000; animation: float 6s ease-in-out infinite;
}
.float-app--1 { left: 4%; bottom: 120px; animation-delay: -.5s; }
.float-app--2 { left: 25%; bottom: 55px; animation-delay: -2s; }
.float-app--3 { right: 18%; bottom: 150px; animation-delay: -3.5s; }
.float-app--4 { right: 2%; bottom: 45px; animation-delay: -1.2s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.auth-aside__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .72rem; color: rgba(255, 255, 255, .4); }
.auth-aside__foot a { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .68); font-weight: 600; }
.auth-aside__foot a:hover { color: #fff; }
.auth-aside__foot .icon { width: .9em; height: .9em; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 36px 24px; min-height: 100vh; }
.auth-main__inner { width: 100%; max-width: 440px; }
.auth-mobile-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.auth-mobile-head > a { font-size: .8rem; color: var(--muted); font-weight: 600; }
.auth-card { display: flex; flex-direction: column; gap: 18px; }
.auth-card__head .eyebrow { margin-bottom: 7px; }
.auth-card__head h1 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 6px; }
.auth-card__head p { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auth-link { font-size: .78rem; font-weight: 700; color: var(--brand-3); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: .7rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { text-align: center; font-size: .82rem; color: var(--muted); }
.auth-switch a { color: var(--brand-3); font-weight: 700; }
.auth-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.auth-trust span { display: inline-flex; align-items: center; gap: 4px; font-size: .66rem; color: var(--muted-2); }
.auth-trust .icon { width: .9em; height: .9em; color: var(--green); }
.auth-note { display: flex; gap: 9px; padding: 12px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.auth-note .icon { color: var(--brand-3); flex: none; margin-top: 2px; width: 1.05em; height: 1.05em; }
.auth-note p { font-size: .76rem; line-height: 1.55; }
.account-type { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account-type label {
  display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: .18s;
}
.account-type label:hover { border-color: var(--border-strong); }
.account-type label.is-active { border-color: var(--brand); background: var(--brand-soft); }
.account-type input { position: absolute; opacity: 0; width: 0; height: 0; }
.account-type__icon { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.account-type label.is-active .account-type__icon { background: var(--brand); color: #fff; }
.account-type b { display: block; font-size: .78rem; }
.account-type small { color: var(--muted); font-size: .66rem; line-height: 1.35; display: block; }
.auth-body .flash-stack { position: static; width: 100%; margin-bottom: 16px; }

/* ------------------------ Developer program ----------------------- */
.dev-program-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 40px; background: linear-gradient(120deg, #101d33, #0a1724); border: 1px solid rgba(59, 130, 246, .28); margin-bottom: 22px; }
.dev-program-hero__bg { position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, .09), transparent 45%), radial-gradient(circle at 15% 90%, rgba(59, 130, 246, .3), transparent 55%); }
.dev-program-hero__content { position: relative; z-index: 1; max-width: 700px; }
.dev-program-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 10px 0; }
.dev-program-hero h1 span { color: var(--lime); }
.dev-program-hero p { color: #b7bdd4; font-size: .95rem; line-height: 1.7; max-width: 620px; }
.dev-program-hero__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.dev-program-hero form { margin-top: 19px; }
.dev-program-hero__note { display: block; margin-top: 11px; color: #8f96ad; font-size: .72rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 22px; }
.benefit-card { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.benefit-card > span { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-3); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.benefit-card h3 { font-size: .94rem; margin-bottom: 5px; }
.benefit-card p { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.dev-process { margin-bottom: 24px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.process-steps li { display: flex; gap: 10px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.process-steps li > span { font-family: var(--font-display); font-size: .8rem; font-weight: 800; color: var(--brand-3); background: var(--brand-soft); width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.process-steps b { display: block; font-size: .85rem; }
.process-steps p { font-size: .74rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.dev-faq { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.dev-faq h2 { font-size: 1.2rem; margin-bottom: 12px; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; cursor: pointer; padding: 12px 26px 12px 0; font-size: .87rem; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--brand-3); font-size: 1.1rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { font-size: .8rem; color: var(--muted); line-height: 1.65; padding-bottom: 13px; max-width: 780px; }

/* ------------------------------- Legal ---------------------------- */
.page-hero--page { padding: 25px 0 36px; }
.page-hero__glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: var(--brand); filter: blur(130px); opacity: .13; top: -250px; left: 15%; }
.page-hero__lead { max-width: 600px; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.legal-content { padding: 30px; }
.legal-content .prose { max-width: 760px; }
.legal-nav { display: flex; flex-direction: column; gap: 2px; }
.legal-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 9px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.legal-nav a:hover { background: var(--surface-2); color: var(--text); }
.legal-nav a.is-active { background: var(--brand-soft); color: var(--brand-3); }
.legal-nav a .icon { width: .95em; height: .95em; }
.legal-nav a .icon:last-child { margin-left: auto; opacity: .5; width: .8em; height: .8em; }
.legal-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding: 20px; border-radius: 15px; border: 1px solid rgba(59, 130, 246, .28); background: var(--brand-soft); }
.legal-cta h3 { margin: 4px 0 3px; font-size: 1.05rem; }
.legal-cta p { font-size: .8rem; color: var(--muted); max-width: 420px; }

/* ------------------------------- Error ---------------------------- */
.error-page { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; overflow: hidden; }
.error-page__bg { position: absolute; inset: 0; }
.error-page__orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.error-page__orb--1 { width: 480px; height: 480px; background: #1e3a8a; top: -200px; left: -100px; opacity: .45; }
.error-page__orb--2 { width: 400px; height: 400px; background: #0e7490; bottom: -180px; right: -100px; opacity: .25; }
.error-page__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); opacity: .5; }
.error-page__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 560px; }
.error-page__brand { margin-bottom: 24px; }
.error-page__code { position: relative; font-family: var(--font-display); font-size: clamp(4.5rem, 12vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; background: linear-gradient(100deg, var(--brand-3), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.error-page__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-3); margin: -8px 0 14px; box-shadow: var(--shadow-sm); }
.error-page__icon .icon { width: 23px; height: 23px; }
.error-page h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 7px; }
.error-page__inner > p { font-size: .88rem; color: var(--muted); max-width: 440px; }
.error-page__actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin: 19px 0 0; }
.error-page__search { position: relative; display: flex; align-items: center; width: min(400px, 100%); margin: 24px 0 16px; }
.error-page__search > .icon { position: absolute; left: 12px; color: var(--muted-2); }
.error-page__search input { width: 100%; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); padding: 0 92px 0 37px; font-size: .84rem; }
.error-page__search input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.error-page__search .btn { position: absolute; right: 4px; height: 34px; }
.error-page__links { display: flex; flex-wrap: wrap; gap: 14px; font-size: .73rem; color: var(--muted-2); }
.error-page__links a:hover { color: var(--brand-3); }
/* =================================================================
   PANELES · Cuenta, desarrollador y administración
   ================================================================= */

/* ---------------------------- Panel shell ------------------------- */
.panel-body { background: var(--bg-soft); }
.panel-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.panel-sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 70;
  display: flex; flex-direction: column; gap: 15px;
  padding: 18px 15px; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--border);
  scrollbar-width: thin;
}
.panel-sidebar__brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 3px 0; }
.panel-sidebar__brand .logo__text { font-size: 1rem; }
.panel-mode {
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-3); background: var(--brand-soft); border: 1px solid rgba(59, 130, 246, .24);
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.panel-user {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border);
}
.panel-user img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; flex: none; }
.panel-user > div { min-width: 0; }
.panel-user b { display: block; font-size: .83rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-user small { display: block; color: var(--muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav a {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: 10px; color: var(--muted); font-size: .82rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.panel-nav a:hover { background: var(--surface-2); color: var(--text); }
.panel-nav a.is-active { background: var(--brand-soft); color: var(--brand-3); }
.panel-nav a .icon { width: 1.05em; height: 1.05em; flex: none; }
.panel-nav__badge {
  margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 800;
}
.panel-nav--secondary { border-top: 1px solid var(--border); margin-top: 2px; padding-top: 11px; }
.panel-nav__label {
  padding: 0 10px 5px; color: var(--muted-2); font-size: .62rem;
  text-transform: uppercase; letter-spacing: .11em; font-weight: 800;
}
.panel-promo {
  padding: 13px; border-radius: 14px; border: 1px solid rgba(59, 130, 246, .24);
  background: linear-gradient(150deg, rgba(59, 130, 246, .14), transparent);
}
.panel-promo > span {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft);
  color: var(--brand-3); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 7px;
}
.panel-promo b { display: block; font-size: .82rem; }
.panel-promo p { color: var(--muted); font-size: .72rem; line-height: 1.45; margin: 2px 0 9px; }
.panel-sidebar__foot {
  margin-top: auto; padding-top: 11px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1px;
}
.panel-sidebar__foot a, .panel-sidebar__foot button {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 9px; color: var(--muted); font-size: .77rem; font-weight: 600; text-align: left; width: 100%;
}
.panel-sidebar__foot a:hover, .panel-sidebar__foot button:hover { background: var(--surface-2); color: var(--text); }
.panel-sidebar__foot .icon { width: .95em; height: .95em; }
.panel-sidebar__foot form { margin: 0; }

.panel-main { display: flex; flex-direction: column; min-width: 0; }
.panel-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 11px 28px;
  background: var(--header-bg); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.panel-search { position: relative; display: flex; align-items: center; flex: 1; max-width: 420px; }
.panel-search > .icon { position: absolute; left: 12px; color: var(--muted-2); width: 1em; height: 1em; pointer-events: none; }
.panel-search input {
  width: 100%; height: 38px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0 12px 0 36px; font-size: .82rem;
}
.panel-search input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.panel-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.panel-avatar img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.panel-menu-btn { display: none; }
.panel-content { width: 100%; max-width: 1360px; margin-inline: auto; padding: 26px 28px 48px; flex: 1; min-width: 0; }
.panel-overlay {
  position: fixed; inset: 0; z-index: 65; background: rgba(3, 4, 8, .62);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s;
}
.panel-overlay.is-visible { opacity: 1; }

/* ------------------------------ Page head ------------------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 5px 0 4px; }
.page-head p { color: var(--muted); font-size: .85rem; line-height: 1.55; max-width: 650px; }
.page-head__actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.page-head__app { display: flex; align-items: center; gap: 13px; min-width: 0; }
.page-head__app > img { width: 62px; height: 62px; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); flex: none; }
.page-head__app .eyebrow { margin-bottom: 3px; }
.page-head__app h1 { margin: 0 0 2px; }
.page-head__app p { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; }
.page-head__app p .icon { width: .95em; height: .95em; }

/* ------------------------------ Stats ----------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
.stat-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 0 11px; align-items: center; padding: 15px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 15px;
  transition: transform .18s var(--ease), border-color .18s;
}
a.stat-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.stat-card__icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; grid-row: span 2; flex: none; }
.stat-card__icon .icon { width: 1.15em; height: 1.15em; }
.stat-card__icon--violet { background: rgba(59, 130, 246, .14); color: #93c5fd; }
.stat-card__icon--cyan { background: rgba(34, 211, 238, .13); color: #67e8f9; }
.stat-card__icon--lime { background: rgba(56, 189, 248, .11); color: #7dd3fc; }
.stat-card__icon--pink { background: rgba(244, 114, 182, .13); color: #f9a8d4; }
[data-theme="light"] .stat-card__icon--violet { color: #1d4ed8; }
[data-theme="light"] .stat-card__icon--cyan { color: #0e7490; }
[data-theme="light"] .stat-card__icon--lime { color: #0369a1; }
[data-theme="light"] .stat-card__icon--pink { color: #be185d; }
.stat-card > div { min-width: 0; }
.stat-card > div b { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; letter-spacing: -.02em; }
.stat-card > div span { display: block; color: var(--muted); font-size: .72rem; margin-top: 1px; }
.stat-card > small {
  grid-column: 1 / -1; display: block; margin-top: 9px; padding-top: 8px;
  border-top: 1px solid var(--border); color: var(--muted-2); font-size: .68rem;
}
.stat-card > em { position: absolute; top: 14px; right: 13px; color: var(--muted-2); }
.stat-card > em .icon { width: .95em; height: .95em; }

/* ---------------------------- Dash grid --------------------------- */
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 13px; align-items: start; }
.dash-grid--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.dash-grid > .panel-card { height: 100%; }

/* ------------------------------ Charts ---------------------------- */
.chart { display: flex; align-items: flex-end; gap: 5px; height: 168px; padding-top: 18px; }
.chart__col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.chart__bar {
  position: relative; width: 100%; max-width: 46px; height: var(--h, 4%); min-height: 4px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--brand-3), var(--brand-2));
  transition: filter .15s;
}
.chart__bar i {
  position: absolute; top: -16px; left: 50%; translate: -50% 0;
  font-style: normal; font-size: .6rem; color: var(--muted-2);
  opacity: 0; transition: opacity .15s; white-space: nowrap;
}
.chart__col:hover .chart__bar { filter: brightness(1.16); }
.chart__col:hover .chart__bar i { opacity: 1; }
.chart__col small { color: var(--muted-2); font-size: .58rem; white-space: nowrap; }
.chart--wide { height: 190px; }
.chart--bars .chart__bar:nth-child(1) { background: linear-gradient(180deg, var(--brand-3), var(--brand-2)); }

/* ------------------------- Mini lists / empties -------------------- */
.mini-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 26px 14px; text-align: center; color: var(--muted); }
.mini-empty > .icon { width: 26px; height: 26px; color: var(--muted-2); }
.mini-empty p { font-size: .8rem; line-height: 1.5; max-width: 340px; color: var(--muted); }
.mini-empty .btn { margin-top: 6px; }
.mini-apps { display: flex; flex-direction: column; }
.mini-app { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mini-app:first-child { padding-top: 0; }
.mini-app:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-app:hover b { color: var(--brand-3); }
.mini-app img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; }
.mini-app > span { flex: 1; min-width: 0; }
.mini-app b { display: block; font-size: .81rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-app small { display: block; color: var(--muted); font-size: .69rem; }
.mini-app .stars { --size: 9px; }
.mini-app__rank { width: 18px; flex: none; font-family: var(--font-display); font-weight: 800; font-size: .8rem; color: var(--muted-2); }

.pending-list { display: flex; flex-direction: column; }
.pending-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pending-item:first-child { padding-top: 0; }
.pending-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pending-item:hover b { color: var(--brand-3); }
.pending-item img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.pending-item__body { flex: 1; min-width: 0; }
.pending-item__body b { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-item__body small { display: block; color: var(--muted); font-size: .69rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-mini-list { display: flex; flex-direction: column; }
.user-mini { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.user-mini:first-child { padding-top: 0; }
.user-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.user-mini img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.user-mini > span:nth-child(2) { flex: 1; min-width: 0; }
.user-mini b { display: block; font-size: .79rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-mini small { display: block; color: var(--muted); font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.quick-actions a {
  display: flex; flex-direction: column; padding: 13px;
  border: 1px solid var(--border); border-radius: 13px; background: var(--surface);
  transition: transform .18s var(--ease), border-color .18s;
}
.quick-actions a:hover { transform: translateY(-2px); border-color: var(--brand); }
.quick-actions a > span {
  width: 33px; height: 33px; border-radius: 9px; background: var(--brand-soft);
  color: var(--brand-3); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 7px;
}
.quick-actions b { font-size: .8rem; }
.quick-actions small { color: var(--muted); font-size: .69rem; }

/* ------------------------------ Tables ---------------------------- */
.table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; }
.data-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .79rem; }
.data-table th {
  padding: 9px 10px; text-align: left; white-space: nowrap;
  color: var(--muted-2); font-size: .64rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .13s; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table .chip { font-size: .65rem; }
.data-table code { font-size: .72rem; }
.data-table .icon { width: 1em; height: 1em; vertical-align: -.14em; }
.table-app { display: flex; align-items: center; gap: 9px; min-width: 0; }
.table-app img, .table-app > .admin-page-icon { width: 41px; height: 41px; border-radius: 10px; object-fit: cover; flex: none; }
.table-app > span { min-width: 0; }
.table-app b { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-app small { display: block; color: var(--muted); font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.table-actions form { display: inline-flex; margin: 0; }
.table-actions .icon-btn { width: 31px; height: 31px; border-radius: 8px; }
.table-actions .btn--sm { padding: 5px 9px; }
.admin-table td { white-space: nowrap; }
.admin-table td:first-child { white-space: normal; min-width: 220px; }
.admin-table--users td:first-child { min-width: 250px; }
.audit-table { min-width: 720px; }
.audit-table td { font-size: .75rem; white-space: normal; }
.audit-target { font-size: .72rem; color: var(--muted); }
.audit-target b { color: var(--text-soft); }
.tr-sub td { padding-top: 0; padding-bottom: 10px; background: var(--surface-2); }
.hash-line { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: .67rem; flex-wrap: wrap; }
.hash-line code { font-size: .64rem; }
.progress { display: block; width: 90px; max-width: 100%; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-3)); }
.dev-table { min-width: 860px; }

/* --------------------------- Filter bar --------------------------- */
.filter-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  padding: 10px; margin-bottom: 13px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.filter-bar__search { flex: 1; min-width: 210px; }
.filter-bar .input-icon input {
  width: 100%; height: 37px; padding: 0 12px 0 36px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; font-size: .81rem;
}
.filter-bar .input-icon input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.filter-bar .btn { height: 37px; }
.filter-bar .select-wrap select { height: 37px; }

/* ----------------------------- Row pop ---------------------------- */
.row-pop { position: relative; display: inline-flex; }
.row-pop > summary { list-style: none; cursor: pointer; user-select: none; }
.row-pop > summary::-webkit-details-marker { display: none; }
.row-pop[open] > summary { border-color: var(--brand); color: var(--brand-3); }
.row-pop__panel {
  position: absolute; top: calc(100% + 7px); right: 0; z-index: 55;
  width: min(340px, calc(100vw - 40px)); padding: 14px;
  border-radius: 13px; border: 1px solid var(--border-strong);
  background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 11px;
}
.row-pop__panel > form { display: flex; flex-direction: column; gap: 9px; }
.row-pop__panel .btn--sm { width: fit-content; }
.row-pop__panel .field input, .row-pop__panel .field select, .row-pop__panel .field textarea { font-size: .8rem; padding: 8px 10px; }
.row-pop__panel .field > span { font-size: .71rem; }

/* ------------------------- Review / status ------------------------ */
.status-box {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 13px;
}
.status-box > span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-top: 5px; flex: none; }
.status-box b { display: block; font-size: .82rem; }
.status-box small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.45; margin-top: 2px; }
.status-box--success { border-color: rgba(52, 211, 153, .28); background: rgba(52, 211, 153, .06); }
.status-box--success > span { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .12); }
.status-box--warning { border-color: rgba(251, 191, 36, .28); background: rgba(251, 191, 36, .06); }
.status-box--warning > span { background: var(--yellow); box-shadow: 0 0 0 4px rgba(251, 191, 36, .12); }
.status-box--danger { border-color: rgba(248, 113, 113, .28); background: rgba(248, 113, 113, .06); }
.status-box--danger > span { background: var(--red); box-shadow: 0 0 0 4px rgba(248, 113, 113, .12); }
.status-box--muted > span { background: var(--muted-2); box-shadow: 0 0 0 4px rgba(148, 163, 184, .1); }
.status-actions { display: flex; flex-direction: column; gap: 8px; }

.flag-list { display: flex; flex-direction: column; gap: 7px; }
.flag-list form { margin: 0; }
.flag-row {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); text-align: left;
}
.flag-row:hover { border-color: var(--border-strong); }
.flag-row__icon {
  width: 31px; height: 31px; border-radius: 8px; flex: none;
  background: var(--surface-3); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.flag-row.is-on .flag-row__icon { background: var(--brand-soft); color: var(--brand-3); }
.flag-row > span:nth-child(2) { flex: 1; min-width: 0; }
.flag-row b { display: block; font-size: .79rem; }
.flag-row small { display: block; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.flag-row .switch { pointer-events: none; }

/* --------------------------- Admin review ------------------------- */
.admin-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 13px; align-items: start; }
.admin-review-main { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.admin-review-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.review-app-head { display: flex; align-items: flex-start; gap: 13px; padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--border); }
.review-app-head img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; flex: none; }
.review-app-head h3 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 1.1rem; margin-bottom: 3px; }
.review-app-head p { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-bottom: 7px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.detail-grid > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .75rem; }
.detail-grid dt { color: var(--muted-2); flex: none; }
.detail-grid dd { color: var(--text-soft); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.detail-grid dd a { color: var(--brand-3); }
.admin-description { margin-top: 13px; padding: 12px; max-height: 260px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; }
.detail-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.admin-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 7px; margin-bottom: 11px; }
.admin-shots a { display: block; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.admin-shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.admin-shots a:hover img { transform: scale(1.04); }
.admin-review-list { display: flex; flex-direction: column; }
.admin-review { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.admin-review:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-review img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; }
.admin-review > div { min-width: 0; flex: 1; }
.admin-review b { display: block; font-size: .79rem; }
.admin-review span { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.admin-review span .stars { --size: 9px; }
.admin-review span small { color: var(--muted-2); font-size: .66rem; }
.admin-review strong { display: block; font-size: .78rem; margin-top: 2px; }
.admin-review p { color: var(--muted); font-size: .75rem; line-height: 1.5; margin-top: 1px; }
.admin-report-list { display: flex; flex-direction: column; gap: 8px; }
.admin-report { padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.admin-report__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.admin-report__head small { color: var(--muted-2); font-size: .65rem; }
.admin-report > b { display: block; font-size: .78rem; }
.admin-report p { color: var(--muted); font-size: .74rem; line-height: 1.5; margin-top: 2px; }
.admin-report > small { display: block; color: var(--muted-2); font-size: .66rem; margin-top: 4px; }

/* --------------------------- Admin split -------------------------- */
.admin-split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 13px; align-items: start; }
.admin-split__main, .admin-split__side { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.admin-split--pages { grid-template-columns: minmax(0, 1fr) 320px; margin-top: 13px; }
.admin-cat-list { display: flex; flex-direction: column; gap: 8px; }
.admin-cat {
  padding: 12px; border: 1px solid var(--border); border-left: 3px solid var(--cat, var(--brand));
  border-radius: 12px; background: var(--surface);
}
.admin-cat.is-inactive { opacity: .58; }
.admin-cat__main { display: flex; align-items: flex-start; gap: 11px; }
.admin-cat__icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: color-mix(in srgb, var(--cat, #3b82f6) 18%, transparent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.admin-cat__info { flex: 1; min-width: 0; }
.admin-cat__title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-cat__title b { font-size: .85rem; }
.admin-cat__info small { display: block; color: var(--muted-2); font-size: .69rem; margin-top: 1px; }
.admin-cat__info p { color: var(--muted); font-size: .74rem; line-height: 1.45; margin-top: 3px; }
.admin-cat__actions { display: flex; align-items: flex-start; gap: 5px; flex-wrap: wrap; }

/* -------------------- Settings / editor layouts ------------------- */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 13px; align-items: start; }
.settings-main, .settings-side { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.settings-side { position: sticky; top: 80px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 308px; gap: 13px; align-items: start; }
.editor-main, .editor-side { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.editor-side { position: sticky; top: 80px; }
.settings-side .sidebar-card, .editor-side .sidebar-card { padding: 16px; }
.settings-anchors { display: flex; flex-direction: column; gap: 1px; }
.settings-anchors a { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: .77rem; font-weight: 600; }
.settings-anchors a:hover { background: var(--surface-2); color: var(--text); }
.settings-anchors .icon { width: .95em; height: .95em; }
.sidebar-tip { position: relative; overflow: hidden; }
.sidebar-tip::before {
  content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .22), transparent 70%);
  top: -70px; right: -50px; pointer-events: none;
}
.sidebar-tip__icon {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 8px;
  background: var(--brand-soft); color: var(--brand-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.check-list { display: flex; flex-direction: column; gap: 6px; }
.check-list li { position: relative; padding-left: 15px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-3); }
.sidebar-dev-cta { border-color: rgba(59, 130, 246, .26); background: linear-gradient(150deg, rgba(59, 130, 246, .1), transparent); }
.sidebar-dev-cta p { color: var(--muted); font-size: .75rem; line-height: 1.5; margin-bottom: 10px; }
.danger-zone { border-color: rgba(248, 113, 113, .26); }
.danger-zone h3 { color: #fca5a5; }
.danger-zone p { color: var(--muted); font-size: .76rem; line-height: 1.55; margin-bottom: 10px; }

/* ---------------------------- Platform ---------------------------- */
.platform-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.platform-choice label {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 9px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.platform-choice label:hover { border-color: var(--border-strong); }
.platform-choice label.is-active, .platform-choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.platform-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.platform-choice__icon {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--surface-3); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.platform-choice label.is-active .platform-choice__icon, .platform-choice label:has(input:checked) .platform-choice__icon { background: var(--brand); color: #fff; }
.platform-choice b { display: block; font-size: .77rem; }
.platform-choice small { display: block; color: var(--muted); font-size: .63rem; line-height: 1.3; }
.platform-choice__check {
  position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand); color: #fff; display: none; align-items: center; justify-content: center;
}
.platform-choice label.is-active .platform-choice__check, .platform-choice label:has(input:checked) .platform-choice__check { display: inline-flex; }
.platform-choice__check .icon { width: 10px; height: 10px; }

/* ----------------------------- Uploads ---------------------------- */
.upload-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.upload-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 13px; background: var(--surface-2); }
.upload-box__preview { border-radius: 11px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.upload-box__preview--icon { width: 88px; height: 88px; }
.upload-box__preview--icon img { width: 100%; height: 100%; object-fit: cover; }
.upload-box__preview--banner { width: 100%; aspect-ratio: 16 / 6; }
.upload-box__preview--banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-placeholder { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: .76rem; font-weight: 600; }
.banner-placeholder .icon { width: 1em; height: 1em; }
.upload-box b { display: block; font-size: .82rem; }
.upload-box p { color: var(--muted); font-size: .72rem; line-height: 1.45; margin: 2px 0 8px; }
.upload-box .btn { width: fit-content; }
.upload-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px; border: 1px dashed var(--border-strong); border-radius: 13px;
  background: var(--surface-2); text-align: center;
}
.upload-drop > span { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-3); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 3px; }
.upload-drop b { font-size: .84rem; }
.upload-drop p { color: var(--muted); font-size: .72rem; line-height: 1.45; max-width: 430px; }
.upload-drop input[type="file"] { max-width: 100%; margin: 8px 0; font-size: .73rem; color: var(--muted); }
.avatar-upload { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.avatar-upload img { width: 74px; height: 74px; border-radius: 19px; object-fit: cover; flex: none; }
.avatar-upload small { display: block; color: var(--muted-2); font-size: .71rem; margin-top: 5px; }

/* ----------------------- Versions / screenshots ------------------- */
.version-manage { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.version-manage__row { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.version-manage__row.is-current { border-color: rgba(52, 211, 153, .26); background: rgba(52, 211, 153, .05); }
.version-manage__icon { width: 33px; height: 33px; border-radius: 9px; background: var(--surface-3); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.version-manage__row > div:nth-child(2) { flex: 1; min-width: 0; }
.version-manage__row b { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: .79rem; }
.version-manage__row small { display: block; color: var(--muted); font-size: .69rem; }
.version-manage__row small .icon { width: .9em; height: .9em; vertical-align: -.12em; }
.version-manage__actions { display: flex; align-items: center; gap: 3px; }
.version-manage__actions form { margin: 0; display: inline-flex; }
.version-form { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border); }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 7px; margin-bottom: 13px; }
.shot-item { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.shot-item img { width: 100%; height: 100%; object-fit: cover; }
.shot-item__delete {
  position: absolute; top: 5px; right: 5px; width: 25px; height: 25px; border-radius: 7px;
  background: rgba(5, 6, 10, .72); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.shot-item__delete:hover { background: #dc2626; }
.shot-item__delete .icon { width: 12px; height: 12px; }
.shot-item form { position: absolute; top: 0; right: 0; margin: 0; }

/* --------------------------- Notifications ------------------------ */
.notification-list { display: flex; flex-direction: column; }
.notification { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.notification:first-child { padding-top: 0; }
.notification:last-child { border-bottom: 0; padding-bottom: 0; }
.notification.is-unread { background: linear-gradient(90deg, rgba(59, 130, 246, .06), transparent 70%); }
a.notification:hover .notification__body b { color: var(--brand-3); }
.notification__icon {
  width: 33px; height: 33px; border-radius: 9px; flex: none;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.notification__icon .icon { width: 1em; height: 1em; }
.notification--success .notification__icon { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .22); color: #6ee7b7; }
.notification--warning .notification__icon { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .22); color: #fcd34d; }
.notification--danger .notification__icon { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .22); color: #fca5a5; }
.notification--info .notification__icon { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .22); color: #67e8f9; }
.notification__body { flex: 1; min-width: 0; }
.notification__body b { display: block; font-size: .81rem; }
.notification__body small { display: block; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.notification__body em { display: inline-block; font-style: normal; color: var(--muted-2); font-size: .66rem; margin-top: 2px; }
.notification__body p { color: var(--muted); font-size: .77rem; line-height: 1.5; margin-top: 2px; }
.notification__title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.notification__title time { color: var(--muted-2); font-size: .66rem; white-space: nowrap; }
.notification__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--brand-3); font-size: .71rem; font-weight: 700; }
.notification__link .icon { width: .9em; height: .9em; }
.notification__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; margin-top: 6px; }
.notification-list--full .notification { padding: 13px 0; }
.notification-list--full .notification:first-child { padding-top: 0; }

/* ---------------------------- Account ----------------------------- */
.api-access { display: flex; gap: 11px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.api-access__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-3); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.api-access__body { min-width: 0; flex: 1; }
.api-access__body h3 { font-size: .87rem; margin-bottom: 3px; }
.api-access__body p { color: var(--muted); font-size: .76rem; line-height: 1.55; margin-bottom: 9px; }
.api-access__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.api-access__actions form { margin: 0; display: inline-flex; }
.my-review { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.my-review__app { display: flex; align-items: center; gap: 9px; width: 196px; flex: none; min-width: 0; }
.my-review__app img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; flex: none; }
.my-review__app b { display: block; font-size: .81rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-review__app small { display: block; color: var(--muted); font-size: .69rem; }
.my-review__body { flex: 1; min-width: 0; }
.my-review__head { display: flex; align-items: center; justify-content: space-between; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.my-review__body h4 { font-size: .84rem; margin: 3px 0 1px; }
.my-review__body p { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.my-review__body > small { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--muted-2); font-size: .67rem; }
.review-admin-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

/* -------------------------- Admin cards --------------------------- */
.admin-review-card { padding: 15px; }
.admin-review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-review-card__head .table-app { flex: 1; min-width: 170px; }
.admin-review-card__app { width: 37px; height: 37px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-3); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.admin-review-card__body { display: flex; gap: 13px; padding: 11px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.admin-review-card__user { display: flex; align-items: center; gap: 8px; width: 185px; flex: none; min-width: 0; }
.admin-review-card__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-3); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex: none; }
.admin-review-card__user > div { min-width: 0; }
.admin-review-card__user b { display: block; font-size: .78rem; }
.admin-review-card__user small { display: block; color: var(--muted-2); font-size: .66rem; overflow-wrap: anywhere; }
.admin-review-card__content { flex: 1; min-width: 0; }
.admin-review-card__rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.admin-review-card__rating b { font-size: .78rem; }
.admin-review-card__content h3 { font-size: .83rem; margin-bottom: 2px; }
.admin-review-card__content p { color: var(--muted); font-size: .77rem; line-height: 1.55; }
.admin-review-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.admin-review-card__foot > form { margin: 0; display: inline-flex; }
.admin-review-card__foot .chip-row { gap: 5px; }
.admin-review-card__foot .chip-row form { margin: 0; display: inline-flex; }

.admin-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.admin-report-card { display: flex; flex-direction: column; gap: 9px; padding: 15px; }
.admin-report-card__head { display: flex; align-items: center; justify-content: space-between; gap: 7px; flex-wrap: wrap; }
.admin-report-card__head .table-app { flex: 1; min-width: 140px; }
.admin-report-card__reason { display: flex; gap: 9px; padding: 9px; border-radius: 10px; border: 1px solid rgba(248, 113, 113, .2); background: rgba(248, 113, 113, .06); }
.admin-report-card__reason > span { width: 28px; height: 28px; border-radius: 8px; background: rgba(248, 113, 113, .12); color: #fca5a5; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.admin-report-card__reason b { display: block; font-size: .79rem; }
.admin-report-card__reason p { color: var(--muted); font-size: .74rem; line-height: 1.5; margin-top: 2px; }
.admin-report-card__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 3px; }
.admin-report-card__actions > form { margin: 0; display: inline-flex; }
.admin-report-card__resolve { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.admin-report-card__resolve form { margin: 0; display: inline-flex; }

/* ----------------------------- Tabs ------------------------------- */
.admin-tabs {
  display: flex; align-items: center; gap: 3px; flex-wrap: wrap; width: fit-content; max-width: 100%;
  padding: 4px; margin-bottom: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.admin-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: .77rem; font-weight: 700; }
.admin-tabs a:hover { background: var(--surface-2); color: var(--text); }
.admin-tabs a.is-active { background: var(--brand-soft); color: var(--brand-3); }
.admin-tabs em { font-style: normal; padding: 1px 6px; border-radius: 999px; background: var(--surface-3); color: var(--muted-2); font-size: .62rem; }
.admin-tabs a.is-active em { background: var(--brand); color: #fff; }

/* --------------------------- Link chips --------------------------- */
.link-chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.link-chip { display: flex; flex-direction: column; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); min-width: 0; }
.link-chip:hover { border-color: var(--brand); }
.link-chip b { font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-chip small { color: var(--muted-2); font-size: .65rem; }
.link-chip--missing { border-style: dashed; }
.link-chip--missing b { color: var(--muted); }

/* ---------------------------- Dev panel --------------------------- */
.dev-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 30px 16px; text-align: center; }
.dev-empty > span { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-3); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.dev-empty h3 { font-size: 1rem; }
.dev-empty p { color: var(--muted); font-size: .8rem; line-height: 1.55; max-width: 420px; }
.dev-empty .btn { margin-top: 8px; }
.dev-app-list { display: flex; flex-direction: column; }
.dev-app { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dev-app:first-child { padding-top: 0; }
.dev-app:last-child { border-bottom: 0; padding-bottom: 0; }
.dev-app img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; }
.dev-app__main { flex: 1; min-width: 0; }
.dev-app__title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dev-app__title b { font-size: .86rem; }
.dev-app__main > small { display: block; color: var(--muted); font-size: .71rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-app__stats { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 2px; color: var(--muted-2); font-size: .69rem; }
.dev-app__stats span { display: inline-flex; align-items: center; gap: 3px; }
.dev-app__stats .icon { width: .9em; height: .9em; }
.dev-app__actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mini-reviews { display: flex; flex-direction: column; }
.mini-review { padding: 9px 0; border-bottom: 1px solid var(--border); }
.mini-review:first-child { padding-top: 0; }
.mini-review:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-review__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-review__top b { font-size: .79rem; }
.mini-review__top .stars { --size: 9px; }
.mini-review p { color: var(--muted); font-size: .75rem; line-height: 1.5; margin-top: 2px; }
.mini-review small { color: var(--muted-2); font-size: .67rem; }
.mini-review:hover p { color: var(--text-soft); }

/* --------------------------- Inline alerts ------------------------ */
.inline-alert {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; margin: 11px 0;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
  color: var(--text-soft); font-size: .78rem; line-height: 1.5;
}
.inline-alert > .icon { width: 1.05em; height: 1.05em; flex: none; margin-top: 1px; color: var(--muted); }
.inline-alert--warning { border-color: rgba(251, 191, 36, .26); background: rgba(251, 191, 36, .06); }
.inline-alert--warning > .icon { color: #fbbf24; }
.inline-alert--info { border-color: rgba(34, 211, 238, .24); background: rgba(34, 211, 238, .05); }
.inline-alert--info > .icon { color: #22d3ee; }
.alert-banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 12px; }
.alert-banner > .icon { width: 1.1em; height: 1.1em; flex: none; margin-top: 2px; }
.alert-banner b { display: block; font-size: .83rem; }
.alert-banner p { color: var(--text-soft); font-size: .79rem; line-height: 1.5; margin-top: 2px; }
.alert-banner small { display: block; color: var(--muted); font-size: .71rem; margin-top: 3px; }
.alert-banner--danger { border-color: rgba(248, 113, 113, .28); background: rgba(248, 113, 113, .06); }
.alert-banner--danger > .icon { color: #f87171; }

/* -------------------------- Star input fix ------------------------ */
.star-input label .icon { fill: currentColor; fill-opacity: .1; }
.star-input label:hover .icon, .star-input label:has(~ label:hover) .icon,
.star-input label:has(input:checked) .icon, .star-input label:has(~ label input:checked) .icon { fill-opacity: 1; }
.star-input label:has(input:focus-visible) { outline: 2px solid var(--brand-3); outline-offset: 2px; border-radius: 4px; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1180px) {
  .admin-review-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .admin-split { grid-template-columns: minmax(0, 1fr) 290px; }
  .settings-layout, .editor-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { gap: 30px; }
  .site-footer__top { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
  .benefit-grid, .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .panel-shell { grid-template-columns: minmax(0, 1fr); }
  .panel-sidebar {
    position: fixed; inset: 0 auto 0 0; width: 274px;
    transform: translateX(-100%); transition: transform .22s var(--ease);
    box-shadow: var(--shadow); z-index: 72;
  }
  .panel-sidebar.is-open { transform: none; }
  .panel-menu-btn { display: inline-flex; }
  .panel-content { padding: 22px 20px 42px; }
  .panel-topbar { padding: 10px 20px; }
  .admin-review-grid, .admin-split { grid-template-columns: minmax(0, 1fr); }
  .admin-review-side, .settings-side, .editor-side { position: static; }
  .settings-layout, .editor-layout { grid-template-columns: minmax(0, 1fr); }
  .report-admin-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-grid, .dash-grid--wide { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero-showcase { max-width: 560px; margin-inline: auto; }
  .app-layout { grid-template-columns: minmax(0, 1fr); }
  .app-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { display: none; }
  .header-search { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header-register { display: none; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { padding-inline: 16px; }
  .section { padding: 46px 0; }
  .section--tight { padding: 30px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .hero { padding: 38px 0 46px; }
  .hero-stats { gap: 18px; margin-top: 26px; padding-top: 18px; }
  .spotlight { padding: 22px; }
  .spotlight__icon { width: 88px; height: 88px; border-radius: 22px; }
  .platform-strip__link { margin-left: 0; }
  .apps-grid, .apps-grid--catalog { grid-template-columns: minmax(0, 1fr); }
  .app-header { grid-template-columns: minmax(0, 1fr); }
  .app-header__actions { width: 100%; }
  .app-header__actions .btn--download { width: 100%; }
  .app-sidebar { grid-template-columns: minmax(0, 1fr); }
  .catalog-toolbar { align-items: flex-start; }
  .catalog-footer { align-items: flex-start; flex-direction: column; }
  .page-head { margin-bottom: 16px; }
  .page-head__actions { width: 100%; }
  .panel-content { padding: 18px 14px 38px; }
  .panel-topbar { padding: 9px 12px; gap: 8px; }
  .panel-search { max-width: none; }
  .panel-topbar__actions .icon-btn:not(.theme-toggle) { display: none; }
  .panel-topbar__actions .theme-toggle { display: inline-flex; }
  .panel-avatar { margin-left: 2px; }
  .panel-card { padding: 16px; border-radius: 16px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 12px; gap: 0 9px; }
  .stat-card__icon { width: 34px; height: 34px; border-radius: 10px; }
  .stat-card > div b { font-size: 1.15rem; }
  .stat-card > small { font-size: .63rem; }
  .form-grid, .form-grid--3, .upload-grid, .platform-choice, .detail-grid, .link-chip-grid { grid-template-columns: minmax(0, 1fr); }
  .platform-choice { gap: 6px; }
  .review-summary, .review-summary--stack { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .review-score { flex-direction: row; align-items: center; text-align: left; gap: 8px; flex-wrap: wrap; }
  .review-score > b { font-size: 1.7rem; }
  .review-form__foot { align-items: stretch; flex-direction: column; }
  .my-review { flex-direction: column; }
  .my-review__app { width: 100%; }
  .admin-review-card__body { flex-direction: column; gap: 8px; }
  .admin-review-card__user { width: 100%; }
  .admin-review-card__foot { align-items: flex-start; flex-direction: column; }
  .admin-review-card__foot > form { width: 100%; }
  .admin-review-card__foot > form .btn { width: 100%; }
  .review-app-head { flex-direction: column; }
  .dev-app { flex-wrap: wrap; }
  .dev-app__actions { width: 100%; justify-content: flex-end; }
  .filter-bar { padding: 8px; }
  .filter-bar__search { min-width: 100%; }
  .filter-bar .select-wrap { flex: 1; min-width: 130px; }
  .filter-bar .select-wrap select { width: 100%; }
  .upload-box { flex-direction: row; align-items: center; }
  .upload-box__preview--banner { display: none; }
  .upload-box > div:last-child { flex: 1; }
  .admin-cat__main { flex-wrap: wrap; }
  .admin-cat__actions { width: 100%; justify-content: flex-end; }
  .row-pop__panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 80vh; overflow-y: auto; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions a { padding: 11px; }
  .settings-side .sidebar-card, .editor-side .sidebar-card { padding: 14px; }
  .chart { height: 140px; }
  .chart__col small { font-size: .5rem; }
  .site-footer { padding: 38px 0 20px; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
  .to-top { position: absolute; right: 0; top: 16px; }
  .benefit-grid, .process-steps { grid-template-columns: minmax(0, 1fr); }
  .dev-program-hero { padding: 26px 20px; }
  .dev-faq { padding: 17px; }
  .legal-content { padding: 20px; }
  .download-steps { grid-template-columns: minmax(0, 1fr); }
  .download-card { padding: 22px 18px; }
  .auth-body .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-card { padding: 22px; }
  .lightbox { padding: 16px; }
  .lightbox__close { top: 12px; right: 12px; }
  .flash-stack { top: auto; bottom: 14px; right: 12px; left: 12px; width: auto; }
}

@media (max-width: 460px) {
  .panel-topbar .panel-search { display: none; }
  .panel-topbar__actions { margin-left: auto; }
  .header-login { display: none; }
  .hero-search input { padding-right: 92px; }
  .hero-search .btn { padding: 0 14px; }
  .platform-tabs { width: 100%; overflow-x: auto; }
  .platform-tabs a { font-size: .74rem; padding: 6px 9px; }
  .app-header__meta { gap: 10px; }
  .meta-sep { display: none; }
  .gallery__thumbs button { width: 62px; height: 44px; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-actions { grid-template-columns: minmax(0, 1fr); }
  .panel-mode { display: none; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .download-card__footer { flex-direction: column; align-items: flex-start; }
  .admin-tabs { width: 100%; }
  .admin-tabs a { flex: 1; justify-content: center; }
}
/* =================================================================
   INTERACTION SUPPORT
   ================================================================= */
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.flash.is-leaving { opacity: 0; transform: translateX(14px); transition: .2s; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .2s; }
.toast--success { border-color: rgba(52, 211, 153, .4); }
.toast--error { border-color: rgba(248, 113, 113, .45); }
.toast--warning { border-color: rgba(251, 191, 36, .45); }
.toast--info { border-color: rgba(34, 211, 238, .4); }

.search-suggest a.is-active { background: var(--surface-2); }
.search-suggest .suggest-all { background: var(--surface-2); }
.search-suggest .suggest-all:hover { background: var(--surface-3); }
.search-suggest .suggest-all b { color: var(--brand-3); }

.gallery__slide:focus-visible { outline: 2px solid var(--brand-3); outline-offset: -3px; }
.star-input em.is-filled { color: var(--star); font-weight: 700; }
.input-action.is-visible { color: var(--brand-3); background: var(--brand-soft); }
.settings-anchors a.is-active { background: var(--brand-soft); color: var(--brand-3); }
.table-wrap.is-scrollable { scrollbar-width: thin; }
.table-wrap.is-scrollable::-webkit-scrollbar { height: 7px; }
.table-wrap.is-scrollable::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* -------------------------- Mobile navigation ------------------- */
.mobile-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 18px 20px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .55);
}
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted-2);
}
.mobile-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: .86rem;
}
.mobile-search .icon { width: 1.05em; height: 1.05em; }
.mobile-nav nav { display: grid; gap: 2px; margin-top: 12px; }
.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 700;
}
.mobile-nav nav a:hover { background: var(--surface-2); color: var(--text); }
.mobile-nav nav .icon { width: 1.05em; height: 1.05em; color: var(--muted); }
.mobile-nav__cats { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.mobile-nav__cats > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mobile-nav__cats > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-nav__cats a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .74rem;
  font-weight: 600;
}
.mobile-nav__cats a:hover { border-color: var(--brand); color: var(--brand-3); }
@media (max-width: 980px) {
  .mobile-nav:not([hidden]) { display: block; }
}
@media (min-width: 981px) {
  .mobile-nav { display: none !important; }
}
/*__END__*/
