:root {
  --bg-main: #05060a;
  --bg-alt: #0d0f16;
  --bg-card: rgba(15, 16, 25, 0.96);
  --accent: #ff3535;
  --accent-soft: rgba(255, 53, 53, 0.2);
  --accent-dark: #b3151f;
  --accent-glow: rgba(255, 53, 53, 0.4);
  --text-main: #f5f5f7;
  --text-muted: #a0a3b1;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(255, 53, 53, 0.3);
  --transition-fast: 0.18s ease-out;
  --transition-slow: 0.28s ease-out;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theme-light {
  --bg-main: #f8f9fa;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --accent: #ff3535;
  --accent-soft: rgba(255, 53, 53, 0.15);
  --accent-dark: #d32f2f;
  --accent-glow: rgba(255, 53, 53, 0.3);
  --text-main: #1a1a1a;
  --text-muted: #6c757d;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(255, 53, 53, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text-main);
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 53, 53, 0.15) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(83, 109, 254, 0.12) 0, transparent 50%),
    radial-gradient(circle at top, #181828 0, #05060a 55%);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 53, 53, 0.08) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(83, 109, 254, 0.06) 0, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
  transition: background var(--transition-smooth);
}

.theme-light html,
.theme-light body {
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 53, 53, 0.08) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(83, 109, 254, 0.06) 0, transparent 50%),
    linear-gradient(to bottom, #f0f2f5 0%, #ffffff 100%);
}

.theme-light body::before {
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 53, 53, 0.04) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(83, 109, 254, 0.03) 0, transparent 40%);
  animation: float 20s ease-in-out infinite, bluePulse 4s ease-in-out infinite;
}

@keyframes bluePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.theme-light body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(83, 109, 254, 0.04) 0, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: bluePulse 4s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(20px, -30px) scale(1.1);
    opacity: 0.8;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  background: radial-gradient(circle at top, #181828 0, #05060a 55%);
  transition: background var(--transition-smooth);
}

.theme-light .page {
  background: linear-gradient(to bottom, #f0f2f5 0%, #ffffff 100%);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(180%);
  background: 
    linear-gradient(to bottom, rgba(5, 6, 10, 0.95), rgba(5, 6, 10, 0.85)),
    radial-gradient(circle at top, rgba(255, 53, 53, 0.05) 0, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition-smooth), background var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header.scrolled {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 53, 53, 0.1);
  background: 
    linear-gradient(to bottom, rgba(5, 6, 10, 0.98), rgba(5, 6, 10, 0.9)),
    radial-gradient(circle at top, rgba(255, 53, 53, 0.08) 0, transparent 70%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 16px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  object-fit: cover;
  box-shadow: 
    0 0 18px rgba(255, 53, 53, 0.65),
    0 0 30px rgba(255, 53, 53, 0.3),
    inset 0 0 10px rgba(255, 53, 53, 0.2);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), filter var(--transition-smooth);
  position: relative;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    box-shadow: 
      0 0 18px rgba(255, 53, 53, 0.65),
      0 0 30px rgba(255, 53, 53, 0.3),
      inset 0 0 10px rgba(255, 53, 53, 0.2);
  }
  50% {
    box-shadow: 
      0 0 25px rgba(255, 53, 53, 0.8),
      0 0 40px rgba(255, 53, 53, 0.5),
      inset 0 0 15px rgba(255, 53, 53, 0.3);
  }
}

.logo-image:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 
    0 0 30px rgba(255, 53, 53, 0.9),
    0 0 50px rgba(255, 53, 53, 0.6),
    inset 0 0 20px rgba(255, 53, 53, 0.4);
  filter: brightness(1.1);
}

.header__brand {
  display: flex;
  flex-direction: column;
}

.header__brand-name {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header__brand-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.header__nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid transparent;
  position: relative;
  transition: background var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-fast);
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: -1;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 53, 53, 0.3);
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-link:hover::before {
  opacity: 0.1;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-smooth);
  padding: 0;
  margin-left: 8px;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 53, 53, 0.3);
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 15px rgba(255, 53, 53, 0.2);
}

.theme-toggle__icon {
  display: block;
  transition: transform var(--transition-smooth);
}

.theme-toggle:hover .theme-toggle__icon {
  transform: rotate(20deg);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 36px 0 40px;
  background: rgba(5, 6, 10, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid rgba(255, 53, 53, 0.55);
}

.hero__overlay {
  display: none;
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.hero__text {
  padding-right: 18px;
}

.hero__title {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #ff6b6b 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease-out, shimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(255, 53, 53, 0.3));
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

.hero__subtitle {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__ip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 14px;
}

.hero__ip-label {
  color: var(--text-muted);
  font-size: 13px;
}

.hero__ip-address {
  color: var(--accent);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.theme-light .hero__ip {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition-slow), color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.btn > *,
.btn {
  position: relative;
  z-index: 2;
}

.btn::before,
.btn::after {
  z-index: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff !important;
  box-shadow: 
    0 12px 30px rgba(255, 53, 53, 0.45),
    0 0 20px rgba(255, 53, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.btn--primary,
.btn--primary:hover,
.btn--primary:active,
.btn--primary:focus,
.btn--primary span,
.btn--primary:hover span,
.btn--primary:active span,
.btn--primary:focus span {
  color: #fff !important;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: 1;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(255, 53, 53, 0.7),
    0 0 30px rgba(255, 53, 53, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.1);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 53, 53, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: 1;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 53, 53, 0.2);
  transform: translateY(-1px);
}

.btn--ghost:hover::after {
  opacity: 1;
}

.btn--full {
  width: 100%;
}

.btn--small {
  padding: 6px 14px;
  font-size: 13px;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
}

/* Topup */
.topup {
  background: 
    linear-gradient(145deg, rgba(6, 6, 12, 0.95), rgba(20, 8, 15, 0.97)),
    radial-gradient(circle at top right, rgba(255, 53, 53, 0.1) 0, transparent 70%);
  border-radius: 22px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(255, 53, 53, 0.35);
  box-shadow: 
    var(--shadow-soft), 
    0 0 20px rgba(255, 53, 53, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  animation: fadeInRight 0.6s ease-out 0.2s both;
  backdrop-filter: blur(10px);
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.topup:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    var(--shadow-soft), 
    0 0 40px rgba(255, 53, 53, 0.3),
    0 0 60px rgba(255, 53, 53, 0.15);
  border-color: rgba(255, 53, 53, 0.6);
}

.topup::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top, rgba(255, 53, 53, 0.2) 0, transparent 60%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.1) 0, transparent 65%);
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.topup::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 53, 53, 0.1) 0, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.topup__title {
  position: relative;
  margin: 0 0 10px;
  font-size: 19px;
}

.topup__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field__label {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field__label::before {
  content: "▸";
  color: var(--accent);
  font-size: 11px;
  transition: transform var(--transition-smooth);
}

.field:not(.field--select).field--focused .field__label::before {
  transform: rotate(90deg);
}

.field {
  position: relative;
}

.field__input {
  background: rgba(5, 6, 10, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth), transform var(--transition-fast);
  width: 100%;
}

.field__input[type="text"],
.field__input[type="number"] {
  appearance: none;
}

select.field__input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23ff3535' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center !important;
  background-size: 14px !important;
  padding-right: 36px;
  cursor: pointer;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth) !important;
  transform: none !important;
}

select.field__input:focus,
select.field__input:active,
select.field__input:hover {
  transform: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23ff3535' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 5l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  background-repeat: no-repeat !important;
}

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 53, 53, 0.2), 0 0 15px rgba(255, 53, 53, 0.15);
  background: rgba(5, 6, 10, 0.95);
  transform: scale(1.01);
}

.field:not(.field--select)::after {
  content: "";
  position: absolute;
  right: 12px;
  top: calc(50% + 12px);
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  box-shadow: 0 0 8px rgba(255, 53, 53, 0.5);
}

.field:not(.field--select).field--focused::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.3);
}

.field__input::placeholder {
  color: rgba(160, 163, 177, 0.75);
  transition: opacity var(--transition-fast);
}

.field--focused .field__input::placeholder {
  opacity: 0.5;
}

.topup__hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 53, 53, 0.03) 0, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(83, 109, 254, 0.02) 0, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.section:hover::before {
  opacity: 1;
}

.section--alt {
  background: transparent;
}

/* Blocks */
.block {
  background: linear-gradient(145deg, rgba(15, 16, 25, 0.98), rgba(10, 11, 18, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 32px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 53, 53, 0.05);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 53, 53, 0.4), transparent);
  opacity: 0.8;
  box-shadow: 0 0 20px rgba(255, 53, 53, 0.4);
  transition: opacity var(--transition-smooth), box-shadow var(--transition-smooth);
}

.block::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 53, 53, 0.08) 0, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.block:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 53, 53, 0.15),
    0 0 30px rgba(255, 53, 53, 0.2);
  border-color: rgba(255, 53, 53, 0.25);
}

.block:hover::before {
  opacity: 1;
  box-shadow: 0 0 30px rgba(255, 53, 53, 0.6);
}

.block:hover::after {
  opacity: 1;
}

.block--alt {
  background: linear-gradient(145deg, rgba(20, 8, 15, 0.95), rgba(15, 6, 12, 0.98));
  border-color: rgba(255, 53, 53, 0.2);
}

.block--alt::before {
  background: linear-gradient(90deg, var(--accent), rgba(255, 53, 53, 0.6), rgba(255, 53, 53, 0.2));
  opacity: 1;
  box-shadow: 0 0 25px rgba(255, 53, 53, 0.5);
}

.block__content {
  position: relative;
  z-index: 1;
}

.block__text {
  position: relative;
}

#start .block__text {
  padding-top: 8px;
}

#start .section__title {
  margin-top: 0;
  margin-bottom: 20px;
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section__inner--two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.section__title {
  margin: 0 0 6px;
  font-size: 26px;
  position: relative;
  display: inline-block;
}

.list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.list li {
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--text-muted);
}

.rules-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.rules-category {
  background: linear-gradient(145deg, rgba(15, 16, 25, 0.95), rgba(10, 11, 18, 0.92));
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.rules-category::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 53, 53, 0.4));
  opacity: 0;
  transition: opacity var(--transition-smooth), box-shadow var(--transition-smooth);
  border-radius: 2px 0 0 2px;
}

.rules-category:hover {
  border-color: rgba(255, 53, 53, 0.25);
  background: linear-gradient(145deg, rgba(20, 8, 15, 0.95), rgba(15, 6, 12, 0.92));
  transform: translateX(4px);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 15px rgba(255, 53, 53, 0.1);
}

.rules-category:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 53, 53, 0.5);
}

.rules-category[open] {
  border-color: rgba(255, 53, 53, 0.4);
  background: 
    linear-gradient(145deg, rgba(25, 10, 18, 0.95), rgba(20, 8, 15, 0.92)),
    radial-gradient(circle at top left, rgba(255, 53, 53, 0.1) 0, transparent 60%);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 25px rgba(255, 53, 53, 0.2),
    0 0 40px rgba(255, 53, 53, 0.1);
}

.rules-category[open]::before {
  opacity: 1;
  box-shadow: 0 0 15px rgba(255, 53, 53, 0.6);
}

.rules-category__title {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding-right: 30px;
  transition: color var(--transition-smooth);
  list-style: none;
  margin: 0;
}

.rules-category__title::-webkit-details-marker {
  display: none;
}

.rules-category__title::marker {
  display: none;
}

.rules-category__title::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--accent);
  transition: transform var(--transition-smooth);
}

.rules-category[open] .rules-category__title::after {
  transform: translateY(-50%) rotate(180deg);
}

.rules-category__title:hover {
  color: var(--accent);
}

.rules-category__content {
  margin-top: 16px;
  animation: fadeIn 0.3s ease-out;
}

.rules-category .list {
  margin-top: 8px;
}

.theme-light .rules-category {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.theme-light .rules-category:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 53, 53, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.theme-light .rules-category[open] {
  background: rgba(255, 248, 250, 0.95);
  border-color: rgba(255, 53, 53, 0.3);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 25px rgba(255, 53, 53, 0.1);
}


.accent {
  color: var(--accent);
  margin-right: 4px;
}

/* Card */
.card {
  background: rgba(15, 16, 25, 0.8);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.8;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 53, 53, 0.1);
  border-color: rgba(255, 53, 53, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card--glass {
  background: rgba(15, 16, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card__title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
}

.card__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.card__text--big {
  font-size: 17px;
  line-height: 1.7;
}

.card__note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Steps */
.steps {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps__item {
  display: flex;
  gap: 10px;
}

.steps__num {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 53, 53, 0.3));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: transform var(--transition-smooth), background var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: 
    0 0 10px rgba(255, 53, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.steps__num::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), rgba(255, 53, 53, 0.5));
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: -1;
  filter: blur(8px);
}

.steps__item:hover .steps__num {
  transform: scale(1.15) rotate(8deg);
  background: linear-gradient(135deg, rgba(255, 53, 53, 0.4), rgba(255, 53, 53, 0.5));
  box-shadow: 
    0 0 20px rgba(255, 53, 53, 0.5),
    0 0 30px rgba(255, 53, 53, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.steps__item:hover .steps__num::before {
  opacity: 0.6;
}

.steps__item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.4;
}

.steps__item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Socials */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.social-card {
  background: 
    linear-gradient(145deg, rgba(15, 16, 25, 0.95), rgba(10, 11, 18, 0.92)),
    radial-gradient(circle at top right, rgba(255, 53, 53, 0.08) 0, transparent 60%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.social-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 53, 53, 0.4));
  opacity: 0.5;
  transition: opacity var(--transition-smooth), box-shadow var(--transition-smooth);
}

.social-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 53, 53, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.social-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 25px rgba(255, 53, 53, 0.25),
    0 0 40px rgba(255, 53, 53, 0.1);
  border-color: rgba(255, 53, 53, 0.4);
  background: 
    linear-gradient(145deg, rgba(20, 8, 15, 0.95), rgba(15, 6, 12, 0.92)),
    radial-gradient(circle at top right, rgba(255, 53, 53, 0.15) 0, transparent 60%);
}

.social-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 18px rgba(255, 53, 53, 0.5);
}

.social-card:hover::after {
  opacity: 1;
}

.social-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.social-card p {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.social-card__hint {
  font-size: 13px;
  color: var(--text-muted);
}

.link-accent {
  color: var(--accent);
  font-weight: 600;
  position: relative;
  transition: color var(--transition-smooth), text-shadow var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
}

.link-accent::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 53, 53, 0.6));
  border-radius: 1px;
  transition: width var(--transition-smooth);
  box-shadow: 0 0 8px rgba(255, 53, 53, 0.4);
}

.link-accent:hover {
  color: #ff5555;
  text-shadow: 0 0 10px rgba(255, 53, 53, 0.5);
}

.link-accent:hover::after {
  width: 100%;
  box-shadow: 0 0 12px rgba(255, 53, 53, 0.6);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: linear-gradient(145deg, rgba(15, 16, 25, 0.95), rgba(10, 11, 18, 0.92));
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.faq__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 53, 53, 0.4));
  opacity: 0;
  transition: opacity var(--transition-smooth), box-shadow var(--transition-smooth);
  border-radius: 2px 0 0 2px;
}

.faq__item:hover {
  border-color: rgba(255, 53, 53, 0.25);
  background: linear-gradient(145deg, rgba(20, 8, 15, 0.95), rgba(15, 6, 12, 0.92));
  transform: translateX(4px);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 15px rgba(255, 53, 53, 0.1);
}

.faq__item:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 53, 53, 0.5);
}

.faq__item[open] {
  border-color: rgba(255, 53, 53, 0.4);
  background: 
    linear-gradient(145deg, rgba(25, 10, 18, 0.95), rgba(20, 8, 15, 0.92)),
    radial-gradient(circle at top left, rgba(255, 53, 53, 0.1) 0, transparent 60%);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 25px rgba(255, 53, 53, 0.2),
    0 0 40px rgba(255, 53, 53, 0.1);
}

.faq__item[open]::before {
  opacity: 1;
  box-shadow: 0 0 15px rgba(255, 53, 53, 0.6);
}

.faq__question {
  cursor: pointer;
  font-size: 15px;
  position: relative;
  padding-right: 20px;
  transition: color var(--transition-smooth);
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  display: none;
}

.faq__question::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--accent);
  transition: transform var(--transition-smooth);
}

.faq__item[open] .faq__question::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq__question:hover {
  color: var(--accent);
}

.faq__answer {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Forum */
.page--forum {
  background: radial-gradient(circle at top, #151525 0, #05060a 55%);
}

.forum-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.9));
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
}

.forum-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.forum-header__brand {
  flex-shrink: 0;
}

.forum-header__logo-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.forum-header__logo-main {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--text-main);
}

.forum-header__nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.forum-nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

.forum-nav-link:hover {
  color: var(--text-main);
}

.forum-nav-link--dropdown::after {
  content: "▼";
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.6;
}

.forum-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.forum-header__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.forum-header__icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.forum-header__icon svg {
  width: 20px;
  height: 20px;
}

.forum-main {
  padding: 24px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.forum-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.forum-profile {
  position: sticky;
  top: 80px;
}

.forum-profile__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.forum-profile__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.forum-profile__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(255, 53, 53, 0.5) 0, rgba(12, 13, 20, 1) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 53, 53, 0.3);
}

.forum-profile__avatar-placeholder {
  text-transform: uppercase;
  color: var(--text-main);
}

.forum-profile__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.forum-profile__name {
  font-weight: 600;
  font-size: 16px;
}

.forum-profile__status {
  font-size: 13px;
  color: var(--text-muted);
}

.forum-profile__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.forum-profile__stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.forum-profile__stat-label {
  color: var(--text-muted);
}

.forum-profile__stat-value {
  color: var(--text-main);
  font-weight: 600;
}

.forum-profile__menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.forum-profile__menu-item {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
  transition: color var(--transition-smooth), padding-left var(--transition-smooth);
}

.forum-profile__menu-item:hover {
  color: var(--accent);
  padding-left: 8px;
}

.forum-profile__menu-item--logout {
  color: var(--accent);
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}


.forum-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forum-category {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.forum-category__header {
  background: linear-gradient(to right, rgba(255, 53, 53, 0.15), rgba(255, 53, 53, 0.05));
  border-bottom: 1px solid rgba(255, 53, 53, 0.2);
}

.forum-category__title {
  margin: 0;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.forum-category__content {
  padding: 8px 0;
}

.forum-thread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-smooth);
}

.forum-thread:last-child {
  border-bottom: none;
}

.forum-thread:hover {
  background: rgba(255, 255, 255, 0.03);
}

.forum-thread--link {
  padding: 16px;
}

.forum-thread--link .forum-thread__title a {
  color: var(--accent);
  font-weight: 500;
}

.forum-thread__info {
  flex: 1;
  min-width: 0;
}

.forum-thread__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.forum-thread__title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.forum-thread__title a:hover {
  color: var(--accent);
}

.forum-thread__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.forum-thread__badge--new {
  background: var(--accent);
  color: #fff;
}

.forum-thread__badge--subsections {
  background: rgba(255, 53, 53, 0.2);
  color: var(--accent);
  border: 1px solid rgba(255, 53, 53, 0.3);
}

.forum-thread__desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.forum-thread__stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.forum-thread__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
}

.forum-thread__stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.forum-thread__stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* Forum Recent */
.forum-recent {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  margin-top: 20px;
  box-shadow: var(--shadow-soft);
}

.forum-recent__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.forum-recent__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forum-recent__item {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.forum-recent__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.forum-recent__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}

.forum-recent__thread {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-smooth);
}

.forum-recent__thread:hover {
  color: var(--accent);
}

.forum-recent__meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.forum-recent__time {
  color: var(--text-muted);
}

.forum-recent__author {
  color: var(--accent);
}

.forum-recent__category {
  margin: 6px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.forum-recent__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.forum-recent__date {
  color: var(--text-muted);
}

.forum-recent__replies {
  color: var(--accent);
}

/* Wiki */
.page--wiki {
  background: radial-gradient(circle at top, #151525 0, #05060a 55%);
}

.wiki-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.9));
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
}

.wiki-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
}

.wiki-header__logo-link {
  display: flex;
  flex-direction: column;
}

.wiki-header__logo-main {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wiki-header__logo-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.wiki-header__nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Wiki - Fresh Start */
.wiki-main {
  padding: 40px 0 60px;
  min-height: calc(100vh - 200px);
}

.wiki-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* Wiki Sidebar */
.wiki-sidebar {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.wiki-sidebar__top {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 53, 53, 0.2);
}

.wiki-sidebar__heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.03em;
}

.wiki-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wiki-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  width: 100%;
}

.wiki-sidebar__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  border-radius: 0 2px 2px 0;
}

.wiki-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  padding-left: 14px;
}

.wiki-sidebar__link:hover::before {
  opacity: 1;
}

.wiki-sidebar__link--active {
  background: rgba(255, 53, 53, 0.12);
  color: var(--text-main);
  padding-left: 14px;
}

.wiki-sidebar__link--active::before {
  opacity: 1;
}

.wiki-sidebar__link-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.wiki-sidebar__link-text {
  flex: 1;
}

/* Wiki Content */
.wiki-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  min-height: 600px;
}

.wiki-section {
  display: none;
}

.wiki-section--active {
  display: block;
  animation: wikiFadeIn 0.3s ease-out;
}

@keyframes wikiFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wiki-section__heading {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 53, 53, 0.2);
}

.wiki-section__lead {
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

.wiki-section__badge {
  display: inline-block;
  padding: 4px 12px;
  margin-left: 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 53, 53, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 53, 53, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wiki-section__subheading {
  margin: 32px 0 20px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wiki-section p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.wiki-section p:last-child {
  margin-bottom: 0;
}

/* Wiki Highlights */
.wiki-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.wiki-highlight {
  background: linear-gradient(145deg, rgba(255, 53, 53, 0.08), rgba(255, 53, 53, 0.03));
  border: 1px solid rgba(255, 53, 53, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-smooth);
}

.wiki-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 53, 53, 0.2);
  border-color: rgba(255, 53, 53, 0.4);
}

.wiki-highlight__icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.wiki-highlight__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.wiki-highlight__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Wiki Info & Warn */
.wiki-info,
.wiki-warn {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 4px solid;
}

.wiki-info {
  background: rgba(83, 109, 254, 0.1);
  border-left-color: rgba(83, 109, 254, 0.6);
}

.wiki-warn {
  background: rgba(255, 53, 53, 0.12);
  border-left-color: rgba(255, 53, 53, 0.7);
}

.wiki-info__icon,
.wiki-warn__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.wiki-info__text,
.wiki-warn__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* Wiki List */
.wiki-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.wiki-list__item {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border-left: 4px solid rgba(255, 53, 53, 0.4);
  transition: all var(--transition-smooth);
}

.wiki-list__item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.wiki-list__num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 53, 53, 0.4);
}

.wiki-list__body {
  flex: 1;
  padding-top: 2px;
}

.wiki-list__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.wiki-list__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Wiki Steps */
.wiki-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.wiki-steps__item {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-smooth);
}

.wiki-steps__item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 53, 53, 0.3);
  transform: translateX(4px);
}

.wiki-steps__num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 53, 53, 0.3), rgba(255, 53, 53, 0.2));
  color: var(--accent);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid rgba(255, 53, 53, 0.4);
}

.wiki-steps__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  padding-top: 4px;
}

.wiki-steps__text code {
  font-family: Consolas, "Courier New", monospace;
  background: rgba(255, 53, 53, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--accent);
  border: 1px solid rgba(255, 53, 53, 0.3);
}

/* Wiki Items */
.wiki-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.wiki-items__item {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-smooth);
}

.wiki-items__item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 53, 53, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wiki-items__icon {
  font-size: 24px;
  flex-shrink: 0;
}

.wiki-items__content {
  flex: 1;
}

.wiki-items__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.wiki-items__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Wiki Tiles */
.wiki-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.wiki-tiles__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: all var(--transition-smooth);
}

.wiki-tiles__tile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 53, 53, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.wiki-tiles__icon {
  font-size: 28px;
}

.wiki-tiles__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Code */
code {
  font-family: Consolas, "Courier New", monospace;
  background: rgba(255, 53, 53, 0.15);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.9em;
  line-height: 1.6;
  color: var(--accent);
  border: 1px solid rgba(255, 53, 53, 0.3);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 6, 10, 0.98);
  backdrop-filter: blur(10px);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 32px;
  padding: 40px 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__block--brand {
  max-width: 280px;
}

.footer__brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer__brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer__copyright {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer__disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.8;
  line-height: 1.5;
}

.footer__block--links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__links-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 8px;
}

.footer__links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__links-list li {
  margin: 0;
}

.footer__links-list a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-smooth);
  display: inline-block;
}

.footer__links-list a:hover {
  color: var(--accent);
}

.footer__block--payments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer__block--payments .payments {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  width: 100%;
}

.footer__block--payments .payments::before,
.footer__block--payments .payments::after {
  display: none;
}

.payment-method-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.payment-method-list li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-smooth);
  width: 70px;
  height: 40px;
  flex-shrink: 0;
}

.payment-method-list li:hover {
  border-color: rgba(255, 53, 53, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.payment-method-list svg {
  width: 60px;
  height: 28px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--transition-smooth);
}

.payment-method-list li:hover svg {
  opacity: 1;
}

/* SBP logo - специальные стили для лучшей видимости */
.payment-method-list li[data-method="sbp"] {
  background: rgba(255, 255, 255, 0.15);
}

.payment-method-list li[data-method="sbp"]:hover {
  background: rgba(255, 255, 255, 0.2);
}

.payment-method-list li[data-method="sbp"] svg {
  opacity: 1;
}

.system-status {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer__brand {
  font-weight: 600;
}

.footer__text {
  margin-left: 6px;
}

.footer__placeholder {
  opacity: 0.85;
}

/* Scroll animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Section animations */
.section {
  animation: fadeInUp 0.8s ease-out both;
}

.section:nth-child(even) {
  animation-delay: 0.1s;
}

/* Pulse animation for accent elements */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Glow effect */
.glow {
  animation: pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer__block--payments {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .payment-method-list {
    justify-content: flex-start;
  }

  .system-status {
    text-align: left;
  }
}

@media (max-width: 880px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .topup {
    order: -1;
  }

  .section__inner--two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__block--links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__block--payments {
    align-items: flex-start;
  }

  .payment-method-list {
    justify-content: flex-start;
  }

  .system-status {
    text-align: left;
  }

  .forum-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .forum-profile {
    position: static;
    order: -1;
  }

  .wiki-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .wiki-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }

  .wiki-content {
    padding: 28px 24px;
  }

  .wiki-section__heading {
    font-size: 28px;
  }

  .wiki-highlights {
    grid-template-columns: 1fr;
  }

  .wiki-tiles {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 640px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__nav {
    justify-content: flex-start;
  }

  .forum-header__inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .forum-header__nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .forum-header__actions {
    gap: 8px;
  }

  .forum-header__icon {
    width: 32px;
    height: 32px;
  }

  .forum-thread {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .forum-thread__stats {
    width: 100%;
    justify-content: flex-start;
  }

  .footer__inner {
    padding: 24px 16px;
  }

  .footer__brand-title {
    font-size: 18px;
  }

  .payment-method-list {
    gap: 8px;
  }

  .payment-method-list li {
    width: 55px;
    height: 32px;
    padding: 4px 6px;
  }

  .payment-method-list svg {
    width: 48px;
    height: 22px;
  }

}

/* Light theme overrides */
.theme-light .header {
  background: 
    linear-gradient(to bottom, rgba(248, 249, 250, 0.95), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at top, rgba(255, 53, 53, 0.05) 0, transparent 70%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.theme-light .header.scrolled {
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(255, 53, 53, 0.08);
  background: 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95)),
    radial-gradient(circle at top, rgba(255, 53, 53, 0.06) 0, transparent 70%);
}

.theme-light .card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.theme-light .card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 20px rgba(255, 53, 53, 0.08);
  border-color: rgba(255, 53, 53, 0.3);
}

.theme-light .card--glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-light .topup {
  background: 
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 250, 0.97)),
    radial-gradient(circle at top right, rgba(255, 53, 53, 0.08) 0, transparent 70%);
  border: 1px solid rgba(255, 53, 53, 0.2);
  box-shadow: 
    0 18px 45px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(255, 53, 53, 0.1);
}

.theme-light .topup:hover {
  box-shadow: 
    0 18px 45px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(255, 53, 53, 0.15);
}

.theme-light .social-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.theme-light .social-card:hover {
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.12),
    0 0 25px rgba(255, 53, 53, 0.15);
  border-color: rgba(255, 53, 53, 0.3);
}

.theme-light .faq__item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.theme-light .faq__item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 53, 53, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.theme-light .faq__item[open] {
  background: rgba(255, 248, 250, 0.95);
  border-color: rgba(255, 53, 53, 0.3);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 25px rgba(255, 53, 53, 0.1);
}

.theme-light .field__input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-main);
}

.theme-light .field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 53, 53, 0.15), 0 0 15px rgba(255, 53, 53, 0.1);
  background: rgba(255, 255, 255, 1);
}

.theme-light select.field__input:focus,
.theme-light select.field__input:active,
.theme-light select.field__input:hover {
  transform: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23ff3535' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 5l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  background-repeat: no-repeat !important;
  background-color: rgba(255, 255, 255, 1) !important;
}

.theme-light .btn--ghost {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-light .btn--ghost:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 53, 53, 0.3);
}

.theme-light .nav-link {
  color: var(--text-muted);
}

.theme-light .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(255, 53, 53, 0.2);
  color: var(--text-main);
}

.theme-light .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-light .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 53, 53, 0.3);
}

.theme-light .section--alt {
  background: transparent;
}

.theme-light .hero {
  background: rgba(248, 249, 250, 0.62);
  border-bottom-color: rgba(179, 21, 31, 0.35);
}

.theme-light .hero__overlay {
  opacity: 0.5;
}

.theme-light .hero__title {
  background: linear-gradient(135deg, #1a1a1a 0%, #d32f2f 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  filter: drop-shadow(0 0 20px rgba(255, 53, 53, 0.2));
}

/* Футер всегда темный, независимо от темы - используем значения из темной темы */
.theme-light .footer {
  --footer-bg-main: #05060a;
  --footer-text-main: #f5f5f7;
  --footer-text-muted: #a0a3b1;
  --footer-border-subtle: rgba(255, 255, 255, 0.06);
  --footer-accent: #ff3535;
  
  background: rgba(5, 6, 10, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-light .footer__inner {
  color: #a0a3b1;
}

.theme-light .footer__brand-title {
  color: #f5f5f7;
}

.theme-light .footer__brand-subtitle,
.theme-light .footer__copyright,
.theme-light .footer__disclaimer {
  color: #a0a3b1;
}

.theme-light .footer__links-title {
  color: #f5f5f7;
}

.theme-light .footer__links-list a {
  color: #a0a3b1;
}

.theme-light .footer__links-list a:hover {
  color: #ff3535;
}

.theme-light .footer__block--payments .system-status {
  color: #a0a3b1;
}

/* Элементы платежных систем в футере - точно как в темной теме */
.theme-light .footer .payment-method-list li {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.theme-light .footer .payment-method-list li:hover {
  border-color: rgba(255, 53, 53, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.theme-light .footer .payment-method-list svg {
  opacity: 0.7;
}

.theme-light .footer .payment-method-list li:hover svg {
  opacity: 1;
}

/* SBP в футере - точно как в темной теме */
.theme-light .footer .payment-method-list li[data-method="sbp"] {
  background: rgba(255, 255, 255, 0.15);
}

.theme-light .footer .payment-method-list li[data-method="sbp"]:hover {
  background: rgba(255, 255, 255, 0.2);
}

.theme-light .footer .payment-method-list li[data-method="sbp"] svg {
  opacity: 1;
}


.theme-light .payment-method-list li {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
}

.theme-light .payment-method-list li:hover {
  border-color: rgba(255, 53, 53, 0.3);
  background: rgba(0, 0, 0, 0.05);
}

/* SBP logo в светлой теме - темный фон для белого логотипа */
.theme-light .payment-method-list li[data-method="sbp"] {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 0, 0, 0.4);
}

.theme-light .payment-method-list li[data-method="sbp"]:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 53, 53, 0.3);
}

/* Wiki Light Theme */
.theme-light .page--wiki {
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 53, 53, 0.08) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(83, 109, 254, 0.06) 0, transparent 50%),
    radial-gradient(circle at top, #f8f9fa 0, #e9ecef 55%);
}

.theme-light .wiki-header {
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0.96), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.theme-light .wiki-sidebar {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.theme-light .wiki-sidebar:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.theme-light .wiki-menu__item {
  color: var(--text-muted);
}

.theme-light .wiki-menu__item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

.theme-light .wiki-menu__item--active {
  background: rgba(255, 53, 53, 0.1);
  color: var(--text-main);
}

.theme-light .wiki-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.theme-light .wiki-content:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 20px rgba(255, 53, 53, 0.1);
}

.theme-light .wiki-header__logo-sub {
  color: var(--text-muted);
}

.theme-light .wiki-sidebar {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.theme-light .wiki-sidebar__link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-light .wiki-sidebar__link--active {
  background: rgba(255, 53, 53, 0.1);
}

.theme-light .wiki-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.theme-light .wiki-highlight {
  background: rgba(255, 53, 53, 0.05);
  border: 1px solid rgba(255, 53, 53, 0.15);
}

.theme-light .wiki-highlight:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 53, 53, 0.15);
}

.theme-light .wiki-info {
  background: rgba(83, 109, 254, 0.08);
  border-left-color: rgba(83, 109, 254, 0.5);
}

.theme-light .wiki-warn {
  background: rgba(255, 53, 53, 0.1);
  border-left-color: rgba(255, 53, 53, 0.6);
}

.theme-light .wiki-list__item {
  background: rgba(0, 0, 0, 0.03);
  border-left-color: rgba(255, 53, 53, 0.4);
}

.theme-light .wiki-list__item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-light .wiki-steps__item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-light .wiki-steps__item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-light .wiki-items__item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-light .wiki-items__item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-light .wiki-tiles__tile {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-light .wiki-tiles__tile:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-light .wiki-section__badge {
  background: rgba(255, 53, 53, 0.1);
  border: 1px solid rgba(255, 53, 53, 0.25);
}

/* Content stays above the lava layer */
.main,
.wiki-main,
.footer {
  position: relative;
  z-index: 1;
}

.lava-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.lava {
  position: fixed;
  inset: -12vh -8vw;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: url("#lava-goo");
}

.lava__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  background: radial-gradient(circle at 32% 30%, #ffe1d6 0%, #ff5a42 24%, #e10e22 54%, #6a0c16 100%);
}

.lava__blob:nth-child(1) {
  width: 340px;
  height: 340px;
  left: 6%;
  top: 72%;
  animation: lava-a 18s ease-in-out -6s infinite;
}

.lava__blob:nth-child(2) {
  width: 220px;
  height: 260px;
  left: 28%;
  top: 78%;
  background: radial-gradient(circle at 30% 30%, #ffd0b8 0%, #ff7a3c 30%, #d01228 62%, #4a0812 100%);
  animation: lava-b 22s ease-in-out -11s infinite;
}

.lava__blob:nth-child(3) {
  width: 300px;
  height: 300px;
  left: 52%;
  top: 68%;
  animation: lava-c 20s ease-in-out -4s infinite;
}

.lava__blob:nth-child(4) {
  width: 160px;
  height: 190px;
  left: 74%;
  top: 80%;
  background: radial-gradient(circle at 35% 30%, #fff0ea 0%, #ff3b3b 34%, #9d1020 70%, #3d0710 100%);
  animation: lava-d 15s ease-in-out -9s infinite;
}

.lava__blob:nth-child(5) {
  width: 260px;
  height: 240px;
  left: 40%;
  top: 84%;
  animation: lava-b 26s ease-in-out -16s infinite;
}

.lava__blob:nth-child(6) {
  width: 120px;
  height: 150px;
  left: 16%;
  top: 88%;
  background: radial-gradient(circle at 40% 30%, #ffb199 0%, #ff2d2d 40%, #7a0e18 100%);
  animation: lava-d 13s ease-in-out -2s infinite;
}

.lava__blob:nth-child(7) {
  width: 200px;
  height: 210px;
  left: 84%;
  top: 74%;
  animation: lava-a 24s ease-in-out -13s infinite;
}

@keyframes lava-a {
  0%, 100% { transform: translate3d(0, 8vh, 0) scale(1); }
  45% { transform: translate3d(4vw, -82vh, 0) scale(1.14); }
  72% { transform: translate3d(-3vw, -48vh, 0) scale(0.92); }
}

@keyframes lava-b {
  0%, 100% { transform: translate3d(0, 12vh, 0) scale(0.96); }
  38% { transform: translate3d(-5vw, -70vh, 0) scale(1.18); }
  68% { transform: translate3d(3vw, -36vh, 0) scale(1); }
}

@keyframes lava-c {
  0%, 100% { transform: translate3d(0, 6vh, 0) scale(1.05); }
  50% { transform: translate3d(-6vw, -88vh, 0) scale(0.88); }
  78% { transform: translate3d(2vw, -30vh, 0) scale(1.1); }
}

@keyframes lava-d {
  0%, 100% { transform: translate3d(0, 10vh, 0) scale(1); }
  42% { transform: translate3d(3vw, -92vh, 0) scale(1.2); }
  70% { transform: translate3d(-2vw, -54vh, 0) scale(0.86); }
}

.theme-light .lava {
  opacity: 0.42;
}

/* Keep panels readable when a lava blob passes behind them */
:root:not(.theme-light) .rules-category,
:root:not(.theme-light) .topup,
:root:not(.theme-light) .card,
:root:not(.theme-light) .block,
:root:not(.theme-light) .wiki-content,
:root:not(.theme-light) .wiki-sidebar,
:root:not(.theme-light) .faq__item {
  background-color: #0c0e16;
}

@media (hover: hover) and (pointer: fine) {
  html.glow-cursor,
  html.glow-cursor * {
    cursor: none !important;
  }
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.theme-light .cursor-glow {
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  .lava__blob {
    animation: none;
  }
}


