/* ============================================================
   ANOMALIA FLAMINGO — design system
   Liquid Glass nav, FLUTE-style cards, SCP atmosphere.
   ============================================================ */

:root {
  --bg-0: #0a0610;
  --bg-1: #0a061047;
  --bg-2: #1a0e2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --fg: #f3eefc;
  --fg-muted: #a8a0bf;
  --fg-dim: #6c6385;

  --pink: #ff4d8d;
  --pink-2: #ff85b6;
  --pink-glow: rgba(255, 77, 141, 0.55);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --ok: #4ade80;
  --warn: #facc15;
  --err: #f87171;

  --grad-brand: linear-gradient(135deg, #ff4d8d 0%, #c026d3 50%, #7c3aed 100%);
  --grad-glow: radial-gradient(ellipse at top, rgba(255, 77, 141, 0.25), transparent 70%);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-lg: 0 20px 60px -20px rgba(124, 58, 237, 0.45);
  --shadow-glow: 0 0 40px var(--pink-glow);

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: var(--pink); color: #fff; }

html, body { min-height: 100vh; overflow-x: hidden; overflow-y: scroll; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDownNav {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* SCP Containment Breach Glitch */
@keyframes scp-glitch {
  0%, 92%, 100% { transform: none; opacity: 1; filter: none; }
  93% { transform: translate(-4px, 2px) skewX(-2deg); opacity: 0.85; filter: hue-rotate(40deg); }
  94% { transform: translate(3px, -1px) skewX(1deg); opacity: 0.9; }
  95% { transform: translate(-2px, -3px); opacity: 0.7; filter: hue-rotate(-30deg) saturate(1.5); }
  96% { transform: translate(5px, 1px) skewX(-1deg); opacity: 1; filter: none; }
  97% { transform: translate(-3px, 2px) skewX(3deg); opacity: 0.8; filter: hue-rotate(60deg); }
  98% { transform: translate(2px, -2px); opacity: 0.95; filter: none; }
}
@keyframes scp-scan {
  0% { top: -10%; }
  100% { top: 110%; }
}
@keyframes scp-flicker {
  0%, 89%, 91%, 93%, 95%, 100% { opacity: 1; }
  90% { opacity: 0.6; }
  92% { opacity: 0.85; }
  94% { opacity: 0.7; }
}
@keyframes scp-redpulse {
  0%, 85%, 100% { text-shadow: 0 0 10px transparent; }
  90% { text-shadow: 0 0 20px rgba(255, 0, 0, 0.4), 0 0 40px rgba(255, 0, 0, 0.2); }
  95% { text-shadow: 0 0 8px rgba(255, 0, 0, 0.2); }
}

body {
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
  font-family: var(--font);
  background:
    var(--grad-glow),
    radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.18), transparent 60%),
    var(--bg-0);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* SCP CRT-эффект */
.crt-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
  mix-blend-mode: multiply;
}
.crt-scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 3px
  );
  opacity: 0.5;
}

/* Кастомный скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), var(--violet));
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--pink-2), var(--violet)); }

/* ============================================================
   LIQUID GLASS NAV
   ============================================================ */
.glass-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 28px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 12, 32, 0.65);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: fadeInDownNav 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px;
  color: var(--fg); text-decoration: none;
  white-space: nowrap;
}
.brand-logo { font-size: 22px; filter: drop-shadow(0 0 8px var(--pink-glow)); }
.brand .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500; font-size: 14px;
  transition: all .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); transform: scale(1.05); }
.nav-links a.active { color: var(--fg); background: var(--surface-2); }
.nav-register-btn {
  background: var(--grad-brand) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  box-shadow: 0 0 14px var(--pink-glow);
}
.nav-register-btn:hover {
  opacity: 0.88;
  box-shadow: 0 0 22px var(--pink-glow) !important;
  background: var(--grad-brand) !important;
  transform: scale(1.05);
}


.btn-glass {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.btn-glass:hover { background: var(--pink); border-color: var(--pink); }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 14px; font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s;
  cursor: pointer;
}
.user-chip:hover { background: var(--surface-2); }
.chip-balance { color: var(--ok); }
.chip-tickets { color: var(--warn); }
.chip-name { color: var(--fg); }

.nav-link-logout {
  background: none; border: none; padding: 8px 14px; border-radius: 999px;
  color: var(--fg-muted); font-weight: 500; font-size: 14px; cursor: pointer; transition: all .2s ease; font-family: var(--font);
}
.nav-link-logout:hover { color: var(--err); background: rgba(255, 59, 48, 0.1); }

.nav-toggle { display: none; }

/* Мобильное меню */
@media (max-width: 860px) {
  .glass-nav {
    border-radius: var(--r-md);
    padding: 10px 14px;
    flex-wrap: wrap;
    width: calc(100% - 30px);
    justify-content: space-between;
    align-items: center;
  }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: transparent; border: none; cursor: pointer;
    width: 36px; height: 36px; padding: 6px;
    justify-content: center; align-items: center;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .nav-toggle:hover { background: rgba(139,92,246,0.12); }
  .nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--fg); border-radius: 2px;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s, background 0.2s;
    transform-origin: center;
  }
  /* Крестик при открытом меню */
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--fg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--fg); }
  .nav-links {
    display: none;
    flex-direction: column; align-items: stretch;
    width: 100%; margin: 10px 0 0 0; padding-top: 10px;
    border-top: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
  }
  .nav-links a:hover { background: var(--surface-2); }
  .nav-link-logout {
    text-align: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--r-sm);
  }
  .user-chip {
    justify-content: center;
    text-align: center;
    padding: 10px 16px;
    background: var(--surface-2);
    border-radius: var(--r-sm);
    margin-bottom: 4px;
  }
  .header-actions { flex-direction: column; width: 100%; align-items: stretch; gap: 10px; }
}

main { flex: 1; width: 100%; padding: 90px 20px 60px; max-width: 1280px; margin: 0 auto; }

/* Global page transition animations */
main > * {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}
main > *:nth-child(1) { animation-delay: 0.00s; }
main > *:nth-child(2) { animation-delay: 0.08s; }
main > *:nth-child(3) { animation-delay: 0.16s; }
main > *:nth-child(4) { animation-delay: 0.24s; }
main > *:nth-child(5) { animation-delay: 0.32s; }

main.spa-loading > * {
  animation: none !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; text-align: center; padding: 40px 20px 60px; }

/* ============================================================
   USER LISTS (HOME)
   ============================================================ */
.user-lists-section {
  max-width: 900px; margin: 0 auto 40px;
}
.user-lists-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 600px) {
  .user-lists-grid { grid-template-columns: 1fr; }
}
.user-list-column {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow);
  height: 270px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.list-title {
  font-size: 18px; font-weight: 800; margin-bottom: 16px;
  color: var(--fg);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  font-size: 11px; font-weight: 800;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.user-list {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
  flex: 1;
}
.user-list::-webkit-scrollbar { width: 4px; }
.user-list::-webkit-scrollbar-track { background: var(--bg-1); border-radius: 4px; }
.user-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.user-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none; color: var(--fg);
  transition: all .2s;
  position: relative;
}
.user-list-item::after {
  content: '';
  position: absolute;
  top: -4px; bottom: -4px; left: -4px; right: -4px;
  z-index: -1;
}
.donor-rank {
  width: 22px; height: 22px; min-width: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  background: var(--surface-2);
  color: var(--fg-muted);
  flex-shrink: 0;
}
.donor-rank.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a0e2e; }
.donor-rank.rank-2 { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #1a0e2e; }
.donor-rank.rank-3 { background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; }
.user-list-item:hover {
  background: var(--bg-2);
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.list-avatar {
  width: 36px; height: 36px; min-width: 36px; max-width: 36px;
  border-radius: 50%;
  background-color: var(--surface);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--fg);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  overflow: hidden;
}
.list-info {
  display: flex; align-items: center; justify-content: space-between;
  flex: 1; min-width: 0; gap: 6px;
}
.list-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-stat { font-size: 12px; font-family: var(--font); white-space: nowrap; flex-shrink: 0; }
.list-stat.highlight { color: var(--pink); font-weight: 700; }
.list-stat.muted { color: var(--fg-muted); }
.list-empty {
  text-align: center; color: var(--fg-muted); padding: 16px; font-size: 14px;
}
.hero-bg {
  position: absolute; inset: -40px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 77, 141, 0.20), transparent 50%);
  filter: blur(40px); z-index: -1;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; color: var(--fg-muted); font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 auto 18px;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards,
             scp-glitch 6s 1s infinite,
             scp-flicker 6s 1s infinite,
             scp-redpulse 6s 1s infinite;
  position: relative;
  width: fit-content;
  overflow: hidden;
}
/* Horizontal scanline that sweeps down */
.hero-title::before {
  content: '';
  position: absolute; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 109, 0.5), rgba(0, 255, 255, 0.3), transparent);
  z-index: 2; pointer-events: none;
  animation: scp-scan 4s linear infinite;
  filter: blur(1px);
}
/* Static noise overlay */
.hero-title::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none; z-index: 1;
}
.hero-title .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  font-size: 18px; color: var(--fg-muted);
  max-width: 600px; margin: 0 auto 36px;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Server status premium card */
.server-status-card.premium-card {
  padding: 36px 40px; margin: 0 auto 50px;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-xl); width: 100%; max-width: 560px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}

.server-status-card .ss-state {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}

.ss-name {
  font-size: 26px; font-weight: 800; margin: 0; line-height: 1.2; color: var(--fg);
}

.ss-stats-row {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  width: 100%; padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
@media (max-width: 500px) {
  .ss-stats-row { flex-direction: column; gap: 16px; }
  .ss-divider { display: none; }
}

.ss-divider { width: 1px; height: 40px; background: var(--border); }

.ss-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ss-stat .ss-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; }
.ss-stat .ss-val { font-size: 16px; font-weight: 700; font-family: var(--mono); color: var(--fg); }
.ss-stat .players-val { font-size: 20px; line-height: 1; font-weight: 800; }

.ss-join-btn { padding: 12px 40px; font-size: 15px; width: 100%; text-align: center; }

.ss-updated { font-size: 12px; color: var(--fg-muted); font-family: var(--mono); }

.ss-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fg-dim); }
.server-status-card.online .ss-dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: pulse 2s infinite; }
.server-status-card.offline .ss-dot { background: var(--err); box-shadow: 0 0 12px var(--err); }
.server-status-card.online .ss-label { color: var(--ok); }
.server-status-card.offline .ss-label { color: var(--err); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Community Stats */
.community-stats {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  max-width: 480px; margin: 0 auto;
  padding: 28px 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); backdrop-filter: blur(10px);
}
.comm-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.comm-val {
  font-size: 36px; font-weight: 800; font-family: var(--mono); line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.comm-label { font-size: 13px; color: var(--fg-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.comm-divider { width: 1px; height: 48px; background: var(--border); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--grad-brand); color: #fff;
  border: none; padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 8px 24px -8px var(--pink-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px var(--pink-glow); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary.block { display: block; width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--border-strong);
  padding: 12px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: all .2s;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--pink); }

/* ============================================================
   STATS + CARDS
   ============================================================ */

.section { margin: 40px 0; }
.section-title { font-size: 28px; font-weight: 800; margin-bottom: 24px; }

.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

.priv-card, .shop-card {
  width: 100%; max-width: 320px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all .25s;
  display: flex; flex-direction: column; gap: 16px;
}
.priv-card:hover, .shop-card:hover {
  border-color: var(--pink); 
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.priv-card.priv-1, .shop-card.priv-1 { border-top: 3px solid #fbbf24; }
.priv-card.priv-2, .shop-card.priv-2 { border-top: 3px solid #a3a3a3; box-shadow: 0 0 0 1px rgba(163,163,163,0.1); }
.priv-card.priv-3, .shop-card.priv-3 { border-top: 3px solid var(--pink); }
.shop-card.priv-4 { border-top: 3px solid var(--cyan); }
.shop-card.priv-5 { border-top: 3px solid var(--violet); }

.priv-head, .shop-head h3 { font-size: 22px; font-weight: 800; }
.shop-head { display: flex; justify-content: space-between; align-items: center; }
.shop-kind { font-size: 11px; padding: 3px 8px; background: var(--surface-2); border-radius: 999px; color: var(--fg-muted); text-transform: uppercase; }
.priv-price, .shop-price { font-size: 34px; font-weight: 800; font-family: var(--mono);
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.info-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.info-card {
  width: 100%; max-width: 480px;
  padding: 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
}
.info-card h3 { color: var(--fg); font-size: 18px; margin-bottom: 12px; font-weight: 700; text-align: center; }
.info-card p { color: var(--fg-muted); font-size: 14px; line-height: 1.6; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-accordion {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-details {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);

  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  animation: fadeInUp 0.6s ease forwards;
}
.faq-summary {
  padding: 24px;
  font-size: 16px;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hide default triangle */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #db2777; /* Deeper pink for the circle */
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--bg-0);
  border-radius: 2px;
  transition: transform 0.3s;
}
.faq-icon::before {
  width: 10px;
  height: 2px;
}
.faq-icon::after {
  width: 2px;
  height: 10px;
}
/* When open, hide the vertical bar to form a minus */
.faq-details.open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.faq-details.open .faq-content {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-content-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 24px 0 24px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-size: 14px;
  transition: padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-details.open .faq-content-inner {
  padding-bottom: 24px;
}

/* ============================================================
   SHOP
   ============================================================ */
.shop-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding-top: 20px; }
.shop-card {
  width: 100%; max-width: 320px; min-height: 460px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 30px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  height: 100%; box-shadow: var(--shadow-md);
  transition: all .2s;
  position: relative;
}
.shop-card:hover { transform: translateY(-5px); border-color: var(--pink); box-shadow: var(--shadow-lg); }
.shop-card-label {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--pink-glow);
}
.shop-head { margin-bottom: 16px; }
.shop-head h3 { font-size: 22px; font-weight: 800; margin: 0; color: var(--fg); }
.shop-kind { font-size: 11px; text-transform: uppercase; color: var(--fg-muted); letter-spacing: 0.05em; font-weight: 700; background: var(--bg-1); padding: 4px 8px; border-radius: 4px; display: inline-block; margin-top: 8px; }
.shop-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.5; flex: 1; margin-bottom: 24px; text-align: left; }
.shop-desc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shop-desc li { display: flex; align-items: flex-start; gap: 8px; }
.shop-desc li::before { content: '•'; color: var(--pink); font-weight: bold; }
.shop-price { font-size: 28px; font-weight: 800; font-family: var(--mono); color: var(--fg); margin-bottom: 24px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.shop-period { font-size: 14px; font-weight: 500; color: var(--fg-muted); }
.shop-card .buy-btn { width: 100%; padding: 14px; font-size: 16px; }

/* ============================================================
   PAGE HEAD / AUTH / FORMS
   ============================================================ */
.page-head { text-align: center; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 10px; }
.page-head p { color: var(--fg-muted); }

.auth-wrap { display: flex; justify-content: center; padding: 20px; }
.auth-card, .payment-card, .ticket-buy-card {
  margin: 0 auto;
  width: 100%; max-width: 440px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1, .payment-card h1 { font-size: 28px; margin-bottom: 8px; text-align: center; }
.auth-card label, .payment-card label, .ticket-buy-card label {
  font-size: 13px; color: var(--fg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  text-align: center;
}
.auth-card input, .payment-card input, .ticket-buy-card input {
  padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--bg-1); color: var(--fg); font-family: var(--font); font-size: 15px; outline: none; transition: 0.3s;
  text-align: center;
}
.auth-card input:focus, .payment-card input:focus, .ticket-buy-card input:focus { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255,42,109,0.2); }

.pwd-wrap { position: relative; display: flex; width: 100%; }
.pwd-wrap input { width: 100%; padding-right: 48px; padding-left: 48px; }
.pwd-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--fg-muted); cursor: pointer;
  padding: 4px; font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.pwd-toggle:hover { color: var(--fg); }
.auth-link { color: var(--fg-muted); text-decoration: none; font-size: 13px; text-align: center; margin-top: 6px; }
.auth-link:hover { color: var(--pink); }

.ticket-buy-card { max-width: 480px; margin: 0 auto; }
.ticket-total { font-size: 18px; color: var(--fg-muted); }
.ticket-total strong { color: var(--fg); font-family: var(--mono); }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-wrapper { display: flex; flex-direction: column; gap: 30px; max-width: 1000px; margin: 0 auto; }
.profile-card.horizontal {
  display: flex; flex-direction: row; align-items: center; gap: 24px;
  padding: 36px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .profile-card.horizontal { flex-direction: column; text-align: center; }
  .profile-meta-grid { justify-content: center; }
  .meta-item { align-items: center; }
}
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.profile-info { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.profile-info h2 { font-size: 28px; line-height: 1.2; margin: 0; }
.profile-meta-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.meta-val { font-size: 16px; font-weight: 500; }
.meta-val.balance { color: var(--ok); font-size: 18px; font-family: var(--mono); font-weight: 800; }
.steam-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--fg-muted); text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 3px 8px; font-size: 13px;
  transition: all .2s ease;
}
.steam-link:hover {
  color: var(--fg); border-color: #4c9be8;
  background: rgba(76,155,232,0.08);
  box-shadow: 0 0 10px rgba(76,155,232,0.2);
}
.profile-actions { display: flex; flex-direction: column; justify-content: center; }

.profile-main.full-width { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.profile-main.full-width h3 { font-size: 20px; font-weight: 700; text-align: center; }
.donation-list { display: flex; flex-direction: column; gap: 8px; }
.donation-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); font-size: 14px;
}
.d-name { font-weight: 700; }
.d-dates { color: var(--fg-muted); font-family: var(--mono); font-size: 12px; }
.muted { color: var(--fg-dim); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700; }

.profile-main.full-width .timeline { padding-left: 0; display: flex; flex-direction: column; gap: 12px; border: none; }
.profile-main.full-width .timeline-item {
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
@media (max-width: 768px) {
  .profile-main.full-width .timeline-item { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.profile-main.full-width .t-row { display: flex; gap: 12px; align-items: center; flex: 1; flex-wrap: wrap; }
.t-prov { color: var(--fg-muted); font-size: 13px; }
.t-status {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); text-transform: uppercase; letter-spacing: 0.05em;
}
.op-paid .t-status { background: rgba(74, 222, 128, 0.2); color: var(--ok); }
.op-pending .t-status { background: rgba(250, 204, 21, 0.2); color: var(--warn); }
.op-failed .t-status, .op-expired .t-status { background: rgba(248, 113, 113, 0.2); color: var(--err); }
.op-cancelled .t-status { background: rgba(156, 163, 175, 0.15); color: var(--fg-muted); }
.profile-main.full-width .t-date { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); text-align: right; }

.t-retry-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--warn); font-size: 12px; font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.t-retry-btn:hover {
  background: rgba(251, 191, 36, 0.3);
  border-color: var(--warn);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.t-cancel-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--err); font-size: 12px; font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.t-cancel-btn:hover {
  background: rgba(248, 113, 113, 0.3);
  border-color: var(--err);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.25);
}

/* 404 */
.error-page { text-align: center; padding: 80px 20px; }
.err-code {
  font-size: 140px; font-weight: 900; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { font-size: 32px; margin: 16px 0 8px; }
.error-page p { color: var(--fg-muted); margin-bottom: 24px; }

/* ============================================================
   TOASTS (SCP style)
   ============================================================ */
.toast-wrap {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 10000; max-width: 380px; width: 100%;
}
@media (max-width: 600px) {
  .toast-wrap { top: 90px; bottom: auto; width: calc(100% - 40px); }
}
.toast {
  padding: 14px 18px;
  background: rgba(20, 12, 32, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-md);
  color: var(--fg); font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .25s ease-out;
  position: relative; overflow: hidden;
}
.toast::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04));
  pointer-events: none;
}
.toast.success { border-left-color: var(--ok); }
.toast.error   { border-left-color: var(--err); }
.toast.warning { border-left-color: var(--warn); }
.toast.info    { border-left-color: var(--cyan); }
.toast .icon { font-size: 18px; }
.toast.out { animation: toastOut .25s ease-in forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(-20px); } }

/* SPA loading */
.spa-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }

/* Discord Button */
.btn-discord {
  display: inline-flex; align-items: center; gap: 8px;
  background: #5865F2; color: #fff;
  border: none; padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px; font-family: var(--font);
  text-decoration: none; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 8px 24px -8px rgba(88, 101, 242, 0.5);
  letter-spacing: 0.05em;
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(88, 101, 242, 0.6); background: #4752c4; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 60px;
  padding: 48px 20px 0;
  border-top: 1px solid var(--border);
  background: rgba(10, 6, 18, 0.6);
  backdrop-filter: blur(16px);
}
.footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 6px;
}
.footer-logo { font-size: 32px; filter: drop-shadow(0 0 8px var(--pink-glow)); }
.footer-name { font-size: 18px; color: var(--fg); }
.footer-name strong { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-desc { font-size: 13px; color: var(--fg-muted); margin-top: 4px; }

.footer-socials {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-socials-title {
  font-size: 13px; color: var(--fg-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.footer-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .2s;
  border: 1px solid var(--border);
  color: var(--fg-muted); background: var(--surface);
}
.footer-link:hover { transform: translateY(-2px); }
.footer-link.discord:hover { background: #5865F2; color: #fff; border-color: #5865F2; box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4); }
.footer-link.youtube:hover { background: #FF0000; color: #fff; border-color: #FF0000; box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4); }
.footer-link.twitch:hover { background: #9146FF; color: #fff; border-color: #9146FF; box-shadow: 0 4px 16px rgba(145, 70, 255, 0.4); }
.footer-link.tiktok:hover { background: #111; color: #fff; border-color: #333; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }

.footer-bottom {
  max-width: 1000px; margin: 0 auto;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px; color: var(--fg-dim);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ============================================================
   PROFILE CUSTOMIZE MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeInUp 0.25s ease-out;
}
.modal-backdrop[hidden] { display: none; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 36px;
  width: 100%; max-width: 500px;
  box-shadow: var(--shadow-lg), 0 0 60px var(--pink-glow);
  display: flex; flex-direction: column; gap: 20px;
}
.modal-title { font-size: 22px; font-weight: 800; }
.modal-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; }

.upload-section { display: flex; flex-direction: column; gap: 10px; }
.upload-label { font-size: 13px; font-weight: 700; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.upload-drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .2s;
}
.upload-drop:has(input:focus-within) { border-color: var(--pink); }
.upload-preview {
  width: 64px; height: 64px; min-width: 64px;
  border-radius: var(--r-md);
  background: var(--bg-1);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--fg-dim); text-align: center;
  overflow: hidden;
}
.upload-preview.wide {
  width: 100px; min-width: 100px;
  border-radius: var(--r-md);
}
.upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--border-strong);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.upload-btn:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.upload-status { font-size: 12px; min-height: 16px; }
.upload-status.ok { color: var(--ok); }
.upload-status.err { color: var(--err); }

/* Утилиты */
[hidden] { display: none !important; }
