@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Space+Grotesk:wght@300..700&display=swap");

:root {
  --bg: #07080b;
  --bg-2: #0a0c11;
  --panel: rgba(16, 18, 24, 0.66);
  --panel-solid: #12141b;
  --text: #f2f4f8;
  --muted: #8b93a3;
  --pink: #fc329c;
  --pink-2: #ff5eb5;
  --pink-dim: rgba(252, 50, 156, 0.14);
  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --line: rgba(255, 255, 255, 0.08);
  --ok: #3ddc97;
  --warn: #f5c542;
  --err: #ff6b81;
  --radius: 16px;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --subhead: "Manrope", "Segoe UI", sans-serif;
  --accent: var(--pink);
  --violet: #fc329c;
  --border: var(--line);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 12% -10%, rgba(252, 50, 156, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 35% at 92% 8%, rgba(34, 211, 238, 0.06), transparent 50%),
    linear-gradient(180deg, #08090c 0%, #07080b 45%, #090b10 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.bg-skyline,
.bg-glow,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-skyline {
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.55) 0%, rgba(7, 8, 11, 0.92) 55%, #07080b 100%),
    url("../img/bg-vice-city.png") center top / cover no-repeat;
  opacity: 0.22;
  animation: sky-drift 32s ease-in-out infinite alternate;
}
.bg-glow {
  background:
    radial-gradient(circle at 18% 15%, rgba(252, 50, 156, 0.1), transparent 32%),
    radial-gradient(circle at 82% 25%, rgba(34, 211, 238, 0.07), transparent 38%);
  animation: glow-pulse 10s ease-in-out infinite;
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 65%);
  opacity: 0.3;
}

@keyframes sky-drift {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.05) translateY(-10px); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes brand-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes logo-breathe {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(252, 50, 156, 0.3)); transform: translateY(0); }
  50% { filter: drop-shadow(0 0 24px rgba(252, 50, 156, 0.5)); transform: translateY(-4px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.main { flex: 1; padding: 28px 0 64px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(7, 8, 11, 0.6);
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, background .2s ease;
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 11, 0.9);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}
.topbar-inner .topnav {
  margin-left: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    transition: filter .2s ease;
}
.brand:hover img {
    filter: drop-shadow(0 0 12px rgba(252, 50, 156, 0.45));
}
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}
.brand-mark {
  font-family: var(--display);
  text-transform: uppercase;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topbar-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  color: #a6f2ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}
.topnav a {
  color: #d8c5ce;
  transition: color .15s ease;
}
.topnav a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), #ff6bb8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(252, 50, 156, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(252, 50, 156, 0.4); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: #fff;
}
.btn-ghost:hover { border-color: rgba(34, 211, 238, 0.4); background: var(--cyan-dim); }
.btn-danger {
  background: rgba(255, 107, 129, 0.14);
  border-color: rgba(255, 107, 129, 0.35);
  color: #ffc0c8;
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.page-home .main {
  width: 100%;
  max-width: none;
  padding: 0 0 80px;
}
.page-home .section,
.page-home .flash-host {
  width: min(1140px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 16px 64px;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
//    linear-gradient(180deg, rgba(7, 8, 11, 0.92) 0%, rgba(7, 8, 11, 0.5) 55%, rgba(7, 8, 11, 0) 100%),
//    radial-gradient(circle at 50% 25%, rgba(252, 50, 156, 0.14), transparent 50%),
//    radial-gradient(circle at 80% 60%, rgba(34, 211, 238, 0.06), transparent 45%);
  z-index: 0;
}
.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}
.hero-copy {
  width: min(720px, 100%);
  text-align: center;
  animation: brand-rise 0.8s ease both;
}
.hero-art {
  display: none;
}
.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(252, 50, 156, 0.35);
  background: rgba(252, 50, 156, 0.1);
  color: #ffb6d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-brand {
  margin: 0 0 22px;
  display: flex;
  justify-content: center;
}
.hero-brand img {
    width: clamp(320px, 52vw, 680px);
    height: auto;
    object-fit: contain;
    animation: logo-breathe 4.5s ease-in-out infinite;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero p {
  margin: 0 auto 28px;
  max-width: 34rem;
  color: #a9b0bf;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions .btn { min-width: 160px; min-height: 48px; font-size: 14px; }
.launcher-banner .hero-actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.hero-stats {
  display: none;
}

.section { margin-top: 28px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
}
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.home-pulse {
  margin-top: -24px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.home-pulse .stat {
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-solid);
  backdrop-filter: blur(10px);
  transition: border-color .2s ease;
}
.home-pulse .stat:hover { border-color: rgba(255, 255, 255, 0.16); }
.home-pulse .stat:first-child strong { color: var(--cyan-2); }
.home-pulse .stat strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.02em;
  color: var(--pink-2);
  line-height: 1;
}
.home-pulse .stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(252, 50, 156, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.news-card-media {
  height: 140px;
  background:
    linear-gradient(135deg, rgba(252, 50, 156, 0.16), rgba(34, 211, 238, 0.08)),
    var(--bg-2);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.news-card-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  opacity: 0.6;
}
.news-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card time {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-card h3 {
  margin: 0;
  font-family: var(--subhead);
  font-size: 18px;
  line-height: 1.3;
}
.news-card p {
  margin: 0;
  color: #c4aeb8;
  font-size: 14px;
  flex: 1;
}
.news-card .news-more {
  margin-top: 8px;
  color: var(--pink-2);
  font-size: 13px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color .2s ease, background .2s ease;
}
.feature:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
.feature h3 {
  margin: 0 0 8px;
  font-family: var(--subhead);
  font-size: 22px;
  letter-spacing: 0;
  font-weight: 700;
}
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.launcher-banner {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.launcher-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(252, 50, 156, 0.08), rgba(34, 211, 238, 0.04) 60%, transparent);
  pointer-events: none;
}
.launcher-banner > * { position: relative; z-index: 1; }
.launcher-preview {
    position: relative;
    /* padding: 7px; */
    border-radius: 14px;
    background: #14161d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.launcher-preview img {
  display: block;
  width: 100%;
  border-radius: 12px;
}
.launcher-banner h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
}
.launcher-banner p { margin: 0 0 18px; color: #d2bcc7; }
.launcher-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.launcher-meta strong { color: #fff; }

.panel,
.card,
.auth-card,
.content-card,
.char-card,
.admin-card,
.muted-box {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
.panel {
  margin-bottom: 18px;
  padding: 22px;
}
.card { padding: 20px; }
.auth-card { width: min(460px, 100%); margin: 24px auto; padding: 28px; }
.auth-card h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
}
.auth-card .lead { color: var(--muted); margin: 0 0 20px; }
.auth-links { margin-top: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.auth-links a { color: var(--pink-2); font-weight: 700; }

.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > label,
.form label,
.form-row { display: grid; gap: 6px; }
.form-grid > label,
.form label,
.form-row label {
  font-size: 13px;
  color: #d8c5ce;
  font-weight: 600;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="image"]):not([type="range"]),
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 15, 0.75) !important;
  color: #f7eef4 !important;
  caret-color: var(--pink-2);
  outline: none;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, #ff8cc8 50%),
    linear-gradient(135deg, #ff8cc8 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
select option {
  background: #12141b;
  color: #f7eef4;
}
input::placeholder,
textarea::placeholder {
  color: #8f7a86;
  opacity: 1;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(252, 50, 156, 0.55);
  box-shadow: 0 0 0 3px rgba(252, 50, 156, 0.15);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #f7eef4;
  box-shadow: 0 0 0 1000px #12141b inset;
  transition: background-color 9999s ease-in-out 0s;
}
.admin-filters input,
.admin-filters select { width: auto; min-width: 160px; }
.form-hint { font-size: 12px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.agree-box {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.agree-box:hover {
  border-color: rgba(252, 50, 156, 0.4);
  background: rgba(252, 50, 156, 0.06);
}
.agree-box:has(input:checked) {
  border-color: rgba(252, 50, 156, 0.55);
  background: rgba(252, 50, 156, 0.1);
}
.agree-box input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}
.agree-box-mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.agree-box-mark::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg) scale(0.6);
  margin-top: -2px;
}
.agree-box input:checked + .agree-box-mark {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(252, 50, 156, 0.55), rgba(255, 110, 180, 0.35));
}
.agree-box input:checked + .agree-box-mark::after {
  border-color: #fff;
  transform: rotate(45deg) scale(1);
}
.agree-box-text { color: var(--text); font-size: 14px; line-height: 1.45; }
.agree-box-text a { color: var(--pink-2); text-decoration: underline; text-underline-offset: 3px; }

.quiz-choices { display: grid; gap: 10px; margin-top: 12px; }
.quiz-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.quiz-choice:hover {
  border-color: rgba(252, 50, 156, 0.35);
  background: rgba(252, 50, 156, 0.06);
}
.quiz-choice:has(input:checked) {
  border-color: rgba(252, 50, 156, 0.55);
  background: rgba(252, 50, 156, 0.1);
}
.quiz-choice input {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}
.quiz-choice-mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.quiz-choice input[type="radio"] + .quiz-choice-mark { border-radius: 50%; }
.quiz-choice input[type="checkbox"] + .quiz-choice-mark { border-radius: 6px; }
.quiz-choice input[type="radio"] + .quiz-choice-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transform: scale(0);
}
.quiz-choice input[type="checkbox"] + .quiz-choice-mark::after {
  content: "";
  width: 5px;
  height: 9px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg) scale(0.5);
  margin-top: -2px;
}
.quiz-choice input[type="radio"]:checked + .quiz-choice-mark {
  border-color: var(--pink);
  box-shadow: 0 0 10px rgba(252, 50, 156, 0.3);
}
.quiz-choice input[type="radio"]:checked + .quiz-choice-mark::after {
  background: var(--pink-2);
  transform: scale(1);
}
.quiz-choice input[type="checkbox"]:checked + .quiz-choice-mark {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(252, 50, 156, 0.45), rgba(255, 110, 180, 0.3));
}
.quiz-choice input[type="checkbox"]:checked + .quiz-choice-mark::after {
  border-color: #fff;
  transform: rotate(45deg) scale(1);
}
.quiz-choice-text { color: var(--text); font-size: 14px; line-height: 1.45; }

.alert { padding: 12px 14px; border-radius: 12px; margin: 16px 0; }
.alert-error { background: rgba(255, 107, 129, 0.12); border: 1px solid rgba(255, 107, 129, 0.35); }
.alert-ok { background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.28); }

.cabinet-head {
  padding: 18px 0 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--pink-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cabinet-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 400;
}
.cabinet-head p { margin: 8px 0 0; color: var(--muted); }
.muted { color: var(--muted); }
.empty { padding: 12px 0; }
.code, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #ffd0e4;
}
.char-card.status-1 .badge { background: rgba(61, 220, 151, 0.14); color: #9ef0c8; border-color: rgba(61, 220, 151, 0.3); }
.char-card.status-0 .badge { background: rgba(245, 197, 66, 0.14); color: #ffe29a; border-color: rgba(245, 197, 66, 0.3); }
.char-card.status-2 .badge { background: rgba(255, 107, 129, 0.14); color: #ffc0c8; border-color: rgba(255, 107, 129, 0.3); }
.cabinet-account {
  border-radius: 18px;
  border: 1px solid rgba(252, 50, 156, 0.2);
  background:
    linear-gradient(135deg, rgba(252, 50, 156, 0.08), transparent 55%),
    var(--panel-solid);
}
.cabinet-account h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.char-card { padding: 18px; }
.char-card header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.char-card h3 { margin: 0; font-family: var(--subhead); font-size: 18px; }
.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-ok { background: rgba(61, 220, 151, 0.14); color: #9ef0c8; border-color: rgba(61, 220, 151, 0.3); }
.badge-wait { background: rgba(245, 197, 66, 0.14); color: #ffe29a; border-color: rgba(245, 197, 66, 0.3); }
.badge-err { background: rgba(255, 107, 129, 0.14); color: #ffc0c8; border-color: rgba(255, 107, 129, 0.3); }
.char-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; }
.char-meta dt { color: var(--muted); }
.char-meta dd { margin: 0; }
.char-grid-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.char-meta-wide .full { grid-column: 1 / -1; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 16px;
  font-size: 13px;
}
.detail-grid dt { color: var(--muted); margin-bottom: 2px; }
.detail-grid dd { margin: 0; }
.cabinet-admin-perms { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.perm-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.perm-tags li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(252, 50, 156, 0.12);
  border: 1px solid rgba(252, 50, 156, 0.25);
}
.char-history { margin-top: 12px; font-size: 13px; }
.char-history summary { cursor: pointer; color: var(--pink-2); }
.char-history p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.reject-reason { margin-top: 12px; font-size: 13px; color: #ffc9d8; }

.quiz-form fieldset {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.14);
}
.quiz-form fieldset legend {
  padding: 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.quiz-hint { font-size: 12px; color: var(--pink-2); margin-bottom: 10px; }
.counter { font-size: 12px; color: var(--muted); margin-top: 6px; display: block; }
.muted-box { padding: 20px; color: var(--muted); }
.optional { font-size: 11px; color: var(--muted); font-weight: normal; }
.quiz-num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(252, 50, 156, 0.2);
  font-size: 12px;
  margin-right: 6px;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.92);
  padding: 48px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px 24px;
  padding-bottom: 36px;
}
.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand-link img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 10px rgba(252, 50, 156, 0.5);
}
.footer-brand-link strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}
.footer-brand-link small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-tagline {
  max-width: 30rem;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0a5b5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.footer-social-link svg {
  transition: transform 0.3s ease, fill 0.3s ease;
}

/* Discord - Фиолетовое свечение */
.footer-social-link.social-discord:hover {
  color: #5865F2;
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
  transform: translateY(-2px);
}

/* Telegram - Сине-голубое свечение */
.footer-social-link.social-telegram:hover {
  color: #229ED9;
  background: rgba(34, 158, 217, 0.15);
  border-color: rgba(34, 158, 217, 0.5);
  box-shadow: 0 0 15px rgba(34, 158, 217, 0.5);
  transform: translateY(-2px);
}

/* YouTube - Красное свечение */
.footer-social-link.social-youtube:hover {
  color: #FF0000;
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
  transform: translateY(-2px);
}
.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--subhead);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: #b7a1ac;
  font-size: 13px;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--pink-2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { color: var(--muted); font-size: 12px; margin: 0; }
.footer-disclaimer { max-width: 34rem; text-align: right; line-height: 1.5; }

.content-page { padding-top: 12px; }
.content-page h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 400;
}
.content-lead { color: var(--muted); margin: 0 0 20px; max-width: 52rem; }
.content-card { padding: 28px; }
.content-body { color: #e8d7df; font-size: 15px; line-height: 1.7; }
.content-body h2 {
  font-family: var(--display);
  font-weight: 400;
  margin: 1.4em 0 0.5em;
}
.content-body h3 {
  font-family: var(--subhead);
  letter-spacing: 0.02em;
  font-weight: 600;
  margin: 1.4em 0 0.5em;
}
.content-body p { margin: 0 0 1em; }
.content-body ul, .content-body ol { margin: 0 0 1em; padding-left: 1.25em; }
.content-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.page-admin .main { width: min(1280px, calc(100% - 24px)); }
.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  align-items: start;
}
.admin-sidebar {
  position: sticky;
  top: 88px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 24, 0.88);
  box-shadow: var(--shadow);
}
.admin-sidebar-head .eyebrow {
  margin: 0 0 6px;
  color: var(--pink-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-sidebar-head strong { display: block; font-size: 16px; }
.admin-sidebar-head small { color: var(--muted); font-size: 12px; }
.admin-nav { display: grid; gap: 4px; margin-top: 16px; }
.admin-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #d2bcc7;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.admin-nav-link:hover,
.admin-nav-link.is-active {
  background: rgba(252, 50, 156, 0.14);
  color: #fff;
}
.admin-content { min-width: 0; }
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.admin-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
}
.admin-head p { margin: 8px 0 0; color: var(--muted); }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-stat,
.admin-stat-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 24, 0.8);
  transition: transform .15s ease, border-color .15s ease;
}
.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 50, 156, 0.4);
}
.admin-stat strong,
.admin-stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 0.04em;
  color: var(--pink-2);
  line-height: 1;
}
.admin-stat span,
.admin-stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.admin-quick-links a:hover {
  border-color: rgba(252, 50, 156, 0.45);
  background: rgba(252, 50, 156, 0.1);
}
.admin-card { padding: 18px; margin-bottom: 16px; }
.admin-card h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-table tr:hover td { background: rgba(252, 50, 156, 0.04); }
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.admin-filters input,
.admin-filters select { width: auto; min-width: 160px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.flash-host { margin-top: 16px; }

@media (max-width: 980px) {
  .news-grid,
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .launcher-banner { grid-template-columns: 1fr; }
  .home-pulse { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .news-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .hero { min-height: calc(100vh - 120px); padding-top: 28px; }
  .hero-brand img { width: clamp(220px, 60vw, 380px); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }
}
