:root {
  --bg: #030507;
  --panel: rgba(14, 17, 22, .9);
  --panel-2: rgba(18, 21, 27, .88);
  --line: rgba(255, 255, 255, .095);
  --line-soft: rgba(255, 255, 255, .055);
  --text: #f6f8fb;
  --muted: #939cab;
  --muted-2: #687181;
  --gold: #f6b91b;
  --gold-2: #ffd15c;
  --green: #00c8a0;
  --radius: 14px;
  --shadow: 0 24px 50px rgba(0, 0, 0, .34);
  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --sidebar: 248px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  color: var(--text);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 78% 3%, rgba(255, 193, 38, .06), transparent 28%),
    radial-gradient(circle at 16% 18%, rgba(255, 193, 38, .035), transparent 28%),
    linear-gradient(180deg, #05080d 0%, #030507 60%, #020304 100%);
  overflow-x: hidden;
}
body.is-detail-open { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
mark { padding: 0 .04em; color: #111; background: linear-gradient(180deg, #ffe08a, var(--gold)); border-radius: 3px; }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  transition: grid-template-columns .34s cubic-bezier(.2,.8,.2,1);
}
.app.sidebar-collapsed { --sidebar: 0px; }
.content { min-width: 0; padding: 0 clamp(22px, 1.65vw, 34px) 42px; transition: padding .25s ease; }

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--sidebar);
  height: 100vh;
  overflow: visible;
  padding: 16px 14px 18px;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(13,16,21,.95), rgba(6,8,11,.97));
  transition: width .34s cubic-bezier(.2,.8,.2,1), padding .34s cubic-bezier(.2,.8,.2,1), border-color .25s ease, background .25s ease;
}
.app.sidebar-collapsed .sidebar { width: 0; padding-left: 0; padding-right: 0; border-color: transparent; background: transparent; }
.app.sidebar-collapsed .sidebar > *:not(.sidebar-toggle) { opacity: 0; visibility: hidden; transform: translateX(-18px); pointer-events: none; }
.brand-card, .side-block, .premium-card { transition: opacity .2s ease, transform .28s ease, visibility .2s ease; }
.brand-card {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.brand-icon { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(244,180,20,.38)); flex: 0 0 auto; }
.brand-text { font-size: 23px; font-weight: 800; letter-spacing: -.7px; white-space: nowrap; }
.brand-text span { color: var(--gold); }
.sidebar-toggle {
  position: absolute;
  top: 84px;
  right: -17px;
  z-index: 24;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: var(--gold-2);
  background: #0b0d11;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  transition: left .34s ease, right .34s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}
.sidebar-toggle:hover { transform: translateY(-1px); border-color: rgba(244,180,20,.45); background: #141820; }
.sidebar-toggle svg { width: 17px; height: 17px; transition: transform .34s ease; }
.app.sidebar-collapsed .sidebar-toggle { position: fixed; left: 14px; right: auto; }
.app.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.side-block { margin-top: 24px; }
.side-title {
  margin: 0 0 10px 11px;
  color: #828a98;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.side-link {
  position: relative;
  width: 100%;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  margin: 3px 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #d8dde6;
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.side-link svg { width: 18px; height: 18px; color: #c5ccd7; flex: 0 0 auto; }
.side-link span { white-space: nowrap; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.045); transform: translateX(2px); }
.side-link.is-active { color: #fff; border-color: rgba(244,180,20,.38); background: linear-gradient(90deg, rgba(244,180,20,.16), rgba(244,180,20,.055)); }
.side-link.is-active svg, .muted-link svg { color: var(--gold); }
.quick-links { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line-soft); }
.premium-card {
  margin-top: 24px;
  padding: 15px;
  border: 1px solid rgba(244,180,20,.24);
  border-radius: 12px;
  background: radial-gradient(circle at 80% 0%, rgba(244,180,20,.18), transparent 60%), rgba(244,180,20,.06);
}
.premium-card strong { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.2; }
.premium-card strong svg { width: 15px; height: 15px; color: var(--gold); }
.premium-card p { margin: 10px 0 0; color: #9ca4b1; font-size: 12px; line-height: 1.45; }
.mobile-backdrop { display: none; }

.topbar {
  height: 74px;
  display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(360px, 1fr) 78px 42px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.search {
  position: relative;
  height: 39px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search:focus-within { border-color: rgba(244,180,20,.45); background: rgba(255,255,255,.045); box-shadow: 0 0 0 3px rgba(244,180,20,.08); }
.search svg { width: 18px; height: 18px; color: #8b93a0; }
.search input { width: 100%; min-width: 0; border: 0; outline: none; color: #f2f4f8; background: transparent; font-size: 14px; }
.search input::placeholder { color: #818996; }
.clear-search { display: none; width: 24px; height: 24px; border: 0; border-radius: 50%; color: #aeb6c2; background: rgba(255,255,255,.07); }
.clear-search.is-visible { display: grid; place-items: center; }
.clear-search svg { width: 14px; height: 14px; }
.topnav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(22px, 2vw, 38px); height: 74px; }
.topnav a { position: relative; height: 74px; display: flex; align-items: center; gap: 8px; color: #f1f3f7; font-size: 14px; font-weight: 800; }
.topnav a svg { width: 17px; height: 17px; color: var(--gold); }
.topnav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 20px; background: var(--gold); box-shadow: 0 0 15px rgba(247,182,24,.55); }
.login, .primary { border: none; color: #121212; font-weight: 800; background: linear-gradient(180deg, #ffd45d 0%, var(--gold) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 14px 34px rgba(247,182,24,.16); }
.login { width: 78px; height: 36px; border-radius: 8px; font-size: 14px; }
.theme { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #dfe3eb; background: rgba(255,255,255,.035); }
.theme svg { width: 16px; height: 16px; }

.hero { display: grid; grid-template-columns: minmax(430px, .72fr) minmax(620px, 1.28fr); gap: clamp(28px, 2.1vw, 44px); align-items: start; padding-top: 23px; }
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; margin-bottom: 20px; color: var(--gold-2); border: 1px solid rgba(247,182,24,.18); border-radius: 999px; background: rgba(247,182,24,.12); font-size: 12px; font-weight: 800; }
.badge svg { width: 14px; height: 14px; }
h1 { margin: 0; font-size: clamp(38px, 3.1vw, 56px); line-height: .98; letter-spacing: -1.8px; font-weight: 900; }
h1 span { color: var(--gold); }
.hero-left p { max-width: 560px; margin: 16px 0 22px; color: #9da5b2; font-size: 14.5px; line-height: 1.55; }
.stats { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.25fr) minmax(150px, 1fr); gap: 8px; margin-bottom: 19px; max-width: 560px; }
.stats div { min-height: 56px; display: grid; grid-template-columns: 30px 1fr; align-items: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); transition: border-color .18s ease, transform .18s ease; }
.stats div:hover { transform: translateY(-2px); border-color: rgba(244,180,20,.28); }
.stats svg { grid-row: 1/3; width: 22px; height: 22px; color: var(--gold); }
.stats strong { font-size: 16px; line-height: 1; font-weight: 900; }
.stats span { color: #8f98a6; font-size: 11px; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.primary, .secondary { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border-radius: 10px; font-size: 13px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.primary:hover, .secondary:hover, .login:hover, .theme:hover { transform: translateY(-1px); }
.primary svg, .secondary svg { width: 15px; height: 15px; }
.secondary { border: 1px solid var(--line); color: #e5e9f0; background: rgba(255,255,255,.025); }

.featured { position: relative; height: 316px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: #080b10; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.04); }
.feature-track, .feature-slide { position: absolute; inset: 0; }
.feature-slide { opacity: 0; visibility: hidden; transform: scale(1.015); transition: opacity .65s ease, transform .7s ease, visibility .65s ease; }
.feature-slide.active { opacity: 1; visibility: visible; transform: scale(1); }
.feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feature-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,10,.97) 0%, rgba(4,6,10,.85) 38%, rgba(4,6,10,.35) 65%, rgba(4,6,10,.08) 100%), linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.feature-content { position: relative; z-index: 2; width: min(48%, 500px); height: 100%; padding: 26px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.feature-badge { width: fit-content; display: inline-flex; align-items: center; gap: 7px; min-height: 29px; padding: 0 12px; margin-bottom: 18px; border: 1px solid rgba(247,182,24,.22); border-radius: 999px; background: rgba(247,182,24,.12); color: var(--gold-2); font-size: 12px; font-weight: 800; }
.feature-badge svg { width: 13px; height: 13px; }
.feature-title { max-width: 470px; margin: 0 0 14px; color: #fff; font-size: clamp(29px, 2.4vw, 40px); line-height: 1.05; letter-spacing: -.04em; font-weight: 850; text-shadow: 0 8px 24px rgba(0,0,0,.48); }
.feature-desc { max-width: 420px; margin: 0 0 18px; color: #d8dee9; font-size: 14px; line-height: 1.55; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; color: #e9edf5; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.08); font-size: 11px; font-weight: 700; backdrop-filter: blur(10px); }
.feature-btn { margin-top: 14px; }
.feature-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.feature-arrow { position: absolute; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(247,182,24,.16); border-radius: 50%; color: var(--gold-2); background: rgba(93,63,10,.7); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.18); transform: translateY(-50%); pointer-events: auto; transition: transform .18s ease, background .18s ease; }
.feature-arrow:hover { transform: translateY(-50%) scale(1.04); background: rgba(128, 87, 15, .82); }
.feature-arrow:first-child { right: 78px; }
.feature-arrow:nth-child(2) { right: 22px; }
.feature-counter { position: absolute; top: 14px; right: 18px; min-width: 48px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: rgba(0,0,0,.48); color: #fff; font-size: 12px; font-weight: 800; pointer-events: auto; }
.feature-dots { position: absolute; left: 50%; bottom: 18px; z-index: 4; display: flex; gap: 7px; transform: translateX(-50%); }
.feature-dots button { width: 8px; height: 8px; border: 0; border-radius: 999px; background: rgba(255,255,255,.42); transition: width .24s ease, background .24s ease; }
.feature-dots button.active { width: 24px; background: var(--gold); }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 0 12px; }
.catalog-toolbar h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.catalog-toolbar h2 span { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 999px; color: #001; background: var(--green); font-size: 12px; font-weight: 900; vertical-align: 2px; }
.catalog-toolbar p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.chip, .sort-box { height: 33px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 999px; color: #aeb5c1; background: rgba(255,255,255,.048); font-size: 12px; font-weight: 750; }
.chip { padding: 0 12px; }
.chip svg, .sort-box svg { width: 14px; height: 14px; }
.chip:hover, .chip.is-active { color: var(--gold-2); border-color: rgba(247,182,24,.38); background: rgba(247,182,24,.1); }
.sort-box { padding: 0 10px; border-color: var(--line); }
.sort-box select { border: 0; outline: 0; color: #e8edf5; background: transparent; font-size: 12px; font-weight: 800; appearance: none; }
.games-catalog { position: relative; text-align: center; }
.catalog-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; text-align: left; }
.catalog-card { position: relative; min-width: 0; height: 158px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); box-shadow: 0 12px 28px rgba(0,0,0,.25); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.catalog-card:hover { transform: translateY(-5px); border-color: rgba(247,182,24,.38); box-shadow: 0 22px 44px rgba(0,0,0,.36), 0 0 0 1px rgba(247,182,24,.08); }
.catalog-card:focus-within { outline: 2px solid rgba(247,182,24,.35); outline-offset: 2px; }
.card-link { display: block; height: 100%; color: inherit; }
.catalog-card img { width: 100%; height: 94px; display: block; object-fit: cover; object-position: center; border-bottom: 2px solid var(--gold); background: #10131a; }
.card-info { padding: 9px 10px 10px; }
.card-info h3 { margin: 0 0 6px; color: #fff; font-size: 12.5px; line-height: 1.15; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info p { display: flex; align-items: center; gap: 7px; margin: 0; color: #9aa3b0; font-size: 11px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info p::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(247,182,24,.45); }
.favorite-btn { position: absolute; top: 8px; right: 8px; z-index: 3; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(0,0,0,.34); backdrop-filter: blur(8px); opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease, color .18s ease, border-color .18s ease; }
.catalog-card:hover .favorite-btn, .favorite-btn.is-active { opacity: 1; transform: translateY(0); }
.favorite-btn svg { width: 16px; height: 16px; }
.favorite-btn.is-active { color: var(--gold); border-color: rgba(247,182,24,.45); }
.badge-card { position: absolute; top: 8px; left: 8px; z-index: 3; min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; color: #111; background: linear-gradient(180deg, #ffe08a, var(--gold)); font-size: 10px; font-weight: 900; box-shadow: 0 10px 22px rgba(0,0,0,.28); }
.card-overlay { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.28)); transition: opacity .2s ease; pointer-events: none; }
.catalog-card:hover .card-overlay { opacity: 1; }
.more { margin: 18px auto 0; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 34px; border: 1px solid var(--line); border-radius: 10px; color: #e9edf5; background: rgba(255,255,255,.025); font-size: 13px; font-weight: 800; transition: border-color .18s ease, transform .18s ease; }
.more:hover { transform: translateY(-1px); border-color: rgba(247,182,24,.35); }
.more svg { width: 15px; height: 15px; color: var(--gold); }
.empty-state { max-width: 520px; margin: 24px auto 0; padding: 30px; border: 1px dashed rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.025); color: var(--muted); text-align: center; }
.empty-state svg { width: 32px; height: 32px; color: var(--gold); }
.empty-state h3 { margin: 12px 0 8px; color: #fff; }
.empty-state p { margin: 0 0 18px; }
.skeleton-grid { display: none; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin-bottom: 0; }
body.is-loading .skeleton-grid { display: grid; }
body.is-loading .catalog-grid { display: none; }
.skeleton-card { height: 158px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.08), rgba(255,255,255,.035)); background-size: 240% 100%; animation: shimmer 1.1s infinite; }
@keyframes shimmer { to { background-position: -240% 0; } }

.game-view { position: fixed; inset: 0; z-index: 80; display: none; overflow: auto; padding: 20px 14px 38px; background: rgba(2,3,5,.96); backdrop-filter: blur(12px); }
.game-view.is-open { display: block; }
.game-view-inner { width: min(1120px, 100%); margin: 0 auto; }
.game-back { height: 38px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; color: #e8edf5; background: rgba(255,255,255,.04); padding: 0 14px; font-weight: 750; }
.game-back svg { width: 16px; height: 16px; }
.game-hero { position: relative; min-height: 360px; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #111; box-shadow: var(--shadow); }
.game-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--detail-bg); background-size: cover; background-position: center; filter: saturate(1.05); }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,9,.9) 0%, rgba(5,6,9,.62) 42%, rgba(5,6,9,.18) 100%), linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.56)); }
.game-hero-content { position: relative; z-index: 2; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; max-width: 740px; padding: 32px 28px; }
.game-hero h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: -.04em; color: #fff; }
.game-hero p { max-width: 620px; margin: 0 0 18px; color: #d7dde7; font-size: 15px; line-height: 1.55; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.steam-pill { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 999px; color: #111; background: var(--gold); font-weight: 900; }
.game-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.game-arrow { position: absolute; z-index: 3; top: 50%; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.42); transform: translateY(-50%); }
.game-arrow.left { left: 18px; }
.game-arrow.right { right: 18px; }
.game-slide-counter { position: absolute; z-index: 3; top: 14px; right: 18px; min-width: 52px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: rgba(0,0,0,.52); font-size: 12px; font-weight: 900; }
.game-detail-dots { position: absolute; z-index: 3; right: 22px; bottom: 18px; display: flex; gap: 6px; }
.game-detail-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); }
.game-detail-dots button.active { width: 24px; border-radius: 999px; background: var(--gold); }
.popularity-card { margin: 18px 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.popularity-card > div:first-child { display: flex; justify-content: space-between; margin-bottom: 12px; color: #e8edf5; }
.popularity-card strong { color: var(--gold); }
.popularity-line { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.09); }
.popularity-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffe56d, #ff9d34); width: 0%; transition: width .45s ease; }
.accounts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.accounts-head h3 { margin: 0; font-size: 20px; }
.accounts-head h3 span { display: inline-grid; place-items: center; min-width: 29px; height: 26px; border-radius: 999px; background: rgba(0,200,160,.16); color: var(--green); font-size: 13px; }
.accounts-head p { display: flex; align-items: center; gap: 6px; margin: 0; color: #777f8d; font-size: 13px; }
.accounts-head svg { width: 15px; height: 15px; }
.accounts-list { display: grid; gap: 12px; }
.account-row { display: grid; grid-template-columns: 46px 1fr 110px; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.account-num { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #111; background: var(--gold-2); font-weight: 900; }
.account-meta strong { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; padding: 0 10px; border-radius: 999px; color: var(--green); background: rgba(0,200,160,.14); font-size: 12px; }
.account-meta p { margin: 8px 0 0; color: #777f8d; font-size: 13px; }
.account-row .primary { min-height: 38px; }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  min-width: 260px;
  max-width: 400px;
  padding: 14px 18px;
  border: 1px solid rgba(244,180,20,.26);
  border-radius: 12px;
  background: #11151d;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  color: #fff;
  font-weight: 750;
  font-size: 13.5px;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
}
.toast[hidden] { opacity: 0; transform: translateY(10px); pointer-events: none; }
.toast-success { border-color: rgba(34,197,94,.3); background: linear-gradient(135deg, #0a1a12, #11151d); }
.toast-success::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 4px 4px 0; background: #22c55e; }
.toast-error { border-color: rgba(239,68,68,.3); background: linear-gradient(135deg, #1a0a0a, #11151d); }
.toast-error::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 4px 4px 0; background: #ef4444; }
.toast-warning { border-color: rgba(251,191,36,.3); background: linear-gradient(135deg, #1a170a, #11151d); }
.toast-warning::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 4px 4px 0; background: #fbbf24; }

@media (max-width: 1620px) { .catalog-grid, .skeleton-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; } .catalog-card, .skeleton-card { height: 150px; } .catalog-card img { height: 89px; } .card-info h3 { font-size: 12px; } .card-info p { font-size: 10.5px; } }
@media (max-width: 1480px) { .catalog-grid, .skeleton-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .hero { grid-template-columns: 1fr; } .featured { height: 330px; } .feature-content { width: min(55%, 530px); } }
@media (max-width: 1366px) { .catalog-grid, .skeleton-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .topbar { grid-template-columns: minmax(260px, 1fr) auto 78px 42px; } .topnav { gap: 20px; } }
@media (max-width: 1120px) { .catalog-grid, .skeleton-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .topnav { display: none; } .topbar { grid-template-columns: minmax(260px, 1fr) 78px 42px; } .stats { grid-template-columns: 1fr; } .feature-content { width: 62%; } }
@media (max-width: 900px) {
  .app, .app.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; width: 260px; transform: translateX(-100%); transition: transform .34s cubic-bezier(.2,.8,.2,1); }
  .app:not(.sidebar-collapsed) .sidebar { transform: translateX(0); }
  .app.sidebar-collapsed .sidebar { width: 260px; padding: 16px 14px 18px; background: linear-gradient(180deg, rgba(13,16,21,.98), rgba(6,8,11,.99)); }
  .app.sidebar-collapsed .sidebar > *:not(.sidebar-toggle) { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .sidebar-toggle, .app.sidebar-collapsed .sidebar-toggle { position: fixed; left: 12px; right: auto; top: 82px; }
  .app.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 18; background: rgba(0,0,0,.52); backdrop-filter: blur(2px); }
  .app:not(.sidebar-collapsed) .mobile-backdrop { display: block; }
  .content { padding-left: 58px; padding-right: 16px; }
  .hero { gap: 18px; }
  .featured { height: 300px; }
  .feature-content { width: 72%; padding: 22px; }
  .feature-title { font-size: 30px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { justify-content: flex-start; }
  .catalog-grid, .skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catalog-card { height: auto; }
  .catalog-card img { height: auto; aspect-ratio: 460 / 215; }
  .favorite-btn { opacity: 1; transform: none; }
  .game-view { padding: 10px; }
  .game-hero, .game-hero-content { min-height: 420px; }
  .accounts-head { align-items: flex-start; flex-direction: column; }
  .account-row { grid-template-columns: 42px 1fr; }
  .account-row .primary { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .topbar { height: auto; min-height: 74px; grid-template-columns: 1fr; gap: 10px; padding: 12px 0; }
  .login, .theme { display: none; }
  .hero-actions { flex-direction: column; }
  .primary, .secondary { width: 100%; }
  .featured { height: 360px; }
  .feature-slide::after { background: linear-gradient(180deg, rgba(4,6,10,.62), rgba(4,6,10,.94)); }
  .feature-content { width: 100%; justify-content: flex-end; }
  .feature-arrow:first-child { right: 70px; }
  .feature-arrow:nth-child(2) { right: 16px; }
  .catalog-grid, .skeleton-grid { grid-template-columns: 1fr; }
  .catalog-card img { aspect-ratio: 460 / 215; }
}
.catalog-card.is-image-error img { opacity: .18; }
.catalog-card.is-image-error::before { content: "Обложка недоступна"; position: absolute; top: 28px; left: 10px; right: 10px; z-index: 2; color: #dfe5ee; text-align: center; font-size: 12px; font-weight: 800; }
.featured.is-image-error::before { content: "Изображение временно недоступно"; position: absolute; z-index: 5; right: 18px; bottom: 50px; color: #dfe5ee; font-size: 12px; background: rgba(0,0,0,.46); padding: 7px 10px; border-radius: 999px; }


/* === Product polish: auth, admin, custom sort, gallery and responsive show-more === */
.topbar { grid-template-columns: minmax(280px, 500px) minmax(320px, 1fr) auto 78px 42px; }
.admin-open {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(247,182,24,.24);
  border-radius: 9px;
  color: var(--gold-2);
  background: rgba(247,182,24,.08);
  font-size: 13px;
  font-weight: 800;
}
.admin-open svg { width: 15px; height: 15px; }
.login.is-logged { width: auto; max-width: 150px; padding: 0 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; border: 1px solid rgba(247,182,24,.24); background: rgba(247,182,24,.08); box-shadow: none; }
.catalog-toolbar h2 span { display: none; }

.sort-dropdown { position: relative; z-index: 12; }
.sort-toggle {
  height: 33px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e8edf5;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.sort-toggle:hover, .sort-toggle[aria-expanded="true"] { border-color: rgba(247,182,24,.34); background: rgba(247,182,24,.08); transform: translateY(-1px); }
.sort-toggle svg { width: 14px; height: 14px; color: var(--gold); }
.sort-toggle .chev { width: 13px; height: 13px; color: #a9b0bd; transition: transform .18s ease; }
.sort-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 206px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  background: rgba(12,15,20,.96);
  box-shadow: 0 22px 52px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
}
.sort-menu button {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  color: #cfd5df;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}
.sort-menu button:hover { color: #fff; background: rgba(255,255,255,.055); }
.sort-menu button.is-active { color: #111; background: linear-gradient(180deg, #ffd766, var(--gold)); }
.sort-box { display: none !important; }

.more[hidden] { display: none !important; }
.game-hero { background-image: linear-gradient(90deg, rgba(4,6,10,.88), rgba(4,6,10,.58), rgba(4,6,10,.18)), var(--detail-bg); background-size: cover; background-position: center; transition: background-image .35s ease; }
.game-arrow { transition: transform .18s ease, background .18s ease; }
.game-arrow:hover { transform: translateY(-50%) scale(1.04); }
.game-detail-dots button { cursor: pointer; }

.auth-modal, .admin-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.auth-modal.is-open, .admin-panel.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,3,5,.72); backdrop-filter: blur(10px); }
.auth-card, .admin-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17,20,26,.98), rgba(8,10,14,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.54), inset 0 1px 0 rgba(255,255,255,.045);
}
.auth-card { width: min(440px, 100%); padding: 24px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #cbd2de; background: rgba(255,255,255,.035); }
.modal-close svg { width: 16px; height: 16px; }
.auth-tabs { width: fit-content; display: flex; gap: 5px; padding: 4px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.auth-tabs button { height: 30px; padding: 0 13px; border: 0; border-radius: 999px; color: #aeb6c2; background: transparent; font-size: 12px; font-weight: 850; }
.auth-tabs button.is-active { color: #121212; background: linear-gradient(180deg, #ffd766, var(--gold)); }
.auth-card h2, .admin-card h2 { margin: 0; color: #fff; font-size: 26px; letter-spacing: -.04em; }
.auth-help { margin: 8px 0 20px; color: #98a1ae; font-size: 13px; line-height: 1.5; }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 7px; color: #cfd5df; font-size: 12px; font-weight: 800; }
.auth-form input, .admin-game input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #f4f7fb;
  background: rgba(255,255,255,.035);
  outline: none;
  padding: 0 12px;
}
.auth-form input:focus, .admin-game input:focus { border-color: rgba(247,182,24,.45); box-shadow: 0 0 0 3px rgba(247,182,24,.08); }
.auth-message { min-height: 18px; margin: 0; color: var(--gold-2); font-size: 12px; font-weight: 750; }
.auth-admin-hint { margin-top: 14px; padding: 10px 11px; border: 1px solid rgba(247,182,24,.14); border-radius: 10px; color: #98a1ae; background: rgba(247,182,24,.055); font-size: 12px; line-height: 1.45; }
.auth-admin-hint b { color: #fff; }

.admin-card { width: min(1120px, 100%); max-height: min(760px, 92vh); overflow: auto; padding: 22px; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-head p { margin: 6px 0 0; color: #98a1ae; font-size: 13px; }
.secondary.danger { color: #ffd5d5; border-color: rgba(255, 92, 92, .22); }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-stats div { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.admin-stats strong { display: block; color: #fff; font-size: 26px; line-height: 1; }
.admin-stats span { color: #8d96a5; font-size: 12px; font-weight: 750; }
.admin-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 14px; }
.admin-section { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.admin-section h3 { margin: 0 0 12px; color: #fff; font-size: 16px; }
.admin-row { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line-soft); color: #dce2eb; font-size: 13px; }
.admin-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.admin-row svg { width: 15px; height: 15px; color: var(--gold); }
.admin-row b { color: var(--gold-2); font-size: 11px; text-transform: uppercase; }
.admin-games { display: grid; gap: 10px; }
.admin-game { display: grid; grid-template-columns: 86px minmax(140px, 1fr) 110px 92px 108px; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,.025); }
.admin-game img { width: 86px; height: 42px; border-radius: 8px; object-fit: cover; }
.admin-game strong { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-game p { margin: 4px 0 0; color: #8f98a6; font-size: 11px; }
.admin-game label { display: grid; gap: 5px; color: #8f98a6; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.admin-game input { height: 34px; }
.admin-game .secondary { min-height: 34px; padding: 0 10px; font-size: 12px; }
.admin-empty { color: #8f98a6; font-size: 13px; }

@media (max-width: 1480px) { .catalog-grid, .skeleton-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .catalog-grid, .skeleton-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1120px) { .catalog-grid, .skeleton-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .topbar { grid-template-columns: minmax(260px, 1fr) auto 78px 42px; } .admin-open { display: none; } }
@media (max-width: 900px) { .topbar { grid-template-columns: minmax(220px, 1fr) 78px 42px; } .admin-game { grid-template-columns: 76px 1fr; } .admin-game label, .admin-game .secondary { grid-column: 1 / -1; } }
@media (max-width: 760px) { .catalog-grid, .skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sort-menu { right: auto; left: 0; } }
@media (max-width: 560px) { .catalog-grid, .skeleton-grid { grid-template-columns: 1fr; } .auth-card { padding: 20px; } }

/* === Admin v2: full local catalog manager === */
.theme-light {
  --bg: #f5f2ea;
  --panel: rgba(255,255,255,.92);
  --panel-2: rgba(255,255,255,.88);
  --line: rgba(15,18,24,.13);
  --line-soft: rgba(15,18,24,.08);
  --text: #151922;
  --muted: #5f6977;
  color: var(--text);
  background: linear-gradient(180deg, #f6f1e8 0%, #fff 100%);
}
.theme-light .sidebar,
.theme-light .auth-card,
.theme-light .admin-card { background: rgba(255,255,255,.96); color: #151922; }
.theme-light .auth-card h2,
.theme-light .admin-card h2,
.theme-light .admin-section h3,
.theme-light .admin-game-row strong,
.theme-light .admin-table strong,
.theme-light .admin-form h3 { color: #11151b; }
.theme-light .admin-note,
.theme-light .admin-head p,
.theme-light .admin-game-row p,
.theme-light .admin-table p { color: #626b78; }

.admin-card { display: none; }
.admin-card[role="dialog"] { display: none; }
.admin-head { display: none; }
.admin-stats { display: none; }
.admin-grid { display: none; }
.admin-tabs { display: none; }
.admin-body { display: none; }
.admin-section.wide { padding: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.section-head h3 { margin: 0; }
.admin-note { margin: 7px 0 12px; color: #98a1ae; font-size: 12.5px; line-height: 1.45; }
.admin-search, .admin-form input, .admin-form textarea, .admin-form select, .admin-table input, .admin-table select, .admin-game-row input, .admin-game-row select, [data-account-game-filter] {
  width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; color: #f4f6fa; background: rgba(255,255,255,.045); outline: none;
}
.admin-search, .admin-form input, .admin-form select, .admin-table input, .admin-table select, [data-account-game-filter] { min-height: 38px; padding: 0 10px; }
.admin-form textarea { padding: 10px; resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .admin-table input:focus, .admin-table select:focus, .admin-search:focus { border-color: rgba(247,182,24,.45); box-shadow: 0 0 0 3px rgba(247,182,24,.08); }
.theme-light .admin-search, .theme-light .admin-form input, .theme-light .admin-form textarea, .theme-light .admin-form select, .theme-light .admin-table input, .theme-light .admin-table select, .theme-light [data-account-game-filter] { color: #11151b; background: rgba(0,0,0,.035); }
.admin-game-table, .admin-table { display: grid; gap: 9px; }
.admin-game-row, .admin-account-row, .admin-genre-row, .admin-user-row, .admin-request-row {
  display: grid; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(255,255,255,.027);
}
.admin-game-row { grid-template-columns: 86px minmax(190px, 1fr) 62px 38px 38px 112px 88px 88px; }
.admin-game-row[draggable="true"] { cursor: grab; }
.admin-game-row img { width: 86px; height: 48px; border-radius: 9px; object-fit: cover; background: rgba(255,255,255,.06); }
.admin-game-row strong, .admin-table strong { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-game-row p, .admin-table p { margin: 3px 0 0; color: #8f98a6; font-size: 11.5px; }
.admin-game-row small { display: block; margin-top: 4px; color: #6f7988; font-size: 10.5px; }
.admin-mini { color: var(--gold-2); font-weight: 900; text-align: center; }
.admin-form { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid rgba(247,182,24,.16); border-radius: 15px; background: rgba(247,182,24,.055); }
.admin-form.compact { margin: 0 0 14px; }
.admin-form h3 { margin: 0; color: #fff; }
.admin-form label { display: grid; gap: 6px; color: #b7bfca; font-size: 12px; font-weight: 800; }
.form-grid { display: grid; gap: 10px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #cbd2db; font-size: 12px; }
.admin-check { display: inline-flex !important; grid-template-columns: auto !important; align-items: center; gap: 6px !important; min-height: 30px; padding: 0 10px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(255,255,255,.035); }
.admin-check input { width: auto; min-height: auto; }
.admin-account-row { grid-template-columns: minmax(150px, 1fr) 128px 130px 130px minmax(130px, .8fr) 112px 78px 78px; }
.admin-genre-row { grid-template-columns: 32px minmax(160px, 1fr) minmax(120px, .7fr) 100px 80px 78px; }
.admin-genre-row svg { color: var(--gold); }
.admin-user-row { grid-template-columns: minmax(260px, 1fr) 120px 130px 100px 86px; }
.admin-request-row { grid-template-columns: minmax(260px, 1fr) 100px 112px 92px; }
.admin-empty { color: #8f98a6; font-size: 13px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.media-item { padding: 10px; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(255,255,255,.027); }
.media-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; background: rgba(255,255,255,.06); }
.media-item strong { display: block; margin-top: 8px; color: #fff; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item p, .media-item em { display: block; margin: 4px 0; color: #8f98a6; font-size: 11px; }
.media-item em { color: #ffd15c; font-style: normal; }
.media-item button { width: 100%; margin-top: 6px; }
.file-label { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 13px; border-radius: 10px; font-weight: 850; cursor: pointer; }
.stat-mosaic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-mosaic div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.stat-mosaic strong { display: block; color: #fff; font-size: 27px; line-height: 1; }
.stat-mosaic span { color: #8d96a5; font-size: 11px; font-weight: 800; }
.admin-two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-two-cols > div { padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255,255,255,.025); }
.stat-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; margin: 0; border-bottom: 1px solid var(--line-soft); color: #cfd5df; }
.stat-line b { color: var(--gold-2); }
.account-secret { color: var(--gold-2) !important; }
.slider-list .admin-game-row { grid-template-columns: 86px minmax(190px, 1fr) 62px 90px 78px; }
.secondary.danger { border-color: rgba(255,92,92,.28); color: #ffb4b4; background: rgba(255,92,92,.08); }
.admin-table .secondary, .admin-game-row .secondary { min-height: 34px; padding: 0 10px; font-size: 11.5px; }
.admin-table b { color: var(--gold-2); font-size: 12px; }

@media (max-width: 1280px) {
  .admin-game-row { grid-template-columns: 76px minmax(180px, 1fr) 54px 38px 38px 100px; }
  .admin-game-row .secondary.danger { grid-column: auto; }
  .admin-account-row { grid-template-columns: 1fr 120px 1fr 1fr; }
  .admin-account-row button { grid-column: auto; }
  .form-grid.five, .form-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-user-row, .admin-request-row { grid-template-columns: 1fr 120px 120px; }
  .stat-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-card { width: 98vw; padding: 16px; }
  .admin-stats-v2, .stat-mosaic, .admin-two-cols, .form-grid.two, .form-grid.four, .form-grid.five { grid-template-columns: 1fr; }
  .section-head, .admin-head-v2 { display: grid; }
  .admin-game-row, .admin-account-row, .admin-genre-row, .admin-user-row, .admin-request-row, .slider-list .admin-game-row { grid-template-columns: 1fr; }
  .admin-game-row img { width: 100%; height: 120px; }
}

/* === Requested fixes: active theme, premium panel, admin styled controls === */
.theme.is-active {
  color: #111;
  border-color: rgba(247,182,24,.45);
  background: linear-gradient(180deg, #ffd766, var(--gold));
  box-shadow: 0 12px 32px rgba(247,182,24,.18);
}

.premium-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.premium-card:hover {
  transform: translateY(-2px);
  border-color: rgba(247,182,24,.42);
  background: radial-gradient(circle at 80% 0%, rgba(244,180,20,.24), transparent 60%), rgba(244,180,20,.09);
}
.premium-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.premium-modal.is-open { display: flex; }
.premium-dialog {
  position: relative;
  z-index: 1;
  width: min(370px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 30px 22px 22px;
  border: 1px solid rgba(247,182,24,.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,18,24,.98), rgba(5,7,10,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.045);
  text-align: center;
}
.premium-crown {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 8px auto 18px;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(247,182,24,.08);
}
.premium-crown svg { width: 36px; height: 36px; }
.premium-dialog h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.premium-lead {
  margin: 12px auto 20px;
  max-width: 300px;
  color: #8f98a6;
  font-size: 13px;
  line-height: 1.45;
}
.premium-benefits { display: grid; gap: 9px; margin-bottom: 22px; }
.premium-benefits div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  text-align: left;
  color: #d7dde7;
  font-size: 12px;
  font-weight: 750;
}
.premium-benefits svg { width: 18px; height: 18px; color: var(--gold); }
.premium-price {
  margin: 0 0 14px;
  padding: 22px 14px 12px;
  border: 1px solid rgba(247,182,24,.20);
  border-radius: 14px;
  background: rgba(247,182,24,.045);
}
.premium-price strong { display: block; color: var(--gold-2); font-size: 34px; line-height: 1; font-weight: 950; }
.premium-price span { display: block; margin-top: 8px; color: #777f8d; font-size: 12px; }
.premium-how, .premium-warning {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: #cbd2db;
  text-align: left;
  font-size: 11.5px;
  line-height: 1.45;
}
.premium-how b { display: block; margin-bottom: 6px; color: #fff; }
.premium-how p { margin: 6px 0 0; color: #a6afbc; }
.premium-warning {
  border-color: rgba(255,88,88,.38);
  color: #ffb989;
  background: rgba(255,55,55,.12);
  font-weight: 800;
}
.premium-buy { width: 100%; }

.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-select { position: relative; width: 100%; min-width: 0; }
.site-select-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #f4f6fa;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
  outline: none;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.site-select-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-select-toggle svg { width: 14px; height: 14px; color: var(--gold); transition: transform .18s ease; }
.site-select:has(.site-select-menu:not([hidden])) .site-select-toggle {
  border-color: rgba(247,182,24,.40);
  box-shadow: 0 0 0 3px rgba(247,182,24,.08);
}
.site-select:has(.site-select-menu:not([hidden])) .site-select-toggle svg { transform: rotate(180deg); }
.site-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  z-index: 60;
  max-height: 240px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(12,15,20,.98);
  box-shadow: 0 22px 52px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
}
.site-select-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: #cfd5df;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}
.site-select-menu button:hover { color: #fff; background: rgba(255,255,255,.055); }
.site-select-menu button.is-active { color: #111; background: linear-gradient(180deg, #ffd766, var(--gold)); }
.status-select .site-select-toggle { border-color: rgba(247,182,24,.28); background: rgba(247,182,24,.075); }
.inline-status { min-width: 120px; }
.admin-filter-select { width: min(420px, 100%); }

.admin-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.admin-segment button {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  color: #aeb6c2;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}
.admin-segment button.is-active { color: #111; background: linear-gradient(180deg, #ffd766, var(--gold)); }

.admin-search-picker { position: relative; display: grid; gap: 8px; }
.admin-suggestions {
  display: grid;
  gap: 6px;
  max-height: 232px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255,255,255,.026);
}
.admin-suggestions button {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #dfe5ee;
  background: rgba(255,255,255,.035);
  text-align: left;
  font-weight: 800;
}
.admin-suggestions button:hover, .admin-suggestions button.is-active { border-color: rgba(247,182,24,.34); background: rgba(247,182,24,.08); }
.admin-suggestions img { width: 54px; height: 32px; border-radius: 7px; object-fit: cover; }

.badge-checkboxes .admin-check { border-color: rgba(247,182,24,.18); }
.badge-check input:checked + span { color: #111; }
.image-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.image-choice {
  display: grid !important;
  gap: 7px !important;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}
.image-choice input { position: absolute; opacity: 0; pointer-events: none; }
.image-choice img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,.06); }
.image-choice span { color: #cbd2db; font-size: 12px; font-weight: 850; }
.image-choice:has(input:checked), .image-choice.is-selected { border-color: rgba(247,182,24,.48); box-shadow: 0 0 0 3px rgba(247,182,24,.08); }
.gallery-manager { display: grid; gap: 10px; }
.gallery-list { display: grid; gap: 8px; }
.gallery-item {
  display: grid;
  grid-template-columns: 84px minmax(160px, 1fr) 38px 38px 38px 78px;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.gallery-item.is-cover { border-color: rgba(247,182,24,.35); background: rgba(247,182,24,.05); }
.gallery-item img { width: 84px; height: 48px; border-radius: 8px; object-fit: cover; }
.gallery-item strong { color: #fff; font-size: 13px; }
.gallery-item p { max-width: 100%; margin: 3px 0 0; overflow: hidden; color: #8f98a6; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.gallery-cover-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #6b7280;
  background: rgba(255,255,255,.04);
  transition: all .18s ease;
}
.gallery-cover-btn svg { width: 16px; height: 16px; }
.gallery-cover-btn:hover { color: var(--gold); border-color: rgba(247,182,24,.35); background: rgba(247,182,24,.08); }
.gallery-cover-btn.is-active { color: #111; border-color: rgba(247,182,24,.45); background: linear-gradient(180deg, #ffd766, var(--gold)); box-shadow: 0 2px 8px rgba(247,182,24,.3); }
.gallery-cover-icon { width: 14px; height: 14px; color: var(--gold); vertical-align: -2px; }

/* Image Positioner */
.image-positioner-section { margin-bottom: 14px; }
.image-positioner-section > label { display: block; margin-bottom: 8px; color: #b7bfca; font-size: 12px; font-weight: 800; }
.image-positioner { display: grid; gap: 8px; }
.positioner-viewport {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  border: 1px solid rgba(247,182,24,.3);
  border-radius: 12px;
  background: #0a0c10;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.positioner-viewport:active { cursor: grabbing; }
.positioner-viewport img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  pointer-events: none;
  transition: none;
}
.positioner-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.positioner-grid-line {
  position: absolute;
  background: rgba(247,182,24,.25);
}
.positioner-grid-line.h { left: 0; right: 0; top: 0; height: 1px; }
.positioner-grid-line.h2 { left: 0; right: 0; bottom: 0; height: 1px; }
.positioner-grid-line.v { top: 0; bottom: 0; left: 0; width: 1px; }
.positioner-grid-line.v2 { top: 0; bottom: 0; right: 0; width: 1px; }
.positioner-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(247,182,24,.5);
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.35);
}
body.is-positioning { cursor: grabbing !important; }
body.is-positioning * { cursor: grabbing !important; }
.gallery-upload-label { width: fit-content; }

.feature-content { min-height: 100%; }
.feature-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.feature-badges .feature-badge { margin-bottom: 0; }
.feature-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-tags { margin-top: 0; margin-bottom: 12px; }
.feature-btn { margin-top: auto; }
.catalog-grid { align-items: stretch; }
.catalog-card { width: 100%; isolation: isolate; }
.catalog-card img { transform: translateZ(0); }
.catalog-card .card-link { overflow: hidden; border-radius: inherit; }

.theme-light .site-select-toggle,
.theme-light .admin-segment,
.theme-light .admin-suggestions,
.theme-light .gallery-item,
.theme-light .image-choice,
.theme-light .premium-dialog { color: #11151b; background: rgba(255,255,255,.92); }
.theme-light .site-select-menu { background: rgba(255,255,255,.98); }
.theme-light .site-select-menu button { color: #222833; }
.theme-light .site-select-menu button:hover { background: rgba(0,0,0,.055); }
.theme-light .premium-dialog h2,
.theme-light .gallery-item strong { color: #11151b; }

@media (max-width: 1280px) {
  .gallery-item { grid-template-columns: 78px minmax(140px, 1fr) 34px 38px 38px 78px; }
}
@media (max-width: 760px) {
  .form-grid.three { grid-template-columns: 1fr; }
  .gallery-item { grid-template-columns: 1fr; }
  .gallery-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .gallery-upload-label { width: 100%; }
}
[data-active-users] { font-size: 14px; letter-spacing: -.02em; }
.catalog-card img { border-bottom: 0; }

/* === User request batch 2: admin cleanup, help section, reliable light theme === */
button.premium-card {
  display: block;
  width: 100%;
  border: 1px solid rgba(244,180,20,.24);
  font: inherit;
}
.hero-actions .secondary[data-scroll-help] {
  min-width: 188px;
}

.feature-content {
  width: min(52%, 560px);
  padding: 26px 28px 24px;
  overflow: hidden;
}
.feature-badges { flex: 0 0 auto; margin-bottom: 12px; }
.feature-title {
  max-width: 520px;
  margin-bottom: 10px;
  font-size: clamp(26px, 2.05vw, 36px);
  line-height: 1.12;
  letter-spacing: -.035em;
  word-break: normal;
  overflow-wrap: anywhere;
}
.feature-desc {
  max-width: 460px;
  margin-bottom: 12px;
  -webkit-line-clamp: 2;
}
.feature-tags { flex: 0 0 auto; margin-top: auto; margin-bottom: 12px; }
.feature-btn { flex: 0 0 auto; margin-top: 0; }

.catalog-card {
  overflow: hidden;
  border-left-width: 1px;
}
.catalog-card::before { display: none !important; }
.catalog-card .card-link { display: flex; flex-direction: column; height: 100%; }
.card-info { min-width: 0; background: rgba(255,255,255,.015); }
.card-info h3, .card-info p { max-width: 100%; }

.span-2 { grid-column: span 2; }
.account-form-grid { align-items: end; }
.slider-list .admin-game-row { grid-template-columns: 86px minmax(190px, 1fr) 78px; }
.admin-file-preview {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.admin-file-preview img {
  width: 56px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}
.admin-file-preview span {
  min-width: 0;
  overflow: hidden;
  color: #cbd2dc;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-file-preview .file-label { min-height: 34px; padding-inline: 12px; }

.help-section {
  max-width: 830px;
  margin: 46px auto 20px;
  padding-bottom: 30px;
}
.help-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}
.help-title-row > svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-top: 3px;
}
.help-title-row h2 {
  margin: 0;
  color: #fff;
  font-size: 31px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
}
.help-title-row p {
  margin: 10px 0 0;
  color: #9aa3af;
  font-size: 14px;
}
.help-card {
  margin: 0 0 24px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.help-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--gold-2);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.help-card h3 svg { width: 23px; height: 23px; color: #b8c0cc; }
.help-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  margin: 20px 0;
}
.help-step b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: linear-gradient(180deg, #ffd766, var(--gold));
  font-size: 18px;
  font-weight: 950;
}
.help-step strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}
.help-step p, .help-card details p, .help-subtitle {
  margin: 0;
  color: #c2cad5;
  font-size: 14px;
  line-height: 1.55;
}
.help-faq details {
  margin: 18px 0;
}
.help-faq summary {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.help-faq details[open] summary { margin-bottom: 12px; }
.help-problems {
  border-color: rgba(247,182,24,.24);
  background: rgba(247,182,24,.035);
}
.help-subtitle { margin-top: -10px; margin-bottom: 20px; color: #8f98a6; }
.help-problems details {
  margin: 9px 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  overflow: hidden;
}
.help-problems summary {
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
}
.help-problems summary::-webkit-details-marker { display: none; }
.help-problems summary span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--gold);
  background: rgba(247,182,24,.12);
}
.help-problems summary span svg { width: 20px; height: 20px; }
.help-problems summary b {
  display: block;
  color: #fff;
  font-size: 14.5px;
  font-weight: 950;
}
.help-problems summary em {
  display: block;
  margin-top: 4px;
  color: #8f98a6;
  font-style: normal;
  font-size: 12px;
}
.help-problems summary i {
  color: #8b93a0;
  font-style: normal;
  font-size: 20px;
}
.help-problems details[open] summary i { transform: rotate(90deg); }
.help-problems details p { padding: 0 18px 16px 70px; }

.theme-light {
  color: #151922;
  background: linear-gradient(180deg, #f6f1e8 0%, #fff 100%);
}
.theme-light body,
.theme-light .content,
.theme-light .catalog-toolbar h2,
.theme-light .hero-left h1,
.theme-light .hero-left p,
.theme-light .stats strong,
.theme-light .side-link,
.theme-light .topnav a,
.theme-light .brand-text,
.theme-light .card-info h3,
.theme-light .empty-state h3,
.theme-light .help-title-row h2,
.theme-light .help-step strong,
.theme-light .help-faq summary,
.theme-light .help-problems summary b {
  color: #11151b;
}
.theme-light .hero-left p,
.theme-light .stats span,
.theme-light .catalog-toolbar p,
.theme-light .card-info p,
.theme-light .side-title,
.theme-light .premium-card p,
.theme-light .help-title-row p,
.theme-light .help-step p,
.theme-light .help-card details p,
.theme-light .help-subtitle,
.theme-light .help-problems summary em {
  color: #596371;
}
.theme-light .topbar,
.theme-light .sidebar,
.theme-light .catalog-card,
.theme-light .stats div,
.theme-light .search,
.theme-light .chip,
.theme-light .sort-toggle,
.theme-light .sort-menu,
.theme-light .help-card,
.theme-light .help-problems details {
  background: rgba(255,255,255,.80);
  border-color: rgba(15,18,24,.12);
}
.theme-light .sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,244,236,.98));
}
.theme-light .search input,
.theme-light .admin-search,
.theme-light .admin-form input,
.theme-light .admin-form textarea,
.theme-light .admin-table input,
.theme-light .admin-table select {
  color: #11151b;
}
.theme-light .search input::placeholder { color: #6d7684; }
.theme-light .secondary,
.theme-light .more,
.theme-light .game-back {
  color: #151922;
  background: rgba(255,255,255,.72);
  border-color: rgba(15,18,24,.13);
}
.theme-light .feature-title,
.theme-light .feature-desc,
.theme-light .feature-tags .tag,
.theme-light .game-hero-content,
.theme-light .game-hero-content h2,
.theme-light .game-hero-content p,
.theme-light .game-tags .tag {
  color: #fff;
}
.theme-light .feature-slide::after {
  background: linear-gradient(90deg, rgba(4,6,10,.94) 0%, rgba(4,6,10,.78) 42%, rgba(4,6,10,.28) 68%, rgba(4,6,10,.06) 100%), linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.36));
}
.theme-light .card-info { background: rgba(255,255,255,.90); }
.theme-light .catalog-card { box-shadow: 0 14px 30px rgba(30,24,12,.11); }
.theme-light .admin-tabs button { color: #596371; }
.theme-light .admin-tabs button:hover { color: #11151b; background: rgba(0,0,0,.045); }
.theme-light .admin-file-preview { background: rgba(0,0,0,.035); }
.theme-light .admin-file-preview span { color: #333b48; }
.theme-light .site-select-toggle { color: #11151b; }

@media (max-width: 900px) {
  .span-2 { grid-column: auto; }
  .admin-file-preview { grid-template-columns: 48px 1fr; }
  .admin-file-preview .file-label { grid-column: 1 / -1; width: 100%; }
  .feature-content { width: 68%; }
}
@media (max-width: 760px) {
  .help-card { padding: 20px; }
  .help-problems summary { grid-template-columns: 36px minmax(0, 1fr) 18px; padding-inline: 12px; }
  .help-problems details p { padding-left: 60px; }
  .feature-content { width: 100%; }
}

/* === User request batch 3: help modal, instant account reveal, admin previews === */
.help-modal {
  position: fixed;
  inset: 0;
  z-index: 132;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.help-modal.is-open { display: flex; }
.help-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(247,182,24,.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,18,24,.98), rgba(5,7,10,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.045);
}
.help-dialog .modal-close { z-index: 4; }
.help-modal-body { max-width: none; margin: 0; padding: 0; }
.help-modal-body .help-title-row { padding-right: 48px; }
.help-problems summary {
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  grid-template-areas: "icon title arrow" "icon subtitle arrow";
  align-items: center;
}
.help-problems summary span { grid-area: icon; }
.help-problems summary b { grid-area: title; min-width: 0; overflow-wrap: anywhere; }
.help-problems summary em { grid-area: subtitle; min-width: 0; overflow-wrap: anywhere; }
.help-problems summary i { grid-area: arrow; justify-self: end; }
.help-problems details[open] summary { border-bottom: 1px solid var(--line-soft); }
.help-problems details[open] p { margin: 0; }

.account-row.is-revealed { border-color: rgba(0,200,160,.34); background: rgba(0,200,160,.055); }
.account-secret {
  display: block;
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(247,182,24,.18);
  border-radius: 10px;
  background: rgba(247,182,24,.08);
  color: var(--gold-2) !important;
  line-height: 1.45;
  word-break: break-word;
}
.account-secret b { color: #fff; }

.admin-account-row { grid-template-columns: minmax(180px, 1fr) minmax(120px, .72fr) minmax(120px, .72fr) minmax(150px, .9fr) 116px 132px 82px; }
.admin-user-row { grid-template-columns: minmax(260px, 1fr) 118px 126px 96px 112px 104px 82px; }
.premium-user-state { color: var(--gold-2) !important; font-weight: 800; }
.cover-upload-box img { object-fit: cover; }
.admin-live-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(247,182,24,.20);
  border-radius: 15px;
  background: rgba(0,0,0,.16);
}
.preview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.preview-head strong { color: #fff; font-size: 14px; }
.preview-head span { color: #8f98a6; font-size: 12px; }
.preview-grid { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.preview-grid > div > b { display: block; margin-bottom: 8px; color: #cbd2dc; font-size: 12px; }
.preview-card { width: 100%; max-width: 330px; height: 145px; pointer-events: none; }
.preview-card img { height: 88px; object-fit: cover; object-position: center; }
.preview-hero-frame {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080b10;
}
.preview-hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.preview-hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,9,.9), rgba(5,6,9,.5), rgba(5,6,9,.12)); }
.preview-hero-frame > div { position: relative; z-index: 1; max-width: 70%; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.preview-hero-frame strong { color: #fff; font-size: 24px; line-height: 1.05; font-weight: 950; overflow-wrap: anywhere; }
.preview-hero-frame p { margin: 8px 0 0; color: #d7dde7; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.theme-light .help-dialog,
.theme-light .admin-live-preview,
.theme-light .preview-hero-frame,
.theme-light .account-row { color: #11151b; background: rgba(255,255,255,.96); border-color: rgba(15,18,24,.12); }
.theme-light .help-dialog .help-title-row h2,
.theme-light .help-dialog .help-step strong,
.theme-light .help-dialog .help-faq summary,
.theme-light .help-dialog .help-problems summary b,
.theme-light .preview-head strong,
.theme-light .preview-grid > div > b,
.theme-light .account-secret b,
.theme-light .accounts-head h3,
.theme-light .popularity-card span,
.theme-light .popularity-card strong,
.theme-light .account-meta strong,
.theme-light .admin-table strong,
.theme-light .admin-form h3,
.theme-light .admin-form label,
.theme-light .admin-checkboxes,
.theme-light .stat-line { color: #11151b; }
.theme-light .help-dialog .help-step p,
.theme-light .help-dialog .help-card details p,
.theme-light .help-dialog .help-subtitle,
.theme-light .help-dialog .help-problems summary em,
.theme-light .preview-head span,
.theme-light .account-meta p,
.theme-light .accounts-head p,
.theme-light .admin-note,
.theme-light .admin-table p,
.theme-light .admin-game-row small { color: #596371; }
.theme-light .theme { color: #11151b; background: rgba(255,255,255,.78); border-color: rgba(15,18,24,.13); }
.theme-light .login { color: #11151b; }
.theme-light .topnav a.is-active, .theme-light .topnav a:hover { color: var(--gold); }
.theme-light .quick-links .side-link:not(.is-active),
.theme-light .side-block .side-link:not(.is-active) { color: #11151b; }
.theme-light .side-link svg { color: #687181; }
.theme-light .side-link.is-active svg { color: var(--gold); }
.theme-light .card-info h3,
.theme-light .catalog-toolbar h2,
.theme-light .empty-state h3 { color: #11151b; text-shadow: none; }
.theme-light .card-info p,
.theme-light .empty-state p { color: #596371; }
.theme-light .help-card,
.theme-light .help-problems details,
.theme-light .admin-game-row,
.theme-light .admin-account-row,
.theme-light .admin-genre-row,
.theme-light .admin-user-row,
.theme-light .admin-request-row,
.theme-light .admin-form { background: rgba(255,255,255,.75); border-color: rgba(15,18,24,.12); }
.theme-light .site-select-menu button.is-active,
.theme-light .site-select-menu button:hover { color: #11151b; }
.theme-light .modal-close { color: #11151b; background: rgba(255,255,255,.82); border-color: rgba(15,18,24,.12); }

@media (max-width: 960px) {
  .preview-grid { grid-template-columns: 1fr; }
  .preview-card { max-width: none; }
  .admin-account-row, .admin-user-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .help-dialog { padding: 22px 14px; }
  .help-problems summary { grid-template-columns: 36px minmax(0, 1fr) 18px; }
  .preview-hero-frame > div { max-width: 100%; }
}

/* === Admin Panel v3: Sidebar layout with modern design === */
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 0;
}
.admin-panel.is-open { display: flex; }
.admin-panel .modal-backdrop { inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); }

/* Admin Layout - Sidebar + Main */
.admin-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Admin Sidebar */
.admin-sidebar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(12,15,20,.98) 0%, rgba(6,8,11,.99) 100%);
  border-right: 1px solid var(--line-soft);
  overflow: hidden;
}
.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.admin-sidebar-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(244,180,20,.35));
}
.admin-sidebar-brand {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}
.admin-sidebar-brand span { color: var(--gold); }

/* Admin Nav */
.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav::-webkit-scrollbar { width: 4px; }
.admin-nav::-webkit-scrollbar-track { background: transparent; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 999px; }
.admin-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #9ca3af;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  transition: all .18s ease;
}
.admin-nav-link svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
  flex-shrink: 0;
  transition: color .18s ease;
}
.admin-nav-link span { white-space: nowrap; }
.admin-nav-link:hover {
  color: #e5e7eb;
  background: rgba(255,255,255,.045);
}
.admin-nav-link:hover svg { color: #d1d5db; }
.admin-nav-link.is-active {
  color: #111;
  border-color: rgba(247,182,24,.35);
  background: linear-gradient(90deg, rgba(247,182,24,.18), rgba(247,182,24,.06));
}
.admin-nav-link.is-active svg { color: var(--gold); }
.admin-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 4px 4px 0;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(247,182,24,.5);
}

/* Admin Sidebar Footer */
.admin-sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--line-soft);
}
.admin-sidebar-close {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #9ca3af;
  background: rgba(255,255,255,.03);
  font-size: 13px;
  font-weight: 700;
  transition: all .18s ease;
}
.admin-sidebar-close svg { width: 18px; height: 18px; }
.admin-sidebar-close:hover {
  color: #ef4444;
  border-color: rgba(239,68,68,.28);
  background: rgba(239,68,68,.08);
}

/* Admin Main Content */
.admin-main {
  display: flex;
  flex-direction: column;
  background: rgba(10,12,16,.98);
  overflow: hidden;
}

/* Admin Topbar */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(14,17,22,.85);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.admin-topbar-left h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.admin-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-role-badge.is-admin {
  color: #fbbf24;
  background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.28);
}
.admin-role-badge.is-moderator {
  color: #60a5fa;
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.28);
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #d1d5db;
  background: rgba(255,255,255,.04);
  font-size: 12.5px;
  font-weight: 750;
  transition: all .18s ease;
}
.admin-topbar-btn svg { width: 15px; height: 15px; }
.admin-topbar-btn:hover {
  color: #fff;
  border-color: rgba(247,182,24,.35);
  background: rgba(247,182,24,.08);
  transform: translateY(-1px);
}
.admin-topbar-btn.danger {
  color: #fca5a5;
  border-color: rgba(239,68,68,.22);
}
.admin-topbar-btn.danger:hover {
  color: #fff;
  border-color: rgba(239,68,68,.45);
  background: rgba(239,68,68,.12);
}
.admin-topbar-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #9ca3af;
  background: rgba(255,255,255,.035);
  transition: all .18s ease;
}
.admin-topbar-close svg { width: 16px; height: 16px; }
.admin-topbar-close:hover { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }

/* Admin Content Area */
.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 32px;
}
.admin-content::-webkit-scrollbar { width: 6px; }
.admin-content::-webkit-scrollbar-track { background: transparent; }
.admin-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 999px; }

/* Dashboard Cards */
.admin-dashboard {
  display: grid;
  gap: 20px;
}
.admin-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dash-stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  transition: all .2s ease;
}
.dash-stat-card:hover { border-color: rgba(247,182,24,.25); transform: translateY(-2px); }
.dash-stat-card .stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-bottom: 14px;
}
.dash-stat-card .stat-icon svg { width: 20px; height: 20px; }
.dash-stat-card .stat-icon.gold { color: #fbbf24; background: rgba(251,191,36,.12); }
.dash-stat-card .stat-icon.blue { color: #60a5fa; background: rgba(96,165,250,.12); }
.dash-stat-card .stat-icon.green { color: #34d399; background: rgba(52,211,153,.12); }
.dash-stat-card .stat-icon.red { color: #f87171; background: rgba(248,113,113,.12); }
.dash-stat-card .stat-value {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.02em;
}
.dash-stat-card .stat-label {
  display: block;
  margin-top: 6px;
  color: #9ca3af;
  font-size: 12.5px;
  font-weight: 600;
}

/* Dashboard Grid */
.admin-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dash-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.dash-panel h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.dash-panel-list {
  display: grid;
  gap: 8px;
}
.dash-panel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.dash-panel-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
}
.dash-panel-item b {
  flex-shrink: 0;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}
.dash-panel-item .dash-bar {
  flex: 1;
  min-width: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.dash-panel-item .dash-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width .4s ease;
}
.dash-panel-empty {
  color: #6b7280;
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
}

/* Quick Actions Panel */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.dash-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: #d1d5db;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  transition: all .18s ease;
}
.dash-action-btn svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.dash-action-btn:hover {
  border-color: rgba(247,182,24,.35);
  background: rgba(247,182,24,.06);
  color: #fff;
  transform: translateY(-1px);
}

/* Admin Section Styles (within sidebar layout) */
.admin-section.wide { padding: 0; border: none; background: transparent; border-radius: 0; }
.admin-section { padding: 0; border: none; background: transparent; border-radius: 0; }
.admin-section h3 { margin: 0 0 16px; color: #fff; font-size: 18px; font-weight: 850; }

/* Responsive Admin */
@media (max-width: 960px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 10;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
  }
  .admin-panel.is-open .admin-sidebar { transform: translateX(0); }
  .admin-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-dash-stats { grid-template-columns: 1fr; }
  .admin-topbar { padding: 0 16px; }
  .admin-content { padding: 16px; }
  .dash-actions { grid-template-columns: 1fr; }
}

/* Theme Light Admin */
.theme-light .admin-sidebar { background: rgba(255,255,255,.98); border-right-color: rgba(15,18,24,.1); }
.theme-light .admin-sidebar-header { border-bottom-color: rgba(15,18,24,.08); }
.theme-light .admin-sidebar-brand { color: #11151b; }
.theme-light .admin-nav-link { color: #4b5563; }
.theme-light .admin-nav-link svg { color: #9ca3af; }
.theme-light .admin-nav-link:hover { color: #11151b; background: rgba(0,0,0,.04); }
.theme-light .admin-nav-link.is-active { color: #11151b; border-color: rgba(247,182,24,.35); background: rgba(247,182,24,.1); }
.theme-light .admin-nav-link.is-active svg { color: var(--gold); }
.theme-light .admin-sidebar-close { color: #6b7280; border-color: rgba(15,18,24,.1); background: rgba(0,0,0,.03); }
.theme-light .admin-sidebar-close:hover { color: #ef4444; background: rgba(239,68,68,.06); }
.theme-light .admin-main { background: rgba(245,242,234,.98); }
.theme-light .admin-topbar { background: rgba(255,255,255,.9); border-bottom-color: rgba(15,18,24,.08); }
.theme-light .admin-topbar-left h2 { color: #11151b; }
.theme-light .admin-topbar-btn { color: #374151; border-color: rgba(15,18,24,.12); background: rgba(255,255,255,.6); }
.theme-light .admin-topbar-btn:hover { color: #11151b; border-color: rgba(247,182,24,.35); background: rgba(247,182,24,.08); }
.theme-light .admin-topbar-close { color: #6b7280; border-color: rgba(15,18,24,.12); background: rgba(255,255,255,.5); }
.theme-light .admin-content { background: transparent; }
.theme-light .dash-stat-card { background: rgba(255,255,255,.8); border-color: rgba(15,18,24,.1); }
.theme-light .dash-stat-card .stat-value { color: #11151b; }
.theme-light .dash-stat-card .stat-label { color: #6b7280; }
.theme-light .dash-panel { background: rgba(255,255,255,.8); border-color: rgba(15,18,24,.1); }
.theme-light .dash-panel h3 { color: #11151b; }
.theme-light .dash-panel-item { border-color: rgba(15,18,24,.08); background: rgba(255,255,255,.5); }
.theme-light .dash-panel-item span { color: #374151; }
.theme-light .dash-panel-item .dash-bar { background: rgba(0,0,0,.06); }
.theme-light .dash-action-btn { color: #374151; border-color: rgba(15,18,24,.1); background: rgba(255,255,255,.5); }
.theme-light .dash-action-btn:hover { color: #11151b; border-color: rgba(247,182,24,.35); background: rgba(247,182,24,.06); }
.theme-light .admin-section h3 { color: #11151b; }
.theme-light .admin-note { color: #6b7280; }
