body {
    color: #f8fafc;
    font-family: 'Inter', -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: #0f172a url('../images/bg.png') no-repeat fixed center / cover;
}

.card {
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 1.5rem; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 360px; /* Чуть уже, для компактности */
    width: 90%;
}

/* Скины заголовков (Логотипы) */
h1 {
    text-indent: -9999px;
    width: 280px;
    height: 90px;
    margin: 0 auto 1rem auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;    
    color: transparent;
    display: block; 
}

.success-page h1 {
    background-image: url('../images/logo.png');
}

.auth-page h1 {
    background-image: url('../images/logo.png');
}

.error-page h1 {
    background-image: url('../images/Error.png');
}

.subtitle { color: #ffffff; line-height: 1.4; margin-bottom: 1.5rem; font-size: 0.95em; }

/* Инфо-плашка даты */
.sub-info {
    margin: 0 auto 15px auto;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 0.85em;
    display: inline-block; /* В ширину контента */
}

/* --- ВАЗНО: "Литой" виджет выбора ОС --- */
.os-widget {
    display: flex;
    background: rgba(0, 0, 0, 0.2); /* Темная подложка */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden; /* Скругляет углы кнопок внутри */
    margin: 0 auto 20px auto;
    max-width: 300px;
}

.os-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase; /* Для стиля */
    transition: all 0.2s ease;
    outline: none;
}

/* Активное состояние вкладки */
.os-tab.active {
    background: rgba(56, 189, 248, 0.15); /* Твой голубой цвет */
    color: #ffffff;
    border-radius: 8px; /* Небольшой отступ внутри */
    margin: 2px; /* Создает эффект кнопки на подложке */
}

/* --- Стили основных кнопок (Компактные) --- */
.os-section {
    display: none; /* По умолчанию скрыты */
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Расстояние между кнопками */
}

.btn, .copy-btn, .apk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 300px; /* Ограничиваем ширину */
    height: 40px; /* Компактная высота */
    
    /* Стеклянный стиль, одинаковый для всех */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    
    margin: 0; /* Отступы регулируются через GAP в parent */
    padding: 0 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Ховер эффект */
.btn:hover, .copy-btn:hover, .apk-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

/* Особенный стиль для кнопки "Подключить" (Акцент) */
.os-section .btn {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

.footer-note {
    margin-top: 20px; 
    font-size: 0.75em; 
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
}

/* --- Адаптация под мобильные (Убираем гигантизм) --- */
@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
    }

    h1 {
        width: 220px; /* Уменьшаем лого */
        height: 70px;
    }

    /* Кнопки на мобилке НЕ увеличиваем */
    .btn, .copy-btn, .apk-btn {
        height: 44px;     
        font-size: 13px;  
    }
    
    .os-tab {
        font-size: 11px;
        padding: 8px 2px;
    }
}