/* ===== Глобальные стили ===== */
:root {
  --neon-purple: #bc13fe;
  --neon-blue: #0ff0fc;
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --text: #e0e0e0;
  --text-glow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
}

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

body {
  font-family: 'Courier New', monospace;
  background-color: var(--dark-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
}

/* ===== Неоновые текстовые эффекты ===== */
h1, h2, h3, h4, .btn, .btn-premium, nav a {
  text-shadow: var(--text-glow);
}

/* ===== Шапка ===== */
.header {
  background-color: var(--darker-bg);
  padding: 1rem 0;
  border-bottom: 1px solid var(--neon-purple);
  box-shadow: 0 0 15px var(--neon-purple);
}

.header h1 {
  color: var(--neon-purple);
  font-size: 2.5rem;
  letter-spacing: 3px;
}

nav a {
  color: var(--neon-blue);
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

nav a:hover {
  color: var(--neon-purple);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--neon-purple);
  transition: width 0.3s ease;
  display: block;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--neon-purple);
  text-shadow: 0 0 15px var(--neon-purple);
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--neon-purple);
  border: 2px solid var(--neon-purple);
  border-radius: 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--neon-purple);
  margin: 0.5rem;
}

.btn:hover {
  background: var(--neon-purple);
  color: black;
  box-shadow: 0 0 20px var(--neon-purple);
}

.btn-premium {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
}

.btn-premium:hover {
  background: var(--neon-blue);
  color: black;
  box-shadow: 0 0 20px var(--neon-blue);
}

/* ===== Формы ===== */
.auth-form, .payment {
  background: rgba(10, 10, 10, 0.8);
  padding: 2rem;
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 15px var(--neon-purple);
  max-width: 500px;
  margin: 2rem auto;
}

.auth-form h2, .payment h2 {
  color: var(--neon-blue);
  margin-bottom: 1.5rem;
  text-align: center;
}

input {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--neon-purple);
  color: white;
  font-family: 'Courier New', monospace;
}

input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
}

/* ===== Таблицы и карточки ===== */
.matches-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.matches-table th, .matches-table td {
  padding: 1rem;
  border: 1px solid var(--neon-purple);
  text-align: left;
}

.matches-table th {
  background: rgba(188, 19, 254, 0.1);
  color: var(--neon-blue);
}

.match {
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--neon-purple);
  padding: 1rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.match:hover {
  box-shadow: 0 0 15px var(--neon-purple);
  transform: translateY(-3px);
}

.prediction {
  color: var(--neon-blue);
  font-weight: bold;
}

/* ===== Графика ===== */
.charts {
  width: 100%;
  height: 400px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--neon-purple);
  padding: 1rem;
}

/* ===== Планы подписки ===== */
.plans {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.plan {
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--neon-purple);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  width: 200px;
}

.plan:hover {
  box-shadow: 0 0 20px var(--neon-purple);
  transform: scale(1.05);
}

.plan h3 {
  color: var(--neon-blue);
  margin-bottom: 1rem;
}

.price {
  color: var(--neon-purple);
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem 0;
}

/* ===== Футер ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--neon-purple);
  box-shadow: 0 0 15px var(--neon-purple);
}

footer a {
  color: var(--neon-blue);
  text-decoration: none;
}

footer a:hover {
  text-shadow: var(--text-glow);
}

/* ===== Анимации ===== */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

.header h1 {
  animation: flicker 3s infinite alternate;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
  .plans {
    flex-direction: column;
    align-items: center;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== Страница подтверждения ===== */
.confirm-form {
    text-align: center;
}

.neon-text {
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px var(--neon-blue);
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neon-purple);
    color: white;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    transform: scale(1.05);
}

.resend-link {
    margin-top: 1.5rem;
    color: var(--text);
}

.resend-link a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.resend-link a:hover {
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Анимация для кнопки "Отправить снова" */
#resend-code {
    position: relative;
    padding-bottom: 2px;
}

#resend-code::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background: var(--neon-blue);
    transition: width 0.3s ease;
}

#resend-code:hover::after {
    width: 100%;
}

/* ===== Профиль ===== */
.profile-section {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: var(--darker-bg);
    border: 2px solid var(--neon-purple);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--neon-blue);
}

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-purple);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar:hover .avatar-glow {
    opacity: 1;
}

.info-card {
    background: rgba(20, 20, 20, 0.6);
    border-left: 3px solid var(--neon-purple);
    padding: 1rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-left-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.3);
}

.neon-icon {
    text-shadow: 0 0 5px var(--neon-blue);
    margin-right: 0.5rem;
}

.premium-status {
    color: var(--neon-blue);
    font-weight: bold;
    text-shadow: 0 0 8px var(--neon-blue);
}

.btn-upgrade {
    background: var(--neon-purple);
    color: black;
    margin-right: 1rem;
}

.btn-danger {
    background: transparent;
    color: #ff4d4d;
    border-color: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d;
}

.btn-danger:hover {
    background: #ff4d4d;
    color: black;
}

/* ===== Страница оплаты ===== */
.payment-section {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
}

.subtitle {
    color: var(--neon-blue);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 8px var(--neon-blue);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.plan-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--neon-purple);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--neon-purple);
}

.plan-header {
    border-bottom: 1px solid var(--neon-purple);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.plan-header h3 {
    color: var(--neon-blue);
}

.price {
    font-size: 2rem;
    color: var(--neon-purple);
    font-weight: bold;
    margin: 0.5rem 0;
}

.save {
    font-size: 1rem;
    color: var(--neon-blue);
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li::before {
    content: "✓";
    color: var(--neon-purple);
    position: absolute;
    left: 0;
}

.btn-plan {
    width: 100%;
    margin-top: 1rem;
}

.popular {
    border: 1px solid var(--neon-blue);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--neon-blue);
    color: black;
    padding: 0.3rem 1rem;
    font-weight: bold;
}

.payment-methods {
    margin-top: 3rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.method-card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid var(--neon-purple);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-card:hover {
    background: var(--neon-purple);
    color: black;
}

.method-card span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== Страница прогнозов ===== */
.predict-section {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.predict-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--neon-purple);
    padding-bottom: 1rem;
}

.neon-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-purple);
    color: white;
    padding: 0.5rem 1rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.neon-select:focus {
    outline: none;
    box-shadow: 0 0 15px var(--neon-purple);
}

.btn-icon {
    display: inline-block;
    animation: pulse 2s infinite;
}

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

/* Сетка матчей */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.match-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--neon-purple);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(188, 19, 254, 0.1) 0%, 
        rgba(0, 0, 0, 0) 50%,
        rgba(11, 240, 252, 0.1) 100%);
    z-index: -1;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--neon-purple);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(188, 19, 254, 0.3);
}

.match-tournament {
    color: var(--neon-blue);
    font-size: 0.9rem;
}

.match-date {
    color: #aaa;
    font-size: 0.8rem;
}

.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.team {
    text-align: center;
    width: 40%;
}

.team-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background: var(--darker-bg);
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.team-name {
    margin-top: 0.5rem;
    font-weight: bold;
}

.vs {
    width: 20%;
    text-align: center;
    font-size: 1.2rem;
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.match-prediction {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--neon-purple);
}

.prediction-bar {
    height: 10px;
    background: linear-gradient(90deg, 
        var(--neon-purple) 0%, 
        var(--neon-blue) 100%);
    margin: 0.5rem 0;
    position: relative;
}

.prediction-value {
    position: absolute;
    top: -25px;
    right: 0;
    color: var(--neon-blue);
    font-weight: bold;
}

/* Типы прогнозов */
.match-card.win {
    border-color: var(--neon-blue);
}
.match-card.risky {
    border-color: #FFC107;
}
.match-card.loss {
    border-color: #ff4d4d;
}

/* Легенда */
.legend {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.legend-icon.win {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}
.legend-icon.risky {
    color: #FFC107;
    text-shadow: 0 0 5px #FFC107;
}
.legend-icon.loss {
    color: #ff4d4d;
    text-shadow: 0 0 5px #ff4d4d;
}

/* Кнопка "Загрузить ещё" */
.btn-load-more {
    display: block;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    border: 2px dashed var(--neon-purple);
    background: transparent;
    animation: borderPulse 3s infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: var(--neon-purple); }
    50% { border-color: var(--neon-blue); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .predict-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Анимация появления карточек */
.match-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Усиленные цвета для типов */
.match-card.win {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(11, 240, 252, 0.3);
}

.match-card.risky {
    border-color: #FFC107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.match-card.loss {
    border-color: #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

/* Задержки для анимации */
.match-card:nth-child(1) { animation-delay: 0.1s; }
.match-card:nth-child(2) { animation-delay: 0.2s; }
.match-card:nth-child(3) { animation-delay: 0.3s; }


/* ===== Глобальные стили ===== */
:root {
  --primary: #bc13fe;
  --primary-light: rgba(188, 19, 254, 0.2);
  --secondary: #0ff0fc;
  --secondary-light: rgba(11, 240, 252, 0.2);
  --dark-bg: #0f0f12;
  --darker-bg: #07070a;
  --card-bg: #1a1a1f;
  --text: #e0e0e0;
  --text-light: #a0a0a0;
  --success: #00ff9d;
  --warning: #ffc107;
  --danger: #ff4d4d;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Шапка ===== */
.header {
  background-color: var(--darker-bg);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(188, 19, 254, 0.1);
  backdrop-filter: blur(10px);
  height: 80px; /* Фиксированная высота header */
  box-sizing: border-box;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.logo h1 span {
  color: var(--primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a svg {
  width: 18px;
  height: 18px;
}

nav a:hover {
  color: var(--text);
}

nav a.active {
  color: var(--primary);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  width: 100%;
}

.btn-login {
  background: var(--primary);
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-login:hover {
  background: var(--secondary);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(11, 240, 252, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ===== Герой секция ===== */
.hero {
  padding: 180px 0 100px;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h2 span {
  color: var(--primary);
  position: relative;
}

.hero h2 span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(188, 19, 254, 0.3);
  z-index: -1;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 500;
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(11, 240, 252, 0.3);
}

.btn-premium {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-premium:hover {
  background: var(--secondary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(11, 240, 252, 0.3);
}

.glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, rgba(11, 240, 252, 0.05) 70%, transparent 100%);
  filter: blur(40px);
  z-index: -1;
  animation: pulse 6s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.stats-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 400px;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Футер ===== */
.footer {
  background: var(--darker-bg);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-logo .logo-icon {
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Адаптивность ===== */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 150px 0 80px;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 3rem;
  }
  
  .subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .stats-card {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content, .hero-image {
  animation: fadeIn 0.8s ease-out forwards;
}

.hero-image {
  animation-delay: 0.2s;
}

main.container {
  padding-top: 0; /* Убираем дублирующий отступ */
  min-height: calc(100vh - 150px); /* Чтобы footer оставался внизу */
}

.hero {
  padding: 40px 0 100px; /* Уменьшаем верхний отступ */
  min-height: calc(100vh - 80px); /* Учитываем высоту header */
}

/* Общий стиль для контента на всех страницах, кроме главной */
.main-content {
  padding-top: 40px; /* Отступ от navbar */
  padding-bottom: 60px; /* Отступ для footer */
}

/* Если у вас есть секции с классом section, добавьте: */
.section {
  padding: 2rem 0;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--secondary);
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.auth-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

        /* Стили для кликабельного логотипа */
.logo-link {
    display: inline-flex; /* Используем inline-flex вместо flex */
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    height: 100%; /* Добавляем высоту */
}

/* Для заголовка внутри ссылки */
.logo-link h1 {
    margin: 0;
    display: inline-flex; /* Важно для правильного выравнивания */
    align-items: center;
}

/* Для футера */
.footer-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

/* Ховер-эффект */
.logo-link:hover,
.footer-logo a:hover {
    opacity: 0.8;
}

/* Дополнительные стили для карточек команд */
.team-region {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

/* Стили для атрибутов героев */
.hero-attribute {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* Анимация для прогресс-бара */
.prediction-bar {
    transition: width 1s ease-in-out;
}

/* Подсказки */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
}

/* Стили для кнопки закрытия модальных окон */
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--secondary);
    background: rgba(188, 19, 254, 0.1);
    transform: rotate(90deg);
}

/* Дополнительные стили для заголовка модального окна */
.modal-header {
    position: relative;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-header h3 {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(188, 19, 254, 0.5);
    font-size: 1.5rem;
    margin: 0;
}

/* ===== Анимированный фон ===== */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c1d 0%, #1a1a2e 50%, #0f0c1d 100%);
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(188, 19, 254, 0.3);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.5), 
                0 0 20px rgba(188, 19, 254, 0.3);
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(2n) {
    background: rgba(11, 240, 252, 0.3);
    box-shadow: 0 0 10px rgba(11, 240, 252, 0.5), 
                0 0 20px rgba(11, 240, 252, 0.3);
    animation-delay: 1s;
    animation-duration: 20s;
}

.particle:nth-child(3n) {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 
                0 0 20px rgba(255, 255, 255, 0.2);
    animation-delay: 2s;
    animation-duration: 25s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 50px) rotate(10deg);
    }
    50% {
        transform: translate(-30px, 80px) rotate(-10deg);
    }
    75% {
        transform: translate(10px, 30px) rotate(5deg);
    }
}

/* Обновляем стили основного контента */
.container {
    position: relative;
    z-index: 1;
}

/* Добавляем эффект параллакса для секций */
.hero-section {
    transform-style: preserve-3d;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

        /* ===== Специфичные стили для страницы входа ===== */
.login-section {
    position: relative;
    max-width: 500px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 30px var(--neon-purple);
    z-index: 1;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(188, 19, 254, 0.1) 50%,
        transparent 100%
    );
    z-index: -1;
}

/* Удаляем ключевые кадры анимации */
@keyframes terminalGlow {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

        .login-header {
            text-align: center;
            margin-bottom: 2rem;
            position: relative;
        }

        .login-header h2 {
            color: var(--neon-blue);
            font-size: 2rem;
            text-shadow: 0 0 15px var(--neon-blue);
            letter-spacing: 2px;
            margin-bottom: 0.5rem;
        }

        .login-header::after {
            content: '';
            display: block;
            width: 100px;
            height: 3px;
            background: var(--neon-purple);
            margin: 1rem auto;
            box-shadow: 0 0 10px var(--neon-purple);
        }

        .login-form {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .input-group {
            position: relative;
        }

        .input-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--neon-blue);
            text-shadow: 0 0 5px var(--neon-blue);
        }

        .input-group input {
            width: 100%;
            padding: 1rem;
            background: rgba(0, 0, 0, 0.7);
            border: 1px solid var(--neon-purple);
            color: white;
            font-family: 'Courier New', monospace;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .input-group input:focus {
            outline: none;
            border-color: var(--neon-blue);
            box-shadow: 0 0 15px var(--neon-blue);
        }

        .input-group::after {
            content: '';
            position: absolute;
            right: 15px;
            top: 55%;
            color: var(--neon-purple);
            font-weight: bold;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .input-group:focus-within::after {
            opacity: 1;
            transform: translateX(5px);
        }

        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 1rem 0;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .remember-me input[type="checkbox"] {
            appearance: none;
            width: 18px;
            height: 18px;
            border: 1px solid var(--neon-purple);
            position: relative;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .remember-me input[type="checkbox"]:checked {
            background: var(--neon-purple);
            box-shadow: 0 0 10px var(--neon-purple);
        }

        .remember-me input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            color: black;
            font-weight: bold;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .forgot-password {
            color: var(--neon-blue);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .forgot-password:hover {
            text-shadow: 0 0 10px var(--neon-blue);
        }

        .login-btn {
            background: transparent;
            color: var(--neon-purple);
            border: 2px solid var(--neon-purple);
            padding: 1rem;
            font-size: 1.1rem;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            margin-top: 1rem;
        }

        .login-btn:hover {
            background: var(--neon-purple);
            color: black;
            box-shadow: 0 0 20px var(--neon-purple);
        }

        .login-btn::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: all 0.5s ease;
        }

        .login-btn:hover::before {
            left: 100%;
        }

        .register-link {
            text-align: center;
            margin-top: 2rem;
            color: #aaa;
        }

        .register-link a {
            color: var(--neon-blue);
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .register-link a:hover {
            text-shadow: 0 0 10px var(--neon-blue);
        }

        /* Эффект терминала */
        .terminal-line {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--neon-purple);
            box-shadow: 0 0 10px var(--neon-purple);
            animation: terminalGlow 2s infinite alternate;
        }

        @keyframes terminalGlow {
            0% { opacity: 0.3; }
            100% { opacity: 1; }
        }

        /* Адаптивность */
        @media (max-width: 600px) {
            .login-section {
                margin: 2rem 1rem;
                padding: 1.5rem;
            }
            
            .login-header h2 {
                font-size: 1.5rem;
            }
            
            .remember-forgot {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }
        }
