/* ============================================
   ФУТУРИСТИЧНАЯ НЕОНОВАЯ ПАЛИТРА №10
   + СТИЛЬ КАРТОЧЕК №8: НЕОН-ГЛИТЧ
   ============================================ */

/* Цветовая палитра */
:root {
    --bg-primary: #0A0E27;
    --bg-secondary: #1A1F3A;
    --bg-card: #151932;
    --text-primary: #E0E0E0;
    --text-secondary: #B8B8B8;
    --accent-primary: #7B2CBF;
    --accent-secondary: #9D4EDD;
    --accent-tertiary: #C77DFF;
    --neon-glow: #9D4EDD;
    --neon-glow-strong: #C77DFF;
    --shadow-neon: rgba(157, 76, 221, 0.3);
    --shadow-neon-strong: rgba(199, 125, 255, 0.5);
}

/* Базовые стили */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(123, 44, 191, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 76, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(199, 125, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--shadow-neon);
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--neon-glow), 0 0 30px var(--shadow-neon);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--neon-glow), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-glow);
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--neon-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 20px var(--neon-glow-strong); }
}

.bg-light-blue {
    background-color: var(--bg-secondary);
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(157, 76, 221, 0.15) 0%, transparent 50%);
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 2px solid var(--neon-glow);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 0 15px var(--shadow-neon), inset 0 0 10px rgba(157, 76, 221, 0.2);
    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 {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    border-color: var(--neon-glow-strong);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px var(--shadow-neon-strong), 0 0 30px var(--neon-glow);
    text-shadow: 0 0 10px var(--neon-glow);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px var(--shadow-neon);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--accent-primary);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 0 10px var(--shadow-neon);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-color: var(--neon-glow);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-neon), 0 0 20px var(--neon-glow);
    text-shadow: 0 0 8px var(--neon-glow);
}

.custom-btn-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    border: 2px solid var(--neon-glow);
    color: var(--text-primary);
    padding: 12px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px var(--shadow-neon), 0 0 40px var(--shadow-neon);
    position: relative;
    overflow: hidden;
}

.custom-btn-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.custom-btn-gradient:hover::before {
    width: 300px;
    height: 300px;
}

.custom-btn-gradient:hover {
    box-shadow: 0 0 30px var(--shadow-neon-strong), 0 0 60px var(--neon-glow);
    text-shadow: 0 0 10px var(--neon-glow);
}

/* ============================================
   HEADER - НЕОНОВЫЕ ЭФФЕКТЫ
   ============================================ */
header {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95), rgba(26, 31, 58, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 30px var(--shadow-neon);
    padding: 15px 0;
    z-index: 1030;
    border-bottom: 2px solid var(--accent-primary);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-glow), transparent);
    box-shadow: 0 0 10px var(--neon-glow);
    animation: header-glow 3s ease-in-out infinite;
}

@keyframes header-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Контейнер для header */
header .container-fluid,
header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header .container-fluid::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(157, 76, 221, 0.3), 
        rgba(199, 125, 255, 0.5), 
        rgba(157, 76, 221, 0.3), 
        transparent
    );
    opacity: 0.5;
    animation: container-glow 2s ease-in-out infinite;
}

@keyframes container-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.navbar-brand {
    position: relative;
    z-index: 1;
}

.navbar-brand .logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--neon-glow));
    transition: filter 0.3s ease;
}

.navbar-brand:hover .logo-img {
    filter: drop-shadow(0 0 15px var(--neon-glow-strong));
}

.navbar-brand .site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--neon-glow), 0 0 20px var(--shadow-neon);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover .site-name {
    text-shadow: 0 0 15px var(--neon-glow-strong), 0 0 30px var(--neon-glow);
    color: var(--accent-tertiary);
}

.navbar-toggler {
    border: 2px solid var(--accent-primary);
    border-radius: 5px;
    padding: 5px 10px;
    background: transparent;
    box-shadow: 0 0 10px var(--shadow-neon);
}

.navbar-toggler:focus {
    box-shadow: 0 0 15px var(--neon-glow), 0 0 25px var(--shadow-neon);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(157, 76, 221, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    filter: drop-shadow(0 0 5px var(--neon-glow));
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--shadow-neon);
    padding: 8px 15px !important;
    border-radius: 5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    background: linear-gradient(135deg, transparent, rgba(157, 76, 221, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.nav-link:hover {
    color: var(--accent-tertiary) !important;
    text-shadow: 0 0 10px var(--neon-glow), 0 0 20px var(--shadow-neon);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    box-shadow: 0 0 10px var(--neon-glow);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 30px);
}

.nav-link.active {
    color: var(--accent-tertiary) !important;
    text-shadow: 0 0 10px var(--neon-glow);
}

.nav-link.active::after {
    width: calc(100% - 30px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background-image: url("../images/hero-sections.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    color: var(--text-primary);
    padding-top: 120px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(10, 14, 39, 0.85), rgba(26, 31, 58, 0.85)),
        radial-gradient(circle at 50% 50%, rgba(123, 44, 191, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.6), rgba(26, 31, 58, 0.8));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--neon-glow), 0 0 40px var(--shadow-neon), 2px 2px 5px rgba(0,0,0,0.5);
    animation: text-glow 3s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 20px var(--neon-glow), 0 0 40px var(--shadow-neon), 2px 2px 5px rgba(0,0,0,0.5); }
    50% { text-shadow: 0 0 30px var(--neon-glow-strong), 0 0 60px var(--neon-glow), 2px 2px 5px rgba(0,0,0,0.5); }
}

.hero-section p {
    font-size: 1.25rem;
    text-shadow: 0 0 10px var(--shadow-neon), 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-section .game-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--shadow-neon), inset 0 0 20px rgba(123, 44, 191, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.hero-section .game-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-secondary), var(--accent-primary));
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: border-glow 3s linear infinite;
    background-size: 200% 200%;
}

@keyframes border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section .game-card:hover::before {
    opacity: 1;
}

.hero-section .game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 40px var(--shadow-neon-strong), 0 0 60px var(--neon-glow), inset 0 0 30px rgba(157, 76, 221, 0.2);
    border-color: var(--neon-glow-strong);
}

.hero-section .game-card img {
    height: 120px;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.3s ease;
}

.hero-section .game-card:hover img {
    filter: brightness(1) contrast(1.2);
}

.hero-section .game-card .card-body {
    padding: 15px;
    background: transparent;
}

.hero-section .game-card .card-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    text-shadow: 0 0 10px var(--shadow-neon);
}

.hero-section .game-card .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   GAMES SECTION - ГЛИТЧ ЭФФЕКТЫ
   ============================================ */
.game-item {
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--shadow-neon), inset 0 0 20px rgba(123, 44, 191, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    position: relative;
    isolation: isolate;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(157, 76, 221, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(199, 125, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    animation: glitch-scan 4s linear infinite;
}

@keyframes glitch-scan {
    0%, 100% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.game-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-secondary), var(--accent-primary));
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
    animation: glitch-border 3s linear infinite;
}

@keyframes glitch-border {
    0%, 100% { 
        opacity: 0;
        transform: translate(0, 0);
    }
    10% { 
        opacity: 0.3;
        transform: translate(-2px, 2px);
    }
    20% { 
        opacity: 0;
        transform: translate(2px, -2px);
    }
    30% { 
        opacity: 0.3;
        transform: translate(-2px, -2px);
    }
    40% { 
        opacity: 0;
        transform: translate(2px, 2px);
    }
    50% { 
        opacity: 0.5;
        transform: translate(0, 0);
    }
}

.game-item:hover::before {
    opacity: 1;
}

.game-item:hover::after {
    opacity: 0.6;
}

.game-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 10px 40px var(--shadow-neon-strong),
        0 0 60px var(--neon-glow),
        inset 0 0 30px rgba(157, 76, 221, 0.2),
        0 0 0 2px var(--neon-glow-strong);
    border-color: var(--neon-glow-strong);
    animation: glitch-shake 0.3s ease;
}

@keyframes glitch-shake {
    0%, 100% { transform: translateY(-8px) scale(1.02) translateX(0); }
    25% { transform: translateY(-8px) scale(1.02) translateX(-2px); }
    75% { transform: translateY(-8px) scale(1.02) translateX(2px); }
}

.game-item img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    filter: brightness(0.85) contrast(1.1);
    transition: filter 0.4s ease;
    position: relative;
    z-index: 1;
}

.game-item:hover img {
    filter: brightness(1) contrast(1.2);
    animation: glitch-image 0.5s ease;
}

@keyframes glitch-image {
    0%, 100% { 
        filter: brightness(1) contrast(1.2);
        transform: translateX(0);
    }
    20% { 
        filter: brightness(1.1) contrast(1.3) hue-rotate(5deg);
        transform: translateX(-1px);
    }
    40% { 
        filter: brightness(0.9) contrast(1.1) hue-rotate(-5deg);
        transform: translateX(1px);
    }
    60% { 
        filter: brightness(1.05) contrast(1.25);
        transform: translateX(0);
    }
}

.game-item .card-body {
    padding: 20px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.game-item .card-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--shadow-neon);
    transition: all 0.3s ease;
}

.game-item:hover .card-title {
    color: var(--accent-tertiary);
    text-shadow: 0 0 15px var(--neon-glow), 0 0 30px var(--shadow-neon);
    animation: glitch-text 0.3s ease;
}

@keyframes glitch-text {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.game-item .card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.play-game-btn {
    text-decoration: none;
}

.game-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ============================================
   TOURNAMENTS SECTION
   ============================================ */
.tournament-leader-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    box-shadow: 0 0 20px var(--shadow-neon), inset 0 0 20px rgba(123, 44, 191, 0.1);
    transition: all 0.4s ease;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.tournament-leader-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(157, 76, 221, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.tournament-leader-card:hover::before {
    opacity: 1;
    animation: shine 1.5s ease;
}

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

.tournament-leader-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 40px var(--shadow-neon-strong), 0 0 60px var(--neon-glow), inset 0 0 30px rgba(157, 76, 221, 0.2);
    border-color: var(--neon-glow-strong);
}

.tournament-leader-card .avatar-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 3px solid var(--neon-glow);
    box-shadow: 0 0 15px var(--shadow-neon);
    transition: all 0.3s ease;
}

.tournament-leader-card:hover .avatar-img {
    border-color: var(--neon-glow-strong);
    box-shadow: 0 0 25px var(--neon-glow);
    transform: scale(1.05);
}

.tournament-leader-card .trophy-icon {
    font-size: 2.5rem;
    color: #FFD700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    animation: trophy-glow 2s ease-in-out infinite;
}

@keyframes trophy-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1)); }
}

.tournament-leader-card .card-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    text-shadow: 0 0 10px var(--shadow-neon);
}

.tournament-leader-card .card-text {
    color: var(--text-secondary);
}

.badge {
    font-size: 0.9rem;
    padding: 0.5em 0.8em;
    border-radius: 20px;
    box-shadow: 0 0 10px var(--shadow-neon);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
    border: 1px solid var(--neon-glow);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card)) !important;
    border: 1px solid var(--accent-primary);
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary)) !important;
    border: 1px solid var(--neon-glow);
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */
.achievement-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    box-shadow: 0 0 20px var(--shadow-neon), inset 0 0 20px rgba(123, 44, 191, 0.1);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/abstract-achievement-pattern_2.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    filter: hue-rotate(240deg);
}

.achievement-card .card-body {
    position: relative;
    z-index: 1;
}

.achievement-card .achievement-icon {
    font-size: 3.5rem;
    color: #FFD700;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1)); }
}

.achievement-card .card-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    text-shadow: 0 0 15px var(--shadow-neon);
}

.achievement-card .card-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.progress {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--accent-primary);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(157, 76, 221, 0.2), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    border-radius: 10px;
    transition: width 1s ease-in-out;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--neon-glow);
    box-shadow: 0 0 15px var(--shadow-neon), inset 0 0 10px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

/* ============================================
   CLANS SECTION
   ============================================ */
.clan-icon {
    font-size: 4rem;
    color: var(--neon-glow);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px var(--shadow-neon));
    cursor: pointer;
}

.clan-icon:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--neon-glow));
    color: var(--neon-glow-strong);
    animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1.3) rotate(-5deg); }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonial-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    box-shadow: 0 0 20px var(--shadow-neon), inset 0 0 20px rgba(123, 44, 191, 0.1);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 0 30px var(--shadow-neon-strong), 0 0 50px var(--neon-glow), inset 0 0 30px rgba(157, 76, 221, 0.2);
    border-color: var(--neon-glow);
    transform: translateY(-5px);
}

.testimonial-card .avatar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--neon-glow);
    box-shadow: 0 0 15px var(--shadow-neon);
    transition: all 0.3s ease;
}

.testimonial-card:hover .avatar-img {
    border-color: var(--neon-glow-strong);
    box-shadow: 0 0 25px var(--neon-glow);
    transform: scale(1.1);
}

.testimonial-card .card-subtitle {
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: 0 0 10px var(--shadow-neon);
}

.testimonial-card .star-rating i {
    color: #FFD700;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

.testimonial-card .card-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--accent-primary);
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 0 15px var(--shadow-neon);
    border: 2px solid var(--neon-glow);
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    background-color: var(--accent-secondary);
    box-shadow: 0 0 25px var(--neon-glow);
    transform: scale(1.1);
}

/* ============================================
   CONTACT FORM
   ============================================ */
#contact .card {
    border-radius: 15px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--shadow-neon), inset 0 0 20px rgba(123, 44, 191, 0.1);
}

#contact .form-label {
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--shadow-neon);
}

#contact .form-control {
    border-radius: 8px;
    border: 2px solid var(--accent-primary);
    padding: 10px 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#contact .form-control:focus {
    border-color: var(--neon-glow);
    box-shadow: 0 0 15px var(--shadow-neon), 0 0 0 0.25rem rgba(157, 76, 221, 0.25);
    background: var(--bg-card);
    outline: none;
}

#contact .form-control::placeholder {
    color: var(--text-secondary);
}

/* ============================================
   ACCORDION (FAQ)
   ============================================ */
.accordion-button {
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--accent-primary);
    border-bottom: 1px solid var(--accent-primary);
    padding: 15px 20px;
    box-shadow: 0 0 10px var(--shadow-neon);
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 20px var(--shadow-neon), inset 0 0 20px rgba(157, 76, 221, 0.2);
    border-color: var(--neon-glow);
    text-shadow: 0 0 10px var(--neon-glow);
}

.accordion-button:focus {
    box-shadow: 0 0 20px var(--shadow-neon), 0 0 0 0.25rem rgba(157, 76, 221, 0.25);
    border-color: var(--neon-glow);
}

.accordion-body {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 20px;
    border: 2px solid var(--accent-primary);
    border-top: none;
}

.accordion-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px var(--shadow-neon);
}

/* ============================================
   DISCLAIMER SECTION
   ============================================ */
.disclaimer-section {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    padding: 60px 0;
    border-top: 3px solid var(--accent-primary);
    border-bottom: 3px solid var(--accent-primary);
    box-shadow: 0 0 30px var(--shadow-neon);
    position: relative;
}

.disclaimer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-glow), transparent);
    box-shadow: 0 0 15px var(--neon-glow);
    animation: disclaimer-glow 3s ease-in-out infinite;
}

@keyframes disclaimer-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.disclaimer-content {
    background: linear-gradient(135deg, rgba(21, 25, 50, 0.8), rgba(26, 31, 58, 0.8));
    border: 2px solid var(--neon-glow);
    border-radius: 15px;
    box-shadow: 0 0 30px var(--shadow-neon), inset 0 0 30px rgba(157, 76, 221, 0.1);
    backdrop-filter: blur(10px);
}

.disclaimer-title {
    color: #FFD700;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.5);
}

.disclaimer-title i {
    color: #FFD700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.disclaimer-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.disclaimer-link {
    color: #FFD700;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.disclaimer-link:hover {
    color: #FFF;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-secondary);
    padding: 40px 0;
    border-top: 2px solid var(--accent-primary);
    box-shadow: 0 -5px 20px var(--shadow-neon);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-glow), transparent);
    box-shadow: 0 0 10px var(--neon-glow);
}

.footer-logo-link {
    text-decoration: none;
}

footer .footer-logo-link .logo-img {
    height: 35px;
    filter: drop-shadow(0 0 10px var(--shadow-neon));
}

footer .footer-logo-link .site-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--shadow-neon);
}

footer h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--shadow-neon);
}

footer .footer-links {
    padding-left: 0;
}

footer .footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    position: relative;
    padding-left: 0;
}

footer .footer-links li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--neon-glow);
    text-shadow: 0 0 10px var(--neon-glow);
}

footer .footer-links li a:hover {
    color: var(--accent-tertiary);
    text-decoration: none;
    padding-left: 20px;
    text-shadow: 0 0 10px var(--shadow-neon);
}

footer .footer-links li a:hover::before {
    opacity: 1;
    left: 0;
}

footer .bi-person-fill {
    color: var(--neon-glow);
    filter: drop-shadow(0 0 10px var(--shadow-neon));
}

.footer-hr {
    border-color: rgba(157, 76, 221, 0.3);
    box-shadow: 0 0 10px var(--shadow-neon);
}

.footer-partners {
    padding-top: 20px;
}

.footer-partner-logo {
    max-width: 120px;
    height: auto;
    margin: 0 10px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.footer-partner-logo:hover {
    transform: scale(1.1);
    filter: brightness(1) drop-shadow(0 0 10px var(--shadow-neon));
}

.no-link-logo {
    cursor: default;
}

/* ============================================
   AGE VERIFICATION MODAL
   ============================================ */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.age-verification-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.age-verification-overlay.is-hiding {
    opacity: 0;
}

.age-verification-modal {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 50px var(--shadow-neon-strong), 0 0 100px var(--neon-glow), inset 0 0 30px rgba(157, 76, 221, 0.2);
    max-width: 500px;
    width: 90%;
    color: var(--text-primary);
    border: 2px solid var(--neon-glow);
    position: relative;
    overflow: hidden;
}

.age-verification-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(157, 76, 221, 0.1), transparent);
    transform: rotate(45deg);
    animation: modal-shine 3s ease-in-out infinite;
}

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

.age-verification-modal h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--shadow-neon);
    position: relative;
    z-index: 1;
}

.age-verification-modal p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.age-verification-modal .form-check-input:checked {
    background-color: var(--accent-secondary);
    border-color: var(--neon-glow);
    box-shadow: 0 0 10px var(--shadow-neon);
}

.age-verification-modal .form-check-label {
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

/* ============================================
   GAME MODAL
   ============================================ */
.game-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.game-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.game-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-game-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    border: 2px solid var(--neon-glow);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--shadow-neon);
}

.close-game-modal:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    border-color: var(--neon-glow-strong);
    box-shadow: 0 0 30px var(--neon-glow);
    transform: scale(1.1) rotate(90deg);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты и меньше */
@media (max-width: 991.98px) {
    header .container-fluid,
    header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-brand .site-name {
        font-size: 1.5rem;
    }

    .navbar-brand .logo-img {
        height: 35px;
    }

    .navbar-collapse {
        background: linear-gradient(135deg, rgba(21, 25, 50, 0.95), rgba(26, 31, 58, 0.95));
        backdrop-filter: blur(10px);
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        border: 2px solid var(--accent-primary);
        box-shadow: 0 0 20px var(--shadow-neon);
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .nav-link {
        padding: 12px 15px !important;
        text-align: center;
        border-radius: 5px;
        margin: 5px 0;
    }

    .nav-link::after {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tournament-leader-card .avatar-img {
        width: 70px;
        height: 70px;
    }

    .tournament-leader-card .trophy-icon {
        font-size: 2rem;
    }

    .achievement-card .achievement-icon {
        font-size: 2.5rem;
    }

    .clan-icon {
        font-size: 3rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .footer-partners {
        flex-direction: column;
        gap: 20px;
    }

    .footer-partner-logo {
        max-width: 100px;
    }

    .age-verification-modal {
        padding: 30px 20px;
    }

    .age-verification-modal h2 {
        font-size: 1.5rem;
    }
}

/* Мобильные устройства */
@media (max-width: 767.98px) {
    header .container-fluid,
    header .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    body {
        font-size: 14px;
    }

    .hero-section .game-card {
        margin-bottom: 15px;
    }

    .hero-section .game-card img {
        height: 100px;
    }

    .hero-section .game-card .card-title {
        font-size: 1rem;
    }

    .hero-section .game-card .card-text {
        font-size: 0.8rem;
    }

    .game-item {
        margin-bottom: 20px;
    }

    .game-item img {
        height: 180px;
    }

    .game-item .card-title {
        font-size: 1.2rem;
    }

    .game-item .card-text {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .tournament-leader-card {
        margin-bottom: 20px;
    }

    .testimonial-card {
        padding: 15px;
    }

    .achievement-card {
        padding: 20px;
    }

    .disclaimer-content {
        padding: 20px !important;
    }

    .disclaimer-title {
        font-size: 1.5rem;
    }

    footer {
        padding: 30px 0;
    }

    footer .footer-logo-link .site-name {
        font-size: 1.2rem;
    }

    .close-game-modal {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 575.98px) {
    header .container-fluid,
    header .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .game-item .card-body {
        padding: 15px;
    }

    .tournament-leader-card {
        padding: 15px;
    }

    .achievement-card {
        padding: 15px;
    }

    .age-verification-modal {
        padding: 20px 15px;
    }

    .age-verification-modal h2 {
        font-size: 1.3rem;
    }

    .age-verification-modal p {
        font-size: 1rem;
    }
}

@media (max-width: 350px) {
    .form-control {
        font-size: 0.8rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* Дополнительные стили для других страниц */
.regShieldWrap {
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 20px;
    color: var(--text-primary);
}

.regShieldWrap h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--shadow-neon);
}

.regShieldWrap h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--shadow-neon);
}

.regShieldWrap h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.regShieldWrap h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.regShieldWrap h5 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.regShieldWrap p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.regShieldWrap ul {
    margin-top: 16px;
    margin-bottom: 16px;
    padding-left: 25px;
    list-style-type: disc;
    color: var(--text-secondary);
}

.regShieldWrap li {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.frameHames {
    margin-top: 80px;
}

.frameHames iframe {
    width: 100%;
    height: 100vh;
    border: 2px solid var(--accent-primary);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--shadow-neon);
}

.pageImage img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--shadow-neon);
    border: 2px solid var(--accent-primary);
}

/* Стили для bg-light на других страницах */
.bg-light {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card)) !important;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: 0 5px 20px var(--shadow-neon);
}
