:root {
    --bg-primary: #05070a;
    --card-bg: rgba(10, 14, 23, 0.45);
    --accent: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
    --text-primary: #f3f4f6;
    --text-secondary: #8692a6;
    --border-color: rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(5, 7, 10, 0.6);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* --- ЭФФЕКТЫ ФОНА --- */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 20s infinite alternate ease-in-out;
}

.bg-glow-2 {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(-20%, -20%) scale(1); }
    100% { transform: translate(30%, 20%) scale(1.2); }
}

#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* --- СТИЛЬ НАВБАРА --- */
.custom-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- ОСНОВНОЙ КОНТЕНТ --- */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
    z-index: 1;
}

.maintenance-box {
    text-align: center;
    padding: 50px 45px;
    max-width: 580px;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: dropFromTop 2.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes dropFromTop {
    from { 
        opacity: 0; 
        transform: translateY(-70px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.logo-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--accent-gradient);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.maintenance-box h1 {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Счетчик дней */
.countdown {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.countdown-number {
    font-size: 34px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.countdown-label {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    line-height: 1.3;
}

/* Прогресс-бар */
.progress-section { margin-bottom: 32px; }
.progress-label {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}
.progress-wrapper { position: relative; }
.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 99px;
    overflow: visible;
    cursor: pointer;
}
.progress-bar {
    background: var(--accent-gradient);
    border-radius: 99px;
    position: relative;
    height: 100%;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Тултипы */
.progress-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #111622;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 10;
}

.progress-tooltip::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #111622;
}

.progress-wrapper:hover .progress-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

/* Скелетоны */
.skeleton {
    display: inline-block;
    height: 18px;
    width: 70px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite linear;
    border-radius: 4px;
    vertical-align: middle;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Инфо-сетка */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.info-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 14px 18px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.2s, border-color 0.2s;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
}

.info-item i { color: #3b82f6; flex-shrink: 0; }
.info-label {
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}
.info-value { color: var(--text-primary); font-size: 14px; font-weight: 600; }

/* Кнопка Telegram */
.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 14px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
}

.btn-telegram:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

/* --- СТИЛЬ ФУТЕРА --- */
.custom-footer {
    background: rgba(5, 7, 10, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text-primary); }

/* --- ВЫПАДАЮЩЕЕ МЕНЮ (DROPDOWN) --- */
.custom-dropdown .btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
    transition: all 0.2s ease;
}

.custom-dropdown .btn:hover, 
.custom-dropdown .btn:focus,
.custom-dropdown .show > .btn {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.custom-dropdown .dropdown-toggle::after { display: none; }

/* Объединенный селектор меню */
.custom-dropdown .dropdown-menu {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    margin-top: 8px !important;
    
    /* Стили анимации */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important; 
}

/* Состояние при открытии */
.custom-dropdown.show .dropdown-menu,
.custom-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown .dropdown-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.custom-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

/* --- АДАПТИВНОСТЬ (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links { justify-content: center; }
}

@media (max-width: 576px) {
    .maintenance-box { padding: 40px 20px; }
    .info-grid { grid-template-columns: 1fr; }
    .main-container { padding-top: 100px; }
}