/* --- BOOT SCREEN --- */
#boot-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s;
    /* Кликабельность сквозь лоадер на случай сбоя */
    pointer-events: none; 
}

.loader-ring {
    width: 40px; height: 40px;
    border: 2px solid #222;
    border-top-color: #00ff41;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

.boot-text {
    font-family: 'Inter', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: #fff;
    font-weight: 700;
}

/* --- ВХОД ЭЛЕМЕНТОВ --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-list > div {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0; /* Исходное состояние */
}

/* Каскад появления писем */
.content-list > div:nth-child(1) { animation-delay: 0.05s; }
.content-list > div:nth-child(2) { animation-delay: 0.1s; }
.content-list > div:nth-child(3) { animation-delay: 0.15s; }
.content-list > div:nth-child(4) { animation-delay: 0.2s; }
.content-list > div:nth-child(5) { animation-delay: 0.25s; }

/* --- МОДАЛКИ (Slide Up) --- */
.modal-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex; align-items: flex-end; /* Прижимаем к низу */
    opacity: 0; visibility: hidden;
    transition: 0.3s ease;
}

.modal-layer.active {
    opacity: 1; visibility: visible;
}

.modal-panel {
    width: 100%;
    background: #111;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid #333;
    padding: 24px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-layer.active .modal-panel {
    transform: translateY(0);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}