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

body {
    background-color: #0a0a0a;
    color: #d1d1d1;
    font-family: "Inter", "Segoe UI", sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.wrapper { width: 100%; max-width: 800px; padding: 2rem; }

/* Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 2rem;
}
.logo { font-weight: 800; letter-spacing: -1px; color: #fff; }
.pro-badge {
    background: #333;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 5px;
}
.nav-links a { color: #555; text-decoration: none; font-size: 0.85rem; margin-left: 1.5rem; }
.nav-links a:hover { color: #aaa; }

/* Hero & Stats */
.hero { text-align: center; margin-bottom: 3rem; }
h1 { font-size: 2.5rem; color: #fff; margin-bottom: 0.5rem; }
.status { color: #555; font-size: 0.9rem; }

.dashboard-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}
.stat-card {
    background: #111;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #222;
    text-align: center;
}
.stat-val { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.75rem; color: #555; text-transform: uppercase; }

/* Login Area */
.login-area {
    background: #111;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #222;
    text-align: center;
}
.login-hint { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; }

.login-input {
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 0.8rem;
    border-radius: 6px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    font-family: monospace;
    font-size: 1.1rem;
}

.btn-login {
    margin-top: 1.5rem;
    background: #fff;
    color: #000;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-login:hover { background: #ccc; }

.inline-error { color: #ff4d4d; font-size: 0.85rem; margin-top: 1rem; min-height: 1.2rem; }
.login-message.success { color: #4caf50; }
.hidden { display: none !important; }

footer { margin-top: 4rem; text-align: center; opacity: 0.4; }
.legal { font-size: 0.7rem; margin-bottom: 1rem; }
.copyright { font-size: 0.7rem; }

/* Dashboard Specific */
.dashboard-body { background: #050505; }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки по умолчанию */
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.status-ok { color: #4caf50 !important; }    
.status-warn { color: #ff9800 !important; }  
.status-error { color: #ff4d4d !important; } 
.status-dim { color: #555 !important; }      

.sub-stat {
    font-family: "JetBrains Mono", monospace; 
    font-size: 0.85rem;
}
