/* === ГЛОБАЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ЦЕНТРИРОВАНИЯ === */
html {
    overflow-y: scroll !important; /* Резервируем место под скроллбар сразу */
}
body {
    background: #0b0f0b !important;
    color: #9fbf9f !important;
    padding: 0 !important;
    box-sizing: border-box;
}
body.preloader-active { overflow: hidden !important; }
*, *::before, *::after { box-sizing: inherit; }

/* === ПРЕЛОАДЕР === */
.metro3033-preloader {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: #05070a;
    z-index: 99999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.metro3033-preloader-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(0,80,60,0.1) 0%, transparent 60%),
                repeating-linear-gradient(0deg, rgba(10,20,30,0.3) 0px, rgba(10,20,30,0.3) 1px, transparent 1px, transparent 25px);
}
.metro3033-preloader-content {
    position: relative; z-index: 2;
    width: 90%; max-width: 400px;
    background: rgba(15,25,35,0.95);
    border: 1px solid rgba(0,200,100,0.3); border-radius: 4px; padding: 18px;
    box-shadow: 0 0 25px rgba(0,150,80,0.25);
}
.metro3033-terminal-header { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,200,100,0.2); margin-bottom: 12px; }
.metro3033-terminal-dot { width: 9px; height: 9px; border-radius: 50%; }
.metro3033-terminal-dot.red { background: #ff5f56; }
.metro3033-terminal-dot.yellow { background: #ffbd2e; }
.metro3033-terminal-dot.green { background: #27ca3f; animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: 0.6; } }
.metro3033-terminal-title { margin-left: auto; font-size: 10px; color: #00c864; letter-spacing: 1px; text-transform: uppercase; }
.metro3033-loader-wrapper { position: relative; width: 100px; height: 100px; margin: 8px auto 15px; }
.metro3033-loader-ring { width: 100%; height: 100%; border-radius: 50%; border: 3px solid transparent; border-top-color: #00c864; border-right-color: #00ff88; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.metro3033-loader-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; background: #0a1218; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,200,100,0.2); }
.metro3033-loader-percent { font-size: 20px; font-weight: 700; color: #00ffaa; font-family: 'Orbitron', sans-serif; text-shadow: 0 0 8px rgba(0,255,170,0.5); }
.metro3033-status-log { background: rgba(5,12,18,0.9); border: 1px solid rgba(0,200,100,0.15); border-radius: 3px; padding: 8px 10px; margin-bottom: 12px; font-size: 10px; max-height: 90px; overflow: hidden; }
.metro3033-log-line { display: flex; gap: 6px; padding: 2px 0; color: #5a7a8a; opacity: 0.5; }
.metro3033-log-line.active { opacity: 1; color: #b8d4c8; }
.metro3033-timestamp { color: #4a6a7a; min-width: 65px; }
.metro3033-log-ok { color: #27ca3f; } .metro3033-log-warn { color: #ffbd2e; } .metro3033-log-pending { color: #6a8a9a; }
.metro3033-progress-track { height: 6px; background: rgba(30,50,60,0.9); border-radius: 3px; overflow: hidden; border: 1px solid rgba(0,200,100,0.2); }
.metro3033-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #006440, #00c864); transition: width 0.2s ease; box-shadow: 0 0 10px rgba(0,200,100,0.4); }
.metro3033-progress-text { text-align: center; margin-top: 6px; font-size: 9px; color: #5a7a8a; letter-spacing: 2px; text-transform: uppercase; }
.metro3033-blink { animation: blink 1s step-end infinite; color: #00c864; } @keyframes blink { 50% { opacity: 0; } }
.metro3033-preloader-footer { position: absolute; bottom: 15px; display: flex; align-items: center; gap: 8px; font-size: 9px; color: #4a6a7a; }
.metro3033-status-indicator { width: 5px; height: 5px; background: #00c864; border-radius: 50%; box-shadow: 0 0 6px #00ff88; animation: blink 1s step-end infinite; }
.metro3033-version { margin-left: auto; color: #3a5a6a; }
.metro3033-preloader.hiding { opacity: 0; visibility: hidden; pointer-events: none; }

/* === ОСНОВНОЙ ЛЕЙАУТ (ЖЕСТКОЕ ЦЕНТРИРОВАНИЕ) === */
.metro3033-wrapper {
    position: relative;
    width: 100%; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    background: radial-gradient(ellipse at center, #0a0e12 0%, #05070a 70%, #000000 100%),
                repeating-linear-gradient(0deg, rgba(20,30,40,0.3) 0px, rgba(20,30,40,0.3) 1px, transparent 1px, transparent 20px),
                repeating-linear-gradient(90deg, rgba(15,25,35,0.2) 0px, rgba(15,25,35,0.2) 1px, transparent 1px, transparent 20px);
    font-family: 'Share Tech Mono', monospace; color: #a8b5c0;
    border-top: 3px solid #1a2a3a; border-bottom: 3px solid #1a2a3a;
}
.metro3033-bg-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0,100,80,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(180,50,50,0.05) 0%, transparent 50%);
}
.metro3033-container {
    width: 100%; max-width: 480px;
    margin: 0 auto; padding: 25px 20px 40px;
    position: relative; z-index: 1;
}

/* Остальные стили интерфейса */
.metro3033-header { text-align: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid rgba(100,180,100,0.3); }
.metro3033-logo { position: relative; margin-bottom: 12px; }
.metro3033-logo img { width: 180px; filter: drop-shadow(0 0 8px rgba(0,200,100,0.4)) brightness(1.1); transition: filter 0.3s ease; }
.metro3033-logo:hover img { filter: drop-shadow(0 0 15px rgba(0,255,120,0.7)) brightness(1.2); }
.metro3033-logo-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 200px; height: 60px; background: radial-gradient(ellipse, rgba(0,200,100,0.15) 0%, transparent 70%); pointer-events: none; animation: metroPulse 3s ease-in-out infinite; }
@keyframes metroPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.metro3033-status-bar { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: #6b8a99; letter-spacing: 1px; text-transform: uppercase; }
.metro3033-status-dot { width: 8px; height: 8px; background: #00c864; border-radius: 50%; box-shadow: 0 0 6px #00ff88, 0 0 12px rgba(0,200,100,0.5); animation: metroBlink 2s step-end infinite; }
@keyframes metroBlink { 50% { opacity: 0.3; box-shadow: none; } }
.metro3033-year { color: #00c864; font-weight: 700; font-family: 'Orbitron', sans-serif; }
.metro3033-lore { background: linear-gradient(135deg, rgba(15,25,35,0.9) 0%, rgba(25,40,55,0.7) 100%); border: 1px solid rgba(100,180,100,0.25); border-left: 3px solid #00c864; padding: 14px 16px; margin: 0 5px 22px; font-size: 13px; line-height: 1.5; position: relative; box-shadow: inset 0 0 20px rgba(0,0,0,0.4); }
.metro3033-lore::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,30,20,0.1) 2px, rgba(0,30,20,0.1) 4px); pointer-events: none; opacity: 0.5; }
.metro3033-lore-icon { position: absolute; top: -8px; left: -12px; font-size: 18px; animation: metroFloat 3s ease-in-out infinite; }
@keyframes metroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.metro3033-lore p { margin: 0; color: #b8c9d4; text-shadow: 0 0 2px rgba(0,0,0,0.8); }
.metro3033-enter { text-align: center; margin: 15px 0 20px; }
.metro3033-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; font-family: 'Orbitron', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #00ffaa; background: linear-gradient(135deg, #0f1a22 0%, #152530 50%, #0f1a22 100%); border: 2px solid #00c864; border-radius: 4px; cursor: pointer; text-decoration: none; overflow: hidden; transition: all 0.2s ease; box-shadow: 0 0 10px rgba(0,200,100,0.3), inset 0 0 15px rgba(0,0,0,0.5); }
.metro3033-btn-primary { width: 220px; animation: metroGlow 2.5s ease-in-out infinite alternate; }
@keyframes metroGlow { from { box-shadow: 0 0 10px rgba(0,200,100,0.3), inset 0 0 15px rgba(0,0,0,0.5); } to { box-shadow: 0 0 20px rgba(0,255,140,0.6), inset 0 0 15px rgba(0,0,0,0.5); } }
.metro3033-btn-secondary { width: 100%; margin-top: 5px; }
.metro3033-btn:hover { border-color: #00ffaa; color: #ffffff; box-shadow: 0 0 25px rgba(0,255,170,0.7), inset 0 0 20px rgba(0,50,30,0.8); transform: translateY(-1px); }
.metro3033-btn:active { transform: translateY(1px); box-shadow: 0 0 15px rgba(0,200,100,0.4), inset 0 0 25px rgba(0,0,0,0.7); }
.metro3033-btn-glow { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0,255,170,0.15), transparent); transition: left 0.4s ease; }
.metro3033-btn:hover .metro3033-btn-glow { left: 100%; }
.metro3033-divider { position: relative; text-align: center; margin: 18px 0; color: #5a6e7a; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.metro3033-divider::before, .metro3033-divider::after { content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: linear-gradient(90deg, transparent, rgba(100,180,100,0.4), transparent); }
.metro3033-divider::before { left: 0; } .metro3033-divider::after { right: 0; }
.metro3033-divider span { background: linear-gradient(135deg, #0a0e12 0%, #0f151a 100%); padding: 0 12px; position: relative; z-index: 1; }
.metro3033-form { margin: 0 10px; } .metro3033-input-group { margin-bottom: 16px; position: relative; }
.metro3033-input-group label { display: block; font-size: 10px; color: #5a7a8a; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; padding-left: 4px; }
.metro3033-input { width: 100%; padding: 11px 14px; font-family: 'Share Tech Mono', monospace; font-size: 14px; color: #e0ecf4; background: linear-gradient(135deg, #0d141a 0%, #111c24 100%); border: 1px solid #2a3e4a; border-left: 2px solid #3a5e6a; border-radius: 3px; outline: none; transition: all 0.2s ease; box-shadow: inset 0 2px 8px rgba(0,0,0,0.4); }
.metro3033-input::placeholder { color: #4a5e6a; opacity: 1; }
.metro3033-input:focus { border-color: #00c864; border-left-color: #00ff88; box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 0 0 2px rgba(0,200,100,0.15); }
.metro3033-input-border { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,200,100,0.3), transparent); opacity: 0; transition: opacity 0.2s ease; }
.metro3033-input:focus + .metro3033-input-border { opacity: 1; }
.metro3033-recovery { display: block; text-align: center; margin-top: 14px; color: #6a8a9a; font-size: 12px; text-decoration: none; transition: color 0.2s ease; }
.metro3033-recovery:hover { color: #00c864; }
.metro3033-recovery-icon { margin-right: 4px; display: inline-block; animation: metroShake 4s ease-in-out infinite; }
@keyframes metroShake { 0%, 100% { transform: rotate(0deg); } 5% { transform: rotate(-3deg); } 10% { transform: rotate(3deg); } 15% { transform: rotate(-2deg); } 20% { transform: rotate(2deg); } 25% { transform: rotate(0deg); } }
.metro3033-footer { margin-top: 30px; padding-top: 15px; text-align: center; border-top: 1px solid rgba(100,180,100,0.2); }
.metro3033-footer-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(100,180,100,0.3), transparent); margin-bottom: 10px; }
.metro3033-footer p { margin: 0 0 8px; font-size: 11px; color: #5a6e7a; letter-spacing: 1px; }
.metro3033-warning { padding: 8px 12px; background: rgba(180,50,50,0.1); border: 1px solid rgba(180,50,50,0.3); border-radius: 3px; margin-top: 8px; }
.metro3033-warning small { color: #aa6a6a; font-size: 10px; }
.metro3033-decoration { position: fixed; pointer-events: none; z-index: 0; }
.metro3033-pipe-left { left: 15px; top: 100px; width: 8px; height: 200px; background: linear-gradient(90deg, #1a2a3a, #253a4a, #1a2a3a); border-radius: 4px; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }
.metro3033-pipe-right { right: 15px; top: 150px; width: 6px; height: 150px; background: linear-gradient(90deg, #1a2a3a, #253a4a, #1a2a3a); border-radius: 3px; opacity: 0.7; }
.metro3033-vent-top { top: 30px; left: 50%; transform: translateX(-50%); width: 120px; height: 20px; background: repeating-linear-gradient(90deg, #1a2a3a 0px, #1a2a3a 8px, #0f1a22 8px, #0f1a22 12px); border-radius: 2px; box-shadow: 0 5px 15px rgba(0,0,0,0.4); }
.metro3033-flicker { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,200,100,0.02); pointer-events: none; z-index: 2; animation: metroFlicker 8s infinite; opacity: 0; }
@keyframes metroFlicker { 0%, 100% { opacity: 0; } 23% { opacity: 0.03; } 24% { opacity: 0; } 45% { opacity: 0.02; } 46% { opacity: 0; } 78% { opacity: 0.04; } 79% { opacity: 0; } }
.metro3033-wrapper::after { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 2px); pointer-events: none; z-index: 10; opacity: 0.6; }

@media (max-width: 480px) {
    .metro3033-container { padding: 20px 15px 35px; }
    .metro3033-logo img { width: 160px; }
    .metro3033-lore { font-size: 12px; margin: 0 0 20px; }
    .metro3033-btn-primary { width: 200px; font-size: 13px; padding: 10px 20px; }
    .metro3033-preloader-content { padding: 14px; }
    .metro3033-loader-wrapper { width: 85px; height: 85px; }
    .metro3033-loader-center { width: 60px; height: 60px; }
    .metro3033-loader-percent { font-size: 18px; }
}
