:root {
    --bg-dark: #0a0c14;
    --card-bg: rgba(18, 22, 36, 0.7);
    --card-border: rgba(139, 92, 246, 0.2);
    --accent-purple: #8b5cf6;
    --accent-glow: #a855f7;
    --text-main: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 60px;
}

/* Неоновые фоновые пятна */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.blob-1 {
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: #6366f1;
}

.blob-2 {
    bottom: 10%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: #a855f7;
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: center;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 18, 28, 0.85);
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 50px;
    width: 100%;
    max-width: 950px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
    padding-left: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.nav-menu {
    display: flex;
    gap: 6px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Главный контейнер */
.main-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-glow {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #c084fc;
    border-radius: 50%;
}

.brand-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 30%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-play-now {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-play-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.btn-secondary-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Статистика */
.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 16px 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #c084fc;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Карточка сервера */
.server-card-main {
    width: 100%;
    margin-bottom: 40px;
}

.server-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    text-align: left;
}

.card-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-icon-frame {
    position: absolute;
    bottom: -25px;
    left: 24px;
    width: 70px;
    height: 70px;
    background: #121624;
    border: 2px solid var(--accent-purple);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.card-icon-frame img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.card-body {
    padding: 40px 24px 24px 24px;
}

.server-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.server-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--text-secondary);
}

.server-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ip-address {
    color: #c084fc;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ip-address:hover {
    opacity: 0.8;
}

.version-badge {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-more {
    width: 100%;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-more:hover {
    background: var(--accent-purple);
    color: white;
}

/* СЕКЦИЯ СКРИНШОТОВ (Слайдер) */
.screenshots-section {
    width: 100%;
    text-align: left;
    margin-bottom: 40px;
}

.screenshots-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #38bdf8;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.slider-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.slider-viewport {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.season-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 10;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 16px;
}

.slider-btn.next {
    right: 16px;
}

/* Плавающая кнопка поддержки */
.floating-support {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #06b6d4;
    color: #042f2e;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 25px rgba(6, 182, 212, 0.4);
    transition: all 0.2s ease;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-support:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.6);
}

/* Подвал сайта */
.site-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 40px;
}

/* МОДАЛЬНЫЕ ОКНА */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 13, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 200;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: #121624;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-large {
    max-width: 750px;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.modal-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Оформление правил */
.rules-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.rules-body::-webkit-scrollbar {
    width: 6px;
}

.rules-body::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.quote-box {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--accent-purple);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.rules-body h3 {
    color: #c084fc;
    font-size: 1rem;
    margin-top: 18px;
    margin-bottom: 8px;
}

.rules-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rules-body li {
    font-size: 0.85rem;
}

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

/* Элементы Авторизации и Личного Кабинета */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--accent-purple);
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group input, .input-inline input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    padding: 10px 14px;
    border-radius: 8px;
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.form-group input:focus, .input-inline input:focus {
    border-color: var(--accent-purple);
}

.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    text-align: center;
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none !important;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-logout:hover {
    background: #ef4444;
    color: white;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    text-align: left;
}

.card-section h3, .profile-skin h3 {
    font-size: 1rem;
    color: #c084fc;
    margin-bottom: 10px;
}

.input-inline {
    display: flex;
    gap: 8px;
}

.input-inline input {
    flex: 1;
}

.status-text {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.skin-preview-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed var(--card-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.skin-preview-box img {
    height: 160px;
    object-fit: contain;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.8rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
        border-radius: 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-play-now, .btn-secondary-action {
        width: 100%;
    }

    .slider-viewport {
        height: 260px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}
