:root {
    --bg: #090a0f;
    --surface: rgba(255, 255, 255, 0.02);
    --surface-border: rgba(255, 255, 255, 0.08);
    --accent: #38bdf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Subtle Technical Grid Background */
.grid {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
    z-index: 1;
}

/* Ambient Glow Behind the Card */
.glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 2;
}

/* Glassmorphism Card */
.card {
    position: relative;
    z-index: 10;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    width: calc(100% - 40px);
    max-width: 420px;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* =========================================
   СТАТУСНЫЕ ИНДИКАТОРЫ (МОДИФИКАТОРЫ)
   ========================================= */

.status-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

.status-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* 1. Зеленый (Всё ОК - index.html) */
.status-container.ok { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-container.ok .status-dot { background-color: #10b981; box-shadow: 0 0 12px #10b981; }
.status-container.ok .status-text { color: #10b981; }

/* 2. Янтарный (Не найдено - 404.html) */
.status-container.warn { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }
.status-container.warn .status-dot { background-color: #f59e0b; box-shadow: 0 0 12px #f59e0b; }
.status-container.warn .status-text { color: #f59e0b; }

/* 3. Красный (Доступ запрещен - 403.html) */
.status-container.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); }
.status-container.error .status-dot { background-color: #ef4444; box-shadow: 0 0 12px #ef4444; }
.status-container.error .status-text { color: #ef4444; }

/* =========================================
   ТИПОГРАФИКА И ССЫЛКИ
   ========================================= */

h1 {
    font-family: 'Orbitron', 'Rajdhani', 'Exo 2', 'Share Tech Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
    background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Technical Info Footer */
.tech-footer {
    position: absolute;
    bottom: 24px;
    z-index: 10;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: flex;
    gap: 16px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================= */

@media (max-width: 480px) {
    .card { padding: 40px 24px; }
    h1 { font-size: 26px; }
    p { font-size: 14px; }
    .tech-footer { gap: 8px; font-size: 10px; bottom: 16px; }
}

@media (max-height: 600px) {
    body {
        overflow-y: auto;
        justify-content: flex-start;
        padding: 40px 0 80px 0;
    }
    .tech-footer {
        position: relative;
        bottom: auto;
        margin-top: 40px;
    }
}