:root { 
    --bg: #040407; 
    --card: rgba(18, 18, 24, 0.65); 
    --card-hover: rgba(26, 26, 36, 0.85);
    --border: rgba(255, 255, 255, 0.05); 
    --text: #e4e4e7; 
    --muted: #71717a; 
    --green: #10b981; 
    --yellow: #f59e0b; 
    --red: #ef4444; 
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
}

* { box-sizing: border-box; }

body { 
    background-color: var(--bg); 
    background-image: 
        radial-gradient(circle at 10% 30%, rgba(99, 102, 241, 0.06), transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(16, 185, 129, 0.04), transparent 40%);
    color: var(--text); 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    padding: 0; 
    line-height: 1.6; 
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Элегантный скроллбар */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

.container { 
    max-width: 1050px; 
    margin: 0 auto; 
    padding: 60px 24px; 
    position: relative;
    z-index: 10;
}

.header { 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 30px; margin-bottom: 35px; 
}

.brand-text {
    font-weight: 300; letter-spacing: 2px; 
    background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tg-btn { 
    background: rgba(99, 102, 241, 0.08); color: #fff; text-decoration: none; 
    padding: 12px 26px; border: 1px solid rgba(99, 102, 241, 0.25); 
    border-radius: 10px; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-weight: 500; font-size: 0.9em; letter-spacing: 0.5px;
}
.tg-btn:hover { 
    background: var(--accent); border-color: var(--accent); 
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4); transform: translateY(-2px);
}

.site-desc {
    text-align: center; color: var(--muted); font-size: 1em;
    margin: 0 auto 45px auto; max-width: 750px; font-weight: 400;
}
.cat-face { color: rgba(255,255,255,0.25); font-family: 'Fira Code', monospace; font-size: 0.9em; margin-left: 5px;}

.group-title {
    font-size: 1.4em; font-weight: 600; letter-spacing: 0.5px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
    color: #f4f4f5; margin-bottom: 20px;
}

.grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); 
    gap: 28px; 
}

/* Стеклянные карточки с аппаратным ускорением */
.card { 
    background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 18px; padding: 28px; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    position: relative; display: flex; flex-direction: column;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
}
.card:hover { 
    transform: translateY(-4px); border-color: rgba(255,255,255,0.15); 
    background: var(--card-hover); box-shadow: 0 16px 40px rgba(0,0,0,0.5); 
}

/* Красивое исчезновение для пасхалки */
.card.fade-hidden {
    opacity: 0 !important;
    transform: scale(0.93) translateY(10px) !important;
    filter: blur(8px);
    pointer-events: none;
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card h3 { margin: 0; font-size: 1.2em; font-weight: 600; color: #fff; }

.proto-switcher { 
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    color: #fff; padding: 6px 14px; border-radius: 8px; font-size: 0.85em; 
    outline: none; cursor: pointer; font-family: inherit; font-weight: 500;
    transition: border 0.3s;
}
.proto-switcher option { background: #0c0c0e; color: #fff; }
.proto-switcher:hover { border-color: rgba(255,255,255,0.25); }

.proto-badge { 
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 12px; border-radius: 8px; font-size: 0.75em; 
    color: #a1a1aa; font-weight: 600; font-family: 'Fira Code', monospace;
}

/* Премиальные пульсирующие статусы */
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@keyframes pulse-yellow { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.st-green { background: var(--green); animation: pulse-green 2s infinite; }
.st-yellow { background: var(--yellow); animation: pulse-yellow 2s infinite; }
.st-red { background: var(--red); animation: pulse-red 2s infinite; }

.ip-address {
    color: #a1a1aa; font-family: 'Fira Code', monospace; 
    font-size: 0.9em; margin-bottom: 20px; 
    background: rgba(0,0,0,0.25); padding: 10px 14px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.02);
    word-break: break-all; text-align: center;
}

/* Интерактивные кнопки */
.action-btn { 
    display: block; width: 100%; text-align: center; background: rgba(255,255,255,0.02); 
    color: #fff; border: 1px dashed rgba(255,255,255,0.15); 
    padding: 12px; border-radius: 10px; cursor: pointer; 
    text-decoration: none; margin-top: 12px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    font-family: inherit; font-size: 0.9em; font-weight: 500;
}
.action-btn:hover { 
    border-style: solid; border-color: rgba(255,255,255,0.3); 
    background: rgba(255,255,255,0.05); transform: translateY(-1px);
}

.btn-files { border-color: rgba(16, 185, 129, 0.3); color: var(--green); }
.btn-files:hover { background: rgba(16, 185, 129, 0.06); border-color: var(--green); }

.btn-images { border-color: rgba(245, 158, 11, 0.3); color: var(--yellow); }
.btn-images:hover { background: rgba(245, 158, 11, 0.06); border-color: var(--yellow); }

.btn-success-active {
    border-color: var(--green) !important; border-style: solid !important;
    color: var(--green) !important; background: rgba(16, 185, 129, 0.1) !important;
}

.file-list { 
    display: none; margin-top: 12px; background: rgba(0,0,0,0.3); 
    padding: 8px; border-radius: 10px; border: 1px solid var(--border); 
    opacity: 0; transform: translateY(-5px); transition: all 0.3s ease;
}
.file-list.show { opacity: 1; transform: translateY(0); }

.file-item { 
    display: block; padding: 10px 14px; margin-bottom: 6px; 
    background: rgba(255,255,255,0.02); color: var(--text); text-decoration: none; 
    border-radius: 6px; transition: 0.2s; font-size: 0.85em;
}
.file-item:last-child { margin-bottom: 0; }
.file-item:hover { background: rgba(255,255,255,0.06); color: #fff; }

.vote-section { 
    margin-top: auto; padding-top: 20px; text-align: center; 
    border-top: 1px solid var(--border); 
}
.vote-title { font-size: 0.8em; color: var(--muted); display: block; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.vote-btns { display: flex; justify-content: center; gap: 16px; }
.v-btn { 
    background: rgba(255,255,255,0.02); border: 1px solid var(--border); 
    border-radius: 50%; width: 42px; height: 42px; 
    cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; align-items: center; justify-content: center; font-size: 1.1em;
    filter: grayscale(90%);
}
.v-btn:hover { filter: grayscale(0%); transform: translateY(-4px) scale(1.12); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15);}
.v-btn:active { transform: scale(0.92); }

.vote-success-msg {
    color: var(--green); font-size: 0.9em; font-weight: 500;
    animation: fadeIn 0.4s ease forwards;
}

.news-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px; padding: 28px; margin-bottom: 45px;
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.1);
    display: flex; flex-direction: column; gap: 16px;
}

.news-tag {
    display: inline-block; background: var(--accent); color: #fff;
    padding: 5px 14px; border-radius: 6px; font-size: 0.75em;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    align-self: flex-start; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.news-footer {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; margin-top: 5px;
    font-size: 0.85em; color: var(--muted);
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px;
}
.timer-highlight { color: var(--green); font-family: 'Fira Code', monospace; font-weight: 600; }

/* Бегущие фоновые имена */
.background-names { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-name {
    position: absolute; color: var(--accent); font-family: 'Fira Code', monospace;
    font-size: calc(1.4em * var(--size-mod)); white-space: nowrap; font-weight: bold; opacity: 0;
    top: var(--pos); left: -20%; filter: blur(calc(1px * var(--size-mod)));
    animation: floatName 28s linear infinite; animation-delay: var(--delay);
}
@keyframes floatName {
    0% { transform: translate(0, 0) rotate(-12deg); opacity: 0; }
    8% { opacity: 0.12; }
    90% { opacity: 0.12; }
    100% { transform: translate(125vw, -35vh) rotate(5deg); opacity: 0; }
}

/* Плавающая кнопка доната */
.floating-buttons { position: fixed; bottom: 25px; right: 25px; display: flex; z-index: 999; }
.float-btn {
    background: rgba(16, 185, 129, 0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.3); color: var(--green);
    padding: 14px 24px; border-radius: 50px; cursor: pointer;
    font-family: inherit; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; align-items: center; gap: 10px; font-size: 0.9em; letter-spacing: 0.5px;
}
.float-btn:hover {
    background: var(--green); color: #000;
    transform: translateY(-4px); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}
.heart-pulse { display: inline-block; animation: heartBeat 1.4s infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ЛЮКСОВАЯ СЕКЦИЯ ДОНАТЕРОВ */
.donators-section {
    margin-top: 70px; margin-bottom: 20px; padding: 35px;
    background: var(--card); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.donators-header { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 30px; }
.donators-header h2 { margin: 0; font-size: 1.4em; color: var(--accent); text-align: center; font-weight: 600; letter-spacing: 0.5px;}
.donators-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }

.donator-item {
    position: relative; display: flex; align-items: center; gap: 16px; padding: 16px;
    background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px; transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden; z-index: 1;
}
.donator-item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.03); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }

.rank-badge { position: absolute; bottom: -12px; right: -5px; font-weight: 800; font-size: 3.8em; opacity: 0.03; z-index: 0; line-height: 1; user-select: none; }
.avatar-wrapper { position: relative; padding: 2px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.donator-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #0e0e12; position: relative; z-index: 2; }
.default-avatar { background: #27272a; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #fff; font-size: 1.1em; border: 1px solid rgba(255,255,255,0.05); }
.donator-info { display: flex; flex-direction: column; position: relative; z-index: 1; }
.donator-name { font-weight: 500; color: #fff; font-size: 1.05em; }
.donator-amount { font-size: 0.9em; color: var(--green); font-family: 'Fira Code', monospace; margin-top: 2px; }

/* Топ-1: Космическое золотое неоновое свечение */
.top-1 {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(251, 146, 60, 0.02));
}
.top-1::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 14px; padding: 1px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0.4; transition: opacity 0.3s;
}
.top-1:hover::after { opacity: 0.8; }
.top-1 .avatar-wrapper { background: linear-gradient(135deg, #fbbf24, #d97706); padding: 2px; box-shadow: 0 0 15px rgba(245,158,11,0.3); }
.top-1 .donator-name {
    background: linear-gradient(90deg, #ffe4e6, #fcd34d); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.top-1 .rank-badge { color: #f59e0b; opacity: 0.07; }

/* Топ-2: Серебро */
.top-2 { border-color: rgba(148, 163, 184, 0.2); }
.top-2 .avatar-wrapper { background: linear-gradient(135deg, #f1f5f9, #64748b); padding: 1.5px; }
/* Топ-3: Бронза */
.top-3 { border-color: rgba(180, 83, 9, 0.2); }
.top-3 .avatar-wrapper { background: linear-gradient(135deg, #fcd34d, #92400e); padding: 1.5px; }

/* Модальные окна */
#donate-modal, #image-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 2, 3, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    z-index: 2000; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease;
}
#donate-modal.show, #image-modal.show { opacity: 1; }

.donate-content {
    background: #0b0b0e; border: 1px solid rgba(255,255,255,0.08); border-radius: 24px;
    padding: 40px 30px; text-align: center; max-width: 360px; width: 90%; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
#donate-modal.show .donate-content { transform: scale(1); }

.donate-qr { width: 210px; height: 210px; background: #fff; margin: 25px auto; border-radius: 14px; padding: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.5); }
.donate-qr img { width: 100%; height: 100%; object-fit: contain; }

.close-modal-btn, .close-modal {
    position: absolute; font-size: 24px; color: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.03);
}
.close-modal-btn { top: 20px; right: 20px; }
.close-modal { top: 35px; right: 45px; font-size: 32px; width: 50px; height: 50px; }
.close-modal-btn:hover, .close-modal:hover { color: #fff; background: rgba(255,255,255,0.1); transform: rotate(90deg); }

#slider-img { max-width: 90%; max-height: 82vh; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08); }

.header-icon { width: 44px; height: 44px; object-fit: contain; cursor: pointer; position: relative; z-index: 10001; transition: transform 0.1s; }
.header-icon:active { transform: scale(0.88); }

.footer { margin-top: 60px; padding: 30px 0; border-top: 1px solid var(--border); text-align: center; font-size: 0.9em; }
.footer a { color: var(--muted); text-decoration: none; transition: 0.3s; padding: 8px 18px; border-radius: 8px; }
.footer a:hover { color: #fff; background: rgba(255,255,255,0.04); }

/* ЭФФЕКТЫ ХАКИНГА И ПАСХАЛОК */
.hacker-mode .card, .hacker-mode .donators-section {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important; border-color: var(--green) !important; animation: glitch-anim 0.25s infinite;
}
.hacker-mode body { color: var(--green) !important; }
.phase-shake body { animation: shake-screen 0.15s infinite; }
.phase-spin .container { animation: spin-container 2.5s infinite linear; }

.cyber-mode { animation: rainbow-bg 4s linear infinite; }
.cyber-mode .card, .cyber-mode .donators-section {
    background: rgba(4, 4, 6, 0.9) !important; border-color: var(--accent) !important;
    box-shadow: 0 0 35px var(--accent), inset 0 0 15px rgba(99, 102, 241, 0.3) !important;
}
.cyber-mode h1, .cyber-mode h2, .cyber-mode h3, .cyber-mode .ip-address {
    color: #0ffff0 !important; text-shadow: 0 0 12px #0ffff0; -webkit-text-fill-color: #0ffff0 !important;
}

.overload-text {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: clamp(1.8rem, 8vw, 4.5rem); color: #ef4444; font-weight: 700;
    text-shadow: 0 0 20px #ef4444, 0 0 40px #7f1d1d; 
    z-index: 10002; pointer-events: none; opacity: 0;
    animation: flash-text 0.4s infinite alternate; font-family: 'Fira Code', monospace;
    text-align: center; width: 100%; transition: opacity 0.5s ease;
}

/* СТИЛИ ДЛЯ REBOOT ОВЕРЛЕЯ */
.reboot-overlay {
    position: fixed; top:0; left:0; width:100vw; height:100vh;
    background: #030305; z-index: 999999; display: flex;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.reboot-overlay.active { opacity: 1; pointer-events: auto; }
.reboot-box { text-align: center; }
.reboot-spinner {
    width: 50px; height: 50px; border: 3px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--accent); border-radius: 50%;
    margin: 0 auto 20px auto; animation: spin-container 1s linear infinite;
}
.reboot-text {
    font-family: 'Fira Code', monospace; color: var(--accent);
    font-size: 1.2em; font-weight: 600; letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    25% { transform: translate(-1px, 1px) }
    50% { transform: translate(-1px, -1px) }
    75% { transform: translate(1px, 1px) }
    100% { transform: translate(0) }
}
@keyframes shake-screen {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2px, 1px) rotate(-0.5deg); }
    50% { transform: translate(1px, -1px) rotate(0.5deg); }
    75% { transform: translate(-1px, -2px) rotate(0deg); }
}
@keyframes flash-text { 0% { transform: translate(-50%, -50%) scale(0.95); } 100% { transform: translate(-50%, -50%) scale(1.05); } }
@keyframes spin-container { 100% { transform: rotate(360deg); } }
@keyframes rainbow-bg { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
    .container { padding-top: 35px; } 
    .header { flex-direction: column; gap: 20px; text-align: center; }
    .card-header { flex-direction: column; gap: 14px; align-items: flex-start; }
    .proto-switcher { width: 100%; }
}

[class*="compare"], [id*="compare"], .comparison-bar { display: none !important; }