/* ══════════════════════════════════════
   CURSOR LIGHT
══════════════════════════════════════ */
#cursor-light {
  position: fixed;
  top: 0; left: 0;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.025) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}

/* ══════════════════════════════════════
   LIGHT ON ELEMENTS
══════════════════════════════════════ */
.light-el { position: relative; overflow: hidden; }
.el-light {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  z-index: 10;
  opacity: 0;
}

/* ══════════════════════════════════════
   BASE
══════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #000;
  color: #fff;
  font-family: SF Pro Text, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer { margin-top: auto; }

a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: .5px solid rgba(255,255,255,.08);
}



.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.burger.burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.burger-open span:nth-child(2) { opacity: 0; }
.burger.burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 99;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 20px;
}
.nav-mobile.open { display: flex; }
@media (min-width: 769px) { .nav-mobile { display: none !important; } }
.nav-mobile a {
  font-size: 17px; font-weight: 500;
  color: rgba(255,255,255,.6);
  padding: 10px 4px;
  letter-spacing: -.3px;
  transition: color 0.15s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: #fff; }
.nav-mobile .btn-primary { background: #fff; color: #000 !important; }
.nav-mobile .btn-ghost { color: rgba(255,255,255,.7) !important; }
.nav-mobile .btn { margin-top: 4px; text-align: center; justify-content: center; }

/* shimmer stripe that follows mouse */
nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent calc(var(--mx, .5) * 100% - 180px),
    rgba(255,255,255,.05) calc(var(--mx, .5) * 100%),
    transparent calc(var(--mx, .5) * 100% + 180px)
  );
  pointer-events: none;
}

.nav-inner {
  height: 60px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .nav-inner { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 0 20px; }
  .nav-right { order: -1; }
  .nav-logo { order: 1; }
  .nav-links { display: none !important; }
  .nav-right { display: flex !important; gap: 0; }
  .nav-right > a, .nav-right > .btn { display: none !important; }
  .burger { display: flex !important; }
}

.nav-links { display: flex; gap: 37px; justify-self: start; }
.nav-links a {
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,.45);
  transition: color 0.2s ease-out;
  letter-spacing: -.3px;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

.nav-logo {
  font-size: 17px; font-weight: 500;
  letter-spacing: -1px;
  justify-self: center; color: #fff;
}

.nav-right { display: flex; justify-content: flex-end; gap: 12px; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  border-radius: 340px;
  font-size: 14px; font-weight: 500; letter-spacing: -.3px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  border: none; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover {
  background: rgba(255,255,255,.93);
  box-shadow: 0 0 22px rgba(255,255,255,.28), 0 0 55px rgba(255,255,255,.09);
}
.btn-ghost {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.83);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.32), 0 0 18px rgba(255,255,255,.08);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* animated background orbs behind bee */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Hero orbs (full-screen, behind everything) ── */
#hero-orb-warm, #hero-orb-cool {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}

#hero-orb-warm {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,190,60,.2) 0%, rgba(255,120,30,.08) 40%, transparent 70%);
  filter: blur(6px);
}

#hero-orb-cool {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(100,160,255,.15) 0%, transparent 65%);
  filter: blur(4px);
}

/* bee canvas — absolute right side */
.hero-bee {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* hero-bee: mask fades left edge without darkening background */
.hero-bee::before { display: none; }

#bee-canvas {
  width: 640px; height: 640px;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 30%);
  mask-image: linear-gradient(90deg, transparent 0%, black 30%);
}

/* text */
.hero-text {
  position: relative;
  z-index: 3;
  padding: 120px 40px 80px;
  max-width: 560px;
  margin-left: max(40px, calc((100vw - 1220px) / 2));
}

.hero-eyebrow {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.28);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -5px;
  margin-bottom: 24px;
  color: #fff;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.42);
  margin-bottom: 36px;
  line-height: 152%;
  letter-spacing: -.3px;
  max-width: 360px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-online {
  display: inline-flex; align-items: baseline; gap: 7px;
  margin-top: 28px;
}
.hero-online-num {
  font-size: 15px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  color: rgba(255,255,255,.75);
}
.hero-online-label {
  font-size: 13px;
  color: rgba(255,255,255,.28);
  letter-spacing: -.2px;
}

/* старая пилюля — оставляем класс на случай переиспользования, скрываем */
.online-pill { display: none; }
.online-dot { display: none; }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section {
  padding: 120px 40px;
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px; gap: 40px;
}

.section-eyebrow {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.28);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -3px; line-height: 1.02;
}

.section-desc {
  font-size: 15px; color: rgba(255,255,255,.4);
  line-height: 152%; letter-spacing: -.2px;
  max-width: 320px; flex-shrink: 0;
}

/* ══════════════════════════════════════
   FEATURES GRID
══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.07);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.07);
}

.feature-card {
  padding: 32px 28px;
  background: #000;
  transition: background 0.25s ease-out;
  position: relative;
  overflow: hidden;
}

/* inner glow on hover */
.feature-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.025) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover { background: rgba(255,255,255,.03); }
.feature-card:hover::after { opacity: 1; }

.feature-icon { font-size: 24px; margin-bottom: 16px; display: block; }
.feature-name { font-size: 17px; font-weight: 500; letter-spacing: -.8px; margin-bottom: 8px; }
.feature-text { font-size: 14px; color: rgba(255,255,255,.38); line-height: 152%; letter-spacing: -.1px; }

/* ══════════════════════════════════════
   RULES
══════════════════════════════════════ */
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.rule-card {
  padding: 28px; border-radius: 20px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  transition: box-shadow 0.2s ease;
}
.rule-card:hover {
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 0 30px rgba(255,255,255,.03);
}

.rule-card-title {
  font-size: 16px; font-weight: 500; letter-spacing: -.8px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}

.rule-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rule-list li {
  font-size: 14px; color: rgba(255,255,255,.42);
  padding-left: 14px; position: relative;
  line-height: 152%; letter-spacing: -.1px;
}
.rule-list li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.22);
}

/* ══════════════════════════════════════
   MAP
══════════════════════════════════════ */
.map-box {
  border-radius: 20px; overflow: hidden;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.02);
  display: flex; align-items: center; justify-content: center;
}

.map-empty { text-align: center; color: rgba(255,255,255,.16); }
.map-empty svg { width: 52px; height: 52px; margin: 0 auto 14px; display: block; }
.map-empty p { font-size: 15px; letter-spacing: -.5px; }
.map-empty span { font-size: 13px; color: rgba(255,255,255,.1); }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }

.stat-card {
  padding: 24px; border-radius: 20px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  text-align: center;
  transition: box-shadow 0.2s ease;
}
.stat-card:hover {
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.15), 0 0 40px rgba(255,255,255,.04);
}

.stat-num { font-size: 36px; font-weight: 500; letter-spacing: -2px; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.28); margin-top: 4px; letter-spacing: -.1px; }

/* ══════════════════════════════════════
   SHOP — PASS
══════════════════════════════════════ */
.period-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
}

.period-tab {
  padding: 8px 18px; border-radius: 340px;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  font-size: 14px; font-weight: 500; letter-spacing: -.2px;
  cursor: pointer; border: none;
  transition: all 0.15s ease;
  display: flex; align-items: center; gap: 6px;
}
.period-tab:hover { background: rgba(255,255,255,.09); color: rgba(255,255,255,.8); }
.period-tab.active {
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25);
  color: #fff;
}

.period-save {
  font-size: 11px; color: #4ade80;
  background: rgba(74,222,128,.12);
  padding: 1px 6px; border-radius: 100px;
}

.pass-card {
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1), 0 40px 80px -20px rgba(0,0,0,.6);
  position: relative; overflow: hidden;
}

.pass-card::before {
  content: '';
  position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}

.pass-card-inner {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.pass-name { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }

.pass-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.pass-price { font-size: 72px; font-weight: 500; letter-spacing: -6px; line-height: 1; }
.pass-price sup { font-size: 28px; letter-spacing: -1px; vertical-align: super; }
.pass-period-label { font-size: 16px; color: rgba(255,255,255,.3); letter-spacing: -.3px; }
.pass-desc { font-size: 15px; color: rgba(255,255,255,.4); line-height: 150%; letter-spacing: -.2px; }

.pass-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pass-features li {
  font-size: 15px; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -.2px;
}
.pass-features li::before { content: '+'; color: rgba(255,255,255,.35); flex-shrink: 0; }

.pass-btn { width: 100%; justify-content: center; padding: 13px 20px; font-size: 15px; border-radius: 14px; }

/* ══════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════ */
.page-header {
  padding: 130px 40px 56px;
  max-width: 1220px; margin: 0 auto;
  border-bottom: .5px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden;
}

/* ambient glow behind page title */
.page-header::before {
  content: '';
  position: absolute;
  top: 60%; left: 30%;
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,255,255,.04) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: header-glow 8s ease-in-out infinite;
}

@keyframes header-glow {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .5; transform: translate(-50%, -50%) scale(1.2); }
}

.page-header h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500; letter-spacing: -5px;
  line-height: .93; margin-bottom: 14px;
  position: relative;
}
.page-header p { font-size: 16px; color: rgba(255,255,255,.38); letter-spacing: -.2px; position: relative; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  padding: 32px 40px;
  border-top: .5px solid rgba(255,255,255,.06);
  font-size: 13px; color: rgba(255,255,255,.16); letter-spacing: -.1px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-inner > p { margin: 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,.4); text-decoration: none;
  transition: color .2s;
  font-size: 13px; letter-spacing: -.1px;
}
.footer-links a:hover { color: rgba(255,255,255,.85); }
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
}

/* ══════════════════════════════════════
   LEGAL PAGES
══════════════════════════════════════ */
.legal-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.legal-stack .rule-card { margin: 0; }
.legal-text {
  font-size: 14px; color: rgba(255,255,255,.62);
  letter-spacing: -.2px; line-height: 162%;
  margin: 0 0 14px 0;
}
.legal-text:last-child { margin-bottom: 0; }
.legal-text strong { color: rgba(255,255,255,.92); font-weight: 600; }
.legal-link {
  color: #4ade80; text-decoration: none;
  border-bottom: 1px solid rgba(74,222,128,.3);
  transition: border-color .2s;
}
.legal-link:hover { border-bottom-color: rgba(74,222,128,.85); }

/* ══════════════════════════════════════
   FADE-UP
══════════════════════════════════════ */
.fade-up {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .pass-card-inner { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: 52px; letter-spacing: -3px; }
}

@media (max-width: 600px) {
  /* nav */
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
  .nav-right { gap: 8px; }
  .nav-right .btn { padding: 7px 12px; font-size: 13px; }

  /* hero */
  .hero { min-height: 100svh; align-items: flex-end; padding-bottom: 60px; }
  .hero-text { padding: 80px 20px 0; margin-left: 0; max-width: 100%; }
  .hero-title { font-size: 44px; letter-spacing: -3px; }
  .hero-desc { font-size: 15px; max-width: 100%; }

  /* bee: static, top-right, smaller */
  .hero-bee {
    width: 260px; height: 260px;
    top: 60px; right: -20px; bottom: auto;
    opacity: .7;
  }
  #bee-canvas {
    width: 260px; height: 260px;
    -webkit-mask-image: none;
    mask-image: none;
    pointer-events: none;
  }

  /* sections */
  .section { padding: 60px 20px; }
  .page-header { padding: 100px 20px 40px; }
  .page-header h1 { font-size: clamp(24px, 7vw, 40px); letter-spacing: -2px; word-break: break-word; overflow-wrap: anywhere; }
  .section-title { font-size: 30px; letter-spacing: -2px; }

  /* grids */
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }

  /* shop */
  .period-tabs { gap: 6px; }
  .period-tab { padding: 7px 14px; font-size: 13px; }
  .pass-card-inner { padding: 24px; gap: 20px; }
  .pass-price { font-size: 56px; letter-spacing: -4px; }

  /* hide orbs on mobile for perf */
  #hero-orb-warm, #hero-orb-cool, #cursor-light { display: none; }
}

/* ── Payment modal ── */
.pay-modal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.pay-modal.open { display: flex; }
.pay-modal-box {
  position: relative;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 40px 36px 36px;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 20px;
}
.pay-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,.4);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.pay-modal-close:hover { color: #fff; }
.pay-modal-title { font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.pay-modal-period { font-size: 14px; color: rgba(255,255,255,.5); margin-top: -12px; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method-btn {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 16px 20px;
  color: #fff; cursor: pointer; text-align: left;
  transition: background .15s, border-color .15s;
}
.pay-method-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.pay-method-btn:disabled { opacity: .5; cursor: not-allowed; }
.pay-method-icon { font-size: 24px; width: 36px; text-align: center; flex-shrink: 0; }
.pay-method-info { display: flex; flex-direction: column; gap: 2px; }
.pay-method-info strong { font-size: 15px; font-weight: 600; }
.pay-method-info small { font-size: 12px; color: rgba(255,255,255,.45); }
.pay-error { font-size: 13px; color: #f87171; min-height: 16px; }
.pay-method-icon { color: rgba(255,255,255,.7); }

/* === PROFILE BACKGROUNDS === */
.profile-bg { position:absolute; inset:0; z-index:0; border-radius:inherit; overflow:hidden; }
.account-page-bg { position:fixed; inset:0; z-index:0; pointer-events:none; }
.account-page-bg .profile-bg { border-radius:0; filter:blur(32px); opacity:0.35; transform:scale(1.05); }
.profile-card { position:relative; overflow:hidden; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07); transition: box-shadow 0.2s ease; }
.profile-card:hover { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 0 30px rgba(255,255,255,.03); }

.bg-dark .profile-bg { background:#0a0a0a; }
.bg-emerald .profile-bg { background:radial-gradient(ellipse at 30% 60%,#0d3320 0%,#061a0e 50%,#000 100%); }
.bg-ash .profile-bg { background:linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f0f1a 100%); }
.bg-grid .profile-bg {
  background-color:#050a05;
  background-image:linear-gradient(rgba(74,222,128,.25) 1px,transparent 1px),linear-gradient(90deg,rgba(74,222,128,.25) 1px,transparent 1px);
  background-size:32px 32px;
}
.bg-fog .profile-bg {
  background:radial-gradient(ellipse at 20% 60%,rgba(74,222,128,.35) 0%,transparent 55%),
             radial-gradient(ellipse at 80% 20%,rgba(0,200,255,.2) 0%,transparent 50%),
             radial-gradient(ellipse at 60% 80%,rgba(100,255,180,.15) 0%,transparent 45%),
             #060d0a;
}
@keyframes aurora-shift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.bg-aurora .profile-bg {
  background:linear-gradient(270deg,#000,#0d3020,#1a0a2e,#0a2818,#001a30,#000);
  background-size:400% 400%;
  animation:aurora-shift 8s ease infinite;
}
@keyframes matrix-rain { 0%{background-position:0 0} 100%{background-position:0 100px} }
.bg-matrix .profile-bg {
  background-color:#020a02;
  background-image:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(74,222,128,.18) 2px,rgba(74,222,128,.18) 3px),
                   repeating-linear-gradient(90deg,transparent,transparent 8px,rgba(74,222,128,.06) 8px,rgba(74,222,128,.06) 10px);
  animation:matrix-rain 3s linear infinite;
}
@keyframes pulse-glow { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.05)} }
.bg-pulse .profile-bg {
  background:radial-gradient(ellipse at center,rgba(74,222,128,.5) 0%,rgba(74,222,128,.2) 35%,rgba(74,222,128,.05) 60%,transparent 80%),#030a03;
  animation:pulse-glow 3s ease-in-out infinite;
}
@keyframes northern-move { 0%{background-position:0% 0%} 50%{background-position:100% 100%} 100%{background-position:0% 0%} }
.bg-northern .profile-bg {
  background:linear-gradient(135deg,#020810,#0a2f28,#1a0a30,#0d3535,#051020,#020810);
  background-size:300% 300%;
  animation:northern-move 10s ease infinite;
}
@keyframes cyber-flicker { 0%,95%,100%{opacity:1} 96%{opacity:.85} 97%{opacity:1} 98%{opacity:.9} }
.bg-cyber .profile-bg {
  background-image:linear-gradient(rgba(74,222,128,.22) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(74,222,128,.22) 1px,transparent 1px),
                   linear-gradient(135deg,#050510,#0a0f20,#050510);
  background-size:20px 20px,20px 20px,100% 100%;
  animation:cyber-flicker 4s step-end infinite;
}

/* bg shop grid */
.bg-shop-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:768px){ .bg-shop-grid { grid-template-columns:repeat(3,1fr); } }
@media(max-width:480px){ .bg-shop-grid { grid-template-columns:repeat(2,1fr); } }
.bg-card { background:#0a0a0a; border:1px solid rgba(255,255,255,.06); border-radius:10px; overflow:hidden; transition:border-color .2s,transform .2s; }
.bg-card:hover { border-color:rgba(255,255,255,.12); transform:translateY(-2px); }
.bg-preview { height:110px; position:relative; overflow:hidden; }
.bg-card-body { padding:8px 10px; }
.bg-card-title { font-size:13px; font-weight:500; color:#fff; display:flex; align-items:center; gap:6px; }
.bg-anim-badge { font-size:10px; background:rgba(74,222,128,0.15); color:#4ade80; border-radius:4px; padding:1px 5px; }
.bg-card-price { font-size:11px; color:#666; margin-top:2px; }
.bg-card-btn { margin-top:8px; width:100%; padding:6px; border-radius:6px; font-size:12px; cursor:pointer; transition:border-color .2s,opacity .2s; }
.bg-btn-active { background:none; border:none; color:#4ade80; cursor:default; font-weight:500; }
.bg-btn-select { background:rgba(255,255,255,.06); border:1px solid rgba(74,222,128,.3); color:#fff; font-weight:400; }
.bg-btn-select:hover { border-color:rgba(74,222,128,.6); background:rgba(74,222,128,.08); }
.bg-btn-buy { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.15); color:#fff; font-weight:500; }
.bg-btn-buy:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.3); }

@keyframes sixty-seven-float {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}
@keyframes drip {
  0%   { filter: drop-shadow(0 0 8px #ff6eb4) drop-shadow(0 4px 12px #4fc3f7); }
  50%  { filter: drop-shadow(0 0 16px #ff1493) drop-shadow(0 8px 20px #0288d1); }
  100% { filter: drop-shadow(0 0 8px #ff6eb4) drop-shadow(0 4px 12px #4fc3f7); }
}
.bg-sixtyseven .profile-bg {
  background-color: #080808;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bg-sixtyseven .profile-bg::before {
  content: "67";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  font-weight: 900;
  font-family: Arial Black, sans-serif;
  background: linear-gradient(135deg, #ff6eb4 0%, #ff1493 45%, #4fc3f7 55%, #0288d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sixty-seven-float 3s ease-in-out infinite, drip 2s ease-in-out infinite;
  letter-spacing: -4px;
}
@media (max-width: 768px) {
  .players-layout { grid-template-columns: 1fr !important; }
}

/* GIF backgrounds */
.bg-sakura .profile-bg     { background: url('/static/img/bg/sakura.gif') center/cover no-repeat; }
.bg-sakura-sky .profile-bg { background: url('/static/img/bg/sakura-sky.gif') center/cover no-repeat; }
.bg-petals .profile-bg     { background: #0a0a0a url('/static/img/bg/petals.gif') center/cover no-repeat; }
.bg-mushroom .profile-bg   { background: url('/static/img/bg/mushroom.gif') center/cover no-repeat; }
.bg-meow .profile-bg       { background: url('/static/img/bg/meow.gif') center/cover no-repeat; }
.bg-tailvpn .profile-bg    { background: url('/static/img/bg/tailvpn.gif') center/cover no-repeat; }
.bg-duck .profile-bg       { background: url('/static/img/bg/duck.gif') center/cover no-repeat; }
.bg-besttime .profile-bg   { background: url('/static/img/bg/besttime.gif') center/cover no-repeat; }
.bg-forest .profile-bg     { background: url('/static/img/bg/forest.gif') center/cover no-repeat; }


/* profile card text readability */
.profile-text, .profile-text * {
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.7);
}

/* ===== BORDER SYSTEM ===== */
/* All borders use box-shadow — not clipped by overflow:hidden */

.border-preview-box {
  width: 80px; height: 80px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
}

/* Static borders — box-shadow on the card itself */
.border-white  { box-shadow: 0 0 0 3px rgba(255,255,255,0.75), 0 40px 80px -20px rgba(0,0,0,.6) !important; }
.border-emerald{ box-shadow: 0 0 0 3px #4ade80, 0 0 12px rgba(74,222,128,0.35), 0 40px 80px -20px rgba(0,0,0,.6) !important; }
.border-gold   { box-shadow: 0 0 0 3px #fbbf24, 0 0 14px rgba(251,191,36,0.4), 0 40px 80px -20px rgba(0,0,0,.6) !important; }

/* Animated borders */
@keyframes neon-pulse {
  0%,100% { box-shadow: 0 0 0 3px #39ff14, 0 0 10px rgba(57,255,20,0.5), 0 0 22px rgba(57,255,20,0.25), 0 40px 80px -20px rgba(0,0,0,.6); }
  50%      { box-shadow: 0 0 0 3px #39ff14, 0 0 18px rgba(57,255,20,0.85), 0 0 36px rgba(57,255,20,0.45), 0 40px 80px -20px rgba(0,0,0,.6); }
}
.border-neon { animation: neon-pulse 1.5s ease-in-out infinite; }

@keyframes fire-pulse {
  0%   { box-shadow: 0 0 0 3px #ff4500, 0 0 10px rgba(255,69,0,0.6),  0 0 22px rgba(255,140,0,0.3), 0 40px 80px -20px rgba(0,0,0,.6); }
  33%  { box-shadow: 0 0 0 3px #ff8c00, 0 0 14px rgba(255,140,0,0.7), 0 0 28px rgba(255,215,0,0.35), 0 40px 80px -20px rgba(0,0,0,.6); }
  66%  { box-shadow: 0 0 0 3px #ffd700, 0 0 12px rgba(255,215,0,0.65),0 0 24px rgba(255,69,0,0.3),  0 40px 80px -20px rgba(0,0,0,.6); }
  100% { box-shadow: 0 0 0 3px #ff4500, 0 0 10px rgba(255,69,0,0.6),  0 0 22px rgba(255,140,0,0.3), 0 40px 80px -20px rgba(0,0,0,.6); }
}
.border-fire { animation: fire-pulse 2s linear infinite; }

@keyframes rainbow-cycle {
  0%   { box-shadow: 0 0 0 3px #ff0000, 0 0 14px rgba(255,0,0,0.5),   0 40px 80px -20px rgba(0,0,0,.6); }
  17%  { box-shadow: 0 0 0 3px #ff8800, 0 0 14px rgba(255,136,0,0.5), 0 40px 80px -20px rgba(0,0,0,.6); }
  33%  { box-shadow: 0 0 0 3px #ffff00, 0 0 14px rgba(255,255,0,0.5), 0 40px 80px -20px rgba(0,0,0,.6); }
  50%  { box-shadow: 0 0 0 3px #00ff00, 0 0 14px rgba(0,255,0,0.5),   0 40px 80px -20px rgba(0,0,0,.6); }
  67%  { box-shadow: 0 0 0 3px #0088ff, 0 0 14px rgba(0,136,255,0.5), 0 40px 80px -20px rgba(0,0,0,.6); }
  83%  { box-shadow: 0 0 0 3px #8800ff, 0 0 14px rgba(136,0,255,0.5), 0 40px 80px -20px rgba(0,0,0,.6); }
  100% { box-shadow: 0 0 0 3px #ff0000, 0 0 14px rgba(255,0,0,0.5),   0 40px 80px -20px rgba(0,0,0,.6); }
}
.border-rainbow { animation: rainbow-cycle 3s linear infinite; }

@keyframes plasma-pulse {
  0%   { box-shadow: 0 0 0 3px #3b82f6, 0 0 12px rgba(59,130,246,0.6),  0 0 24px rgba(139,92,246,0.3),  0 40px 80px -20px rgba(0,0,0,.6); }
  50%  { box-shadow: 0 0 0 3px #a855f7, 0 0 18px rgba(168,85,247,0.85), 0 0 36px rgba(59,130,246,0.45), 0 40px 80px -20px rgba(0,0,0,.6); }
  100% { box-shadow: 0 0 0 3px #3b82f6, 0 0 12px rgba(59,130,246,0.6),  0 0 24px rgba(139,92,246,0.3),  0 40px 80px -20px rgba(0,0,0,.6); }
}
.border-plasma { animation: plasma-pulse 2s ease-in-out infinite; }

/* Preview boxes in shop */
.border-preview-box.border-white   { box-shadow: 0 0 0 3px rgba(255,255,255,0.75); }
.border-preview-box.border-emerald { box-shadow: 0 0 0 3px #4ade80, 0 0 10px rgba(74,222,128,0.4); }
.border-preview-box.border-gold    { box-shadow: 0 0 0 3px #fbbf24, 0 0 10px rgba(251,191,36,0.4); }
.border-preview-box.border-neon    { animation: neon-pulse-preview 1.5s ease-in-out infinite; }
.border-preview-box.border-fire    { animation: fire-pulse-preview 2s linear infinite; }
.border-preview-box.border-rainbow { animation: rainbow-cycle-preview 3s linear infinite; }
.border-preview-box.border-plasma  { animation: plasma-pulse-preview 2s ease-in-out infinite; }
.border-preview-box.border-none    { border: 2px dashed rgba(255,255,255,0.1); }

@keyframes neon-pulse-preview {
  0%,100% { box-shadow: 0 0 0 3px #39ff14, 0 0 10px rgba(57,255,20,0.5); }
  50%      { box-shadow: 0 0 0 3px #39ff14, 0 0 18px rgba(57,255,20,0.9); }
}
@keyframes fire-pulse-preview {
  0%   { box-shadow: 0 0 0 3px #ff4500, 0 0 10px rgba(255,69,0,0.6); }
  33%  { box-shadow: 0 0 0 3px #ff8c00, 0 0 12px rgba(255,140,0,0.7); }
  66%  { box-shadow: 0 0 0 3px #ffd700, 0 0 10px rgba(255,215,0,0.65); }
  100% { box-shadow: 0 0 0 3px #ff4500, 0 0 10px rgba(255,69,0,0.6); }
}
@keyframes rainbow-cycle-preview {
  0%   { box-shadow: 0 0 0 3px #ff0000, 0 0 10px rgba(255,0,0,0.5); }
  17%  { box-shadow: 0 0 0 3px #ff8800, 0 0 10px rgba(255,136,0,0.5); }
  33%  { box-shadow: 0 0 0 3px #ffff00, 0 0 10px rgba(255,255,0,0.5); }
  50%  { box-shadow: 0 0 0 3px #00ff00, 0 0 10px rgba(0,255,0,0.5); }
  67%  { box-shadow: 0 0 0 3px #0088ff, 0 0 10px rgba(0,136,255,0.5); }
  83%  { box-shadow: 0 0 0 3px #8800ff, 0 0 10px rgba(136,0,255,0.5); }
  100% { box-shadow: 0 0 0 3px #ff0000, 0 0 10px rgba(255,0,0,0.5); }
}
@keyframes plasma-pulse-preview {
  0%   { box-shadow: 0 0 0 3px #3b82f6, 0 0 10px rgba(59,130,246,0.6); }
  50%  { box-shadow: 0 0 0 3px #a855f7, 0 0 16px rgba(168,85,247,0.85); }
  100% { box-shadow: 0 0 0 3px #3b82f6, 0 0 10px rgba(59,130,246,0.6); }
}

/* Preview button */
.bg-btn-preview {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  margin-top: 4px;
}
.bg-btn-preview:hover {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* ══════════════════════════════════════
   COMMUNITY PAGE
══════════════════════════════════════ */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .community-grid { grid-template-columns: 1fr; }
}

.community-card {
  padding: 28px; border-radius: 20px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.community-card:hover {
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 0 30px rgba(255,255,255,.03);
}

.community-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.community-icon svg {
  width: 24px; height: 24px;
  fill: rgba(255,255,255,.72);
}

.community-title {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  letter-spacing: -.5px;
}

.community-desc {
  font-size: 14px;
  color: rgba(255,255,255,.42);
  line-height: 152%;
  letter-spacing: -.1px;
  margin-top: 2px;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 340px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.3px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  background: transparent;
  align-self: flex-start;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  margin-top: auto;
}

.community-card:hover .community-btn {
  color: #4ade80;
  border-color: rgba(74,222,128,.35);
  background: rgba(74,222,128,.06);
}

/* ══════════════════════════════════════
   FOOTER SOCIAL
══════════════════════════════════════ */
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all .2s ease;
}

.footer-social a:hover {
  background: #4ade80;
  border-color: #4ade80;
  color: #000;
}

.footer-social svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

/* ══════════════════════════════════════
   SUPPORT WIDGET
══════════════════════════════════════ */
.support-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1), 0 8px 24px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 200;
  transition: transform .15s ease, box-shadow .2s ease;
}
.support-fab:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18), 0 12px 28px rgba(0,0,0,.5);
}
.support-fab svg { width: 24px; height: 24px; fill: rgba(255,255,255,.72); }
.support-fab .badge {
  position: absolute;
  top: 10px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.support-panel {
  position: fixed;
  bottom: 96px; right: 24px;
  width: 380px;
  max-height: min(600px, calc(100vh - 120px));
  background: rgba(10,10,10,.92);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08), 0 24px 60px rgba(0,0,0,.6);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 201;
}
.support-panel.open { display: flex; }

.support-panel-header {
  padding: 16px 18px;
  border-bottom: .5px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.support-panel-title {
  font-size: 15px; font-weight: 500; letter-spacing: -.3px;
  color: rgba(255,255,255,.92);
}
.support-panel-actions { display: flex; gap: 4px; }

.support-icon-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.support-icon-btn svg { width: 16px; height: 16px; }
.support-icon-btn:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
}

.support-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
/* Когда внутри панели — лента тикета, скроллим только её */
.support-panel-body:has(.support-thread-wrap) {
  overflow: hidden;
  padding-bottom: 0;
}

.support-empty {
  text-align: center;
  color: rgba(255,255,255,.42);
  font-size: 14px;
  padding: 20px 0;
  letter-spacing: -.1px;
}

/* === LIST === */
.support-list {
  display: flex; flex-direction: column;
  gap: 12px; flex: 1 1 auto; min-height: 0;
}
.support-list-head { display: flex; flex-direction: column; gap: 4px; }
.support-greet {
  font-size: 14px; color: rgba(255,255,255,.78);
  letter-spacing: -.1px;
}
.support-greet-sub {
  font-size: 12px; color: rgba(255,255,255,.42);
  letter-spacing: -.1px;
}
.support-greet-sub a { color: rgba(255,255,255,.78); text-decoration: underline; }

.support-ticket-list {
  display: flex; flex-direction: column;
  gap: 8px; flex: 1 1 auto; overflow-y: auto; min-height: 0;
}
.support-ticket-row {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  border: none;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  display: flex; flex-direction: column;
  gap: 6px;
  transition: box-shadow .2s ease;
  font-family: inherit;
  color: rgba(255,255,255,.88);
}
.support-ticket-row:hover {
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 0 18px rgba(255,255,255,.03);
}
.support-ticket-row-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.support-ticket-row-subject {
  font-size: 14px; font-weight: 500; letter-spacing: -.1px;
  color: rgba(255,255,255,.92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1 1 auto;
}
.support-ticket-unread {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  flex-shrink: 0;
}
.support-ticket-row-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.42);
}
.support-ticket-row-time { color: rgba(255,255,255,.42); }

.support-status-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 100px;
  letter-spacing: -.1px;
}
.support-status-open {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
}
.support-status-answered {
  background: rgba(74,222,128,.08);
  color: #4ade80;
  box-shadow: inset 0 0 0 .5px rgba(74,222,128,.3);
}
.support-status-closed {
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.42);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.06);
}

.support-new-btn {
  background: transparent;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 340px;
  padding: 9px 18px;
  font-size: 13px; font-weight: 500; letter-spacing: -.2px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  font-family: inherit;
}
.support-new-btn:hover {
  color: #4ade80;
  border-color: rgba(74,222,128,.35);
  background: rgba(74,222,128,.06);
}

/* === CREATE FORM === */
.support-create {
  display: flex; flex-direction: column; gap: 12px;
}
.support-anon-note {
  font-size: 12px; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.025);
  padding: 10px 12px; border-radius: 12px;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  letter-spacing: -.1px; line-height: 152%;
}
.support-anon-note a { color: rgba(255,255,255,.85); text-decoration: underline; }

.support-field { display: flex; flex-direction: column; gap: 6px; }
.support-label {
  font-size: 12px; color: rgba(255,255,255,.42);
  letter-spacing: -.1px;
}
.support-field input,
.support-field textarea,
.support-reply textarea {
  background: rgba(255,255,255,.025);
  color: #fff;
  border: none;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  line-height: 152%;
  letter-spacing: -.1px;
  outline: none;
  resize: vertical;
}
.support-field input:focus,
.support-field textarea:focus,
.support-reply textarea:focus {
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25);
}
.support-field textarea { min-height: 100px; }

.support-form-actions { display: flex; justify-content: flex-end; }
.support-form-error {
  color: #f87171;
  font-size: 12px;
  letter-spacing: -.1px;
}

/* === THREAD (ticket chat) === */
.support-thread-wrap {
  display: flex; flex-direction: column;
  gap: 12px; flex: 1 1 auto; min-height: 0;
}
.support-thread-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.support-thread-subject {
  font-size: 14px; font-weight: 500; letter-spacing: -.2px;
  color: rgba(255,255,255,.92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.support-thread {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 4px 0;
  min-height: 0;
}
.support-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 152%;
  letter-spacing: -.1px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.support-msg-user {
  align-self: flex-end;
  background: #fff;
  color: #000;
  border-bottom-right-radius: 4px;
}
.support-msg-user .support-msg-time { color: rgba(0,0,0,.45); }
.support-msg-admin {
  align-self: flex-start;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08);
  border-bottom-left-radius: 4px;
}
.support-msg-admin .support-msg-time { color: rgba(255,255,255,.42); }
.support-msg-time {
  font-size: 11px;
  margin-top: 3px;
}

.support-reply { display: flex; flex-direction: column; gap: 8px; }
.support-reply textarea { min-height: 64px; max-height: 160px; }
.support-reply button { align-self: flex-end; }

.support-closed-note {
  text-align: center;
  color: rgba(255,255,255,.42);
  font-size: 13px;
  padding: 10px;
  letter-spacing: -.1px;
}

@media (max-width: 600px) {
  .support-fab { bottom: 16px; right: 16px; }
  .support-panel {
    right: 0; bottom: 0; left: 0; top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    box-sizing: border-box;
  }
  .support-panel-header { position: sticky; top: 0; background: rgba(10,10,10,.95); z-index: 2; }
  body.support-panel-open { overflow: hidden; }
}


/* ══════════════════════════════════════
   ADMIN SUPPORT (тикеты в админке)
══════════════════════════════════════ */
.adm-support-page { max-width: 1100px; margin: 0 auto; padding: 120px 20px 80px; }
.adm-support-ticket-page { max-width: 800px; margin: 0 auto; padding: 120px 20px 80px; }
.adm-support-back { color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px; letter-spacing: -.2px; transition: color .15s ease; }
.adm-support-back:hover { color: rgba(255,255,255,.85); }
.adm-support-h1 { color: #fff; margin: 14px 0 24px; font-weight: 500; letter-spacing: -.8px; font-size: 28px; }

.adm-support-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.adm-support-tab {
  font-size: 13px; padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.06);
  text-decoration: none; transition: all .15s ease;
}
.adm-support-tab:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.07); }
.adm-support-tab-active { background: #fff; color: #000; box-shadow: none; }
.adm-support-tab-active:hover { background: #fff; color: #000; }

.adm-support-empty {
  padding: 40px 20px; text-align: center; color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.025); border-radius: 20px;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
}

/* Десктоп: таблица */
.adm-support-table-wrap {
  border-radius: 20px; background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07); overflow: hidden;
}
.adm-support-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-support-table thead tr { border-bottom: .5px solid rgba(255,255,255,.08); }
.adm-support-table th {
  text-align: left; padding: 14px 16px;
  color: rgba(255,255,255,.42); font-weight: 500; letter-spacing: -.1px;
}
.adm-support-table tbody tr {
  border-bottom: .5px solid rgba(255,255,255,.05);
  transition: background .15s ease; cursor: pointer;
}
.adm-support-table tbody tr:last-child { border-bottom: none; }
.adm-support-table tbody tr:hover { background: rgba(255,255,255,.025); }
.adm-support-table td { padding: 14px 16px; vertical-align: middle; }
.adm-support-id { color: #fff; display: flex; align-items: center; gap: 8px; }
.adm-support-nick { color: rgba(255,255,255,.78); }
.adm-support-subject { color: rgba(255,255,255,.6); }
.adm-support-time { color: rgba(255,255,255,.42); white-space: nowrap; }
.adm-support-unread-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 6px #4ade80;
  display: inline-block; flex-shrink: 0;
}

/* Мобила: карточки */
.adm-support-cards { display: none; flex-direction: column; gap: 10px; }
.adm-support-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  text-decoration: none; color: inherit;
  transition: box-shadow .15s ease;
}
.adm-support-card:active { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14); }
.adm-support-card-top { display: flex; align-items: center; justify-content: space-between; }
.adm-support-card-id { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 500; }
.adm-support-card-subject {
  color: rgba(255,255,255,.85); font-size: 14px; line-height: 152%;
  letter-spacing: -.1px;
}
.adm-support-card-meta {
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,.42); font-size: 12px;
}

/* Бэйджи статусов */
.adm-support-badge {
  font-size: 12px; padding: 3px 10px; border-radius: 100px;
  display: inline-block; white-space: nowrap;
}
.adm-support-badge-open {
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
}
.adm-support-badge-answered {
  background: rgba(74,222,128,.08); color: #4ade80;
  box-shadow: inset 0 0 0 .5px rgba(74,222,128,.3);
}
.adm-support-badge-closed {
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.42);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.06);
}

/* Шапка тикета */
.adm-support-ticket-head {
  margin: 14px 0 20px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.adm-support-ticket-head-main { flex: 1 1 280px; min-width: 0; }
.adm-support-ticket-h1 {
  color: #fff; font-weight: 500; letter-spacing: -.5px;
  font-size: 22px; margin-bottom: 8px; word-wrap: break-word;
}
.adm-support-ticket-meta {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-size: 13px; flex-wrap: wrap;
}
.adm-support-dot { color: rgba(255,255,255,.3); }
.adm-support-ticket-actions { display: flex; gap: 8px; }
.adm-support-action-btn {
  cursor: pointer; padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; letter-spacing: -.1px;
  background: transparent; color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.12);
  transition: all .15s ease;
}
.adm-support-action-btn:hover {
  color: #4ade80; border-color: rgba(74,222,128,.35);
  background: rgba(74,222,128,.06);
}

/* Лента сообщений */
.adm-support-thread {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: 18px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  margin-bottom: 16px; min-height: 100px;
}
.adm-support-thread-empty { color: rgba(255,255,255,.42); text-align: center; padding: 20px; }
.adm-support-msg {
  max-width: 80%; padding: 10px 14px;
  font-size: 14px; line-height: 152%; letter-spacing: -.1px;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.adm-support-msg-body { white-space: pre-wrap; }
.adm-support-msg-admin {
  align-self: flex-end;
  background: #fff; color: #000;
  border-radius: 16px 16px 4px 16px;
}
.adm-support-msg-admin .adm-support-msg-time { color: rgba(0,0,0,.45); font-size: 11px; margin-top: 4px; }
.adm-support-msg-user {
  align-self: flex-start;
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.92);
  border-radius: 16px 16px 16px 4px;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08);
}
.adm-support-msg-user .adm-support-msg-time { color: rgba(255,255,255,.42); font-size: 11px; margin-top: 4px; }

/* Форма ответа */
.adm-support-reply-form { display: flex; flex-direction: column; gap: 10px; }
.adm-support-reply-form textarea {
  background: rgba(255,255,255,.025); color: #fff;
  border: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
  border-radius: 14px; padding: 12px 14px;
  font-size: 14px; font-family: inherit; line-height: 152%;
  letter-spacing: -.1px; outline: none; resize: vertical; min-height: 90px;
}
.adm-support-reply-form textarea:focus { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2); }
.adm-support-reply-form button { align-self: flex-end; }
.adm-support-closed-note {
  text-align: center; color: rgba(255,255,255,.42);
  padding: 14px; font-size: 14px;
}

/* Адаптация */
@media (max-width: 720px) {
  .adm-support-page { padding: 84px 14px 60px; }
  .adm-support-ticket-page { padding: 84px 14px 60px; }
  .adm-support-h1 { font-size: 22px; margin: 12px 0 18px; }
  .adm-support-table-wrap { display: none; }
  .adm-support-cards { display: flex; }
  .adm-support-ticket-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .adm-support-ticket-actions { width: 100%; }
  .adm-support-action-btn { flex: 1; }
  .adm-support-msg { max-width: 90%; }
  .adm-support-thread { padding: 14px; border-radius: 14px; }
}

/* ══════════════════════════════════════
   ADMIN SUPPORT ROLES (страница ролей)
══════════════════════════════════════ */
.adm-roles-hint {
  color: rgba(255,255,255,.6); font-size: 14px; line-height: 152%;
  letter-spacing: -.1px; margin-bottom: 20px; max-width: 640px;
}
.adm-roles-link { color: #fff; text-decoration: underline; }

.adm-roles-flash {
  padding: 12px 16px; border-radius: 14px;
  font-size: 14px; margin-bottom: 18px;
  letter-spacing: -.1px;
}
.adm-roles-flash-ok {
  background: rgba(74,222,128,.08); color: #4ade80;
  box-shadow: inset 0 0 0 .5px rgba(74,222,128,.3);
}
.adm-roles-flash-err {
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12);
}

.adm-roles-form {
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  border-radius: 18px; padding: 20px;
  margin-bottom: 28px; max-width: 640px;
}
.adm-roles-label {
  display: block; color: rgba(255,255,255,.6);
  font-size: 13px; margin-bottom: 8px; letter-spacing: -.1px;
}
.adm-roles-input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-roles-input-row input {
  flex: 1; min-width: 200px;
  background: rgba(255,255,255,.04); color: #fff;
  border: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
  border-radius: 100px; padding: 10px 16px;
  font-size: 14px; font-family: inherit; letter-spacing: -.1px;
  outline: none;
}
.adm-roles-input-row input:focus {
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22);
}
.adm-roles-input-row button { white-space: nowrap; }

.adm-roles-subhead {
  color: rgba(255,255,255,.85); font-weight: 500;
  letter-spacing: -.5px; font-size: 18px; margin: 8px 0 14px;
}

.adm-roles-list { display: flex; flex-direction: column; gap: 10px; }
.adm-roles-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
}
.adm-roles-row-info { min-width: 0; flex: 1; }
.adm-roles-nick {
  color: #fff; font-size: 15px; font-weight: 500;
  letter-spacing: -.2px; margin-bottom: 2px;
}
.adm-roles-meta {
  display: flex; gap: 8px; align-items: center;
  color: rgba(255,255,255,.42); font-size: 12px; flex-wrap: wrap;
}
.adm-roles-revoke {
  border-color: rgba(255,255,255,.12);
}
.adm-roles-revoke:hover {
  color: #ef4444; border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.06);
}

@media (max-width: 720px) {
  .adm-roles-form { padding: 16px; border-radius: 14px; }
  .adm-roles-input-row input { width: 100%; flex: 1 1 100%; }
  .adm-roles-input-row button { width: 100%; }
  .adm-roles-row { padding: 12px 14px; }
}
.adm-support-h1-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.adm-support-roles-link { padding: 7px 16px; font-size: 13px; }

/* ══════════════════════════════════════
   ADMIN (главная панель + редактор юзера)
══════════════════════════════════════ */
.adm-page { max-width: 1100px; margin: 0 auto; padding: 120px 20px 80px; }
.adm-user-page { max-width: 720px; margin: 0 auto; padding: 120px 20px 80px; }
.adm-page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.adm-h1 {
  color: #fff; font-weight: 500; letter-spacing: -.8px;
  font-size: 28px; margin: 0;
}
.adm-user-head { margin: 14px 0 24px; }
.adm-user-h1 {
  color: #fff; font-weight: 500; letter-spacing: -.5px;
  font-size: 24px; margin-bottom: 6px; word-wrap: break-word;
}
.adm-user-sub {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  color: rgba(255,255,255,.5); font-size: 13px;
}

.adm-card {
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  border-radius: 18px; padding: 22px; margin-bottom: 16px;
}
.adm-card-title {
  color: #fff; font-weight: 500; letter-spacing: -.3px;
  font-size: 16px; margin: 0 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.adm-card-meta {
  font-weight: 400; font-size: 13px;
  color: rgba(255,255,255,.5); letter-spacing: -.1px;
}
.adm-card-meta strong { color: rgba(255,255,255,.85); font-weight: 500; }

/* Поля */
.adm-stack { display: flex; flex-direction: column; gap: 14px; }
.adm-form-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: flex-end;
}
.adm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 180px; }
.adm-label {
  color: rgba(255,255,255,.5); font-size: 12px;
  letter-spacing: -.05px; text-transform: none;
}
.adm-hint {
  color: rgba(255,255,255,.42); font-size: 12px;
  letter-spacing: -.05px; line-height: 152%; margin-top: 4px;
}
.adm-field input,
.adm-field select,
.adm-grant-form input,
.adm-grant-form select {
  background: rgba(255,255,255,.04); color: #fff;
  border: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
  border-radius: 12px; padding: 10px 14px;
  font-size: 14px; font-family: inherit; letter-spacing: -.1px;
  outline: none; min-height: 40px; box-sizing: border-box; width: 100%;
}
.adm-field input:focus,
.adm-field select:focus {
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22);
}
.adm-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.adm-flex1 { flex: 1 1 100%; }
.adm-w100 { width: 100%; }

.adm-submit { align-self: flex-end; flex: 0 0 auto; min-width: 120px; }
.adm-submit-self { align-self: flex-start; min-width: 140px; }

/* Кнопки действий (ghost) */
.adm-action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; letter-spacing: -.1px;
  background: transparent; color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.12);
  text-decoration: none; transition: all .15s ease;
  font-family: inherit;
}
.adm-action-btn:hover {
  color: #4ade80; border-color: rgba(74,222,128,.35);
  background: rgba(74,222,128,.06);
}
.adm-action-danger { color: rgba(239,68,68,.85); border-color: rgba(239,68,68,.25); }
.adm-action-danger:hover {
  color: #ef4444; border-color: rgba(239,68,68,.45);
  background: rgba(239,68,68,.07);
}

/* Десктоп: таблица юзеров */
.adm-table-wrap {
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  overflow: hidden;
}
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table thead tr { border-bottom: .5px solid rgba(255,255,255,.08); }
.adm-table th {
  text-align: left; padding: 14px 16px;
  color: rgba(255,255,255,.42); font-weight: 500; letter-spacing: -.1px;
  white-space: nowrap;
}
.adm-table tbody tr {
  border-bottom: .5px solid rgba(255,255,255,.05);
  transition: background .15s ease;
}
.adm-table tbody tr:last-child { border-bottom: none; }
.adm-table tbody tr:hover { background: rgba(255,255,255,.025); }
.adm-table td { padding: 14px 16px; vertical-align: middle; }
.adm-mono { font-family: SF Mono, Menlo, Consolas, monospace; font-size: 13px; color: rgba(255,255,255,.6); }
.adm-strong { color: #fff; font-weight: 500; }
.adm-time { color: rgba(255,255,255,.42); white-space: nowrap; font-size: 13px; }
.adm-table-actions { white-space: nowrap; display: flex; gap: 14px; align-items: center; }
.adm-table-actions-h { text-align: right !important; }
.adm-link {
  background: none; border: none; padding: 0;
  color: rgba(255,255,255,.78); font-size: 14px; cursor: pointer;
  text-decoration: none; font-family: inherit;
  transition: color .15s ease;
}
.adm-link:hover { color: #4ade80; }
.adm-link-danger { color: rgba(239,68,68,.8); }
.adm-link-danger:hover { color: #ef4444; }

/* Бэйджи */
.adm-badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 12px; letter-spacing: -.1px; white-space: nowrap;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08);
}
.adm-badge-period { background: rgba(255,255,255,.04); color: rgba(255,255,255,.78); }
.adm-badge-forever {
  background: rgba(74,222,128,.08); color: #4ade80;
  box-shadow: inset 0 0 0 .5px rgba(74,222,128,.25);
}
.adm-badge-active {
  background: rgba(74,222,128,.08); color: #4ade80;
  box-shadow: inset 0 0 0 .5px rgba(74,222,128,.3);
}
.adm-badge-warn {
  background: rgba(250,204,21,.08); color: #facc15;
  box-shadow: inset 0 0 0 .5px rgba(250,204,21,.25);
}

/* Мобила: карточки юзеров */
.adm-cards { display: none; flex-direction: column; gap: 10px; }
.adm-user-card {
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
  border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.adm-user-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.adm-user-card-nick {
  color: #fff; font-weight: 500; letter-spacing: -.2px; font-size: 15px;
  word-wrap: break-word; overflow-wrap: anywhere;
  flex: 1; min-width: 0;
}
.adm-user-card-meta {
  display: flex; flex-direction: column; gap: 4px;
  color: rgba(255,255,255,.78); font-size: 13px; line-height: 152%;
}
.adm-user-card-meta div { word-wrap: break-word; overflow-wrap: anywhere; }
.adm-muted { color: rgba(255,255,255,.42); }
.adm-user-card-actions { display: flex; gap: 8px; margin-top: 4px; }

/* Bio-карточка */
.adm-bio-text {
  color: rgba(255,255,255,.78); font-size: 14px;
  line-height: 152%; letter-spacing: -.1px;
  white-space: pre-wrap; word-wrap: break-word; margin-bottom: 14px;
}
.adm-bio-empty { font-size: 13px; margin-bottom: 14px; }

/* Фоны */
.adm-bg-list { display: flex; flex-direction: column; gap: 8px; }
.adm-bg-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 12px; padding: 8px 0;
}
.adm-bg-name { color: #fff; font-size: 14px; }
.adm-bg-price { color: rgba(255,255,255,.5); font-size: 13px; }

/* Кнопка удалить юзера */
.adm-delete-form { margin-top: 8px; }
.adm-delete-btn {
  width: 100%; padding: 12px; cursor: pointer;
  background: transparent; color: rgba(239,68,68,.85);
  border: 1px solid rgba(239,68,68,.25); border-radius: 100px;
  font-size: 14px; font-weight: 500; letter-spacing: -.1px;
  font-family: inherit; transition: all .15s ease;
}
.adm-delete-btn:hover {
  background: rgba(239,68,68,.07); color: #ef4444;
  border-color: rgba(239,68,68,.45);
}

/* Адаптация */
@media (max-width: 820px) {
  .adm-page { padding: 84px 14px 60px; }
  .adm-user-page { padding: 84px 14px 60px; }
  .adm-h1 { font-size: 22px; }
  .adm-user-h1 { font-size: 20px; }
  .adm-table-wrap { display: none; }
  .adm-cards { display: flex; }
  .adm-card { padding: 18px; border-radius: 14px; }
  .adm-form-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .adm-form-row .adm-field { flex: 1 1 auto; }
  .adm-submit { width: 100%; }
  .adm-bg-row { grid-template-columns: 1fr auto; }
  .adm-bg-price { grid-column: 1; color: rgba(255,255,255,.5); font-size: 12px; margin-top: -4px; }
  .adm-bg-row form { grid-column: 2; grid-row: 1 / 3; }
}

/* ══════════════════════════════════════
   ADMIN SUPPORT TICKET — live, edit, delete
══════════════════════════════════════ */

/* Фиксированная высота треда — листается внутри */
.adm-support-thread {
  height: 60vh; max-height: 600px; min-height: 320px;
  overflow-y: auto; padding: 18px;
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.06);
  border-radius: 18px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.adm-support-thread::-webkit-scrollbar { width: 8px; }
.adm-support-thread::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 4px; }
.adm-support-thread::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.16); }
.adm-support-thread-empty {
  margin: auto; color: rgba(255,255,255,.42); font-size: 14px;
}

/* Сообщение — author label + meta */
.adm-support-msg-author {
  font-size: 12px; color: rgba(255,255,255,.5);
  letter-spacing: -.05px; margin-bottom: 4px; font-weight: 500;
}
.adm-support-msg-admin .adm-support-msg-author { color: rgba(0,0,0,.55); }
.adm-support-msg-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; font-size: 11px; color: rgba(255,255,255,.42);
  flex-wrap: wrap;
}
.adm-support-msg-meta > .adm-support-msg-action {
  margin-left: auto;
}
.adm-support-msg-meta > .adm-support-msg-action ~ .adm-support-msg-action {
  margin-left: 0;
}
.adm-support-msg-time { letter-spacing: -.05px; }
.adm-support-msg-edited { color: rgba(255,255,255,.32); font-style: italic; }
/* Кнопки действий — оформлены пилюлями, отделены от текста */
.adm-support-msg-action {
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14);
  border: none; padding: 3px 9px;
  color: rgba(255,255,255,.78); cursor: pointer;
  font-size: 11px; font-family: inherit; line-height: 1.2;
  border-radius: 100px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.adm-support-msg-action:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22);
}
.adm-support-msg-action-danger {
  color: #fca5a5;
}
.adm-support-msg-action-danger:hover {
  background: rgba(248,113,113,.14);
  color: #fecaca;
  box-shadow: inset 0 0 0 .5px rgba(248,113,113,.4);
}
.adm-support-msg-action[data-save] {
  background: rgba(74,222,128,.14);
  color: #86efac;
  box-shadow: inset 0 0 0 .5px rgba(74,222,128,.32);
}
.adm-support-msg-action[data-save]:hover {
  background: rgba(74,222,128,.22);
  color: #bbf7d0;
  box-shadow: inset 0 0 0 .5px rgba(74,222,128,.5);
}
.adm-support-msg-action:disabled { opacity: .5; cursor: default; }

/* На белом фоне админского сообщения — тёмные пилюли */
.adm-support-msg-admin .adm-support-msg-action {
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.7);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.14);
}
.adm-support-msg-admin .adm-support-msg-action:hover {
  background: rgba(0,0,0,.12);
  color: #000;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.24);
}
.adm-support-msg-admin .adm-support-msg-action-danger {
  background: rgba(220,38,38,.08);
  color: #b91c1c;
  box-shadow: inset 0 0 0 .5px rgba(220,38,38,.24);
}
.adm-support-msg-admin .adm-support-msg-action-danger:hover {
  background: rgba(220,38,38,.16);
  color: #7f1d1d;
  box-shadow: inset 0 0 0 .5px rgba(220,38,38,.5);
}
.adm-support-msg-admin .adm-support-msg-action[data-save] {
  background: rgba(22,163,74,.12);
  color: #15803d;
  box-shadow: inset 0 0 0 .5px rgba(22,163,74,.34);
}
.adm-support-msg-admin .adm-support-msg-action[data-save]:hover {
  background: rgba(22,163,74,.22);
  color: #14532d;
  box-shadow: inset 0 0 0 .5px rgba(22,163,74,.56);
}
.adm-support-msg-admin .adm-support-msg-meta {
  color: rgba(0,0,0,.55);
}
.adm-support-msg-admin .adm-support-msg-edited { color: rgba(0,0,0,.4); }

/* Удалённое сообщение */
.adm-support-msg-deleted {
  align-self: center; padding: 4px 0;
}
.adm-support-msg-deleted-body {
  font-size: 12px !important; color: rgba(255,255,255,.32) !important;
  font-style: italic; padding: 4px 12px !important;
  background: transparent !important; border-radius: 100px !important;
}

/* Edit-режим */
.adm-support-msg-edit {
  display: flex; flex-direction: column; gap: 6px;
}
.adm-support-msg-edit-ta {
  width: 100%; min-height: 60px; resize: vertical;
  background: rgba(0,0,0,.4); color: #fff;
  border: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18);
  border-radius: 12px; padding: 10px 14px;
  font-size: 14px; font-family: inherit; line-height: 152%;
  outline: none;
}
.adm-support-msg-edit-ta:focus { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }
.adm-support-msg-edit-actions { display: flex; gap: 12px; }

/* Live indicator */
.adm-support-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25); transition: background .2s ease;
}
.adm-support-live-dot-ok { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.5); }

/* Reply form (упрощённый, без отдельных стилей если уже были) */
.adm-support-reply-form {
  display: flex; flex-direction: column; gap: 10px;
}
.adm-support-reply-form textarea {
  width: 100%; min-height: 80px; resize: vertical;
  background: rgba(255,255,255,.04); color: #fff;
  border: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
  border-radius: 14px; padding: 12px 16px;
  font-size: 14px; font-family: inherit; line-height: 152%;
  outline: none; box-sizing: border-box;
}
.adm-support-reply-form textarea:focus { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); }
.adm-support-reply-form button { align-self: flex-end; min-width: 140px; }

/* Адаптивность: на мобиле тред ниже */
@media (max-width: 720px) {
  .adm-support-thread { height: 55vh; max-height: 480px; padding: 14px; }
  .adm-support-reply-form button { width: 100%; align-self: stretch; }
}

/* ── User support widget: edit, ник админа, auto-reopen note ── */
.support-msg-author {
  font-size: 11px; color: rgba(255,255,255,.5);
  letter-spacing: -.05px; margin-bottom: 4px; font-weight: 500;
}
.support-msg-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px; font-size: 10.5px; color: rgba(255,255,255,.42);
  flex-wrap: wrap;
}
.support-msg-edited { color: rgba(255,255,255,.32); font-style: italic; }
.support-msg-action {
  background: none; border: none; padding: 0;
  color: rgba(255,255,255,.5); cursor: pointer;
  font-size: 10.5px; font-family: inherit;
  transition: color .15s ease;
}
.support-msg-action:hover { color: #fff; }
.support-msg-action[data-save] { color: #4ade80; }

.support-msg-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.support-msg-edit-ta {
  width: 100%; min-height: 50px; resize: vertical;
  background: rgba(0,0,0,.4); color: #fff;
  border: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18);
  border-radius: 10px; padding: 8px 12px;
  font-size: 13px; font-family: inherit; line-height: 152%;
  outline: none; box-sizing: border-box;
}
.support-msg-edit-actions { display: flex; gap: 12px; }

.support-msg-deleted {
  align-self: center; padding: 4px 0;
  font-size: 11px; color: rgba(255,255,255,.32); font-style: italic;
}

.support-reopen-hint {
  font-size: 11px; color: rgba(255,255,255,.42);
  margin: 4px 0 -4px; padding: 0 4px;
  letter-spacing: -.05px; line-height: 152%;
}

/* ══════════════════════════════════════
   SERVERS GRID
══════════════════════════════════════ */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.server-card {
  padding: 32px;
  border-radius: 20px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.09);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.2s ease;
}
.server-card:hover {
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18), 0 0 40px rgba(255,255,255,.03);
}
.server-card-soon {
  opacity: .55;
  pointer-events: none;
}

.server-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.server-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: .03em;
}
.server-badge-live {
  background: rgba(74,222,128,.1);
  color: #4ade80;
  box-shadow: inset 0 0 0 .5px rgba(74,222,128,.25);
}
.server-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

/* Новый тег онлайна в карточке сервера — без точки, без пилюли */
.server-online-tag {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
  color: rgba(255,255,255,.32);
}
.server-online-tag span {
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.server-badge-soon {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.4);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
}

.server-card-mode {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.25); font-weight: 500;
}

.server-card-title {
  font-size: 22px; font-weight: 500;
  letter-spacing: -.8px; line-height: 1.1;
  margin-bottom: 10px;
  color: #fff;
}

.server-card-desc {
  font-size: 14px; color: rgba(255,255,255,.4);
  line-height: 152%; letter-spacing: -.1px;
  margin-bottom: 24px;
}

.server-card-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 28px;
  flex: 1;
}
.server-card-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.55);
  letter-spacing: -.1px;
}
.sfc-icon {
  width: 14px; height: 14px;
  color: #4ade80;
  flex-shrink: 0;
}
.server-card-soon .sfc-icon { color: rgba(255,255,255,.25); }

.server-card-btn { align-self: flex-start; margin-top: auto; }
.server-card-soon .server-card-btn { pointer-events: none; }

/* ══════════════════════════════════════
   TECH GRID
══════════════════════════════════════ */
.section-alt {
  position: relative;
}
.section-alt::before, .section-alt::after { display: none; }
/* Обёртка чтобы паддинги сохранились, но фон на полную ширину */
.section-alt { max-width: 100%; padding-left: 0; padding-right: 0; }
.section-alt > .section-header { padding-left: 40px; padding-right: 40px; max-width: 1220px; margin-left: auto; margin-right: auto; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.07);
  max-width: calc(1220px - 80px);
  margin: 0 auto;
}

.tech-card {
  padding: 32px 28px;
  background: #000;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background 0.2s ease;
}
.tech-card:hover { background: rgba(255,255,255,.025); }

.tech-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
}
.tech-card-icon svg { width: 18px; height: 18px; }

.tech-card-title {
  font-size: 15px; font-weight: 500;
  letter-spacing: -.5px; margin-bottom: 6px; color: #fff;
}
.tech-card-text {
  font-size: 13px; color: rgba(255,255,255,.38);
  line-height: 152%; letter-spacing: -.1px;
}

/* ══════════════════════════════════════
   CTA BLOCK
══════════════════════════════════════ */
.cta-block {
  padding: 72px 60px;
  border-radius: 24px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.09);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.04) 0%, transparent 65%);
  pointer-events: none;
}
.cta-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 14px;
}
.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500; letter-spacing: -2.5px; line-height: 1.05;
  margin-bottom: 16px; color: #fff;
}
.cta-accent { color: rgba(255,255,255,.65); }
.cta-desc {
  font-size: 15px; color: rgba(255,255,255,.38);
  line-height: 152%; letter-spacing: -.2px;
  max-width: 360px; margin: 0 auto 32px;
}
.cta-actions {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .servers-grid { grid-template-columns: 1fr; }
  .server-card-soon { opacity: .45; }
  .tech-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .tech-card { padding: 24px 20px; }
  .cta-block { padding: 48px 24px; }
  .section-alt > .section-header { padding-left: 20px; padding-right: 20px; }
}


/* ══════════════════════════════════════
   PAYMENT MODAL — новые стили методов
══════════════════════════════════════ */

/* Основные кнопки методов (СБП, Крипта) */
.pay-method-primary {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}
.pay-method-primary:hover {
  border-color: rgba(74,222,128,.35);
  background: rgba(74,222,128,.06);
}

/* Цена справа */
.pay-method-price {
  margin-left: auto;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Разделитель "Также доступно" */
.pay-methods-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 4px 0;
}
.pay-methods-divider::before,
.pay-methods-divider::after {
  content: '';
  flex: 1;
  height: .5px;
  background: rgba(255,255,255,.08);
}

/* Иконки методов */
.pay-icon-sbp   { color: #4ade80; }
.pay-icon-crypto { color: #f59e0b; }
.pay-icon-stars  { color: #facc15; font-size: 1.2rem; }
.pay-icon-cryptobot { color: #60a5fa; font-size: 1.1rem; }
.pay-icon-intl  { color: #888; }

/* Кнопка "Скоро" */
.pay-method-soon {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.pay-method-soon-badge {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #888;
  background: rgba(255,255,255,.06);
  border: .5px solid rgba(255,255,255,.1);
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* nick-set-form в account */
#nick-set-form input:focus {
  border-color: rgba(74,222,128,.4);
}

/* ── Whitelist admin toggle ─────────────────────────────────────────── */
.adm-wl-toggle-card { margin-bottom: 16px; }
.adm-wl-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.adm-wl-toggle-desc {
	margin: 4px 0 0;
	font-size: .85rem;
	color: rgba(255,255,255,.45);
}
.adm-wl-btn {
	padding: 10px 22px;
	border-radius: 8px;
	border: none;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .15s;
}
.adm-wl-btn:hover { opacity: .8; }
.adm-wl-btn-on  { background: #4ade80; color: #000; }
.adm-wl-btn-off { background: rgba(248,113,113,.18); color: #f87171; border: 1px solid rgba(248,113,113,.3); }
.adm-wl-section { display: flex; flex-direction: column; gap: 8px; }

/* ── Admin: Achievements ─────────────────────────────────────────────── */
.ach-secret-row {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}
.ach-secret-info { flex: 1; min-width: 0; }
.ach-secret-code {
	display: block;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.07);
	padding: 10px 14px;
	border-radius: 8px;
	font-size: .8rem;
	font-family: ui-monospace, monospace;
	color: #4ade80;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: 4px;
}
.ach-secret-actions { display: flex; gap: 8px; }

.ach-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ach-row {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	background: rgba(255,255,255,.025);
	border: 1px solid rgba(255,255,255,.07);
	border-radius: 12px;
}
.ach-icon {
	font-size: 1.8rem;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.04);
	border-radius: 12px;
	flex-shrink: 0;
}
.ach-meta { flex: 1; min-width: 0; }
.ach-title-line {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 4px;
}
.ach-title-link {
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	font-size: 1rem;
}
.ach-title-link:hover { color: #4ade80; }
.ach-key {
	background: rgba(255,255,255,.04);
	padding: 2px 8px;
	border-radius: 6px;
	font-size: .75rem;
	color: rgba(255,255,255,.5);
	font-family: ui-monospace, monospace;
}
.ach-badge {
	font-size: .7rem;
	padding: 2px 8px;
	border-radius: 100px;
	font-weight: 600;
	text-transform: uppercase;
}
.ach-badge-hidden { background: rgba(168,85,247,.18); color: #c084fc; }
.ach-badge-off { background: rgba(248,113,113,.18); color: #f87171; }
.ach-desc {
	font-size: .85rem;
	color: rgba(255,255,255,.55);
	margin-bottom: 6px;
}
.ach-condition {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.ach-reward {
	color: #4ade80;
	font-weight: 600;
	font-size: .85rem;
	background: rgba(74,222,128,.1);
	padding: 3px 10px;
	border-radius: 6px;
}
.ach-cond-json {
	font-family: ui-monospace, monospace;
	font-size: .7rem;
	color: rgba(255,255,255,.4);
	background: rgba(255,255,255,.03);
	padding: 3px 8px;
	border-radius: 4px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ach-cond-input {
	font-family: ui-monospace, monospace !important;
	font-size: .85rem !important;
}
.ach-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: .85rem;
	color: rgba(255,255,255,.7);
}
.ach-checkbox input { cursor: pointer; }
.adm-action-primary {
	background: #4ade80 !important;
	color: #000 !important;
	font-weight: 600;
}

/* ─── Achievements v2 ─────────────────────────────────────────────────────── */
.ach-cond-tag {
	font-size: .75rem;
	background: rgba(74,222,128,.12);
	color: #4ade80;
	padding: 2px 8px;
	border-radius: 4px;
	font-family: ui-monospace, monospace;
}
.ach-cond-amount {
	font-size: .78rem;
	color: rgba(255,255,255,.45);
}
.ach-compl-cnt {
	font-size: .78rem;
	color: rgba(255,255,255,.35);
	margin-left: auto;
}
.ach-completions-table {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.ach-compl-head {
	display: grid;
	grid-template-columns: 1fr 1.5fr 90px 100px;
	gap: 12px;
	padding: 6px 12px;
	font-size: .75rem;
	color: rgba(255,255,255,.35);
	text-transform: uppercase;
	letter-spacing: .04em;
	border-bottom: 1px solid rgba(255,255,255,.06);
}
.ach-compl-row {
	display: grid;
	grid-template-columns: 1fr 1.5fr 90px 100px;
	gap: 12px;
	padding: 8px 12px;
	font-size: .85rem;
	border-bottom: 1px solid rgba(255,255,255,.04);
	align-items: center;
}
.ach-compl-row:hover { background: rgba(255,255,255,.02); }
.ach-compl-nick { font-weight: 500; }
.ach-compl-uuid { font-family: ui-monospace, monospace; font-size: .75rem; color: rgba(255,255,255,.35); }
.ach-compl-date { font-size: .78rem; color: rgba(255,255,255,.4); }
.ach-cond-section {
	background: rgba(255,255,255,.02);
	border: .5px solid rgba(255,255,255,.07);
	border-radius: 10px;
	padding: 14px;
}

/* ─── Achievements Public Page ─────────────────────────────────────────────── */
.ach-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem 4rem;
}
.ach-header {
	text-align: center;
	margin-bottom: 2rem;
}
.ach-title {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 .4rem;
}
.ach-subtitle {
	color: rgba(255,255,255,.5);
	font-size: .95rem;
	margin: 0;
}
.ach-nick { color: #4ade80; font-weight: 600; }

/* Stats bar */
.ach-stats-bar {
	display: flex;
	align-items: center;
	gap: 2rem;
	background: rgba(255,255,255,.03);
	border: .5px solid rgba(255,255,255,.07);
	border-radius: 12px;
	padding: 1rem 1.5rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}
.ach-stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .15rem;
}
.ach-stat-num {
	font-size: 1.6rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}
.ach-stat-done .ach-stat-num { color: #4ade80; }
.ach-stat-left .ach-stat-num { color: rgba(255,255,255,.4); }
.ach-stat-label {
	font-size: .72rem;
	color: rgba(255,255,255,.35);
	text-transform: uppercase;
	letter-spacing: .05em;
}
.ach-global-bar {
	flex: 1;
	min-width: 120px;
	height: 6px;
	background: rgba(255,255,255,.08);
	border-radius: 99px;
	overflow: hidden;
}
.ach-global-fill {
	height: 100%;
	background: #4ade80;
	border-radius: 99px;
	transition: width .4s ease;
}

/* Grid */
.ach-grid {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}
.ach-card {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 1rem;
	align-items: center;
	background: rgba(255,255,255,.025);
	border: .5px solid rgba(255,255,255,.07);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	transition: border-color .15s;
}
.ach-card:hover {
	border-color: rgba(255,255,255,.15);
}
.ach-card--done {
	border-color: rgba(74,222,128,.2);
	background: rgba(74,222,128,.03);
}

/* Icon */
.ach-card-icon {
	position: relative;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ach-card-icon img {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	object-fit: cover;
}
.ach-icon-placeholder {
	font-size: 2rem;
	line-height: 1;
}
.ach-done-badge {
	position: absolute;
	bottom: -4px;
	right: -4px;
	background: #4ade80;
	color: #000;
	font-size: .6rem;
	font-weight: 700;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Body */
.ach-card-body { min-width: 0; }
.ach-card-title {
	font-weight: 600;
	color: #fff;
	font-size: 1rem;
	margin-bottom: .2rem;
}
.ach-card--done .ach-card-title { color: #4ade80; }
.ach-card-desc {
	font-size: .82rem;
	color: rgba(255,255,255,.4);
	margin-bottom: .4rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ach-card-cond {
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
}
.ach-cond-tag {
	font-size: .7rem;
	background: rgba(255,255,255,.07);
	color: rgba(255,255,255,.5);
	padding: .15em .5em;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.ach-cond-target {
	font-size: .82rem;
	color: rgba(255,255,255,.6);
	font-family: monospace;
}
.ach-cond-amount {
	font-size: .82rem;
	color: rgba(255,255,255,.35);
}

/* Progress bar внутри карточки */
.ach-progress-wrap {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-top: .5rem;
}
.ach-progress-bar {
	flex: 1;
	height: 4px;
	background: rgba(255,255,255,.08);
	border-radius: 99px;
	overflow: hidden;
}
.ach-progress-fill {
	height: 100%;
	background: rgba(74,222,128,.6);
	border-radius: 99px;
	transition: width .3s ease;
}
.ach-progress-label {
	font-size: .72rem;
	color: rgba(255,255,255,.3);
	white-space: nowrap;
}

/* Reward */
.ach-card-reward {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .2rem;
	flex-shrink: 0;
}
.ach-reward-num {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
}
.ach-reward-icon { font-size: 1rem; }
.ach-completions-count {
	font-size: .7rem;
	color: rgba(255,255,255,.25);
	white-space: nowrap;
}

.ach-empty {
	text-align: center;
	color: rgba(255,255,255,.25);
	padding: 3rem;
	font-size: .9rem;
}

@media (max-width: 600px) {
	.ach-card {
		grid-template-columns: 48px 1fr auto;
		gap: .75rem;
		padding: .85rem 1rem;
	}
	.ach-card-icon, .ach-card-icon img { width: 40px; height: 40px; }
	.ach-stats-bar { gap: 1rem; }
}

/* ── Achievements in Profile (/account) ──────────────────────────────────── */
.accp-progress-pill {
	width: 80px;
	height: 6px;
	background: rgba(255,255,255,.08);
	border-radius: 99px;
	overflow: hidden;
	flex-shrink: 0;
}
.accp-progress-fill {
	height: 100%;
	background: rgba(255,255,255,.25);
	border-radius: 99px;
	transition: width .4s ease;
}

.accp-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.accp-row {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	background: rgba(255,255,255,.02);
	border: .5px solid rgba(255,255,255,.06);
	border-radius: 12px;
	transition: border-color .15s, background .15s;
}
.accp-row:hover {
	background: rgba(255,255,255,.04);
	border-color: rgba(255,255,255,.12);
}
.accp-row--done {
	border-color: rgba(74,222,128,.15);
}
.accp-row--done:hover {
	border-color: rgba(74,222,128,.25);
}

.accp-icon {
	position: relative;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.04);
	border-radius: 8px;
	font-size: 1.2rem;
	flex-shrink: 0;
}
.accp-icon img {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	object-fit: cover;
}
.accp-done-check {
	position: absolute;
	bottom: -4px;
	right: -4px;
	background: rgba(74,222,128,.9);
	color: #000;
	font-size: .55rem;
	font-weight: 700;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.accp-body { min-width: 0; }
.accp-title {
	font-size: .9rem;
	font-weight: 600;
	color: rgba(255,255,255,.85);
	line-height: 1.3;
}
.accp-row--done .accp-title { color: rgba(74,222,128,.85); }
.accp-desc {
	font-size: .78rem;
	color: rgba(255,255,255,.35);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.accp-bar-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 5px;
}
.accp-bar {
	flex: 1;
	height: 3px;
	background: rgba(255,255,255,.07);
	border-radius: 99px;
	overflow: hidden;
}
.accp-bar-fill {
	height: 100%;
	background: rgba(255,255,255,.2);
	border-radius: 99px;
	transition: width .3s ease;
}
.accp-bar-label {
	font-size: .7rem;
	color: rgba(255,255,255,.25);
	white-space: nowrap;
}

.accp-reward {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	flex-shrink: 0;
}
.accp-reward-num {
	font-size: .85rem;
	font-weight: 600;
	color: rgba(255,255,255,.5);
}
.accp-row--done .accp-reward-num { color: rgba(74,222,128,.7); }
.accp-reward-gem { font-size: .8rem; }

@media (max-width: 480px) {
	.accp-row {
		grid-template-columns: 36px 1fr auto;
		gap: 10px;
		padding: 10px 12px;
	}
}

/* ── Achievements Public Page v2 ──────────────────────────────────────────── */
.apub-row {
	display: grid;
	grid-template-columns: 52px 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 16px 20px;
	background: rgba(255,255,255,.025);
	box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
	border-radius: 14px;
	transition: box-shadow .15s, background .15s;
}
.apub-row:hover {
	background: rgba(255,255,255,.04);
	box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 0 24px rgba(255,255,255,.02);
}
.apub-row--done {
	box-shadow: inset 0 0 0 .5px rgba(74,222,128,.15);
}
.apub-row--done:hover {
	box-shadow: inset 0 0 0 .5px rgba(74,222,128,.25), 0 0 24px rgba(74,222,128,.03);
}

.apub-icon {
	position: relative;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.04);
	box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07);
	border-radius: 10px;
	font-size: 1.4rem;
	flex-shrink: 0;
}
.apub-icon img {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
}
.apub-check {
	position: absolute;
	bottom: -4px;
	right: -4px;
	background: rgba(74,222,128,.85);
	color: #000;
	font-size: .55rem;
	font-weight: 700;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.apub-body { min-width: 0; }
.apub-title {
	font-size: .95rem;
	font-weight: 600;
	color: rgba(255,255,255,.85);
	margin-bottom: 3px;
}
.apub-row--done .apub-title { color: rgba(74,222,128,.8); }
.apub-desc {
	font-size: .8rem;
	color: rgba(255,255,255,.35);
	margin-bottom: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.apub-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.apub-cond {
	font-size: .75rem;
	color: rgba(255,255,255,.4);
	font-family: ui-monospace, monospace;
}
.apub-compl {
	font-size: .72rem;
	color: rgba(255,255,255,.2);
}
.apub-bar-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
}
.apub-bar {
	flex: 1;
	height: 3px;
	background: rgba(255,255,255,.07);
	border-radius: 99px;
	overflow: hidden;
}
.apub-bar-fill {
	height: 100%;
	background: rgba(255,255,255,.2);
	border-radius: 99px;
	transition: width .3s ease;
}
.apub-bar-label {
	font-size: .68rem;
	color: rgba(255,255,255,.25);
	white-space: nowrap;
}

.apub-reward {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex-shrink: 0;
}
.apub-reward-num {
	font-size: .9rem;
	font-weight: 600;
	color: rgba(255,255,255,.45);
}
.apub-row--done .apub-reward-num { color: rgba(74,222,128,.6); }
.apub-reward-gem { font-size: .8rem; }

@media (max-width: 540px) {
	.apub-row {
		grid-template-columns: 40px 1fr auto;
		gap: 10px;
		padding: 12px 14px;
	}
	.apub-icon, .apub-icon img { width: 36px; height: 36px; border-radius: 8px; }
}

/* ========== WIKI ========== */

.wiki-page {
  padding: 100px 5vw 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.wiki-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: rgba(255,255,255,.025);
  border-radius: 24px;
  inset: 0 0 0 .5px rgba(255,255,255,.07);
}

.wiki-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 12px;
  font-weight: 700;
}

.wiki-hero-desc {
  color: rgba(255,255,255,.5);
  font-size: 1.1rem;
  margin: 0;
}

.wiki-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.wiki-cat-card {
  background: rgba(255,255,255,.025);
  border-radius: 20px;
  inset: 0 0 0 .5px rgba(255,255,255,.07);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}

.wiki-cat-card:hover {
  inset: 0 0 0 .5px rgba(255,255,255,.15);
  transform: translateY(-2px);
}

.wiki-cat-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.wiki-cat-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.wiki-cat-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.wiki-cat-articles {
  padding: 12px;
}

.wiki-article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.wiki-article-link:hover {
  background: rgba(255,255,255,.04);
  color: #fff;
}

.wiki-article-title {
  font-size: .95rem;
}

.wiki-article-arrow {
  color: rgba(255,255,255,.25);
  transition: color .2s, transform .2s;
}

.wiki-article-link:hover .wiki-article-arrow {
  color: #4ade80;
  transform: translateX(4px);
}

.wiki-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,.4);
}

/* Article page layout */
.wiki-article-page {
  display: flex;
  gap: 32px;
  padding: 100px 5vw 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.wiki-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 32px;
  align-self: flex-start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.wiki-sidebar-inner {
  background: rgba(255,255,255,.025);
  border-radius: 20px;
  padding: 20px;
  inset: 0 0 0 .5px rgba(255,255,255,.07);
}

.wiki-back-link {
  display: inline-block;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: 16px;
  transition: color .2s;
}

.wiki-back-link:hover { color: #4ade80; }

.wiki-sidebar-cat {
  margin-bottom: 16px;
}

.wiki-sidebar-cat-title {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.35);
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.wiki-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wiki-sidebar-link {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .9rem;
  transition: background .2s, color .2s;
}

.wiki-sidebar-link:hover {
  background: rgba(255,255,255,.04);
  color: #fff;
}

.wiki-sidebar-link.active {
  background: rgba(74,222,128,.1);
  color: #4ade80;
  font-weight: 500;
}

.wiki-content {
  flex: 1 1 auto;
  min-width: 0;
}

.wiki-content-inner {
  background: rgba(255,255,255,.025);
  border-radius: 20px;
  padding: 32px 40px;
  inset: 0 0 0 .5px rgba(255,255,255,.07);
}

.wiki-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}

.wiki-breadcrumb a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
}

.wiki-breadcrumb a:hover { color: #4ade80; }

.wiki-breadcrumb-cat {
  color: #4ade80;
}

.wiki-article-h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.25;
}

/* Article content styling (templ.Raw HTML) */
.wiki-article-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}

.wiki-article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: rgba(255,255,255,.9);
}

.wiki-article-body p {
  line-height: 1.7;
  margin: 0 0 16px;
  color: rgba(255,255,255,.65);
}

.wiki-article-body ul,
.wiki-article-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: rgba(255,255,255,.65);
}

.wiki-article-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.wiki-article-body code {
  background: rgba(255,255,255,.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .9em;
  color: #a5b4fc;
}

.wiki-article-body pre {
  background: rgba(0,0,0,.3);
  padding: 16px 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid rgba(255,255,255,.06);
}

.wiki-article-body pre code {
  background: none;
  padding: 0;
  font-size: .85em;
}

.wiki-article-body blockquote {
  border-left: 3px solid #4ade80;
  margin: 0 0 16px;
  padding: 8px 16px;
  background: rgba(74,222,128,.04);
  border-radius: 0 8px 8px 0;
  color: rgba(255,255,255,.7);
}

.wiki-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: .95rem;
}

.wiki-article-body th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.wiki-article-body td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: rgba(255,255,255,.65);
}

.wiki-article-body tr:hover td {
  background: rgba(255,255,255,.02);
}

/* Anchor link button next to headings */
.wiki-heading-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wiki-heading-wrap h2,
.wiki-heading-wrap h3 {
  margin: 0;
  flex: 1;
}

.wiki-anchor-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, color .2s, background .2s;
  flex-shrink: 0;
}

.wiki-heading-wrap:hover .wiki-anchor-btn {
  opacity: 1;
}

.wiki-anchor-btn:hover {
  background: rgba(255,255,255,.06);
  color: #4ade80;
}

.wiki-anchor-btn.copied {
  color: #4ade80;
  opacity: 1 !important;
}

/* Mobile: always show anchor buttons */
@media (max-width: 768px) {
  .wiki-anchor-btn {
    opacity: 1;
    color: rgba(255,255,255,.35);
  }
}

.wiki-article-body a {
  color: #4ade80;
  text-decoration: underline;
  text-decoration-color: rgba(74,222,128,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}

.wiki-article-body a:hover {
  text-decoration-color: rgba(74,222,128,.9);
}

.wiki-article-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 16px 0;
}

/* TOC */
.wiki-toc-desktop {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.wiki-toc-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.35);
  margin: 0 0 10px;
  font-weight: 600;
}

.wiki-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-toc-list li {
  margin: 0;
}

.wiki-toc-link {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: background .15s, color .15s;
}

.wiki-toc-link:hover {
  background: rgba(255,255,255,.04);
  color: #fff;
}

.wiki-toc-link.level-3 {
  padding-left: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

.wiki-toc-mobile {
  display: none;
  margin-bottom: 20px;
}

.wiki-toc-toggle {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: .5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}

.wiki-toc-toggle:hover {
  background: rgba(255,255,255,.07);
}

.wiki-toc-toggle .arrow {
  transition: transform .2s;
  font-size: 0.75rem;
}

.wiki-toc-toggle.open .arrow {
  transform: rotate(180deg);
}

.wiki-toc-mobile-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
  background: rgba(255,255,255,.02);
  border-radius: 0 0 10px 10px;
  border: .5px solid rgba(255,255,255,.08);
  border-top: none;
}

.wiki-toc-mobile-list.open {
  display: block;
}

.wiki-toc-mobile-list li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 0.88rem;
}

.wiki-toc-mobile-list li a.level-3 {
  padding-left: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
}

.wiki-toc-mobile-list li a:hover {
  color: #4ade80;
}

/* Mobile */
@media (max-width: 768px) {
  .wiki-toc-mobile {
    display: block;
  }
  .wiki-toc-desktop {
    display: none;
  }

  .wiki-page {
    padding: 80px 16px 40px;
  }
  .wiki-hero {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .wiki-hero-title {
    font-size: 1.6rem;
  }
  .wiki-hero-desc {
    font-size: 0.95rem;
  }
  .wiki-categories {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wiki-cat-card {
    border-radius: 16px;
  }
  .wiki-cat-header {
    padding: 16px 20px;
  }
  .wiki-cat-articles {
    padding: 8px;
  }
  .wiki-article-link {
    padding: 10px 12px;
  }
  .wiki-article-page {
    flex-direction: column;
    padding: 80px 16px 40px;
    gap: 20px;
  }
  .wiki-sidebar {
    flex: none;
    position: static;
    max-height: none;
    order: 2;
  }
  .wiki-sidebar-inner {
    padding: 16px;
  }
  .wiki-content {
    order: 1;
    min-width: 0;
  }
  .wiki-content-inner {
    padding: 20px 16px;
  }
  .wiki-article-h1 {
    font-size: 1.5rem;
  }
  .wiki-article-body h2 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
  }
  .wiki-article-body h3 {
    font-size: 1.05rem;
  }
  .wiki-article-body table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .wiki-article-body th,
  .wiki-article-body td {
    padding: 8px 10px;
  }
  .wiki-article-body blockquote {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
  .wiki-article-body code {
    font-size: 0.8rem;
    padding: 1px 4px;
  }
}

.adm-textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .9rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color .2s;
}

.adm-textarea:focus {
  outline: none;
  border-color: rgba(74,222,128,.5);
}

/* ========== REFERRAL CARD (mobile-friendly) ========== */

.ref-card {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  inset: 0 0 0 .5px rgba(255,255,255,.07);
  padding: 24px;
}

.ref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.ref-label {
  font-size: 1rem;
  color: #888;
}

.ref-percent {
  font-size: 0.8rem;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.ref-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ref-input {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: .5px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}

.ref-copy-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ref-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #888;
  flex-wrap: wrap;
}

.ref-stats span {
  color: #fff;
  font-weight: 600;
}

.ref-stats .green {
  color: #4ade80;
}

.ref-desc {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 480px) {
  .ref-card {
    padding: 16px;
    border-radius: 16px;
  }
  .ref-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ref-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.8rem;
  }
  .ref-copy-btn {
    width: 100%;
    text-align: center;
  }
  .ref-stats {
    gap: 12px;
    font-size: 0.8rem;
  }
}
