/* === БАЗОВЫЕ НАСТРОЙКИ === */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background-color: #050507; color: white; overflow-x: hidden; }
#particles-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; }

/* === ШАПКА === */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: rgba(5, 5, 7, 0.7); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(123, 104, 238, 0.15); position: fixed; width: 100%; top: 0; z-index: 100; }
.logo { font-size: 24px; font-weight: bold; color: white; letter-spacing: 2px; cursor: pointer; }
.logo span { color: #7B68EE; }
.nav-buttons { display: flex; gap: 15px; align-items: center; }

button { cursor: pointer; transition: 0.3s; }
.btn-outline { background: transparent; border: 1px solid rgba(123, 104, 238, 0.6); color: white; padding: 8px 20px; border-radius: 8px; font-weight: bold; }
.btn-outline:hover { background: rgba(123, 104, 238, 0.15); border-color: #7B68EE; }
.btn-submit { padding: 14px; background-color: #7B68EE; color: white; border: none; border-radius: 8px; font-weight: bold; font-size: 14px; }
.btn-submit:hover { background-color: #6A5ACD; }

.user-profile-btn { display: flex; align-items: center; gap: 10px; background: rgba(123, 104, 238, 0.1); padding: 5px 15px; border-radius: 20px; border: 1px solid rgba(123, 104, 238, 0.4); }
.user-profile-btn:hover { background: rgba(123, 104, 238, 0.25); }
.user-avatar { width: 30px; height: 30px; background: #7B68EE; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; color: white;}
.admin-badge { background: linear-gradient(135deg, #FFD700, #FFA500); padding: 5px 15px; border-radius: 8px; font-weight: bold; color: #000; cursor: pointer; border: none; box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.admin-badge:hover { transform: scale(1.05); }

.page { display: none; min-height: 100vh; padding-top: 100px; padding-bottom: 0px; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === ГЛАВНЫЙ ЭКРАН === */
.hero { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; text-align: center; position: relative; margin-top: -100px; }
.hero h1 { font-size: 64px; margin-bottom: 20px; text-shadow: 0 5px 20px rgba(0,0,0,0.8); }
.hero p { font-size: 18px; color: #888; margin-bottom: 40px; max-width: 600px; line-height: 1.6; }
.btn-download { background: linear-gradient(135deg, #7B68EE, #5a48ce); color: white; padding: 18px 40px; font-size: 16px; font-weight: bold; border: none; border-radius: 12px; box-shadow: 0 10px 30px rgba(123, 104, 238, 0.2); }
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(123, 104, 238, 0.4); }

.scroll-down { position: absolute; bottom: 40px; color: rgba(255, 255, 255, 0.4); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; animation: bounce 2s infinite; pointer-events: none; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* === ТАРИФЫ (ВИТРИНА ПОДПИСОК) === */
.pricing-section { padding: 80px 10%; max-width: 1200px; margin: 0 auto; text-align: center; }
.pricing-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 50px; }
.pricing-card { background: rgba(15, 15, 18, 0.7); border: 1px solid rgba(123, 104, 238, 0.15); border-radius: 16px; padding: 40px 30px; width: 320px; backdrop-filter: blur(10px); transition: 0.3s; position: relative; display: flex; flex-direction: column; text-align: left; }
.pricing-card:hover { transform: translateY(-10px); border-color: #7B68EE; box-shadow: 0 15px 40px rgba(123, 104, 238, 0.2); }
.pricing-card.popular { border-color: #7B68EE; background: linear-gradient(180deg, rgba(123,104,238,0.1) 0%, rgba(15,15,18,0.8) 100%); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #7B68EE; color: white; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: bold; letter-spacing: 1px; box-shadow: 0 5px 15px rgba(123, 104, 238, 0.4); }
.pricing-title { font-size: 22px; color: white; margin-bottom: 10px; font-weight: bold; }
.pricing-price { font-size: 36px; font-weight: bold; color: #44FF88; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; }
.pricing-price span { font-size: 14px; color: #666; font-weight: normal; }
.pricing-features { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.pricing-features li { margin-bottom: 12px; color: #bbb; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.pricing-features li::before { content: '✔'; color: #7B68EE; font-size: 16px; font-weight: bold; }
.btn-buy { width: 100%; padding: 14px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; text-align: center; }
.btn-buy-outline { background: transparent; border: 1px solid #7B68EE; color: white; }
.btn-buy-outline:hover { background: rgba(123, 104, 238, 0.2); }
.btn-buy-filled { background: #7B68EE; border: none; color: white; box-shadow: 0 5px 15px rgba(123, 104, 238, 0.3); }
.btn-buy-filled:hover { background: #6A5ACD; transform: scale(1.02); }

/* === ПАТЧНОУТЫ === */
.patch-notes-section { padding: 50px 10%; max-width: 1200px; margin: 0 auto; }
.patches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.patch-card { background: rgba(15, 15, 18, 0.7); border: 1px solid rgba(123, 104, 238, 0.15); border-radius: 16px; padding: 30px; backdrop-filter: blur(10px); transition: 0.3s; }
.patch-card:hover { border-color: rgba(123, 104, 238, 0.5); transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.patch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px;}
.patch-version { color: #44FF88; font-weight: bold; font-size: 20px; }
.patch-date { color: #666; font-size: 13px; }
.patch-list { list-style: none; }
.patch-list li { margin-bottom: 12px; color: #bbb; font-size: 14px; display: flex; gap: 10px; line-height: 1.4; }
.patch-list li::before { content: '✦'; color: #7B68EE; font-size: 14px; }

/* === ПОДВАЛ САЙТА (FOOTER) === */
footer { background: rgba(10, 10, 12, 0.8); border-top: 1px solid rgba(123, 104, 238, 0.15); padding: 40px 10%; margin-top: 80px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; backdrop-filter: blur(10px); }
.footer-logo { font-size: 20px; font-weight: bold; color: white; letter-spacing: 2px; }
.footer-logo span { color: #7B68EE; }
.footer-text { color: #666; font-size: 13px; max-width: 400px; margin-top: 10px; line-height: 1.5; }
.footer-links { display: flex; gap: 20px; margin-top: 20px; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 14px; transition: 0.2s; cursor: pointer; }
.footer-links a:hover { color: #7B68EE; }
.footer-bottom { width: 100%; text-align: center; margin-top: 30px; color: #444; font-size: 12px; border-top: 1px solid #222; padding-top: 20px; }

/* === ВСПЛЫВАЮЩИЕ ОКНА (МОДАЛКИ) === */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(10px); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-overlay.active { display: flex; }
.glass-panel { background: rgba(15, 15, 18, 0.9); border: 1px solid rgba(123, 104, 238, 0.3); padding: 40px; border-radius: 16px; width: 380px; text-align: center; position: relative; box-shadow: 0px 10px 50px rgba(0,0,0,0.8);}
.close-btn { position: absolute; top: 15px; right: 20px; background: transparent; border: none; color: #666; font-size: 20px; }
.close-btn:hover { color: white; }

input, select, textarea { width: 100%; padding: 14px; margin: 10px 0; background: rgba(5, 5, 7, 0.8); border: 1px solid #333; color: white; border-radius: 8px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #7B68EE; }
select option { background-color: #1E1E24; color: white; }

/* === СТРАНИЦА ПОДДЕРЖКИ === */
.support-container { max-width: 1000px; margin: 0 auto; padding: 20px; }
.bounty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.bounty-card { background: rgba(20, 20, 25, 0.7); border: 1px solid rgba(123, 104, 238, 0.2); padding: 25px; border-radius: 12px; }
.bounty-title { font-size: 20px; font-weight: bold; color: white; margin-bottom: 10px; display: flex; justify-content: space-between;}
.bounty-reward { color: #44FF88; font-weight: bold; font-size: 18px; }

/* === АДМИН ПАНЕЛЬ === */
.admin-layout { display: flex; gap: 30px; max-width: 1200px; margin: 0 auto; }
.admin-sidebar { width: 250px; display: flex; flex-direction: column; gap: 10px; }
.admin-content { flex: 1; background: rgba(15, 15, 18, 0.6); border: 1px solid #7B68EE; border-radius: 16px; padding: 30px; }
.admin-tab { background: rgba(5,5,7,0.8); border: 1px solid #333; color: white; padding: 15px; text-align: left; border-radius: 8px; font-weight: bold; }
.admin-tab.active { background: #7B68EE; border-color: #7B68EE; }
.ticket-list { display: flex; flex-direction: column; gap: 15px; max-height: 500px; overflow-y: auto; }
.ticket-card { background: rgba(5, 5, 7, 0.8); border: 1px solid #333; padding: 15px; border-radius: 8px; text-align: left; }

/* === КРАСИВЫЙ СКРОЛЛБАР === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(5, 5, 7, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #7B68EE; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6A5ACD; }

/* === СТИЛИ ДЛЯ ЧАТА ТИКЕТОВ === */
.chat-msg { padding: 10px 15px; border-radius: 8px; max-width: 85%; line-height: 1.4; font-size: 14px; position: relative; margin-bottom: 10px; word-break: break-word; overflow-wrap: break-word; white-space: pre-wrap; }
.chat-msg.admin { background: rgba(123, 104, 238, 0.2); border: 1px solid #7B68EE; align-self: flex-start; }
.chat-msg.user { background: rgba(68, 255, 136, 0.1); border: 1px solid rgba(68, 255, 136, 0.3); align-self: flex-end; }
.chat-sender { font-size: 11px; color: #aaa; margin-bottom: 5px; font-weight: bold; }

.ticket-group-title { margin-top: 20px; margin-bottom: 10px; color: #888; border-bottom: 1px solid #333; padding-bottom: 5px; }

/* === ФИЛЬТРЫ ТИКЕТОВ В АДМИНКЕ === */
.filters-container { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.ticket-filter-btn {
    background: rgba(5, 5, 7, 0.8);
    border: 1px solid #333;
    color: #aaa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.ticket-filter-btn:hover { background: rgba(123, 104, 238, 0.2); border-color: #7B68EE; color: white; }
.ticket-filter-btn.active { background: #7B68EE; border-color: #7B68EE; color: white; box-shadow: 0 0 10px rgba(123, 104, 238, 0.4); }

/* Убираем белое свечение и фон при вводе текста */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #050507 inset !important; /* Цвет фона твоего поля */
    -webkit-text-fill-color: white !important; /* Цвет текста */
    transition: background-color 5000s ease-in-out 0s;
}

/* Принудительно держим темный фон даже при фокусе */
input:focus {
    background: rgba(5, 5, 7, 0.9) !important;
    color: white !important;
}

/* ВЕРТИКАЛЬНЫЕ КАРТОЧКИ ПОДПИСКИ */
.sub-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 50px;
}

.sub-card {
    background: rgba(5, 5, 7, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 20px;
    width: 250px; /* Фиксированная ширина */
    min-height: 400px; /* Жесткая высота = вертикальный прямоугольник */
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s ease; /* Плавная анимация */
    position: relative;
    backdrop-filter: blur(10px);
}

/* Анимация при наведении */
.sub-card:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: #7B68EE;
    box-shadow: 0 15px 35px rgba(123, 104, 238, 0.2);
    z-index: 10;
}

/* Выделение для тарифа ХИТ */
.sub-card.hit {
    border-color: #7B68EE;
    background: linear-gradient(180deg, rgba(123, 104, 238, 0.15) 0%, rgba(5, 5, 7, 0.9) 100%);
    transform: scale(1.05); /* Он изначально чуть больше */
}

.sub-card.hit:hover {
    transform: scale(1.1) translateY(-10px);
    z-index: 10;
}