:root {
    --font-main: 'Montserrat', sans-serif;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none !important;
}

button, select, .sidebar-handle, .btn-circle {
    cursor: pointer;
}

body {
    background: radial-gradient(circle at 50% 50%, #3a5066, #0c1627) !important;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-main);
}

/* ГЛАВНЫЙ КОНТЕЙНЕР */
.liminal-app-container {
    display: flex !important;
    justify-content: center !important; /* Горизонтальный центр */
    align-items: center !important;     /* Вертикальный центр */
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important; /* Чтобы не зависеть от контента сайта */
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* КАПСУЛА МЕТРОНОМА */
#pranayamaAppContainer.glass-capsule {
    position: relative !important;
    margin: 0 auto !important; /* Центрируем */
    flex-shrink: 0; /* Не даем ей сжиматься */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    left: 0 !important; /* Сбрасываем возможные смещения */
}

/* СДВИГ (ТОЛЬКО НА ДЕСКТОПЕ) */
@media (min-width: 769px) {
    #pranayamaAppContainer.glass-capsule.shifted {
        /* Сдвигаем влево, чтобы освободить место выехавшему меню */
        /* Если меню 520px, сдвиг на 200-250px будет идеальным */
        transform: translateX(-200px) !important; 
    }
}

/* БОКОВАЯ ПАНЕЛЬ (САЙДБАР) */
.settings-sidebar {
    position: fixed !important; /* ВАЖНО: fixed выводит её из расчета центра */
    right: -520px;
    top: 0;
    width: 520px;
    height: 100vh;
    z-index: 2000;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


.app-navigation {
    width: 100%;
    box-sizing: border-box;
}

/* ---------- Визуальная область ---------- */

.liminal-app-container {
    padding: 60px; 
    overflow: visible !important;
}

#progressRing {
    stroke-dasharray: 792;
    transition: stroke-dashoffset 1s linear;
}

/* Базовое состояние круга */
.breath-circle {
    transition: transform 2s ease-in-out, opacity 2s ease-in-out;
    will-change: transform, opacity;
}

/* Класс для активного дыхания (будем переключать в JS) */
.breath-circle.breathing {
    transform: scale(1.15);
    opacity: 0.4;
}

.visual-area {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background: transparent !important;
}

.liminal-app-container {
    display: flex;
    justify-content: center; 
    align-items: center;
    min-height: 100vh;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.liminal-app-container.shifted {
    transform: translateX(-200px); 
}

.main-visual {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-visual.shifted {
    transform: translateX(-200px); /* Сдвиг капсулы */
}



.settings-sidebar {
    position: fixed;
    right: -520px; /* Твоя ширина */
    top: 0;
    width: 520px;
    height: 100vh;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.900) !important;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
}

.settings-sidebar.open {
    right: 0; 
}

.sidebar-handle {
    width: 50px;
    height: 100px;
    position: absolute;
    left: -50px; 
    top: 50%;
    transform: translateY(-50%);    
    background: rgba(0, 0, 0, 0.900) !important;
    border-radius: 20px 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.sidebar-handle span, .sidebar-handle {
    font-size: 24px !important;
    font-weight: bold;
}

.settings-content {
    flex: 1;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto; 
}

#timerDisplay {
    transition: all 0.3s ease;
}

.status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.user-greeting { font-size: 0.85rem; opacity: 0.8; }
.btn-fav {
    background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer; transition: 0.3s;
}
.btn-fav.active { color: #e74c3c; transform: scale(1.1); }
.btn-login-link {
    font-size: 0.75rem; text-decoration: none; color: white;
    padding: 5px 15px; border-radius: 20px; background: var(--theme-color);
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg); 
    z-index: 3;
    pointer-events: none;
}

.progress-ring__fill {
    fill: none;
    /* Теперь кольцо будет того же цвета, что и эффект! */
    stroke: var(--theme-color); 
    stroke-width: 4;
    stroke-linecap: round;
    /* Устанавливаем длину контура */
    stroke-dasharray: 792; 
    stroke-dashoffset: 792; /* Изначально пустое */
    /* Плавный переход */
    transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
    filter: drop-shadow(0 0 5px var(--theme-color));
}

/* Добавим фон для самого кольца (серую подложку), чтобы было видно путь */
.progress-ring__bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05); /* Очень слабая линия */
    stroke-width: 4;
}
body[data-theme="light"] .progress-ring__bg {
    stroke: rgba(0, 0, 0, 0.05);
}

.glass-capsule {
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 260px;
    min-height: 420px;
    border-radius: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    gap: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
     overflow: visible; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


.glass-capsule.shifted {
    transform: translateX(-220px); 
}

.progress-ring {
    overflow: visible !important; 
}

/* Контейнер текста */
.timer-display {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 5;
    pointer-events: none;
    text-align: center;
    width: 100%;
    padding: 0 15px; 
    box-sizing: border-box;
}

#breathStatus {
    font-size: clamp(0.8rem, 4vw, 1.2rem); 
    letter-spacing: 2px; 
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 5px;
    line-height: 1.2;
}

#phaseSeconds {
    font-size: clamp(2.5rem, 8vw, 3.5rem); 
    font-weight: 700;
    margin: 5px 0;
    line-height: 1; 
}

#timerDisplay {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    opacity: 0.7;
    letter-spacing: 2px;
}

.breath-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    z-index: 1;

    border: 1px solid rgba(255, 255, 255, 0.2);

    background-image: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    background-color: var(--theme-color); 

    box-shadow: 0 0 30px var(--theme-color-light), 
                inset -5px -5px 15px rgba(0, 0, 0, 0.1);

    transform: scale(1);
    opacity: 0.1;
    
    transition-property: transform, opacity;
    transition-timing-function: ease-in-out; 
    will-change: transform, opacity;
}


.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 4;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
    animation: flyStar 3s ease-out forwards;
}

@keyframes flyStar {
    0% { transform: translate(0, 0) scale(0); opacity: 1; }
    100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; }
}

.btn-main-action {
    width: 80px; 
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-main-action:hover { 
    background: rgba(255,255,255,0.4); 
}


.settings-trigger {
    position: absolute;
    right: 30px;
    top: 30px;
    z-index: 101;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 50px; height: 50px;
}

.main-visual {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Плитка-кнопка и контролы */
.settings-content h3 {
    color: white;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.volume-slider {
    width: 100%;
    margin-top: 10px;
    accent-color: var(--theme-color); /* Красивый цвет ползунка */
}

.setting-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Контейнер кнопок */
.controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    height: 80px; /* Фиксируем высоту, чтобы дизайн не прыгал */
}

/* Общие стили для круглых кнопок */
.btn-circle {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white; /* Цвет иконок */
    outline: none;
}

.btn-circle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}


.btn-primary {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
}

/* --- СТИЛИЗАЦИЯ ПОЛЗУНКА ГРОМКОСТИ --- */

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    margin: 15px 0;
    cursor: pointer;
    display: flex;
    align-items: center; /* Центрируем бегунок вертикально внутри самого инпута */
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.1s ease;
}

.volume-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.btn-fav-full.active {
    background: var(--theme-color) !important; 
    border-radius: 20px;
}
.btn-fav-full:hover { opacity: 0.8; }

/* --- ГЛОБАЛЬНЫЙ СТИЛЬ ДЛЯ СЕЛЕКТОВ --- */
.styled-select {
    display: block !important;
    width: 100% !important;
    padding: 12px 35px 12px 15px !important; /* Важно: отступ справа (35px) для стрелки */
    margin-top: 8px !important;
    
    font-size: 0.95rem !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #ffffff !important;
    
    /* Фон и рамка - делаем их явно видимыми */
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    
    cursor: pointer !important;
    outline: none !important;
    
    /* Отключаем дефолтную стрелку браузера */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* ОДНА кастомная стрелка (Белая) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important; /* Строго справа */
    background-size: 16px !important; /* Размер стрелки */
}

/* Ховер */
.styled-select:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Фокус (Свечение цветом темы) */
.styled-select:focus {
    border-color: var(--theme-color) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
}

/* Выпадающее меню (Опции) */
.styled-select option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 10px !important;
}


/* Мобильная версия */
@media (max-width: 900px) {
    .liminal-app-container {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .sidebar-settings { 
        background: rgba(255,255,255,0.1); 
        padding: 20px; 
        border-radius: 30px; 
    }
}

.label-select {
    padding: 5px;
}

/* Контейнер для тумблера внутри карточки */
.card-music .card-toggle {
    display: flex;
    justify-content: space-between; /* Текст слева, тумблер справа */
    align-items: center;
    width: 100%;
    margin-bottom: 20px; 
}

/* Если ползунок громкости слишком длинный, дадим ему отступы */
.volume-slider {
    width: 100%;
    margin-top: 5px;
    accent-color: var(--theme-color);
    position: relative; 
    z-index: 10;
    pointer-events: auto; 
}

.grid-layout {
    display: grid;
    width: 460px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 
    gap: 15px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Описание на всю ширину (занимает 2 колонки) */
.card-desc {
    grid-column: span 2;
    font-size: 0.8rem;
    opacity: 0.8;
}

.card-select select {
    background: transparent;
    color: #fff;
    border: none;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Стилизация контейнера переключателя */
.card-toggle {
    flex-direction: row; /* Текст и тумблер в одну строку */
    justify-content: space-between;
    align-items: center;
}

/* Скрываем реальный чекбокс */
.switch input {
    opacity: 0; width: 0; height: 0;
}

/* Сам тумблер */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 2px; bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Когда включено - красим в цвет темы */
input:checked + .slider {
    background-color: var(--theme-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* --- СВЕТЛАЯ ТЕМА --- */


body[data-theme="light"] .slider {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] input:checked + .slider {
    background-color: var(--theme-color) !important;
}

body[data-theme="light"] {
    background: radial-gradient(circle at 50% 50%, #f0f4f8, #d9e2ec) !important;
    color: #1a1a1a !important;
}

body[data-theme="light"] .card {
    background: rgba(0, 0, 0, 0.03); /* Очень легкая темная заливка на белом фоне */
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body[data-theme="light"] .settings-content h3,
body[data-theme="light"] .styled-select {
    color: #1a1a1a; 
}

body[data-theme="light"] .glass-capsule {
    background: rgba(255, 255, 255, 0.6); 
    border: 1px solid rgba(0, 0, 0, 0.05); 
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.04), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.8); 
}

body[data-theme="light"] .breath-circle {
    background: rgba(0, 0, 0, 0.03); 
    border: 1px solid rgba(0, 0, 0, 0.08); 
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); 
}

body[data-theme="light"] .progress-ring__fill {
    stroke: var(--theme-color); 
    opacity: 0.6;
    filter: drop-shadow(0 0 3px var(--theme-color-light));
}

body[data-theme="light"] #breathStatus,
body[data-theme="light"] #phaseSeconds {
    color: #2c3e50;
}

body[data-theme="light"] .timer-display {
    color: #1a1a1a; 
}

body[data-theme="light"] .btn-main-action {
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
body[data-theme="light"] .btn-main-action svg {
    fill: #2c3e50;
}

body[data-theme="light"] #timerDisplay {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .breath-timer {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .styled-select {
    color: #1a1a1a !important; 
    background-color: rgba(0, 0, 0, 0.05) !important; 
    border-color: rgba(0, 0, 0, 0.2) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

body[data-theme="light"] .styled-select:focus {
    border-color: var(--theme-color) !important;
}

body[data-theme="light"] .styled-select option {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

body[data-theme="light"] .btn-circle {
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.2);
}
body[data-theme="light"] .btn-primary {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .volume-slider {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

body[data-theme="light"] .volume-slider:hover {
    background: rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .volume-slider::-webkit-slider-thumb {
    background: #1a1a1a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body[data-theme="light"] .volume-slider::-moz-range-thumb {
    background: #1a1a1a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


body[data-theme="light"] .settings-content h3 {
    color: #2c3e50;
}

body[data-theme="light"] .sidebar-handle {
    background: rgba(255, 255, 255, 0.9) !important; 
    color: #1a1a1a !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1) !important;
}

body[data-theme="light"] .settings-sidebar {
    background: rgba(255, 255, 255, 0.8) !important;
}

body[data-theme="light"] .breath-circle {
    background-color: var(--theme-color) !important; 
    background-image: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.6) 0%, transparent 70%) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px var(--theme-color-light);
}

.share-container {
    margin-top: 10px;
    padding-top: 10px;
    grid-column: span 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.app-navigation {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

#shareTitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.5); /* В темной теме */
}

.share-links-app {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.share-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 0.7rem; font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--theme-color);
    transform: translateY(-3px);
}

/* Кнопки навигации (верхняя строка) */
.app-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.app-navigation a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.app-navigation a:hover {
    color: #fff;
}

/* Блок аккаунта для гостя (сплющенная кнопка) */
.guest-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px; /* Даем внутренний отступ */
    box-sizing: border-box;
}


.btn-fav-full #favToolText {
    font-size: 0.95rem !important; /* Было 0.8 */
    letter-spacing: 1px;
}

.btn-fav-full #favToolIcon {
    font-size: 1.4rem !important; 
}

.btn-fav-full {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login-link {
    background: var(--theme-color) !important;
    color: white !important;
    text-decoration: none;
    padding: 10px 25px !important; 
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-login-link:hover {
    filter: brightness(1.2);
}

.btn-fav-full {
    min-height: 48px; 
}

/* СВЕТЛАЯ ТЕМА */
body[data-theme="light"] #shareTitle {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .share-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body[data-theme="light"] .share-container {
    border-top-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    /* 1. Убираем горизонтальный скролл */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    .settings-sidebar {
        width: 100% !important;
        right: -100% !important;
    }
    
    .settings-sidebar.open {
        right: 0 !important;
    }

    .sidebar-handle {
        position: fixed !important; 
        top: 20px !important;
        right: 20px !important;
        left: auto !important; 
        transform: none !important; 
        background: rgba(0, 0, 0, 0.8) !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important; 
        z-index: 3000 !important; 
    }

    .settings-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 80px 20px 40px 20px !important;
        box-sizing: border-box !important;
    }

    /* 4. Карточки и сетка - убираем все фиксированные px */
    .grid-layout {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .card {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .glass-capsule {
        transform: scale(0.8) !important;
        width: 90% !important;
        margin: 0 auto !important;
    }

    #pranayamaAppContainer.glass-capsule.shifted {
        opacity: 0 !important;
        visibility: hidden;
        transition: opacity 0.4s ease;
    }

    .settings-sidebar {
        background: rgb(0, 0, 0) !important;
    }

    body[data-theme="light"] .settings-sidebar {
        background: rgb(255, 255, 255) !important; 
    }
}

/* --- ЧИСТЫЙ КОСМИЧЕСКИЙ ФОН --- */
.aurora-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    /* Базовый фон: глубокий темно-синий/черный (не просто #000) */
    background: radial-gradient(circle at 50% 50%, #1a1e29, #05070a) !important;
    overflow: hidden;
    transition: background 1.5s ease;
}

/* Светлая тема */
body[data-theme="light"] .aurora-bg {
    background: radial-gradient(circle at 50% 50%, #f0f4f8, #d9e2ec) !important;
}

.blob {
    position: absolute;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    filter: blur(120px); /* Сильное размытие для мягкости */
    
    /* МАГИЯ ЧИСТОГО ЦВЕТА: Режим осветления */
    mix-blend-mode: screen; 
    
    /* Чуть выше непрозрачность, так как screen сам по себе мягкий */
    opacity: 0.6; 
    will-change: transform;
}

/* В светлой теме screen даст белый цвет, поэтому там используем multiply */
body[data-theme="light"] .blob {
    mix-blend-mode: multiply;
    opacity: 0.3; /* Делаем нежнее */
}

/* Пятно 1: Основной цвет темы */
.blob-1 {
    background: var(--theme-color);
    top: -20%; left: -10%;
    animation: move-1 25s infinite alternate ease-in-out;
}

/* Пятно 2: Светлый/дополнительный оттенок темы */
.blob-2 {
    background: var(--theme-color-light);
    bottom: -10%; right: -10%;
    animation: move-2 30s infinite alternate-reverse ease-in-out;
    /* Делаем его чуть ярче */
    opacity: 0.7; 
}

/* Пятно 3: Белый "источник света" */
.blob-3 {
    background: #ffffff;
    top: 20%; left: 30%;
    width: 60vw; height: 60vw;
    animation: move-3 35s infinite alternate ease-in-out;
    /* Белый цвет в режиме screen делает пересечения очень яркими и чистыми */
    opacity: 0.15; 
}

/* В светлой теме белый источник света не нужен, сделаем его серым */
body[data-theme="light"] .blob-3 { 
    background: #cbd5e1; 
}


/* ТРАЕКТОРИИ ПОЛЕТА */
@keyframes move-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15vw, 10vh) scale(1.4); }
}

@keyframes move-2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-15vw, -15vh) scale(0.6); }
}

@keyframes move-3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(10vw, 5vh) rotate(90deg) scale(1.1); }
}