/* 1. Скрытие подвала, фонов и логотипов MiroTalk */
#footer, 
footer, 
.site-footer, 
.illustration-section-01::before, 
.illustration-section-01::after,
a.brand img,
.navbar-brand img,
.site-header img,
.cr-home img { 
    display: none !important; 
} 

/* 2. Общий фон страницы */
html, body, .body-wrap { 
    min-height: 100vh !important; 
    margin: 0 !important; 
    background: radial-gradient(circle at 50% 20%, #1a103c 0%, #0b0d19 60%, #05060a 100%) !important; 
    background-attachment: fixed !important; 
} 

.body-wrap { 
    display: flex !important; 
    flex-direction: column !important; 
    min-height: 100vh !important; 
} 

/* 3. Шапка и логотип */
.site-header { 
    position: relative !important; 
    padding-top: 24px !important; 
    padding-bottom: 12px !important; 
    display: flex !important;
    justify-content: center !important; 
    width: 100% !important;
    box-sizing: border-box !important;
} 

.brand, a.brand, .navbar-brand { 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    text-decoration: none !important; 
} 

.brand::before, a.brand::before, .navbar-brand::before,
.brand::after, a.brand::after, .navbar-brand::after {
    content: none !important;
    display: none !important;
}

.freize-logo-icon {
    display: inline-block !important;
    width: 28px !important;
    height: 28px !important;
    background-color: #a855f7 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z'/%3E%3Cpath d='M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z'/%3E%3C/svg%3E") no-repeat center / contain !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z'/%3E%3Cpath d='M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z'/%3E%3C/svg%3E") no-repeat center / contain !important;
}

.freize-logo-text {
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
    white-space: nowrap !important;
}

/* 4. Кнопка "Назад" */
a.cr-home {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    background: rgba(168, 85, 247, 0.1) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    position: absolute !important; 
    left: 20px !important;
    top: 24px !important;
}

a.cr-home:hover {
    background: rgba(168, 85, 247, 0.25) !important;
    border-color: rgba(168, 85, 247, 0.6) !important;
}

a.cr-home::before {
    content: "" !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    background-color: #a855f7 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z'/%3E%3Cpath d='M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z'/%3E%3C/svg%3E") no-repeat center / contain !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z'/%3E%3Cpath d='M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z'/%3E%3C/svg%3E") no-repeat center / contain !important;
}

/* 5. ЖЕСТКОЕ ЦЕНТРИРОВАНИЕ ЛОББИ И ЭКРАНА ОЖИДАНИЯ */
#lobby, [id*="lobby"], [class*="lobby"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
}

#lobby > div, [class*="lobby"] > div, .card {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 6. Очистка верстки QR-кода */
#crQrWrap[hidden] { display: none !important; }
#crQr { display: flex !important; justify-content: center !important; align-items: center !important; }
#crQr canvas { display: none !important; }
#crQr img {
    display: block !important;
    background: #ffffff !important;
    padding: 10px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.hero, .hero-inner { padding-top: 0 !important; padding-bottom: 0 !important; } 
.hero .split-wrap .split-item { min-height: auto !important; } 
.cta { margin-top: 0 !important; margin-bottom: 0 !important; }

/* 7. ПРЯМАЯ ЗАМЕНА ИЗОБРАЖЕНИЯ В КРУТИЛКЕ НА МИКРОФОН */
div[id*="loading"] img, 
div[class*="loading"] img,
#loadingAnimation img,
.loading-avatar img {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a855f7'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z'/%3E%3Cpath d='M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z'/%3E%3C/svg%3E") !important;
    width: 36px !important;
    height: 36px !important;
    display: block !important;
    opacity: 1 !important;
    margin: 0 auto !important;
}