        :root {
            --bg-color: #07090c;
            --bg-card: #1a1a24;
            --text-main: #cac8c8;
            --text-muted: #a0a0b0;
            --accent-red: #920a06;
            --accent-gradient: linear-gradient(90deg, #e60505, #920a06);
            --border-color: #2c2c3a;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
        }

        a { text-decoration: none; color: var(--text-muted); transition: color 0.3s; }
        a:hover { color: var(--text-main); }

        .container { max-width: 1200px; width: 100%; padding: 0 20px; }

        .hero-wrapper {
            position: relative;
            width: 100%;
            
            background-image: url('img/bg.jpg');
            background-size: cover;
            background-position: top right;
            background-repeat: no-repeat;
            
            min-height: 680px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            z-index: 1;
        }

        .hero-wrapper::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 250px;
            background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
            pointer-events: none;
            z-index: 2;
        }

        header {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            padding: 20px 40px;
            z-index: 10;
            background: transparent; 
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo img { height: 35px; width: auto; object-fit: contain; }

        nav { display: flex; gap: 20px; font-size: 14px; }
        
        .auth-buttons { display: flex; gap: 10px; }

        .btn {
            padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: 600;
            cursor: pointer; transition: all 0.3s; border: 1px solid transparent;
            background: rgba(11, 11, 15, 0.7);
        }
        .btn-login { border: 1px solid var(--border-color); color: var(--text-main); }
        .btn-login:hover { border-color: var(--text-muted); background: rgba(11,11,15, 0.9); }
        .btn-primary { background: var(--accent-gradient); color: var(--text-main); }
        .btn-primary:hover { opacity: 0.9; transform: scale(1.02); }

        .hero {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            position: relative;
            z-index: 5;
            padding: 80px 40px 0 40px;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        .hero-content { max-width: 50%; }
        .hero h1 { font-size: 48px; line-height: 1.1; font-weight: 700; margin-bottom: 20px; }
        .hero p { color: var(--text-muted); font-size: 18px; line-height: 1.5; margin-bottom: 40px; }
        .hero .btn-hero { padding: 14px 40px; font-size: 18px; }

        .features { 
            display: flex;
            align-items: stretch;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 0;
            margin: -40px 0 40px 0;
            position: relative; 
            z-index: 5;
        }

        .feature-card {
            flex: 1;
            display: flex;
            align-items: center;
            padding: 30px 25px;
            gap: 20px;
            background: transparent;
            border: none;
            border-radius: 0;
        }

        .feature-card:not(:last-child) {
            border-right: 1px solid rgba(255, 255, 255, 0.08);
        }

        .feature-icon-wrapper {
            width: 48px;
            height: 48px;
            min-width: 48px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .feature-icon-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: brightness(0) invert(1); 
        }

        .feature-text-content {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .feature-title {
            font-weight: 600;
            font-size: 16px;
            color: var(--text-main);
        }

        .feature-desc {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .games-section { margin-top: 20px; margin-bottom: 60px; }
        .games-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .games-header h2 { font-size: 24px; font-weight: 500; }
        .games-header a { font-size: 14px; display: flex; align-items: center; gap: 5px; }

        .games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }

        .game-card {
            border-radius: 10px; overflow: hidden; background: #14141b;
            position: relative; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
        }
        .game-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

        .game-image-wrapper { position: relative; height: 220px; overflow: hidden; }
        .game-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
        .game-image-wrapper::after {
            content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
            pointer-events: none;
        }
        .game-title {
            position: absolute; bottom: 20px; left: 0; width: 100%; text-align: center;
            padding: 0 10px; z-index: 2; font-weight: 700; font-size: 18px;
            color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        }

        .game-info {
            padding: 10px 15px; border-top: 1px solid rgba(255,255,255,0.05);
            display: flex; justify-content: space-between; font-size: 11px;
            color: var(--text-muted); background: #0f0f15;
        }
        .game-info .developer { color: #777; }

        @media (max-width: 1024px) {
            .games-grid { grid-template-columns: repeat(3, 1fr); }
            .hero-wrapper { min-height: 500px; }
            .hero { padding-top: 120px; }
            .hero-content { max-width: 70%; }
        }

        @media (max-width: 768px) {
            .hero-wrapper { min-height: 700px; }
            header { padding: 15px 20px; flex-direction: column; gap: 10px; align-items: stretch; }
            nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
            .auth-buttons { justify-content: center; }
            .hero { flex-direction: column; text-align: center; padding-top: 150px; }
            .hero-content { max-width: 100%; }
            
            .features { flex-direction: column; padding: 15px 0; margin-top: -20px; }
            .feature-card { padding: 15px 20px; border-right: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
            .feature-card:last-child { border-bottom: none; }
            
            .games-grid { grid-template-columns: repeat(2, 1fr); }
        }
        
        @media (max-width: 480px) {
            .games-grid { grid-template-columns: 1fr; }
            .hero h1 { font-size: 32px; }
            .hero-wrapper { min-height: 600px; }
        }



.reg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 12, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.reg-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.reg-modal-box {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    
    background-color: var(--bg-card);
    
    /* background-image: url('img/modal_bg.jpg'); */
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;

    border: 1px solid rgba(146, 10, 6, 0.2); 
    border-radius: 12px;
    padding: 40px;
    padding-bottom: 20px;
    
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.reg-modal-box::-webkit-scrollbar { width: 4px; }
.reg-modal-box::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 4px; }
.reg-modal-box::-webkit-scrollbar-track { background: transparent; }

.reg-logo { text-align: center; margin-bottom: 10px; }
.reg-logo img { height: 40px; width: auto; object-fit: contain; display: inline-block; }

.reg-title { font-size: 22px; color: var(--text-main); text-align: center; margin: 0; font-weight: 600; }
.reg-subtitle { font-size: 14px; color: var(--text-muted); text-align: center; margin: -4px 0 4px 0; }

.reg-input-group {
    display: flex; align-items: center; 
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 16px; 
    transition: border-color 0.3s;
}
.reg-input-group:focus-within { border-color: var(--accent-red); }

.reg-input-icon { display: flex; align-items: center; margin-right: 12px; }
.reg-input-icon svg { width: 18px; height: 18px; stroke: var(--text-muted); }

.reg-input-group input, .reg-input-group select {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text-main); padding: 16px 0; font-size: 14px; font-family: inherit;
}
.reg-input-group input::placeholder { color: var(--text-muted); }

.reg-input-group select { appearance: none; cursor: pointer; color: var(--text-muted); }
.reg-input-group select option { background: var(--bg-color); color: var(--text-main); }
.reg-select-arrow { color: var(--text-muted); font-size: 12px; pointer-events: none; }

.reg-eye-btn { background: transparent; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }
.reg-eye-btn svg { stroke: var(--text-muted); }

.reg-checkbox {
    display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
    color: var(--text-muted); font-size: 12px; line-height: 1.4; width: 100%;
}
.reg-checkbox input { display: none; }
.reg-checkmark {
    width: 18px; height: 18px; border: 1px solid var(--border-color); border-radius: 3px;
    background: transparent; flex-shrink: 0; position: relative; margin-top: 2px;
    transition: background 0.2s, border-color 0.2s;
}
.reg-checkbox input:checked + .reg-checkmark { background: var(--accent-red); border-color: var(--accent-red); }
.reg-checkbox input:checked + .reg-checkmark::after {
    content: '✔'; position: absolute; inset: 0; display: flex;
    justify-content: center; align-items: center; color: var(--text-main); font-size: 12px;
}
.reg-highlight { color: var(--accent-red); font-weight: 500; cursor: pointer; }

.reg-btn {
    width: 100%; padding: 16px; border: none; border-radius: 6px;
    font-weight: 600; font-size: 16px; cursor: pointer; transition: opacity 0.2s;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    color: var(--text-main);
}
.reg-btn:hover { opacity: 0.85; }

.reg-btn-primary { 
    background: var(--accent-gradient); 
    color: #fff; 
}
.reg-btn-code { 
    background: var(--bg-color); 
    border: 1px solid var(--border-color); 
}
.code-icon { font-size: 14px; letter-spacing: -2px; font-weight: 700; }

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }

.bonus-card-wrapper {
    position: relative; border-radius: 8px; padding: 1px; width: 100%;
    background: conic-gradient(from var(--angle), var(--accent-red), #3a0000, var(--accent-red), #3a0000, var(--accent-red));
    animation: spin-border 4s linear infinite; margin-top: 4px;
}
.bonus-card-inner {
    background: var(--bg-color); border-radius: 7px; padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2;
}
.bonus-left { display: flex; align-items: center; gap: 14px; }
.bonus-icon { font-size: 20px; color: var(--accent-red); }
.bonus-text { display: flex; flex-direction: column; gap: 2px; }
.bonus-title { color: var(--text-main); font-size: 14px; font-weight: 500; }
.bonus-desc { color: var(--text-muted); font-size: 12px; }
.bonus-arrow { color: var(--text-muted); font-size: 20px; }

.reg-footer {
    display: flex; justify-content: center; align-items: center;
    gap: 16px; padding: 10px 0 0 0; color: var(--text-muted); font-size: 13px;
}
.reg-footer-item { display: flex; align-items: center; gap: 6px; cursor: pointer;}
.reg-footer-item:hover { color: var(--text-main); }
.reg-footer-line { width: 1px; height: 16px; background: var(--border-color); }
.reg-kyc-text { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 4px;  gap: 6px;   display: flex;
    align-items: center;
    justify-content: center;}

@media (max-width: 700px) {
    .reg-modal-box { max-width: 94%; padding: 30px 24px; }
}

@media (max-width: 480px) {
    .reg-modal-overlay { align-items: flex-end; }
    .reg-modal-box {
        max-width: 100%; max-height: 100vh; height: 100vh;
        border-radius: 12px 12px 0 0; padding: 24px 20px;
        background-size: cover; background-position: left bottom; 
    }
}

.login-extra {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}
.login-forgot {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.login-forgot:hover {
    color: var(--accent-red);
}

/* Блок ссылки на регистрацию */
.login-register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}
.login-register-link a {
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* =========================================================== */
/* ДОПОЛНИТЕЛЬНЫЕ СЕКЦИИ ПЕРЕД ФУТЕРОМ                         */
/* =========================================================== */

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 30px;
    text-align: left;
}

/* Сетка Преимуществ (Анимированные бордеры как в модалке) */
.platform-features { margin-top: 80px; margin-bottom: 60px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.pf-card {
    position: relative;
    padding: 2px; /* Толщина анимированной каймы */
    background: conic-gradient(from var(--angle), var(--accent-red), transparent, var(--accent-red), transparent, var(--accent-red));
    animation: spin-border 6s linear infinite;
    border-radius: 16px;
    transition: transform 0.3s ease;
}
.pf-card:hover { transform: translateY(-6px); }

.pf-card-inner {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 30px 25px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.pf-card-inner h3 { 
    color: var(--text-main); font-size: 20px; margin: 0; font-weight: 600; 
}
.pf-card-inner p { 
    color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; 
}

/* CTA Баннер (С картинкой и анимацией зума) */
.cta-section {
    position: relative;
    padding: 80px 40px;
    margin-bottom: 80px;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    
    /* ЗАМЕНИТЕ ССЫЛКУ НА ВАШУ КАРТИНКУ ДЛЯ БЭКГРАУНДА */
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomBg 15s infinite alternate ease-in-out;
}

@keyframes zoomBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Оверлей затемнения, чтобы текст был идеально читаем */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 9, 12, 0.95) 0%, rgba(7, 9, 12, 0.6) 70%, rgba(7, 9, 12, 0.1) 100%);
    border-radius: 16px;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    margin: 0;
}
.cta-content h2 {
    font-size: 36px; color: var(--text-main); font-weight: 700; margin-bottom: 15px;
}
.cta-content p { color: var(--text-muted); font-size: 16px; margin-bottom: 25px; line-height: 1.5; }

.btn-cta {
    background: var(--accent-gradient);
    color: #fff;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    /* Пульсирующая тень на кнопку */
    animation: pulse-shadow 2s infinite ease-in-out;
    transition: transform 0.2s;
}
.btn-cta:hover { transform: scale(1.05); animation: none; }

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(230, 5, 5, 0.6); }
    100% { box-shadow: 0 0 20px 10px rgba(230, 5, 5, 0); }
}

/* =========================================================== */
/* ФУТЕР (Центрированный)                                       */
/* =========================================================== */
.site-footer {
    background: #050608;
    border-top: 1px solid rgba(146, 10, 6, 0.3);
    padding-top: 60px;
    width: 100%;
    margin-top: 40px;
}

/* Делаем футер гибким и центрируем колонки */
.footer-grid {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-col {
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Логотип и соцсети (выровнено по центру) */
.footer-logo img { height: 35px; margin-bottom: 15px; }
.footer-desc { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-bottom: 20px; max-width: 280px; }

.footer-socials { display: flex; gap: 12px; justify-content: center; }
.footer-socials a {
    display: flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-muted); transition: 0.3s;
}
.footer-socials a:hover { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.footer-socials svg { width: 20px; height: 20px; }

/* Колонки ссылок (выровнено по центру) */
.footer-col h4 { color: var(--text-main); font-size: 15px; font-weight: 600; margin-bottom: 18px; letter-spacing: 0.5px;}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-col ul li a { color: var(--text-muted); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent-red); }

/* Нижняя полоса */
.footer-bottom { background: #030407; padding: 20px 0; }
.footer-bottom .container { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-bottom p { color: #555; font-size: 12px; text-align: center; }
.footer-legal { color: #444; font-size: 11px; }

/* =========================================================== */
/* АДАПТИВНОСТЬ                                                */
/* =========================================================== */
@media (max-width: 1024px) {
    .pf-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .pf-grid { grid-template-columns: 1fr; }
    
    .cta-section { padding: 40px 20px; background-position: right center; }
    .cta-content { max-width: 100%; text-align: center; margin: 0 auto; }
    .cta-content h2 { font-size: 28px; }
    .cta-section::before { background: rgba(7, 9, 12, 0.8); }

    .footer-grid { flex-direction: column; gap: 40px; align-items: center; }
    .footer-col { max-width: 100%; }
}