/* ========================================
   NIGHTRP - GLASS STYLE
   Жидкое стекло + анимации
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;400;500;600;700;800&display=swap');

:root {
    --raspberry: #E91E63;
    --raspberry-dark: #C2185B;
    --raspberry-light: #F06292;
    --raspberry-glow: rgba(233, 30, 99, 0.4);
    --glass-bg: rgba(15, 15, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-gray: #a8a8b8;
    --success: #22c55e;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 20% 30%, #0a0a12, #050508);
    color: var(--text-white);
    min-height: 100vh;
    animation: pageFadeIn 0.8s ease-out;
}

/* ========== АНИМАЦИИ ========== */
@keyframes pageFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 0 0 var(--raspberry-glow); }
    70% { box-shadow: 0 0 0 15px rgba(233, 30, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

/* ========== НАВИГАЦИЯ ========== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeLeft 0.6s ease-out;
}

.nav-center {
    display: flex;
    gap: 35px;
}

.nav-center a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--raspberry);
    transition: width 0.3s;
}

.nav-center a:hover {
    color: var(--raspberry);
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nrplus-link {
    background: linear-gradient(135deg, var(--raspberry), var(--raspberry-dark));
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.nrplus-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--raspberry-glow);
    color: white !important;
}

/* ========== КНОПКА ВХОДА ========== */
.login-btn {
    background: transparent;
    border: 1.5px solid var(--raspberry);
    color: var(--raspberry);
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--raspberry);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 0 12px var(--raspberry-glow);
}

/* ========== ЮЗЕР ИНФО (ПОСЛЕ ВХОДА) ========== */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(233, 30, 99, 0.15);
    padding: 6px 16px 6px 10px;
    border-radius: 50px;
    border: 1px solid var(--raspberry);
    cursor: pointer;
    transition: all 0.3s;
}

.user-info:hover {
    background: rgba(233, 30, 99, 0.25);
    transform: scale(1.02);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--raspberry), var(--raspberry-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.username-display {
    font-weight: 600;
    font-size: 14px;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.3s;
}

.logout-btn:hover {
    color: var(--raspberry);
    background: rgba(255,255,255,0.05);
}

/* ========== МОДАЛЬНОЕ ОКНО ВХОДА ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: pageFadeIn 0.3s;
}

.modal-content {
    background: rgba(20, 20, 35, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 28px;
    color: var(--raspberry);
    font-size: 28px;
}

.modal-content input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--raspberry);
    box-shadow: 0 0 10px var(--raspberry-glow);
}

.modal-content button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--raspberry), var(--raspberry-dark));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.modal-content button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--raspberry-glow);
}

.close-modal {
    background: transparent !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-gray) !important;
}

.close-modal:hover {
    border-color: var(--raspberry) !important;
    color: var(--raspberry) !important;
}

.error-message {
    color: var(--raspberry);
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ========== ОСНОВНОЙ КОНТЕЙНЕР ========== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 30px;
}

/* ========== HERO БЛОК ========== */
.hero {
    text-align: center;
    padding: 80px 20px;
    animation: fadeUp 0.8s ease-out;
}

.server-name {
    font-size: 80px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--raspberry));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.server-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 35px;
}

.btn-play {
    background: linear-gradient(135deg, var(--raspberry), var(--raspberry-dark));
    color: white;
    border: none;
    padding: 16px 60px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.5);
}

.online-count {
    font-size: 18px;
    color: var(--text-gray);
}

.online-count span {
    color: var(--success);
    font-weight: 700;
}

/* ========== СЕТКА КАРТОЧЕК ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    animation: fadeUp 0.6s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--raspberry);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(233, 30, 99, 0.1);
}

.feature-icon {
    font-size: 55px;
    margin-bottom: 22px;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    transition: color 0.3s;
}

.feature-card:hover h3 {
    color: var(--raspberry);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 15px;
}

/* ========== СТРАНИЦА START ========== */
.start-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeUp 0.6s;
}

.start-header h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 12px;
}

.start-header p {
    font-size: 20px;
    color: var(--text-gray);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.step-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--raspberry);
}

.step-number {
    font-size: 52px;
    font-weight: 800;
    color: var(--raspberry);
    margin-bottom: 20px;
}

.step-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.step-card p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ========== СИСТЕМНЫЕ ТРЕБОВАНИЯ ========== */
.requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.req-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
}

.req-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--raspberry);
}

.req-card ul {
    list-style: none;
}

.req-card li {
    padding: 10px 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
}

.req-card li:last-child {
    border-bottom: none;
}

.btn-download {
    background: linear-gradient(135deg, var(--raspberry), var(--raspberry-dark));
    color: white;
    border: none;
    padding: 16px 55px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
}

.btn-download:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.5);
}

/* ========== МАГАЗИН ========== */
.shop-container {
    max-width: 550px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 50px 45px;
    text-align: center;
}

.shop-container h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.shop-container .subtitle {
    color: var(--text-gray);
    margin-bottom: 45px;
}

.coins-slider {
    margin: 40px 0;
}

.coins-slider label {
    display: block;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-gray);
}

input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: var(--glass-border);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--raspberry);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px var(--raspberry);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.coin-value {
    font-size: 52px;
    font-weight: 800;
    margin: 20px 0;
}

.coin-value span {
    color: var(--raspberry);
}

.coin-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px 20px;
    font-size: 18px;
    border-radius: 16px;
    width: 200px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s;
}

.coin-input:focus {
    outline: none;
    border-color: var(--raspberry);
    box-shadow: 0 0 12px var(--raspberry-glow);
}

.btn-pay {
    background: linear-gradient(135deg, var(--raspberry), var(--raspberry-dark));
    color: white;
    border: none;
    padding: 15px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-pay:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--raspberry-glow);
}

/* ========== NR+ СТРАНИЦА ========== */
.nrplus-header {
    text-align: center;
    margin-bottom: 55px;
}

.nrplus-header h1 {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--raspberry));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.nrplus-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.nrplus-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.nrplus-card:hover {
    transform: translateY(-5px);
    border-color: var(--raspberry);
}

.nrplus-icon {
    font-size: 52px;
    margin-bottom: 18px;
    transition: transform 0.3s;
}

.nrplus-card:hover .nrplus-icon {
    transform: scale(1.1);
}

.nrplus-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.nrplus-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

.nrplus-price {
    text-align: center;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(194, 24, 91, 0.08));
    border-radius: 32px;
    padding: 45px;
    border: 1px solid var(--raspberry);
}

.nrplus-price h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--raspberry);
    margin-bottom: 16px;
}

.btn-buy {
    background: linear-gradient(135deg, var(--raspberry), var(--raspberry-dark));
    color: white;
    border: none;
    padding: 16px 60px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-buy:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px var(--raspberry-glow);
}

/* ========== РЕДИРЕКТ ========== */
.redirect-box {
    text-align: center;
    padding: 100px 20px;
}

.redirect-box h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.redirect-box p {
    color: var(--text-gray);
    margin-bottom: 35px;
}

.btn-link {
    background: transparent;
    border: 2px solid var(--raspberry);
    color: var(--raspberry);
    padding: 14px 38px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-link:hover {
    background: var(--raspberry);
    color: white;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 1000px) {
    .container {
        padding: 40px 25px;
    }
    
    .server-name {
        font-size: 60px;
    }
    
    .features-grid, .steps-grid, .nrplus-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .requirements {
        grid-template-columns: 1fr;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .nav-center {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .hero {
        padding: 50px 20px;
    }
}

@media (max-width: 600px) {
    .server-name {
        font-size: 42px;
    }
    
    .start-header h1, .nrplus-header h1 {
        font-size: 36px;
    }
    
    .btn-play, .btn-download {
        padding: 12px 40px;
        font-size: 16px;
    }
    
    .shop-container {
        padding: 35px 25px;
    }
    
    .coin-value {
        font-size: 38px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .feature-card h3 {
        font-size: 22px;
    }
}