:root {
  --bg: #0A0710; --bg2: #110C1B; --panel: #15101F; --panel2: #1D1630; --line: #2E2250;
  --text: #F5F0FF; --muted: #B3A9CC; --violet: #C4B5FD; --pink: #F9A8D4; --accent: #8B5CF6; --err: #FCA5A5; --ok: #86EFAC;
  --grad: linear-gradient(90deg, #C4B5FD, #F9A8D4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Space Grotesk", system-ui, "Segoe UI", sans-serif; background: var(--bg); color: var(--text);
  line-height: 1.55; overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
a { color: var(--violet); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* Шапка */
header.top { position: sticky; top: 0; z-index: 10; background: #0A0710cc; backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff10; }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.brand img { width: 40px; height: 40px; }
nav.menu { display: flex; gap: 24px; margin-left: 12px; flex: 1; }
nav.menu a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 2px; }
nav.menu a:hover { color: var(--text); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 24px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; min-height: 44px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn.primary { background: var(--grad); color: #0A0710; box-shadow: 0 8px 28px #F472B633; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px #F472B655; }
.btn.ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: #271D44; }
.btn.big { padding: 16px 34px; font-size: 18px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; }
.hero::before { width: 460px; height: 460px; background: #7C3AED55; right: -80px; top: -40px; }
.hero::after { width: 380px; height: 380px; background: #F472B633; left: -120px; bottom: -80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--pink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; background: #15101F99; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: -1px; }
.lead { margin: 22px 0 32px; font-size: 19px; color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ip { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.ip code { color: var(--text); font-size: 15px; }
.ip button { background: var(--panel2); color: var(--violet); border: 0; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(420px, 90%); filter: drop-shadow(0 30px 40px #7C3AED66); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }

/* Секции */
section { padding: 72px 0; }
.sec-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.5px; margin-bottom: 12px; }
.sec-sub { color: var(--muted); max-width: 560px; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #8B5CF6, #F472B6); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 26px; height: 26px; stroke: #0A0710; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #0A0710; font-weight: 700; margin-bottom: 16px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }
.community { background: var(--bg2); border-block: 1px solid #ffffff0d; }
.links { display: flex; flex-wrap: wrap; gap: 14px; }
footer { padding: 36px 0 48px; color: var(--muted); font-size: 13px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 12px; font-size: 14px; z-index: 50; }
.hidden { display: none !important; }

/* Кабинет и формы */
.page { padding: 56px 0 80px; min-height: calc(100vh - 160px); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #0A0710; display: grid; place-items: center; font-weight: 700; font-size: 24px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.muted { color: var(--muted); font-size: 14px; }
h2.h { font-size: 22px; margin-bottom: 6px; }
form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
label { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=password], input[type=email] { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--text); min-height: 46px; }
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #8B5CF633; }
.msg { min-height: 20px; font-size: 14px; }
.msg.err { color: var(--err); } .msg.ok { color: var(--ok); }
.file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; }
.center { max-width: 460px; margin: 0 auto; text-align: center; }
.badge { display: inline-block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ok); border: 1px solid #86EFAC55; border-radius: 999px; padding: 3px 10px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .hero-art img { width: 240px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  nav.menu { display: none; }
  header.top .wrap { justify-content: space-between; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}

/* Страницы входа */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-wrap .panel { padding: 32px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 8px; }
.tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; padding: 11px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.tabs button[aria-selected=true] { background: var(--panel2); color: var(--text); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.google { width: 100%; background: #fff; color: #1f1f1f; margin-top: 14px; }
.btn.google:hover { background: #f1eefc; }
.btn.google svg { width: 20px; height: 20px; }
.btn.block { width: 100%; }
.check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.linkbtn { background: none; border: 0; color: var(--violet); font: inherit; font-size: 14px; cursor: pointer; text-align: left; padding: 4px 0; text-decoration: underline; }
.hint { font-size: 12px; color: var(--muted); margin-top: -6px; }

/* Шапка: справа Войти / Регистрация / Скачать */
.navright { display: flex; align-items: center; gap: 22px; }
.navlink { color: #fff; font: inherit; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; text-decoration: none; padding: 10px 4px; background: none; border: 0; cursor: pointer; }
.navlink:hover { color: var(--pink); }
.btn.dl { padding: 10px 26px; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; min-height: 42px; }
.toast { max-width: calc(100% - 40px); text-align: center; }
@media (max-width: 620px) {
  .navright { gap: 10px; }
  .navlink { font-size: 12px; padding: 10px 2px; }
  .btn.dl { padding: 9px 14px; font-size: 12px; }
  .brand span { display: none; }
}

/* Стеклянная форма входа и регистрации */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.auth-page { background: radial-gradient(700px 520px at 12% 15%, #F472B63a, transparent 60%), radial-gradient(760px 620px at 88% 75%, #7C3AED55, transparent 60%), var(--bg); background-attachment: fixed; }
.auth-main { position: relative; display: grid; place-items: center; padding: 48px 20px 72px; min-height: calc(100vh - 69px); }
.auth-main::before { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); background: conic-gradient(from 20deg, #8B5CF6, #F472B6, #FBCFE8, #7C3AED, #8B5CF6); filter: blur(90px); opacity: .6; z-index: 0; border-radius: 50%; }
.glass { position: relative; z-index: 1; width: min(440px, 100%); padding: 40px 40px 32px; border-radius: 30px; background: rgba(21, 16, 31, .45); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); box-shadow: 0 30px 80px #00000066, inset 0 1px 0 rgba(255, 255, 255, .12); }
.glass h1 { text-align: center; font-size: 36px; letter-spacing: -.5px; margin-bottom: 26px; }
.glass form { margin-top: 0; gap: 18px; }
.field { position: relative; }
.field input { width: 100%; padding: 18px 56px 18px 22px; min-height: 60px; font-size: 18px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .09); border: 1.5px solid rgba(255, 255, 255, .28); border-bottom: 3px solid rgba(255, 255, 255, .7); border-radius: 20px; }
.field input::placeholder { color: rgba(255, 255, 255, .62); }
.field input:focus { border-color: rgba(255, 255, 255, .55); border-bottom-color: var(--pink); box-shadow: 0 0 0 3px #F9A8D433; background: rgba(255, 255, 255, .13); }
.field .ico { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; color: rgba(255, 255, 255, .62); display: grid; place-items: center; font-size: 22px; font-weight: 700; pointer-events: none; }
.field .ico svg { width: 24px; height: 24px; fill: currentColor; }
.field button.ico { pointer-events: auto; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; right: 10px; border-radius: 12px; }
.field button.ico:hover { color: #fff; }
.terms { flex-direction: row; align-items: center; gap: 14px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .68); cursor: pointer; margin: 4px 0; }
.terms input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.terms .box { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.terms .box::after { content: ""; width: 12px; height: 6px; border-left: 3px solid #0A0710; border-bottom: 3px solid #0A0710; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.terms input:checked + .box { background: var(--grad); border-color: transparent; }
.terms input:checked + .box::after { opacity: 1; }
.terms input:focus-visible + .box { outline: 2px solid var(--pink); outline-offset: 3px; }
.terms a { color: #fff; }
.ring { padding: 6px; border-radius: 26px; border: 4px solid rgba(255, 255, 255, .2); margin-top: 6px; }
.ring button { width: 100%; min-height: 56px; border: 0; border-radius: 18px; font: inherit; font-weight: 700; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); cursor: default; transition: background .2s, color .2s, box-shadow .2s; }
.ring button:not(:disabled) { background: var(--grad); color: #0A0710; cursor: pointer; box-shadow: 0 8px 28px #F472B644; }
.ring button:not(:disabled):hover { box-shadow: 0 10px 34px #F472B677; }
.glass .msg { text-align: center; }
.switch { text-align: center; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .68); }
.switch button, .glass .linkbtn { color: #fff; }
.glass .linkbtn { align-self: center; }
.glass .hint { text-align: center; margin-top: -8px; color: rgba(255, 255, 255, .6); }
@media (max-width: 480px) { .glass { padding: 30px 22px 26px; } .glass h1 { font-size: 30px; } }
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: 36px; margin-bottom: 10px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }

/* Вспомогательные классы (вместо встроенных style: политика безопасности их блокирует) */
.title-lg { font-size: 30px; margin-bottom: 10px; }
.title-md { font-size: 28px; line-height: 1.2; }
.title-sm { font-size: 26px; margin-bottom: 6px; }
.mb22 { margin-bottom: 22px; }
.mt14 { margin-top: 14px; }
.mt20 { margin-top: 20px; }
.field .ico.at { line-height: 1; padding-bottom: 5px; }
.glass { padding-block: 32px 26px; }
.glass h1 { margin-bottom: 20px; }
.glass form { gap: 14px; }
.field input { min-height: 56px; padding-block: 15px; }
.auth-main { padding-top: 32px; padding-bottom: 48px; }

/* Окно входа: компактная карточка, светящаяся кнопка, ссылки под карточкой */
.stack { position: relative; width: min(460px, 100%); }
.stack .glass { width: 100%; padding: 38px 56px 36px; }
.orb { position: absolute; z-index: 0; border-radius: 50%; background: linear-gradient(140deg, #FBCFE8, #F472B6 45%, #7C3AED); box-shadow: 0 0 60px #F472B688; }
.orb.o1 { width: 120px; height: 120px; left: -64px; top: 8px; }
.orb.o2 { width: 150px; height: 150px; left: -84px; top: 38%; background: linear-gradient(140deg, #C4B5FD, #8B5CF6 60%, #F472B6); }
.orb.o3 { width: 130px; height: 130px; right: -66px; bottom: 40px; background: linear-gradient(140deg, #F9A8D4, #C4B5FD 55%, #7C3AED); }
.ring.glow { border-color: #FBCFE8; box-shadow: 0 0 0 1px #ffffff55, 0 0 30px #F472B699, inset 0 0 16px #F472B655; }
.ring.glow button { background: rgba(124, 58, 237, .4); color: #fff; cursor: pointer; }
.ring.glow button:hover:not(:disabled) { background: rgba(244, 114, 182, .45); box-shadow: none; }
.ring.glow button:disabled { opacity: .6; cursor: default; }
.below { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding: 22px 10px 0; }
.below[hidden] { display: none; }
.below .navlink { padding: 8px 2px; }
@media (max-width: 520px) { .stack .glass { padding: 30px 22px 28px; } .orb { opacity: .8; } .orb.o1, .orb.o2 { left: -50px; } .orb.o3 { right: -50px; } }

/* ---------- Админ-панель ---------- */
.adm-head { margin-bottom: 18px; }
.badge { display: inline-block; vertical-align: middle; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--pink); margin-left: 10px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; min-height: 42px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #0A0710; border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat .num { font-size: 34px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input { flex: 1 1 220px; }
select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--text); min-height: 44px; }
textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 14px; resize: vertical; }
select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #8B5CF633; }
.tablewrap { overflow-x: auto; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #221a38; vertical-align: top; }
.tbl td.small { font-size: 12px; color: var(--muted); word-break: break-all; max-width: 320px; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td, .tbl tr.clickable:focus td { background: #1D1630; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--panel2); border: 1px solid var(--line); }
.pill.good { color: var(--ok); } .pill.bad { color: var(--err); } .pill.role { color: var(--pink); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.btn.sm { padding: 8px 16px; font-size: 14px; min-height: 38px; }
.btn.danger { background: #3A1420; color: var(--err); border: 1px solid #5B2236; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.dlg { margin: auto; width: min(560px, calc(100% - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.dlg::backdrop { background: rgba(5, 3, 10, .7); backdrop-filter: blur(4px); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { word-break: break-word; }
.dact { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.linkout { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.linkout code { flex: 1; font-size: 12px; word-break: break-all; }

/* ---------- Меню игрока в шапке ---------- */
.umenu { position: relative; }
.utrig { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; padding: 6px 8px; border-radius: 14px; min-height: 44px; }
.utrig:hover, .umenu.open .utrig { background: #ffffff12; }
.uname { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uarrow { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; margin: 0 4px 0 2px; }
.umenu.open .uarrow { transform: rotate(-135deg) translateY(-2px); }
.uav { display: grid; place-items: center; overflow: hidden; background: var(--grad); color: #0A0710; font-weight: 700; flex: none; }
.uav img { width: 100%; height: 100%; object-fit: cover; }
.uav.sm { width: 38px; height: 38px; border-radius: 50%; font-size: 17px; }
.uav.lg { width: 64px; height: 64px; border-radius: 50%; font-size: 28px; }
.upanel { position: absolute; right: 0; top: 100%; width: 300px; margin-top: 8px; padding: 20px; border-radius: 22px; background: rgba(29, 22, 48, .92); border: 1px solid #ffffff1f; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 24px 60px #000000a0; display: none; flex-direction: column; gap: 12px; }
.upanel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* мостик, чтобы меню не закрывалось при движении мыши */
.umenu.open .upanel { display: flex; }
.uhead { display: flex; align-items: center; gap: 14px; }
.unick { font-size: 20px; font-weight: 700; word-break: break-all; }
.urole { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 3px 12px; border-radius: 10px; background: var(--grad); color: #0A0710; }
.usep { border: 0; border-top: 1px solid #ffffff1f; margin: 4px 0; }
.ubtn, .ulogout { display: flex; align-items: center; justify-content: center; text-decoration: none; text-transform: uppercase; letter-spacing: .5px; font: inherit; font-weight: 700; font-size: 14px; color: #fff; padding: 14px; min-height: 48px; border-radius: 16px; border: 1.5px solid #ffffff33; background: #ffffff0d; cursor: pointer; }
.ubtn:hover { background: #ffffff1c; }
.ulogout { border: 0; background: none; color: var(--muted); min-height: 40px; }
.ulogout:hover { color: var(--pink); }
@media (max-width: 620px) { .uname { display: none; } .upanel { width: min(300px, calc(100vw - 24px)); } }

/* окно подтверждения выхода */
.ovl { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 25% 20%, #F472B6aa, transparent 55%), radial-gradient(circle at 80% 80%, #8B5CF6aa, transparent 55%), rgba(10, 7, 16, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ovl-card { width: min(480px, 100%); background: #130c1f; border: 1px solid #ffffff1a; border-radius: 24px; padding: 40px 36px; box-shadow: 0 30px 80px #000000a0; }
.ovl-q { font-size: 24px; line-height: 1.25; margin-bottom: 32px; }
.ovl-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ovl-row .btn { flex: 1 1 140px; text-transform: uppercase; font-size: 15px; }
.ovl-x { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #ffffff2b; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ovl-x:hover { background: #ffffff45; }

/* смена аватарки в кабинете */
.avrow { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.avrow .avatar { width: 80px; height: 80px; border-radius: 50%; font-size: 34px; }
.avbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.profile .avatar { width: 88px; height: 88px; border-radius: 50%; font-size: 36px; flex: none; }
.profile { align-items: flex-start; gap: 20px; }
