html {
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar { width: 0 !important; background: transparent; }

:root {
	--bg-color: #121212;
	--text-color: #f0f0f0;
	--primary-color: #ffffff;
	--secondary-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Montserrat, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #f0f0f0;
}

header {
    background: #252525;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
    font-size: 1.2em;
    font-weight: 600;
}

nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

nav a:hover {
    color: #68864f;
}

.admin-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.admin-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #333;
    border-radius: 8px;
}

.admin-section h2 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 8px;
    background: #404040;
    border: none;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 0.9em;
}

.form-group label {
    font-size: 0.85em;
    margin-bottom: 4px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.submit-btn {
    background: #68864f;
    color: white;
}

.submit-btn:hover {
    background: #55703f;
}

.delete-btn {
    background: #ff4444;
    color: white;
}

.delete-btn:hover {
    background: #cc3333;
}

.list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.item, .promo, .log-entry {
    padding: 8px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.item span, .promo span, .log-entry span {
    max-width: 70%;
    word-break: break-word;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-box {
    background: #404040;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #555;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: #68864f;
    transition: width 1s ease-in-out;
}

@keyframes fill {
    from { width: 0%; }
    to { width: var(--progress); }
}

.progress-fill.animate {
    animation: fill 1s ease-in-out forwards;
}


.server-stat-container {
	background-color: rgba(0, 0, 0, 0.2);
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
	max-width: 1000px;
	margin: 15px auto;
}

.server-stat-container h1 {
	text-align: center;
	font-size: 2.5rem;
	color: var(--primary-color);
}

.server-stat-container .stat {
	background-color: rgba(0, 0, 0, 0.3);
	padding: 15px;
	border-radius: 10px;
	margin: 10px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.server-stat-container .stat h3 {
	color: var(--primary-color);
	font-size: 1.2rem;
}

.copy-button {
	background-color: var(--secondary-color);
	color: var(--bg-color);
	padding: 8px 16px;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	transition: transform 0.3s;
}

.copy-button:hover {
	background-color: var(--primary-color);
	transform: scale(1.1);
}

footer {
	text-align: center;
	background-color: rgba(0, 0, 0, 0.3);
	color: var(--text-color);
	padding: 15px;
	margin-top: auto;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
	header {
		flex-direction: row;
		justify-content: space-around;
		padding: 0px;
	}

	/* Скрываем меню по умолчанию на мобильных */
	nav {
		display: none;
		text-align: center;
		width: 100%;
		margin-top: 10px;
	}

	/* Когда меню активно, оно отображается */
	nav.active {
		display: block;
		position: fixed;
		top: 33px; /* Немного отступаем от верхней части */
		left: 0;
		width: 100%;
		background-color: var(--bg-color);
		border-top: 2px solid #444;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
		transition: top 0.3s ease;
	}

	/* Бургер-меню */
	.menu-toggle {
		font-size: 2rem;
		color: var(--text-color);
		cursor: pointer;
		display: block; /* Показываем бургер-меню только на мобильных */
	}

	/* Стиль для ссылок в меню на мобильных */
	nav a {
		display: block;
		margin: 15px 0;
		padding: 10px;
		background-color: transparent;
		color: var(--text-color);
		border-radius: 5px;
		transition: color 0.3s, transform 0.3s;
	}

	/* Убираем фон при наведении */
	nav a:hover {
		color: var(--primary-color);
		background-color: transparent;
	}
}

/* Состояние онлайн */
.online {
	color: green;
}

/* Состояние оффлайн */
.offline {
	color: red;
}

/* Дружелюбный огонь включен */
.friendly-fire-on {
	color: green;
}

/* Дружелюбный огонь выключен */
.friendly-fire-off {
	color: red;
}

/* Стиль для товаров "НАВСЕГДА" с красной рубиновой обводкой */
.shop-item.forever-item {
    position: relative;
    border: 3px solid #ff0000 !important;
    background: #333 !important;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6),
                0 0 40px rgba(255, 0, 0, 0.4),
                0 0 60px rgba(255, 0, 0, 0.2),
                inset 0 0 20px rgba(255, 0, 0, 0.15) !important;
    animation: foreverGlow 2s ease-in-out infinite;
}

@keyframes foreverGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.6),
                    0 0 40px rgba(255, 0, 0, 0.4),
                    0 0 60px rgba(255, 0, 0, 0.2),
                    inset 0 0 20px rgba(255, 0, 0, 0.15);
        border-color: #ff0000;
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.8),
                    0 0 60px rgba(255, 0, 0, 0.6),
                    0 0 90px rgba(255, 0, 0, 0.4),
                    inset 0 0 30px rgba(255, 0, 0, 0.25);
        border-color: #ff3333;
    }
}

.shop-item.forever-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #ff0000, #8b0000, #ff4444, #cc0000);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.7;
    filter: blur(15px);
    animation: foreverBlur 2s ease-in-out infinite;
}

@keyframes foreverBlur {
    0%, 100% {
        opacity: 0.7;
        filter: blur(15px);
    }
    50% {
        opacity: 0.9;
        filter: blur(20px);
    }
}

/* Красный рубиновый текст для заголовка */
.item-title.ruby {
    background: linear-gradient(135deg, #ff0000, #ff6666, #cc0000, #ff3333) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.7));
    animation: rubyShine 3s ease-in-out infinite;
}

@keyframes rubyShine {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.7)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.9)) brightness(1.3);
    }
}

/* Увеличенный размер цены для товаров "НАВСЕГДА" */
.price.forever-price {
    font-size: 1.8em !important;
    font-weight: bold !important;
    color: #ff3333 !important;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6),
                 0 0 20px rgba(255, 0, 0, 0.4);
    animation: priceGlow 2s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.6),
                     0 0 20px rgba(255, 0, 0, 0.4);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 0, 0, 0.8),
                     0 0 30px rgba(255, 0, 0, 0.6),
                     0 0 45px rgba(255, 0, 0, 0.4);
    }
}

.price.forever-price .price-new,
.price.forever-price .price-old {
    font-size: 1.1em;
}

/* Кнопка для товаров "НАВСЕГДА" с красным свечением */
.buy-button.forever-button {
    background: linear-gradient(135deg, #ff0000, #cc0000) !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5),
                0 0 30px rgba(255, 0, 0, 0.3) !important;
    animation: buttonGlow 2s ease-in-out infinite;
}

.buy-button.forever-button:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000) !important;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.7),
                0 0 50px rgba(255, 0, 0, 0.5) !important;
    transform: scale(1.05);
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5),
                    0 0 30px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.7),
                    0 0 50px rgba(255, 0, 0, 0.5);
    }
}

/* КРИТИЧЕСКИЙ СТИЛЬ - для гарантированной обводки */
div.shop-item.forever-item {
    border: 4px solid #ff0000 !important;
    outline: 2px solid rgba(255, 0, 0, 0.5) !important;
    outline-offset: 2px !important;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 8px;
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #FFD700;
    background: none;
    border: none;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { display: none; flex-direction: column; gap: 10px; }
    nav.active { display: flex; }
}

.flash-success { background: #2d5a27; color: #fff; padding: 10px 16px; border-radius: 6px; margin: 10px 0; }
.flash-error   { background: #5a2727; color: #fff; padding: 10px 16px; border-radius: 6px; margin: 10px 0; }

/* ── Burger menu (shared across all pages) ───────────────────────────────── */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}
.burger-menu div {
    width: 25px;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
    transition: 0.3s ease;
}
@media (max-width: 768px) {
    .burger-menu { display: flex; }
    nav { display: none; position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
          background: #252525; padding: 80px 20px 20px; flex-direction: column;
          gap: 10px; transition: 0.3s ease; z-index: 999; }
    nav.active { display: flex; right: 0; }
    .burger-menu.active div:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
    .burger-menu.active div:nth-child(2) { opacity: 0; }
    .burger-menu.active div:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }
}

/* Background particles disabled globally. */
.particle,
#snowfall,
canvas#snowfall {
    display: none !important;
    animation: none !important;
}
