* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-black: #050505;
    --color-dark-glass: rgba(15, 15, 15, 0.7);
    --color-orange: #ff6b00;
    --color-orange-light: #ff9e42;
    --color-white: #ffffff;
}

body { font-family: 'Montserrat', sans-serif; background-color: var(--color-black); color: var(--color-white); overflow-x: hidden; height: 100vh; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--color-orange); border-radius: 4px; }

/* ФОН */
.background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ambient-light { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%); filter: blur(60px); }
.grid-static { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; }
.grid-active { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255, 107, 0, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 107, 0, 0.4) 1px, transparent 1px); background-size: 50px 50px; -webkit-mask-image: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%); mask-image: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%); }

/* ШАПКА */
header { position: fixed; top: 0; left: 0; width: 100%; padding: 15px 40px; background-color: rgba(5, 5, 5, 0.8); backdrop-filter: blur(10px); display: flex; justify-content: space-between; align-items: center; z-index: 100; border-bottom: 1px solid rgba(255, 107, 0, 0.1); }
.header-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 1px; cursor: default; }
.nav-btn { background: transparent; border: none; color: var(--color-white); font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; text-transform: uppercase; transition: color 0.3s; }
.nav-btn:hover { color: var(--color-orange); }

/* ОСНОВА ПАНЕЛИ */
.profile-container { max-width: 1200px; margin: 100px auto 50px auto; padding: 0 20px; position: relative; z-index: 3; }
.profile-nav { display: flex; gap: 20px; margin-bottom: 40px; border-bottom: 1px solid rgba(255, 107, 0, 0.2); padding-bottom: 15px; overflow-x: auto; }
.profile-tab { background: transparent; color: #ccc; border: none; font-size: 1.1rem; font-weight: 700; font-family: 'Montserrat', sans-serif; text-transform: uppercase; cursor: pointer; transition: color 0.3s; }
.profile-tab:hover, .profile-tab.active { color: var(--color-orange); }
.section-view { display: none; animation: fadeIn 0.5s forwards; }
.section-view.active { display: block; }

/* ЭЛЕМЕНТЫ */
.text-gradient { background: linear-gradient(135deg, var(--color-orange), var(--color-orange-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0px 0px 30px rgba(255, 107, 0, 0.3); }
.category-title { font-size: 2rem; font-weight: 900; color: var(--color-white); margin-bottom: 25px; text-transform: uppercase; display: flex; align-items: center; gap: 20px; }
.category-title::after { content: ''; display: block; height: 2px; background: linear-gradient(90deg, var(--color-orange), transparent); flex-grow: 1; opacity: 0.5; }

.input-glass { width: 100%; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 107, 0, 0.3); color: white; padding: 12px 15px; border-radius: 8px; margin-bottom: 15px; font-family: 'Montserrat', sans-serif; outline: none; transition: 0.3s; }
.input-glass:focus { border-color: var(--color-orange); box-shadow: 0 0 15px rgba(255,107,0,0.2); }

.btn-glow { display: inline-block; padding: 10px 20px; border: 1px solid var(--color-orange); color: var(--color-orange); background: transparent; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; text-align: center; }
.btn-glow:hover { background: var(--color-orange); color: #000; box-shadow: 0 0 15px rgba(255, 107, 0, 0.4); transform: translateY(-2px); }

/* МОДАЛЬНЫЕ ОКНА И КАРТОЧКИ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 1000; display: flex; justify-content: center; align-items: center; }
.info-card { background: var(--color-dark-glass); border: 1px solid rgba(255, 107, 0, 0.2); border-radius: 12px; padding: 25px; backdrop-filter: blur(10px); transition: 0.3s; }
.modal-content { width: 95%; max-width: 500px; animation: slideDown 0.3s forwards; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { color: var(--color-orange); text-transform: uppercase; }
.close-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: red; }

.auth-switch { margin-top: 15px; cursor: pointer; color: #aaa; font-size: 0.9rem; transition: 0.3s; }
.auth-switch:hover { color: var(--color-orange); }

/* КАРТОЧКИ */
.blocks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.key-card { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.key-card:hover { transform: translateY(-5px); border-color: var(--color-orange); box-shadow: 0 10px 20px rgba(255,107,0,0.1); }
.key-card h3 { color: var(--color-orange); margin-bottom: 10px; }
.key-card p { color: #ccc; font-size: 0.9rem; margin-bottom: 5px; }

/* КАРТОЧКИ ГЛАВНОГО МЕНЮ */
.home-category-card { background: rgba(255,255,255,0.02); padding: 20px; border-radius: 12px; border-left: 3px solid var(--color-orange); margin-bottom: 30px; }
.home-category-card h2 { color: white; margin-bottom: 15px; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.home-items-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.home-item { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,107,0,0.2); padding: 15px; border-radius: 8px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 15px; }
.home-item:hover { border-color: var(--color-orange); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,107,0,0.1); background: rgba(255,107,0,0.05); }
.home-item-icon { font-size: 2rem; }
.home-item-info h4 { color: var(--color-orange); margin-bottom: 5px; }
.home-item-info p { color: #aaa; font-size: 0.85rem; }

/* MC SERVER CARD (Для Play Together) */
.mc-server-card { display: flex; align-items: center; gap: 15px; background: #111; padding: 15px; border-radius: 8px; border: 2px solid #333; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); margin-bottom: 20px;}
.mc-server-card img { width: 64px; height: 64px; image-rendering: pixelated; border: 1px solid #555; }
.mc-server-info { display: flex; flex-direction: column; gap: 5px; flex-grow: 1;}
.mc-server-name { color: #fff; font-weight: bold; font-size: 1.1rem; }
.mc-server-motd { color: #aaa; font-family: monospace; }
.mc-players-box { background: rgba(0,0,0,0.3); border: 1px solid #333; border-radius: 8px; padding: 10px; max-height: 200px; overflow-y: auto; margin-bottom: 20px;}
.mc-player-item { padding: 8px 10px; border-bottom: 1px solid #222; display: flex; align-items: center; gap: 10px; font-weight: 600; }

.icon-badge { padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; border: 1px solid; margin-right: 5px; display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-weight: bold;}
.icon-badge.yes { color: #4CAF50; border-color: #4CAF50; background: rgba(76, 175, 80, 0.1); }
.icon-badge.no { color: #f44336; border-color: #f44336; background: rgba(244, 67, 54, 0.1); }

/* ПАНЕЛЬ ФИЛЬТРОВ И КАТЕГОРИИ */
.filters-panel { background: rgba(10, 10, 10, 0.95); border: 1px solid rgba(255, 107, 0, 0.3); border-radius: 12px; padding: 20px; margin-bottom: 30px; display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.filters-panel.show { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; animation: fadeIn 0.3s; }
.filter-group h4 { color: var(--color-orange); margin-bottom: 10px; text-transform: uppercase; font-size: 0.9rem; }
.filter-label { display: flex; align-items: center; gap: 8px; color: #ccc; margin-bottom: 8px; cursor: pointer; font-size: 0.9rem; }

.category-block { margin-bottom: 50px; background: rgba(255,255,255,0.02); padding: 25px; border-radius: 12px; border-left: 3px solid var(--color-orange); }
.category-header { font-size: 1.8rem; font-weight: 900; margin-bottom: 5px; text-transform: uppercase; color: white; display: flex; align-items: center; gap: 15px;}
.category-desc { color: #aaa; font-size: 0.9rem; margin-bottom: 20px; }

/* КНОПКА КОПИРОВАНИЯ */
.copy-btn { background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 5px; border-radius: 4px;}
.copy-btn img { width: 20px; height: 20px; transition: transform 0.2s, filter 0.2s; }
.copy-btn:hover img { transform: scale(1.15); filter: drop-shadow(0 0 5px var(--color-orange)); }

/* TOAST */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none;}
.toast { background: var(--color-dark-glass); border-left: 4px solid #4CAF50; color: white; padding: 15px 20px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.8); backdrop-filter: blur(10px); animation: slideInRight 0.3s forwards, fadeOut 0.5s forwards 3s; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem;}
.toast.error { border-left-color: #ff4444; }

/* SLIDER */
.slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: #333; outline: none; margin: 15px 0; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--color-orange); cursor: pointer; box-shadow: 0 0 10px var(--color-orange); }

/* STATS GRID */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stat-box { background: rgba(0,0,0,0.4); padding: 15px; border-radius: 8px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.stat-box span { display: block; font-size: 0.8rem; color: #aaa; margin-bottom: 5px; text-transform: uppercase; }
.stat-box strong { font-size: 1.5rem; color: var(--color-orange); }

/* ПРОЧЕЕ */
.tg-bind-area { background: rgba(244, 67, 54, 0.1); border: 1px solid rgba(244, 67, 54, 0.3); padding: 15px; border-radius: 8px; margin-top: 15px; display: none; }
.tg-bind-area p { color: #ffaaaa; font-size: 0.85rem; margin-bottom: 10px; }

.chat-box { height: 400px; background: var(--color-dark-glass); border: 1px solid rgba(255, 107, 0, 0.15); border-radius: 12px; padding: 20px; overflow-y: auto; margin-bottom: 20px; }
.chat-msg { margin-bottom: 15px; line-height: 1.5; color: #ccc; font-size: 0.95rem; }
.chat-msg.user { color: var(--color-orange-light); text-align: right; }
.chat-img { max-width: 100%; max-height: 400px; border-radius: 8px; margin-top: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }