/* --- ОСНОВНЫЕ СТИЛИ --- */
:root {
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --dark-bg: #050505;
    --dark-card: #111111;
    --text-grey: #b3b3b3;
    --fire: #ff4500;
    --gram-blue: #0088cc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: white;
    overflow-x: hidden;
}

h1, h2, h3, h4, .server-name, .server-rates { font-family: 'Cinzel', serif; text-transform: uppercase; }
a { text-decoration: none; color: white; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ПРЕЛОАДЕР */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark-bg); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s;
}
.loader {
    width: 50px; height: 50px;
    border: 3px solid var(--gold); border-top-color: transparent;
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ШАПКА */
.header {
    position: absolute; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; flex-direction: column; }
.powered-by { font-size: 10px; color: var(--text-grey); letter-spacing: 2px; }
.logo { font-size: 28px; color: white; text-shadow: 0 0 10px rgba(255, 69, 0, 0.5); }
.nav a { margin-left: 20px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.nav a:hover { color: var(--gold); }
.epicgram-link { color: var(--gram-blue) !important; }
.login-btn { border: 1px solid var(--gold); padding: 5px 15px; border-radius: 4px; }
.login-btn:hover { background: var(--gold); color: black; }

/* HERO SECTION */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative;
    /* Убедись, что картинка есть на сервере */
    background: url('epicwarlogo4.png') center/cover no-repeat;
    padding-top: 80px;
}
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 93%, rgba(5,5,5,1) 90%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; width: 100%; }

.hero-top-tag { color: var(--gold); letter-spacing: 3px; font-size: 12px; margin-bottom: 20px; font-weight: bold; }
.hero-title {
    font-size: 80px; font-weight: 900; line-height: 1; margin-bottom: 10px;
    background: linear-gradient(to bottom, #fff, #b3b3b3);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255,69,0,0.3));
}
.hero-subtitle { font-size: 18px; color: var(--text-grey); margin-bottom: 30px; }
.hero-subtitle span { color: var(--fire); font-weight: bold; }

/* ОБЕРТКА ДЛЯ СТАТУСА (ВАЖНО!) */
.status-wrapper {
    width: 280px; /* Фиксированная ширина карточки */
    height: 220px;

    margin: 30px auto 40px auto; 
}

/* КНОПКА CTA */
/* КНОПКА CTA (С ФИКСОМ ОТСТУПА) */
.cta-btn {
    display: inline-block; 
    padding: 20px 40px;
    background: linear-gradient(45deg, #8B0000, #FF4500);
    position: relative; 
    overflow: hidden; 
    border-radius: 5px;
    border: 1px solid var(--gold);
    box-shadow: 0 0 30px rgba(255,69,0,0.4);
       /* Добавь/Измени margin: */
    margin-top: 10px;    /* Отступ сверху от статуса */
    margin-bottom: 80px; /* БОЛЬШОЙ отступ снизу, чтобы не наезжало на EpicWar */
    /* ВОТ ЭТО ДОБАВЬ (Отступ снизу) */
    
}

.cta-btn:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 50px rgba(255,69,0,0.7); 
}
.btn-text { display: block; font-size: 20px; font-weight: 900; font-family: 'Cinzel'; color: white; }
.btn-subtext { display: block; font-size: 10px; color: rgba(255,255,255,0.8); text-transform: uppercase; margin-top: 5px; }

/* --- СТИЛИ ДЛЯ СТАТУСА (ФИНАЛЬНАЯ ВЕРСИЯ) --- */

/* FEATURES */
.features { padding: 100px 0; background: var(--dark-bg); }
.section-title { text-align: center; font-size: 36px; color: var(--gold); margin-bottom: 60px; letter-spacing: 2px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: var(--dark-card); padding: 40px 20px; text-align: center; border: 1px solid #222; border-radius: 10px; transition: 0.3s; }
.feature-card:hover { border-color: var(--gold-dark); transform: translateY(-10px); }
.card-icon { font-size: 40px; margin-bottom: 20px; }
.skull { color: var(--fire); } .gold { color: var(--gold); } .gram { color: var(--gram-blue); }
.feature-card h4 { font-size: 20px; margin-bottom: 15px; color: white; }
.feature-card p { color: var(--text-grey); line-height: 1.6; font-size: 14px; }

/* TECH SECTION */
.tech-section { padding: 80px 0; background: url('https://l2central.info/w/images/8/87/Valakas_Art.jpg') center/cover fixed no-repeat; position: relative; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.tech-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); }
.tech-content { position: relative; z-index: 2; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; margin-top: 40px; }
.tech-item { background: rgba(20, 20, 20, 0.6); padding: 25px; border-left: 3px solid var(--gold); backdrop-filter: blur(5px); }
.tech-item h4 { color: var(--gold); font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.tech-item p { color: #ccc; font-size: 14px; line-height: 1.5; }

/* EPICGRAM SECTION (Твой телефон) */
.epicgram-section { padding: 100px 0; background: linear-gradient(to right, #0a0a0a, #111); border-top: 1px solid #222; }
.epicgram-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.epicgram-text { flex: 1; min-width: 300px; }
.badge { background: var(--fire); color: white; display: inline-block; padding: 2px 8px; font-size: 10px; border-radius: 3px; font-weight: bold; margin-bottom: 15px; }
.blue-text { color: var(--gram-blue); }
.epicgram-text h3 { font-size: 40px; margin-bottom: 20px; }
.epicgram-text p { color: var(--text-grey); margin-bottom: 30px; font-size: 18px; }
.gram-btn { display: inline-block; padding: 15px 30px; background: var(--gram-blue); border-radius: 30px; font-weight: bold; }
.gram-btn:hover { background: #006699; }

.phone-mockup { width: 300px; background: #000; border-radius: 20px; border: 2px solid #333; padding: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); margin: 0 auto; }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #333; }
.user-info { display: flex; flex-direction: column; }
.username { font-weight: bold; font-size: 14px; color: white; }
.username i { color: var(--gram-blue); font-size: 12px; }
.time { font-size: 10px; color: #777; }
.video-placeholder { width: 100%; height: 350px; background: #222; border-radius: 10px; display: flex; justify-content: center; align-items: center; color: #555; font-size: 40px; }
.post-footer { margin-top: 10px; color: var(--gold); font-size: 12px; font-weight: bold; }

/* FOOTER */
.footer { padding: 50px 0; background: #000; border-top: 1px solid #222; font-size: 12px; color: #555; }
.footer-logo h2 { color: var(--gold); font-size: 24px; margin-bottom: 5px; }
.est { letter-spacing: 3px; color: #777; }
.footer-links { margin: 20px 0; }
.footer-links a { margin-right: 20px; color: #777; }
.footer-links a:hover { color: white; }

/* АНИМАЦИИ */
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .hero-title { font-size: 45px; }
    .server-info { flex-direction: column; gap: 10px; }
    .epicgram-wrapper { flex-direction: column; text-align: center; }
    .phone-mockup { margin: 0 auto; margin-top: 30px; }
    .status-wrapper { margin-bottom: 20px; }
}

/* --- ТВОИ ГРАДИЕНТЫ И ШРИФТЫ (ОСТАВЛЯЕМ КАК ЕСТЬ) --- */
hfp, hfp1, hfp2, hfpbeta {
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
}

hfp { color: #FFD700; font-size: 1.3em; text-shadow: 0 2px 10px rgba(255, 215, 0, 0.6); }
hfp1 { color: #FF4500; font-size: 1em; text-shadow: 0 0 8px rgba(255, 69, 0, 0.8); }
hfp2 { color: #F0E68C; font-size: 1em; }
hfpbeta { color: #aaa; font-size: 0.8em; font-style: italic; margin-left: 5px; }

spangold2, spangold2rep, spangold2rep2, spangoldbeta, spangold2rep23, spancl1, fastregsite {
   font-family: 'Times New Roman', serif;
   font-weight: bold;
   background-image: linear-gradient(to right, #462523 0, #cb9b51 0%, #f6e27a 1%, #f6f2c0 99%, #f6e27a 99%, #cb9b51 99%, #462523 100%);
   color: transparent;
   -webkit-background-clip: text;
}
spangold2 { font-size: 17px; }
spangold2rep { font-size: 15px; }
spangold2rep2 { font-size: 22px; }
spangoldbeta { font-size: 22px; }
spangold2rep23 { font-size: 24px; }
spancl1 { font-size: 15px; }
fastregsite { font-size: 25px; }


/* --- СТИЛИ ДЛЯ СТАТУСА (FIREPOINT GLASS STYLE) --- */

/* Контейнер карточки */
.server-status-card {
    /* Полупрозрачный фон с размытием */
    background: rgba(10, 10, 10, 0.6); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Золотая рамка */
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    
    /* Размеры */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    
    /* Структура */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центруем контент по вертикали */
    gap: 8px; /* Отступы между строками */
    
    padding: 15px;
    border-radius: 4px; /* Более строгие углы */
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    font-family: 'Cinzel', serif;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Название сервера (FirePoint ...) */
.server-name {
    color: var(--gold);
    font-size: 14px; /* Чуть меньше, чтобы влезало */
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Подзаголовок (скрываем если пустой или делаем мелким) */
.server-subname {
    display: none; /* Скрыл, чтобы не мешал, обычно он лишний */
}

/* Рейты (x50) */
.server-rates {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--fire);
    margin: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* 🔥 МАГИЯ: ЗАМЕНА СНЕЖИНОК НА ОГОНЬ 🔥 */
.snowflake {
    font-size: 0; /* Прячем саму снежинку */
}
.snowflake::before {
    content: '\f06d'; /* Иконка огня FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: var(--fire);
    text-shadow: 0 0 5px #ff4500;
    animation: flicker 1.5s infinite alternate;
}

/* Анимация мерцания огня */
@keyframes flicker {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Строки статуса (Login / Game) */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03); /* Еле заметная подложка */
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.status-label {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-grey);
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

/* Бейджи (ONLINE / OFFLINE) */
.status-badge {
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
    min-width: 60px;
    text-align: center;
}

/* ONLINE - Неоновый зеленый */
.status-on {
    background: transparent;
    color: #00ff00;
    border: 1px solid #00ff00;
    text-shadow: 0 0 5px #00ff00;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.2);
}

/* OFFLINE - Красный */
.status-off {
    background: transparent;
    color: #ff3333;
    border: 1px solid #ff3333;
    opacity: 0.7;
}

/* Онлайн цифры */
.online-count {
    margin-top: 5px;
    font-size: 12px;
    color: #ccc;
    font-family: 'Roboto', sans-serif;
}
.online-count span {
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
}

/* Трейд (скрываем или делаем мелким) */
.trade-count {
    font-size: 10px;
    color: #eeeeee;
    margin-top: -2px;
}
.trade-count span { color: #777; }