/* Year 3 UX bundle — months 25–36 */

/* Wizard (month 26) */
.create-wizard { margin-bottom: var(--space-4); }
.wizard-steps {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}
.wizard-step {
    flex: 1;
    min-width: 80px;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--surface-3);
    border: 1px solid var(--border);
    font-size: var(--text-xs);
    text-align: center;
    color: var(--text-muted);
}
.wizard-step.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.wizard-step.done { opacity: 0.7; }
.wizard-panel.hidden { display: none !important; }

/* Cabinet sidebar (month 26) */
@media (min-width: 900px) {
    .cabinet-layout {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: var(--space-4);
        align-items: start;
    }
    .cabinet-sidebar {
        position: sticky;
        top: var(--space-4);
        display: flex;
        flex-direction: column;
        gap: var(--space-1);
    }
    .cabinet-sidebar .cabinet-tab {
        width: 100%;
        text-align: left;
        border-radius: var(--radius-md);
    }
    .cabinet-wrap > .cabinet-tabs { display: none; }
}
@media (max-width: 899px) {
    .cabinet-sidebar { display: none; }
}

/* Room mobile bottom sheet (month 27) */
.room-bottom-sheet {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    max-height: 70vh;
    background: var(--surface-2);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: 1px solid var(--border);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out);
    padding: var(--space-4);
    overflow-y: auto;
}
.room-bottom-sheet.open { transform: translateY(0); }
.room-sheet-handle {
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-3);
}
.room-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: var(--space-2) var(--space-3);
    padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    z-index: 150;
    justify-content: space-around;
    gap: var(--space-2);
}
@media (max-width: 768px) {
    .room-mobile-bar { display: flex; }
    #roomScreen:not(.hidden) .room-bottom-sheet { display: block; }
}

/* Chat bubbles v2 (month 27) */
.chat-msg { margin-bottom: var(--space-2); max-width: 85%; }
.chat-msg.own {
    margin-left: auto;
    background: var(--chat-own, rgba(108, 99, 255, 0.35));
    border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
    padding: var(--space-2) var(--space-3);
}
.chat-msg.other {
    background: var(--chat-other, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
    padding: var(--space-2) var(--space-3);
}
.chat-reactions { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.chat-reaction {
    font-size: 14px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    border: none;
    cursor: pointer;
}

/* Toast v2 (month 26) */
.toast-v2 {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    min-width: 260px;
    max-width: 360px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: toast-in 0.3s var(--ease-out);
}
.toast-v2.success { background: #1b5e20; color: #fff; }
.toast-v2.error { background: #b71c1c; color: #fff; }
.toast-v2.info { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.toast-v2-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-v2-body { flex: 1; font-size: var(--text-sm); }
.toast-v2-close {
    background: none; border: none; color: inherit; opacity: 0.7;
    cursor: pointer; font-size: 1.1rem; padding: 0;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Profile cover (month 28) */
.profile-cover {
    height: 120px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, var(--accent-soft), var(--surface-3));
    margin: calc(-1 * var(--density-padding)) calc(-1 * var(--density-padding)) var(--space-4);
}
.profile-stats {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin: var(--space-3) 0;
    flex-wrap: wrap;
}
.profile-stat { text-align: center; }
.profile-stat strong { display: block; font-size: var(--text-xl); }

/* Friends grid (month 28) */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-3);
}
.friend-card {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-3);
    text-align: center;
}
.friend-card-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    margin: 0 auto var(--space-2);
    background: var(--surface);
    background-size: cover;
}

/* VIP compare (month 29) */
.vip-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-3);
}
.vip-plan {
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}
.vip-plan.featured { border-color: var(--accent); box-shadow: var(--glow, 0 0 40px rgba(108,99,255,0.15)); }

/* Feedback widget (month 35) */
.vp-feedback-fab {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: 16px;
    z-index: 300;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.vp-feedback-panel {
    position: fixed;
    bottom: 72px; right: 16px;
    width: min(320px, calc(100vw - 32px));
    padding: var(--space-4);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 301;
}
.vp-feedback-panel.hidden { display: none !important; }

/* Skip link (month 33) */
.vp-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: var(--space-2) var(--space-4);
    background: var(--accent);
    color: #fff;
}
.vp-skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* View transitions (month 32) */
@supports (view-transition-name: none) {
    ::view-transition-old(root), ::view-transition-new(root) {
        animation-duration: 0.25s;
    }
}

/* Illustrations empty state */
.empty-illus {
    font-size: 3rem;
    margin-bottom: var(--space-3);
    opacity: 0.5;
}

/* Landing (month 36) */
.landing-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8) var(--space-4);
}
.landing-hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: var(--space-4); }
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    max-width: 960px;
    margin: var(--space-8) auto;
    padding: 0 var(--space-4);
}

/* Desktop app download (main page) — скрыто в Electron-клиенте */
html[data-vp-desktop] #desktopDownloadSection {
    display: none !important;
}

.desktop-download-card {
    margin: 28px 0 8px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12) 0%, rgba(26, 23, 48, 0.5) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.desktop-download-inner {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.desktop-download-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(108, 99, 255, 0.15);
}

.desktop-download-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.desktop-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.desktop-download-meta {
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .desktop-download-inner { flex-direction: column; }
}
