:root {
    --bg-main: #080808;
    --bg-panel: #111111;
    --accent: #BE95FF; 
    --border: rgba(255, 255, 255, 0.1);
    --mac-bar-bg: linear-gradient(to bottom, #f6f6f6 0%, #d1d1d1 100%);
    --mac-text: #000000;
}

/* 1. ОБЩИЕ СБРОСЫ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    height: 100%; width: 100%;
    background-color: var(--bg-main);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

/* 2. ВЕРХНЯЯ ПАНЕЛЬ (ИСПРАВЛЕННОЕ ПОЗИЦИОНИРОВАНИЕ) */
.mac-os-bar {
    height: 25px;
    background: var(--mac-bar-bg);
    display: flex;
    align-items: center;
    justify-content: space-between; /* Раздвигает лево и право по краям */
    padding: 0 12px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 5000;
    color: var(--mac-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.mac-bar-left, .mac-bar-right { 
    display: flex; 
    align-items: center; 
    height: 100%;
}

.mac-bar-left { gap: 15px; }
.mac-bar-right { gap: 15px; } /* Расстояние между балансом, логином, иконками и датой */

.mac-logo { width: 14px; height: 14px; filter: brightness(0); display: block; }
.mac-app-name { font-weight: 700; font-size: 13px; }

.mac-menu-item { 
    background: none; border: none; font-size: 13px; 
    font-weight: 500; cursor: pointer; color: black; 
}

/* 3. ЭЛЕМЕНТЫ ПРАВОЙ ЧАСТИ */
.mac-balance {
    font-size: 13px;
    font-weight: 500;
}

.mac-login-btn {
    background-color: var(--accent);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
}

.mac-system-icons { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

/* ЗВУК И ВЕРТИКАЛЬНЫЙ ПОЛЗУНОК */
.mac-sound-control {
    position: relative;
    display: flex;
    align-items: center;
    height: 25px;
}

.sound-icon-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 100%;
    padding: 0 2px;
}

.volume-popover {
    display: none;
    position: absolute;
    top: 25px; 
    left: 50%;
    transform: translateX(-50%);
    background: #f6f6f6;
    border: 1px solid #ccc;
    border-radius: 0 0 6px 6px;
    padding: 15px 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 6000;
    height: 110px;
}

.mac-sound-control:hover .volume-popover {
    display: flex;
    justify-content: center;
}

#volume-range {
    -webkit-appearance: none;
    width: 70px; height: 4px;
    background: #ccc; border-radius: 2px; outline: none;
    transform: rotate(-90deg); margin-top: 35px;
}

#volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    background: #333; border-radius: 50%; cursor: pointer;
}

.mac-datetime-fixed {
    font-size: 13px;
    font-weight: 500;
    padding-left: 10px;
    border-left: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    height: 16px;
}

/* 4. ОСНОВНОЙ КОНТЕНТ */
.main-wrapper {
    display: flex;
    margin-top: 25px;
    height: calc(100vh - 25px);
    width: 100%;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 120px;
}

.page-section { padding: 40px; display: none; width: 100%; }
.center-msg {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 60vh; text-align: center;
}

/* 5. DOCK ПАНЕЛЬ */
.dock-container {
    position: fixed;
    bottom: 15px; left: 0; right: 0;
    display: flex; justify-content: center;
    z-index: 4000;
    pointer-events: none;
}

.dock {
    display: flex; align-items: flex-end; padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    pointer-events: auto;
}

.dock-item {
    position: relative; margin: 0 6px; cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 1, 0.2, 1);
    transform-origin: bottom;
}

.dock-item:hover { transform: scale(1.4); }

.dock-icon {
    width: 50px; height: 50px;
    background: #1a1a1a; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 20px; font-weight: 800;
    border: 1px solid rgba(255,255,255,0.1);
}

.dock-item.active::after {
    content: ""; position: absolute; bottom: -8px; left: 50%;
    transform: translateX(-50%); width: 4px; height: 4px;
    background: white; border-radius: 50%;
}

.dock-separator {
    width: 1px; height: 35px;
    background: rgba(255,255,255,0.2);
    margin: 0 10px; align-self: center;
}

/* Вставь это в конец style.css */
.dock-music-popup {
    /* Позиционирование */
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    
    /* Оформление */
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 200px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    
    /* Скрываем без влияния на верстку Дока */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: none; /* Мгновенное исчезновение */
    z-index: 9999;
}

/* Только этот класс делает окно видимым */
.dock-music-popup.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.music-option {
    padding: 8px;
    font-size: 12px;
    color: #ccc;
    cursor: pointer;
    border-radius: 6px;
}

.music-option:hover {
    background: #BE95FF;
    color: #000;
}

.playing-now-status {
    /* 1. Позиционирование: прибиваем к левому нижнему углу */
    position: fixed;
    bottom: 20px; /* Отступ от нижнего края экрана */
    left: 20px;   /* Отступ от левого края экрана */
    
    /* 2. Визуальный стиль: серый цвет и системный шрифт */
    color: #8e8e93; /* Тот самый серый из macOS / iOS */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px; /* Небольшой, аккуратный размер */
    font-weight: 400;
    letter-spacing: 0.2px;
    
    /* 3. Приоритет отображения */
    z-index: 999999; /* Чтобы надпись всегда была поверх остальных блоков */
    pointer-events: none; /* Чтобы текст не мешал кликать по элементам под ним */
    
    /* 4. Декор */
    text-transform: none; /* Чтобы текст был как в оригинале */
    opacity: 0.9;
    user-select: none; /* Чтобы нельзя было случайно выделить текст мышкой */
}

/* Стиль для самого названия трека (сделаем чуть белее или жирнее по желанию) */
#track-name {
    margin-left: 4px;
    font-weight: 500;
    color: #a1a1a6; /* Чуть более светлый серый для акцента на названии */
}


/* Подложка на весь экран */
.mac-lion-modal {
    display: none; /* Скрыто до нажатия Login */
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* Корпус окна */
.mac-modal-window {
    width: 380px;
    height: 380px;
    background: #f0f0f0;
    border: 1px solid #737373;
    border-radius: 5px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    overflow: hidden;
    position: relative;
    animation: macAppear 0.2s ease-out;
}

.mac-modal-body{
    overflow-y: auto;
    height: calc(100% - 36px);
}

/* Заголовок с градиентом Lion */
.mac-modal-header {
    height: 36px;
    background: linear-gradient(to bottom, #ffffff 0%, #b4b4b4 100%);
    border-bottom: 1px solid #000000;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

/* Светофор (три кнопки слева) */
.mac-traffic-lights {
    display: flex;
    gap: 8px;
}

.mac-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.25);
    cursor: pointer;
}

.red { background: #ff5f57; box-shadow: inset 0 0 2px rgba(0,0,0,0.2); }
.yellow { background: #ffbd2e; box-shadow: inset 0 0 2px rgba(0,0,0,0.2); }
.green { background: #28c940; box-shadow: inset 0 0 2px rgba(0,0,0,0.2); }

/* Кнопки навигации со стрелками */
.mac-modal-nav {
    display: flex;
    margin-left: 18px;
    border: 1px solid #8e8e8e;
    border-radius: 4px;
    background: linear-gradient(to bottom, #fefefe, #e5e5e5);
}

.mac-nav-btn {
    background: none;
    border: none;
    padding: 2px 9px;
    font-size: 10px;
    color: #444;
    cursor: pointer;
}

.mac-nav-btn:first-child { border-right: 1px solid #8e8e8e; }

/* Контентная часть */
.mac-modal-body { padding: 25px 30px; text-align: center; }
.mac-modal-title { font-size: 17px; font-weight: 500; margin-bottom: 18px; color: #000; }
.mac-auth-form { display: flex; flex-direction: column; gap: 10px; }

.mac-lion-input {
    padding: 7px 10px;
    border: 1px solid #acacac;
    border-radius: 3px;
    outline: none;
    font-size: 13px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.mac-lion-submit {
    margin-top: 8px;
    padding: 6px;
    background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
    border: 1px solid #999;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.mac-switch-auth {
    background: none;
    border: none;
    color: #007aff; /* Синий цвет Apple */
    font-size: 11px;
    margin-top: 15px;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 400;
}

.mac-switch-auth:hover {
    color: #0056b3;
}

@keyframes macAppear {
    from { transform: scale(1.05); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.mac-bar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Чтобы текст не мешал кликам, если они перекроются */
    z-index: 5001;
}

#dynamic-app-name {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-weight: 600; /* Системный жирный шрифт Lion */
    font-size: 13px;
    color: #000;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Контейнер для центрирования содержимого внутри секции */
.wip-center-wrapper {
    display: flex;
    justify-content: center; /* Центр по горизонтали */
    align-items: center;     /* Центр по вертикали */
    height: 60vh;            /* Высота блока, чтобы текст не прилипал к верху */
    width: 100%;
}

/* Стиль самой надписи */
.soon-text {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    font-size: 120px;        /* Очень большой размер */
    font-weight: 800;        /* Максимально жирный */
    letter-spacing: -5px;    /* Сближенные буквы в стиле современного дизайна */
    color: rgba(255, 255, 255, 0.1); /* Полупрозрачный белый, как вотермарка */
    text-transform: uppercase;
    user-select: none;       /* Чтобы нельзя было выделить текст */
}

/* Основной контейнер на весь экран */
.wip-center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh; /* Чуть увеличим высоту для баланса */
    width: 100%;
}

/* Группа контента (текст + гифка) */
.wip-content {
    display: flex;
    flex-direction: column; /* Элементы встают в колонку (друг под другом) */
    align-items: center;    /* Центрируем их по горизонтали внутри колонки */
    gap: 0px;              /* Расстояние между текстом и гифкой */
}

/* Стиль гифки */
.soon-gif {
    max-width: 300px;       /* Ограничим ширину, чтобы она не была огромной */
    border-radius: 15px;    /* Скруглим углы в стиле современного macOS */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Добавим глубины */
}

/* Текст (оставляем твой большой шрифт) */
.soon-text {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    font-size: 120px;
    font-weight: 800;
    letter-spacing: -5px;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    line-height: 1; /* Чтобы не было лишнего места снизу от текста */
    margin: 0;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
}

.daily-claim-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: white;
    
    /* Акцентный синий градиент в стиле Lion */
    background: linear-gradient(to bottom, #BE95FF 0%, #BE95FF 100%);
    
    border: 1px solid #BE95FF;
    border-radius: 6px;
    cursor: pointer;
    
    /* Тень и свечение */
    box-shadow: 0 4px 15px rgba(255, 8, 160, 0.3);
    transition: all 0.2s ease;
}

.daily-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 0, 152, 0.5);
    background: linear-gradient(to bottom, #8a1a99 0%, #d900ff 100%);
}

.daily-claim-btn:active {
    transform: translateY(0);
    background: linear-gradient(to bottom, #430046 0%, #38003e 100%);
}

.collections-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 40px;
    flex-wrap: wrap;
}

.collection-card {
    width: 600px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: #007aff;
}

/* Стили баннеров внутри карточек */
.collection-banner {
    height: 450px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    background: #ccc;
}

.og-style {
    background: linear-gradient(135deg, #2c3e50, #000000); /* Темный стиль для OG */
}

.community-style {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* Светлый стиль для Community */
}

.collection-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.collection-info {
    padding: 15px;
}

.collection-info h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.collection-info p {
    font-size: 13px;
    color: #666;
    margin: 5px 0 15px;
}

.collection-stats {
    font-size: 11px;
    font-weight: 700;
    color: #AD3094;
}

/* Контейнер, который держит и гифку, и текст */
.layers-container {
    display: flex;
    flex-direction: column; /* Элементы по вертикали */
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Гифка - СВЕРХУ */
.soon-gif-top {
    position: relative;
    z-index: 10; /* Высокий приоритет */
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Надпись - ПОД ГИФКОЙ */
.soon-text-bg {
    /* Чтобы надпись "залезла" под гифку, мы используем отрицательный margin */
    margin-top: -100px; /* Поднимаем надпись ВНУТРЬ области гифки */
    
    position: relative;
    z-index: 5; /* Ниже, чем у гифки */
    
    /* Опускаем текст чуть ниже, если нужно именно смещение вниз */
    padding-top: 100px; 

    /* Стили шрифта */
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    font-size: 160px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.07);
    text-transform: uppercase;
    letter-spacing: -5px;
    white-space: nowrap;
    pointer-events: none; /* Чтобы текст не мешал кликать по гифке */
}

.auth-error-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ff4d4d; /* Красный цвет для ошибок */
    font-size: 13px;
    margin-bottom: 12px;
    margin-top: 10px;
    text-align: center;
    display: block; /* Всегда отображается как блок */
    font-weight: 500;
    line-height: 1.4;
    min-height: 40px; /* Зарезервированное место — окно не вырастет при добавлении текста */
    overflow: hidden; /* Если текст слишком длинный — не даст переполнению увеличить окно */
}

.auth-error-text p {
    margin: 5px 0;
    padding: 0;
}