@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Unbounded:wght@400;600;700;800;900&family=Manrope:wght@400;500;600;700&display=swap');

/* ============================
   1. БАЗА
   ============================ */
:root {
    --bg-color: #050505;
    --accent: #ffa500;
    --glass-bg: rgba(20, 20, 20, 0.9);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #fff;
    --text-muted: #888;
    --font-main: 'Inter', sans-serif;
    --font-head: 'Unbounded', sans-serif;
}

* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }

html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

body { 
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex; flex-direction: column;
    position: relative;
    opacity: 0; animation: fadeInPage 0.5s ease-out forwards;
}
@keyframes fadeInPage { from { opacity: 0; } to { opacity: 1; } }

body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../assets/background.png') no-repeat center center;
    background-size: cover; opacity: 0.3; z-index: -2;
}
body::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.5), #050505);
    z-index: -1; pointer-events: none;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
button { cursor: pointer; border: none; font-family: inherit; }
::-webkit-scrollbar { display: none; }

/* Loader */
.page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #050505; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease; pointer-events: none; opacity: 0;
}
.page-loader.active { opacity: 1; pointer-events: all; }
.loader-spinner {
    width: 50px; height: 50px; border: 3px solid rgba(255, 165, 0, 0.2);
    border-radius: 50%; border-top-color: var(--accent);
    animation: spin 1s infinite linear;
}
@keyframes spin { 100% { transform: rotate(360deg); } }


/* ============================
   2. НАВИГАЦИЯ
   ============================ */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0; background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }

.logo-text { font-family: var(--font-head); font-size: 20px; font-weight: 800; text-transform: uppercase; color: #fff; }
.logo-text span { color: var(--accent); }

.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-btn {
    padding: 10px 20px; border-radius: 12px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    font-family: var(--font-head); display: flex; align-items: center; gap: 8px;
    border: 1px solid transparent; transition: 0.3s; cursor: pointer; color: #fff !important;
}
.nav-btn.primary { background: var(--accent); color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.nav-btn.primary:hover { background: #fff; color: #000 !important; transform: translateY(-2px); text-shadow: none; }
.nav-btn.ghost { background: rgba(255,255,255,0.05); color: #fff !important; border-color: var(--glass-border); }
.nav-btn.ghost:hover { background: rgba(255,255,255,0.15); }
.nav-btn.beta { background: rgba(255, 165, 0, 0.1); border-color: rgba(255, 165, 0, 0.3); color: var(--accent) !important; }
.nav-btn.beta:hover { background: var(--accent); color: #fff !important; }


/* ============================
   3. ГЛАВНАЯ (HERO)
   ============================ */
.hero-screen { min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 0 50px; }
.glow-effect { position: absolute; width: 500px; height: 500px; background: var(--accent); filter: blur(250px); opacity: 0.15; border-radius: 50%; z-index: -1; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-family: var(--font-head); font-weight: 900; margin-bottom: 15px; text-transform: uppercase; }
.hero-title span { color: var(--accent); text-shadow: 0 0 30px rgba(255,165,0,0.3); }
.hero-subtitle { font-size: 16px; color: #ccc; margin-bottom: 40px; max-width: 600px; padding: 0 15px; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 50px; width: 100%; padding: 0 20px; }

.btn-hero-play { padding: 18px 45px; background: var(--accent); color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.3); border-radius: 16px; font-family: var(--font-head); font-weight: 800; display: flex; gap: 10px; align-items: center; border: none; cursor: pointer; transition: 0.3s; }
.btn-hero-play:hover { background: #fff; color: #000 !important; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255,165,0,0.3); text-shadow: none; }

.btn-hero-trailer { padding: 18px 45px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-family: var(--font-head); font-weight: 700; border-radius: 16px; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.btn-hero-trailer:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-5px); }
/* Стиль для отключенной кнопки */
.btn-hero-trailer:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; border-color: rgba(255,255,255,0.05); }

.server-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 15px 25px; border-radius: 20px; display: inline-flex; align-items: center; gap: 20px; max-width: 90%; transition: 0.3s; }
.sc-icon { width: 45px; height: 45px; background: rgba(255,165,0,0.1); color: var(--accent); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid rgba(255,165,0,0.2); flex-shrink: 0; }
.sc-name { font-family: var(--font-head); font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.sc-online { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--accent); margin-left: auto; }

/* Content Section (НОВОСТИ) */
.content-section { padding: 50px 0; width: 100%; }
.section-header-style { font-family: var(--font-head); font-size: 24px; color: #fff; margin-bottom: 40px; text-transform: uppercase; text-align: center; font-weight: 700; }
.section-header-style span { color: var(--accent); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 60px; max-width: 1200px; margin: 0 auto 60px; }
.news-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; text-decoration: none; }
.news-item:hover { transform: translateY(-10px); border-color: var(--accent); }
.news-img { height: 220px; overflow: hidden; position: relative; width: 100%; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-item:hover .news-img img { transform: scale(1.1); }
.news-date { position: absolute; top: 15px; left: 15px; background: rgba(0,0,0,0.8); padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #ccc; backdrop-filter: blur(5px); }
.news-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.news-h { font-family: var(--font-head); font-size: 18px; margin-bottom: 10px; font-weight: 700; color: #fff; }
.news-t { font-size: 13px; color: #aaa; margin-bottom: 25px; line-height: 1.5; }
.news-btn { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; display: flex; gap: 5px; align-items: center; }


/* ============================
   5. ПРОФИЛЬ
   ============================ */
.page-wrap { padding-top: 120px; padding-bottom: 50px; flex: 1; display: flex; flex-direction: column; }
.profile-header-card { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; position: relative; overflow: hidden; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; backdrop-filter: blur(20px); }
.ph-left { display: flex; align-items: center; gap: 25px; }
.ph-avatar-big { width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; flex-shrink: 0; }
.ph-info h1 { font-family: var(--font-head); font-size: 28px; margin: 0 0 8px 0; line-height: 1.1; word-break: break-all; }
.ph-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.ph-badge { padding: 5px 12px; border-radius: 50px; background: rgba(255,255,255,0.1); font-size: 11px; font-weight: 700; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.1); }
.ph-reg-date { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.btn-logout-icon { width: 45px; height: 45px; border-radius: 12px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: 0.3s; }
.btn-logout-icon:hover { background: #ef4444; color: #fff; }

.profile-body-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card-unified { background: rgba(30,30,30,0.6); border: 1px solid var(--glass-border); border-radius: 20px; padding: 25px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; transition: 0.3s; }
.stat-card-unified:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.stat-card-unified::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--text-muted); opacity: 0.5; }
.stat-card-unified.money::after { background: #10b981; }
.stat-card-unified.bank::after { background: #3b82f6; }
.stat-card-unified.donate::after { background: var(--accent); }
.scu-icon { font-size: 24px; margin-bottom: 10px; color: #555; transition: 0.3s; }
.stat-card-unified:hover .scu-icon { color: #fff; transform: scale(1.1); }
.scu-label { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 5px; }
.scu-value { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: #fff; word-break: break-all; }
.btn-card-add { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,165,0,0.15); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-top: 10px; font-size: 12px; transition: 0.3s; text-decoration: none; }
.btn-card-add:hover { background: var(--accent); color: #000; transform: scale(1.1); }


/* ============================
   6. ДОНАТ (Shop & Calc)
   ============================ */
.shop-wrapper { max-width: 1000px; margin: 0 auto; }
.shop-header { text-align: center; margin-bottom: 50px; }
.shop-title { font-family: var(--font-head); font-size: 38px; margin-bottom: 10px; }

.shop-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.shop-tab { 
    padding: 12px 24px; border-radius: 50px; border: 1px solid var(--glass-border); 
    background: rgba(255,255,255,0.02); color: #888; font-family: var(--font-head); 
    font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: 0.3s; 
}
.shop-tab:hover, .shop-tab.active { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.2); }
.shop-tab.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 40px; }
.shop-card { 
    background: rgba(20, 20, 20, 0.8); border: 1px solid var(--glass-border); border-radius: 24px; 
    padding: 35px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; 
    transition: 0.3s; position: relative; overflow: hidden; backdrop-filter: blur(10px);
}
.shop-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 60px rgba(0,0,0,0.6); }

.card-badge { position: absolute; top: 15px; left: 15px; padding: 5px 12px; border-radius: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; color: #fff; background: linear-gradient(45deg, #ff0036, #ff4757); }
.card-badge.blue { background: linear-gradient(45deg, #3b82f6, #2563eb); }

.card-icon-wrap { 
    width: 90px; height: 90px; margin-bottom: 25px; border-radius: 50%; 
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); 
    display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--accent); 
    transition: 0.3s;
}
.shop-card:hover .card-icon-wrap { background: rgba(255,165,0,0.1); border-color: var(--accent); color: #fff; transform: scale(1.1); }

.card-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.card-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 25px; }
.card-price { font-family: var(--font-head); font-size: 24px; margin-bottom: 25px; color: #fff; }
.card-btn { width: 100%; padding: 16px; border-radius: 14px; background: linear-gradient(45deg, #ff0036, #ff4757); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px; text-transform: uppercase; transition: 0.3s; border: none; box-shadow: 0 5px 20px rgba(255, 0, 54, 0.3); cursor: pointer; }
.card-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 0, 54, 0.5); color: #fff; }

.custom-calc-block { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 24px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 40px; }
.cc-info h3 { font-family: var(--font-head); font-size: 20px; margin: 0 0 5px 0; }
.cc-info p { margin: 0; font-size: 13px; color: #888; }
.cc-input-wrap { display: flex; align-items: center; gap: 15px; flex-grow: 1; justify-content: flex-end; }
.cc-input { background: #050505; border: 1px solid rgba(255,255,255,0.1); padding: 15px 20px; border-radius: 14px; color: #fff; font-family: var(--font-head); font-size: 16px; width: 150px; text-align: center; }
.cc-btn { background: var(--accent); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); padding: 15px 30px; border-radius: 14px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 13px; transition: 0.3s; }
.cc-btn:hover { background: #fff; color: #000; text-shadow: none; transform: translateY(-3px); }

/* МОДАЛКА ОПЛАТЫ */
.pay-info-row { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: #ccc; align-items: center; }
.pay-info-row:last-child { border: none; margin: 0; padding: 0; }
.pay-info-row span:first-child { font-weight: 500; }
.pay-info-row span:last-child, .pay-info-row b { color: #fff; font-weight: 700; }
.server-plate { background: rgba(255,165,0,0.15); border: 1px solid rgba(255,165,0,0.3); color: var(--accent); padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; }


/* ============================
   7. МОДАЛКИ (ОБЩЕЕ)
   ============================ */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); backdrop-filter: blur(15px); 
    z-index: 10000; display: flex; align-items: center; justify-content: center; 
    opacity: 0; pointer-events: none; transition: 0.4s; padding: 20px;
    box-sizing: border-box;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { 
    background: #111; border: 1px solid var(--glass-border); border-radius: 28px; 
    padding: 40px; width: 100%; max-width: 550px; position: relative; 
    transform: scale(0.9); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}
.modal-overlay.active .modal { transform: scale(1); }
.close-cross { position: absolute; top: 20px; right: 20px; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; z-index: 10; font-size: 14px; }
.close-cross:hover { background: #fff; color: #000; transform: rotate(90deg); }

.plat-btn { 
    background: rgba(255,255,255,0.03); padding: 25px; border-radius: 18px; margin-bottom: 15px; 
    cursor: pointer; transition: 0.3s; border: 1px solid var(--glass-border); 
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    width: 100%; text-align: center;
}
.plat-btn i { font-size: 32px; color: #888; transition: 0.3s; }
.plat-info h4 { margin: 0; font-family: var(--font-head); color: #fff; }
.plat-btn:hover { background: var(--accent); border-color: var(--accent); }
.plat-btn:hover i { color: #000; }
.plat-btn:hover .plat-info h4 { color: #000; }

.video-modal-wrap { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; background: #000; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.custom-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }


/* ============================
   8. ФУТЕР (ИСПРАВЛЕН)
   ============================ */
.footer { border-top: 1px solid var(--glass-border); padding: 50px 0; text-align: center; background: #080808; margin-top: auto; position: relative; z-index: 10; width: 100%; }
.footer-socials-centered { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.social-box { 
    display: inline-flex; align-items: center; gap: 10px; 
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 14px 25px; border-radius: 14px; color: #ccc; font-weight: 700; 
    font-size: 12px; min-width: 140px; justify-content: center; text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-box:hover { 
    background: #fff; color: #000; border-color: #fff; 
    transform: translateY(-8px); box-shadow: 0 10px 25px rgba(255,255,255,0.2); 
}
.footer-links a { font-size: 12px; color: #666; margin: 0 10px; }
.footer-legal-info p { font-size: 11px; color: #555; }
.copyright { font-size: 12px; color: #444; font-weight: 700; margin-top: 20px; }


/* ============================
   9. АДАПТИВ (MOBILE FIX)
   ============================ */
@media (max-width: 900px) {
    .navbar { padding: 12px 0; }
    .nav-actions { gap: 8px; }
    .nav-btn.beta span, .nav-btn.ghost span { display: none; }
    .nav-btn.beta, .nav-btn.ghost { padding: 0; width: 36px; height: 36px; justify-content: center; }
    
    .hero-screen { padding-top: 100px; padding-bottom: 30px; min-height: auto; justify-content: flex-start; }
    .hero-title { font-size: 2.2rem; margin-bottom: 15px; }
    .hero-buttons { gap: 10px; margin-bottom: 40px; flex-direction: column; width: 100%; padding: 0 30px; }
    .btn-hero-play, .btn-hero-trailer { width: 100%; padding: 15px; font-size: 13px; justify-content: center; }
    
    .profile-header-card { flex-direction: column; text-align: center; padding: 25px 20px; gap: 20px; }
    .ph-left { flex-direction: column; gap: 15px; }
    .ph-info h1 { font-size: 22px; word-break: break-word; overflow-wrap: break-word; }
    .profile-body-grid { grid-template-columns: 1fr; gap: 15px; }
    .stat-card-unified { flex-direction: row; justify-content: space-between; padding: 20px; text-align: left; min-height: auto; }
    
    .shop-grid { grid-template-columns: 1fr; gap: 20px; }
    .calc-panel { flex-direction: column; text-align: center; gap: 20px; padding: 25px; }
    .calc-controls { width: 100%; flex-direction: column; }
    .calc-inp, .calc-btn { width: 100%; }
    
    .footer-socials-centered { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 15px; }
    .social-box { width: 100%; min-width: auto; }
}