:root {
    --bg: #0a0e1a;
    --panel: #141824;
    --accent-green: #00f5ff;
    --accent-orange: #ff9d00;
    --accent-red: #ff3e3e;
    --text-dim: #64748b;
    --safe-gold: #fbbf24;
    --glow-green: rgba(0, 245, 255, 0.3);
}

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

body {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
    color: #fff;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.app-container {
   width: 100%;
    max-width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    
    /* Добавьте это для iOS */
    min-height: -webkit-fill-available;
}

.app-container.critical-alert {
    animation: pulse-bg 1.5s infinite;
}

/* --- HEADER --- */
.header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header a {text-decoration: none;}
.header a:hover {text-decoration: none; opacity: 0.9;}
.logo {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--safe-gold), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}
.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.logo-wrap:hover .logo-img img {
    transform: scale(1.05);
}

.logo-img img {
    transition: transform 0.2s ease;
}
.connection-badge {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--accent-green);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 9px;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 6px;
}
