/* 1. БАЗОВЫЕ НАСТРОЙКИ (Общие для всех страниц) */
* {
    box-sizing: border-box; /* Чтобы блоки не распирало от падингов */
}

body {
    background: radial-gradient(circle at top, #002b2b 0%, #050505 100%);
    min-height: 100vh;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует ВСЁ по горизонтали */
}

/* ШАПКА (Header) */
.main-header {
    margin-top: 40px;
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgb(255, 0, 242);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.2);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 15px #32CD32;
}

nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 25px;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: #32CD32;
    text-shadow: 0 0 10px #32CD32;
}

/* 2. СТИЛИ ГЛАВНОЙ СТРАНИЦЫ (Hero Section) */
.hero-section {
    margin-top: 100px;
    text-align: center;
}

.hero-title {
    font-size: 60px;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(50, 205, 50, 0.6);
}

.server-ip {
    display: inline-block;
    padding: 15px 30px;
    font-size: 22px;
    background: rgba(50, 205, 205, 0.05);
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.4);
    border-radius: 10px;
    margin: 30px 0;
}

.btn-primary {
    display: inline-block;
    background: #32CD32;
    color: #000;
    padding: 15px 45px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 15px;
    transition: 0.3s;
}

/* 3. СТИЛИ СТРАНИЦЫ ДОНАТА */
.donate-container {
    width: 100%;
    max-width: 1100px; /* Ширина как на макете FunTime */
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.flex-container {
    display: flex;
    gap: 30px;
    width: 100%; /* Теперь на 100%, чтобы блоки были широкие */
    align-items: stretch;
}

.neon-border {
    background: rgba(155, 252, 0, 0.041);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8), 0 0 15px rgba(50, 205, 50, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-block, .info-block {
    flex: 1;
    padding: 40px; /* Много места внутри, чтобы ничего не вылезало */
    display: flex;
    flex-direction: column;
}

/* Карточки товаров внутри доната */
.product-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 25px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: 0.3s;
}

.product-item:hover, .product-item.active {
    background: rgba(50, 205, 50, 0.1);
    transform: translateX(10px);
    box-shadow: -5px 0 0 #32CD32;
}

/* Поле ввода ника и кнопка купить */
.nick-input {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #32CD32;
    color: #fff;
    border-radius: 5px;
    margin-top: 20px;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 18px;
    background: #32CD32;
    color: #000;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-buy:hover {
    box-shadow: 0 0 20px #32CD32;
}

/* Контейнер для кнопок */
.terms {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* Сами кнопки выбора срока */
.term-btn {
    background: rgba(255, 255, 255, 0.05); /* Почти прозрачный фон */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая грань */
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Эффект при наведении */
.term-btn:hover {
    background: rgba(50, 205, 50, 0.1);
    border-color: rgba(50, 205, 50, 0.5);
}

/* Активная (выбранная) кнопка */
.term-btn.active {
    background: #32CD32; /* Яркий салатовый */
    color: #000;         /* Черный текст для контраста */
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.6); /* Мощный неон */
    border-color: #32CD32;
}
.old-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8em;
    margin-right: 10px;
}

.lime-text {
    color: #32CD32;
    text-shadow: 0 0 10px rgba(50, 205, 50, 0.4);
    font-weight: bold;
}

/* Старая цена в левом списке товаров */
.old-price-small {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85em;
    margin-right: 5px;
    font-weight: normal;
}

/* Настройка контейнера цены, чтобы всё влезало */
.product-item .p-price {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Старая цена в левом списке (таблица) */
.old-price-small {
    display: inline-block !important;
    text-decoration: line-through !important; /* ЗАЧЕРКИВАНИЕ */
    text-decoration-color: rgba(255, 255, 255, 0.5) !important; /* Цвет линии */
    color: rgba(255, 255, 255, 0.3) !important; /* Цвет цифр */
    margin-right: 6px;
    font-size: 0.9em;
}

/* Старая цена в правом блоке (итоговая) */
.old-price {
    display: inline-block !important;
    text-decoration: line-through !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-right: 10px;
}
/* Контейнер для ника игрока */
.user-info-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(50, 205, 50, 0.1); /* Прозрачный зеленый фон */
    border: 1px solid rgba(50, 205, 50, 0.4);
    padding: 5px 12px;
    border-radius: 20px;
    margin-left: 20px;
    transition: 0.3s;
}

.user-info-pill:hover {
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.3);
}

/* Голова игрока */
.user-head {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    margin-right: 10px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Сам текст ника */
.user-name {
    color: #32CD32;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(50, 205, 50, 0.5);
}

/* Кнопка выхода (крестик) */
.btn-logout {
    margin-left: 10px;
    color: #ff4d4d !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    opacity: 0.6;
    transition: 0.3s;
}

.btn-logout:hover {
    opacity: 1;
    text-shadow: 0 0 8px #ff4d4d;
}

/* Стиль кнопки войти для симметрии */
.btn-login {
    border: 1px solid #32CD32;
    padding: 6px 18px;
    border-radius: 8px;
    color: #32CD32 !important;
    font-weight: bold;
    margin-left: 15px;
}
/* 1. Прячем меню по умолчанию */
/* Контейнер ника и авы */
/* Скрытое меню (начальное состояние) */
/* Контейнер в шапке */
.user-info-pill {
    position: relative !important;
    z-index: 99999 !important; /* Поднимаем саму кнопку выше доната */
}

/* Выпадающее меню */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 10px !important;
    width: 210px !important;
    background: #0a0f0b !important;
    border: 1px solid #32CD32 !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9) !important;
    
    /* СЛОИ: ставим запредельное число */
    z-index: 1000000 !important; 
    
    /* ПЛАВНОСТЬ */
    display: flex !important;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), visibility 0.3s;
}

/* Показ при наведении */
.user-info-pill:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(10px) !important;
}
/* Опускаем все блоки доната под меню */
.donate-container, 
.neon-border, 
.info-block, 
.product-block {
    position: relative !important;
    z-index: 1 !important; /* Ставим минимальный слой */
}

/* Если в шапке есть блюр, он тоже может мешать */
.main-header {
    z-index: 9999 !important;
}
.online-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 15px;
    border: 1px solid rgba(50, 205, 50, 0.2);
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #32CD32; /* Твой акцентный цвет */
    border-radius: 50%;
    box-shadow: 0 0 10px #32CD32;
    animation: pulse 2s infinite;
}

#player-count {
    color: #32CD32;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* ОБНУЛЯЕМ СТАНДАРТНЫЙ ВИД (фикс синих ссылок) */
.custom-footer, .custom-footer a {
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: 'Inter', sans-serif !important;
}

.custom-footer {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.3) !important; /* Темная подложка */
    margin-top: 100px !important;
    padding-top: 40px !important;
    border-top: 1px solid rgba(50, 205, 50, 0.2) !important;
}

/* ВЫСТРАИВАЕМ В РЯД */
.footer-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    text-align: left !important;
}

.footer-section {
    flex: 1 !important;
}

.footer-section h4 {
    color: #32CD32 !important; /* Зеленые заголовки */
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
}

.footer-section ul {
    list-style: none !important;
    padding: 0 !important;
}

.footer-section ul li {
    margin-bottom: 8px !important;
}

/* ПЛАШКА ВНИЗУ */
.footer-bottom {
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 20px 0 !important;
    width: 100% !important;
    font-size: 12px !important;
}

.bottom-wrap {
    display: flex !important;
    justify-content: space-between !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}
.rules-box {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(50, 205, 50, 0.1);
    border-radius: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.rules-box h1 {
    color: #fff;
    text-shadow: 0 0 10px #32CD32;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 12px;
    color: #555;
    margin-bottom: 30px;
}

.rules-box h3 {
    color: #32CD32;
    margin-top: 25px;
    font-size: 18px;
}

.rules-box p {
    margin-bottom: 15px;
}
.server-ip {
    position: relative;
    transition: 0.3s;
}

.server-ip:hover {
    transform: scale(1.05);
    background: rgba(50, 205, 50, 0.1);
}

#copy-toast {
    visibility: hidden;
    background-color: #32CD32;
    color: #000;
    text-align: center;
    border-radius: 5px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Над блоком */
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 15px #32CD32;
}

#copy-toast.show {
    visibility: visible;
    animation: fadeInOut 2s;
}

@keyframes fadeInOut {
    0% { opacity: 0; bottom: 100%; }
    20% { opacity: 1; bottom: 125%; }
    80% { opacity: 1; bottom: 125%; }
    100% { opacity: 0; bottom: 150%; }
}