* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #FFD700;
  --primary-dark: #DAA520;
  --primary-glow: rgba(255, 215, 0, 0.5);
  --accent: #00FFFF;
  --accent-glow: rgba(0, 255, 255, 0.3);
  --dark: #0A0A0F;
  --dark-2: #0F0F1A;
  --dark-3: #151525;
  --gray: #8888AA;
  --light: #EEEEFF;
  --gradient-1: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  --gradient-2: linear-gradient(135deg, #00FFFF, #0088FF);
  --card-border: rgba(255, 215, 0, 0.2);
  --success: #00FF88;
  --error: #FF4444;
  --warning: #FFAA00;
}

body {
  background: var(--dark);
  color: var(--light);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Анимированный фон */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Кастомный скроллбар */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Индикатор загрузки */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  z-index: 10001;
  transform: translateX(-100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader.loading {
  opacity: 1;
  animation: loading 0.8s ease-out forwards;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Навбар */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.navbar-scrolled {
  padding: 0.7rem 2rem;
  background: rgba(5, 5, 10, 0.95);
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.logo:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.45)) drop-shadow(0 0 10px rgba(255, 165, 0, 0.2));
}

.nav-links {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-link {
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: none;
  color: var(--gray);
  font-family: 'Orbitron', monospace;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 8px;
  font-size: 0.85rem;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s;
}

.nav-link:hover::before {
  width: 50%;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(255, 215, 0, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-btn {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
}

.auth-btn i {
  font-size: 1rem;
}

.auth-btn:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.steam-btn {
  background: linear-gradient(135deg, rgba(102, 192, 244, 0.15), rgba(27, 40, 56, 0.3));
  border-color: rgba(102, 192, 244, 0.4);
  color: #66c0f4;
}

.steam-btn:hover {
  background: rgba(102, 192, 244, 0.25);
  border-color: #66c0f4;
  box-shadow: 0 5px 15px rgba(102, 192, 244, 0.25);
  transform: translateY(-2px);
}

.steam-logged-in {
  background: rgba(102, 192, 244, 0.08);
  border-color: rgba(102, 192, 244, 0.3);
  color: #c6d4df;
  gap: 0.5rem;
}

.steam-logged-in img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.steam-logged-in:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

/* ── ПРОФИЛЬ ─────────────────────────────────────── */
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.profile-avatar-wrap {
  flex-shrink: 0;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--gray);
  font-size: 0.85rem;
}

.profile-meta i {
  margin-right: 0.4rem;
  color: var(--primary);
}

.btn-logout {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff8080;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-logout:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: rgba(255, 68, 68, 0.5);
  transform: translateY(-2px);
}

.online-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.5);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border-left: 2px solid var(--primary);
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.5s infinite;
  transition: background 0.4s, box-shadow 0.4s;
}

.live-dot.dot-offline {
  background: #e53e3e;
  box-shadow: 0 0 10px #e53e3e;
  animation: none;
}

#serverBadge.badge-offline {
  border-left-color: #e53e3e;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10001;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(15, 15, 26, 0.95);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gray);
  font-size: 0.85rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(21, 21, 37, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--light);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.modal-btn {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  background: var(--gradient-1);
  border: none;
  border-radius: 50px;
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.modal-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray);
  font-size: 0.85rem;
}

.modal-switch span {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

.modal-switch span:hover {
  color: var(--primary-dark);
}

.password-hint {
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 0.3rem;
}

/* Плавное переключение между формами */
#loginFormContainer, #registerFormContainer {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#loginFormContainer.fade-out, #registerFormContainer.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

#loginFormContainer.fade-in, #registerFormContainer.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Страницы */
.page {
  display: none;
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  padding-top: 80px;
}

.page.active {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  padding: 4rem 0;
}

.advantages-section {
  padding: 4rem 0;
  margin-top: 20vh;
}

.section-title {
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  font-family: 'Orbitron', monospace;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .gold {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255,215,0,0.3);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  background: var(--gradient-1);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', monospace;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', monospace;
}

.btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255,215,0,0.2);
}

a.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.card-popular {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.25), inset 0 0 60px rgba(255, 215, 0, 0.04);
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.08) 0%, rgba(21, 21, 37, 0.6) 60%);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(21,21,37,0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  transition: all 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 2px;
}

.grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: rgba(21, 21, 37, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.8rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(255,215,0,0.15);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card-desc {
  color: var(--gray);
  font-size: 0.9rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.job-item {
  background: rgba(21,21,37,0.4);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.job-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.job-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.job-name {
  font-weight: 600;
  color: var(--primary);
}

.job-salary {
  font-size: 0.8rem;
  color: var(--gray);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: linear-gradient(135deg, rgba(21,21,37,0.8), rgba(10,10,15,0.8));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.event-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.event-card:hover::after {
  opacity: 1;
}

.event-date {
  color: var(--primary);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.shop-item {
  background: rgba(21,21,37,0.6);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.shop-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(21,21,37,0.8);
}

.shop-price {
  color: var(--primary);
  font-weight: bold;
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}

.command-item {
  background: rgba(21,21,37,0.4);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.9rem;
  transition: all 0.3s;
  border-left: 2px solid transparent;
}

.command-item:hover {
  border-left-color: var(--primary);
  background: rgba(21,21,37,0.6);
  transform: translateX(5px);
}

.command-name {
  color: var(--primary);
  font-weight: 600;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(21, 21, 37, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  padding: 0 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--gray);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem;
}

.rules-category {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rule-cat-btn {
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.rule-cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rule-cat-btn.active {
  background: var(--gradient-1);
  color: var(--dark);
  border-color: var(--primary);
  font-weight: bold;
}

.rules-content {
  display: none;
  animation: fadeInUp 0.3s;
}

.rules-content.active {
  display: block;
}

.rule-item {
  background: rgba(21, 21, 37, 0.6);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.rule-item:hover {
  background: rgba(21,21,37,0.8);
  transform: translateX(5px);
}

footer {
  background: rgba(5, 5, 10, 0.9);
  border-top: 1px solid var(--card-border);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-ip {
  color: var(--primary);
  cursor: pointer;
  font-family: monospace;
  font-size: 1.2rem;
  margin: 0.5rem 0;
  transition: all 0.3s;
  display: inline-block;
}

.footer-ip:hover {
  text-shadow: 0 0 10px var(--primary);
  transform: scale(1.02);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.social-link {
  color: var(--gray);
  font-size: 1.8rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-discord:hover {
  color: #5865F2 !important;
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

.social-telegram:hover {
  color: #0088cc !important;
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(0, 136, 204, 0.5);
}

/* Уведомления */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.custom-notification {
  min-width: 280px;
  max-width: 400px;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  opacity: 0;
  margin-top: -70px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.custom-notification.show {
  opacity: 1;
  margin-top: 0;
}

.custom-notification.slide-right {
  animation: slideRight 0.3s ease-in forwards !important;
}

@keyframes slideRight {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(400px); opacity: 0; }
}

.custom-notification.notification-success { border-left-color: #00FF88; }
.custom-notification.notification-success .notification-icon i { color: #00FF88; }
.custom-notification.notification-error { border-left-color: #FF4444; }
.custom-notification.notification-error .notification-icon i { color: #FF4444; }
.custom-notification.notification-warning { border-left-color: #FFAA00; }
.custom-notification.notification-warning .notification-icon i { color: #FFAA00; }
.custom-notification.notification-info { border-left-color: var(--accent); }
.custom-notification.notification-info .notification-icon i { color: var(--accent); }

.notification-icon i { font-size: 1.5rem; }
.notification-content { flex: 1; }
.notification-message { font-size: 0.9rem; line-height: 1.4; color: var(--light); }
.notification-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 5px;
  transition: all 0.2s;
}
.notification-close:hover { color: var(--primary); transform: scale(1.1); }

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

/* Анимация появления при скролле */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links { gap: 0.2rem; }
  .nav-link { padding: 0.5rem 0.8rem; font-size: 0.7rem; }
  .container { padding: 0 1rem; }
  .advantages-section { margin-top: 10vh; }
  .auth-btn span { display: none; }
  .auth-btn { padding: 0.4rem 0.8rem; }
  .auth-btn i { font-size: 1.2rem; margin: 0; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-links.show { display: flex; }
  .mobile-menu-btn { display: block; }
  .stats { gap: 1rem; }
  .stat-item { padding: 0.5rem 1rem; }
  .stat-value { font-size: 1.5rem; }
  .section-title { font-size: 1.8rem; }
  .notification-container { top: 10px; right: 10px; left: 10px; }
  .custom-notification { max-width: none; width: auto; }
  .hero { min-height: 70vh; }
  .advantages-section { margin-top: 5vh; }
  .hero-title { font-size: 2.4rem; }
  .btn-group { gap: 0.8rem; }
  .events-grid { grid-template-columns: 1fr; }
  .commands-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.85rem; }
  .hero-sub { font-size: 0.92rem; }
  .hero-badge { font-size: 0.62rem; padding: 0.35rem 0.9rem; letter-spacing: 1px; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; width: 100%; padding: 0.85rem 1rem; }
  .stats { flex-direction: column; align-items: center; gap: 0.7rem; }
  .stat-item { width: 70%; }
  .section-title { font-size: 1.35rem; }
  .section-sub { font-size: 0.9rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .shop-items { grid-template-columns: 1fr 1fr; }
  .faq-question { font-size: 0.9rem; padding: 1rem; }
  .rules-category { flex-wrap: wrap; gap: 0.4rem; }
  .rule-cat-btn { font-size: 0.72rem; padding: 0.4rem 0.8rem; }
  .rule-item { font-size: 0.88rem; }
  footer { padding: 1.5rem 1rem; font-size: 0.85rem; }
  .social-link { font-size: 1.5rem; }
  .modal-content { padding: 1.2rem; border-radius: 16px; }
  .modal-title { font-size: 1.35rem; }
  .form-group input { font-size: 0.95rem; }
  .logo img { height: 32px; }
  .card { padding: 1.3rem; }
  .card-title { font-size: 1.05rem; }
}