/* ============== COOKIES BANNER ============== */
.cookies-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookies-banner.show {
    transform: translateY(0);
}

.cookies-banner-content {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.3);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid rgba(124, 58, 237, 0.3);
    max-width: 1200px;
    margin: 0 auto;
}

.cookies-icon {
    flex-shrink: 0;
}

.cookies-icon i {
    font-size: 32px;
    color: var(--primary-light);
}

.cookies-text {
    flex: 1;
    min-width: 200px;
}

.cookies-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.cookies-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.cookies-text a {
    color: var(--primary-light);
    text-decoration: none;
}

.cookies-text a:hover {
    text-decoration: underline;
}

.cookies-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookies {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookies.accept {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-cookies.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.btn-cookies.decline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cookies.decline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Subscription Type */
@media (max-width: 768px) {
    .feedback-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .feedback-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 20px;
    }

    .feedback-modal-header,
    .feedback-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .feedback-actions {
        flex-direction: column;
    }

    .feedback-btn {
        width: 100%;
    }

    .feedback-modal-header {
        flex: 0 0 auto;
        padding-top: 18px;
        padding-bottom: 14px;
    }

    .feedback-modal-header h2 {
        font-size: 22px;
    }

    .feedback-form {
        padding-top: 16px;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .feedback-history {
        max-height: min(32dvh, 250px);
    }

    .feedback-field textarea {
        min-height: 128px;
        resize: none;
    }

    .cookies-banner {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
    
    .cookies-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .cookies-text {
        text-align: center;
    }
    
    .cookies-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn-cookies {
        flex: 1;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .cookies-banner-content {
        padding: 18px;
    }
    
    .cookies-text h4 {
        font-size: 15px;
    }
    
    .cookies-text p {
        font-size: 12px;
    }
    
    .btn-cookies {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============== ДЕСКТОПНЫЙ ХЕДЕР ============== */
.desktop-header {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 15px 24px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Логотип */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Карточка сервера */
.server-status-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 20px;
    background: var(--light);
    border-radius: var(--radius-lg);
    flex: 1;
    max-width: 600px;
}

.server-icon {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-icon i {
    font-size: 20px;
    color: var(--primary);
}

.server-info-details {
    flex: 1;
}

.server-name-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.server-label {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.server-url {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--gray);
    margin-top: 4px;
}

.server-url i {
    font-size: 10px;
}


/* Кнопки действий */
.header-actions {
    display: flex;
    gap: 10px;
}

.header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray);
    text-decoration: none;
}

.header-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.feedback-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.32);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.has-feedback-unread .feedback-unread-badge {
    display: inline-flex;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feedback-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(8px);
}

.feedback-modal-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
    overflow: hidden;
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 28px 18px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}

.feedback-modal-header h2 {
    margin: 0;
    color: var(--dark);
    font-size: 24px;
    line-height: 1.2;
}

.feedback-modal-header p {
    margin: 6px 0 0;
    color: var(--gray);
    line-height: 1.45;
}

.feedback-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: none;
    border-radius: 14px;
    background: var(--light);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.feedback-close:hover {
    background: var(--primary);
    color: #fff;
}

.feedback-form {
    min-height: 0;
    overflow-y: auto;
    padding: 24px 28px 28px;
}

.feedback-history {
    display: grid;
    gap: 10px;
    max-height: 260px;
    overflow: auto;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.feedback-history-item {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.feedback-history-item.in {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.feedback-history-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
}

.feedback-history-text {
    color: var(--dark);
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.feedback-field {
    display: grid;
    gap: 8px;
}

.feedback-field span {
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
}

.feedback-field textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 18px;
    padding: 16px 18px;
    color: var(--dark);
    background: #fff;
    font: inherit;
    line-height: 1.45;
    outline: none;
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.08);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feedback-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.13), 0 18px 40px rgba(124, 58, 237, 0.12);
}

.feedback-attachments-field {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.feedback-attach-btn {
    width: fit-content;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.feedback-attach-btn:hover {
    background: rgba(124, 58, 237, 0.14);
    transform: translateY(-1px);
}

.feedback-selected-files,
.feedback-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
}

.feedback-file-chip button {
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
}

.feedback-attachment-link {
    display: block;
    width: 112px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: #fff;
}

.feedback-attachment-link img {
    width: 100%;
    height: 84px;
    display: block;
    object-fit: cover;
}

.feedback-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.feedback-image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
}

.feedback-image-viewer-dialog {
    position: relative;
    max-width: min(1100px, 96vw);
    max-height: 92vh;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
    overflow: hidden;
}

.feedback-image-viewer-dialog img {
    display: block;
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
}

.feedback-image-viewer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    transition: var(--transition);
}

.feedback-image-viewer-close:hover {
    background: var(--primary);
    color: #fff;
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.feedback-btn {
    min-height: 48px;
    border: none;
    border-radius: 16px;
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.feedback-btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
}

.feedback-btn.secondary {
    background: var(--light);
    color: var(--dark);
}

.feedback-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.feedback-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#mobile-feedback-btn {
    position: relative;
}

#mobile-feedback-btn .feedback-unread-badge {
    top: 10px;
    right: 34px;
}

/* Быстрые переходы */
.quick-modules-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-modules {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-module {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--light);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--dark);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.quick-module i {
    font-size: 14px;
    color: var(--primary);
}

.quick-module:hover:not(.disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.quick-module:hover:not(.disabled) i {
    color: white;
}

.quick-module.active {
    background: var(--primary);
    color: white;
}

.quick-module.active i {
    color: white;
}

.quick-module.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dev-badge {
    font-size: 9px;
    background: var(--gray);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}

/* ============== МОБИЛЬНЫЙ НИЖНИЙ БАР ============== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 5px;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 11px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
    flex: 1;
    max-width: 70px;
    position: relative;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    font-weight: 500;
    white-space: nowrap;
}

.mobile-nav-item:hover:not(.disabled) {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
}

.mobile-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dev-badge-mobile {
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 8px;
    background: var(--gray);
    color: white;
    padding: 2px 4px;
    border-radius: 10px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: -20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.mobile-logo .mobile-brand-mark {
    display: block;
    width: 32px;
    height: 32px;
}

.mobile-logo:hover {
    transform: scale(1.05);
}

/* ============== МОБИЛЬНОЕ МЕНЮ-ПАНЕЛЬ ============== */
.mobile-menu-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu-panel.open {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light);
}

.mobile-menu-header h3 {
    font-size: 18px;
    color: var(--dark);
}

.close-menu {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.close-menu:hover {
    background: var(--danger);
    color: white;
}

.mobile-menu-items {
    padding: 10px 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    border-bottom: 1px solid var(--light);
}

.mobile-menu-item i:first-child {
    width: 24px;
    font-size: 18px;
    color: var(--primary);
}

.mobile-menu-item span {
    flex: 1;
    font-weight: 500;
}

.mobile-menu-item .fa-chevron-right {
    color: var(--gray);
    font-size: 12px;
}

.mobile-menu-item:hover:not(.disabled) {
    background: var(--light);
    padding-left: 25px;
}

.mobile-menu-item.active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
}

.mobile-menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mobile-menu-item.logout {
    color: var(--danger);
}

.mobile-menu-item.logout i:first-child {
    color: var(--danger);
}

.status-badge {
    font-size: 10px;
    background: var(--gray);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-full);
}

.mobile-menu-divider {
    height: 10px;
    background: var(--light);
    margin: 10px 0;
}

/* ============== АДАПТАЦИЯ ============== */
@media (max-width: 1090px) {
    .quick-modules-container {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 60px;
    }
    .header-container {
        flex-wrap: nowrap;
        flex-direction: column;
    }
    .header-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .server-status-card {
        max-width: 400px;
    }
    body[data-theme="immersive"] .desktop-header {
        padding: 10px;
    }
}


@media (max-width: 480px) {
    .mobile-nav-item {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
    }
    
    .mobile-logo {
        width: 45px;
        height: 45px;
        margin-top: -15px;
    }
    
    .mobile-logo i {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .mobile-nav-item span {
        display: none;
    }
    
    .mobile-nav-item i {
        font-size: 22px;
        margin-bottom: 0;
    }
    
    .mobile-logo {
        width: 50px;
        height: 50px;
    }
}

body[data-theme="immersive"] .desktop-header {
    width: calc(100% - 52px);
    max-width: none;
    margin: 16px 26px 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.60), rgba(248, 244, 255, 0.42)),
        radial-gradient(circle at 14% 18%, rgba(196, 181, 253, 0.10), transparent 24%),
        radial-gradient(circle at 82% 14%, rgba(191, 219, 254, 0.10), transparent 24%);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.32);
    border-radius: 42px 42px 0 0;
    box-shadow: 0 18px 50px rgba(76, 29, 149, 0.10);
}

body[data-theme="immersive"] .server-status-card,
body[data-theme="immersive"] .header-btn,
body[data-theme="immersive"] .quick-module,
body[data-theme="immersive"] .mobile-bottom-nav,
body[data-theme="immersive"] .mobile-menu-panel {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(18px);
}

body[data-theme="immersive"] .quick-modules-container {
    border-top-color: rgba(255, 255, 255, 0.35);
}

body[data-theme="immersive"] .mobile-menu-divider {
    background: rgba(255, 255, 255, 0.32);
}

body[data-theme="immersive"] .quick-module.disabled {
    opacity: 0.62;
}

.header-brand {
    min-width: 260px;
}

.header-brand a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo .header-brand-mark,
.logo .header-brand-copy,
.logo .header-brand-title,
.logo .header-brand-slogan {
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background: none;
}

.logo .header-brand-mark .brand-mark {
    width: 40px;
    height: 40px;
}

.header-brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(139, 92, 246, 0.26));
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    flex: 0 0 46px;
}

.header-brand-mark i {
    font-size: 23px;
    color: #6d28d9;
    filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.18));
    display: block;
    line-height: 1;
}

.header-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-brand-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-brand-slogan {
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
    max-width: 320px;
}

.server-status-card {
    padding: 10px 16px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.06);
}

.server-info-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-name {
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.server-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.server-subscription,
.server-connection {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.server-subscription {
    background: rgba(124, 58, 237, 0.10);
    color: #6d28d9;
}

.server-connection.connected {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.server-connection.disconnected {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.server-url {
    margin-top: 0;
    font-size: 12px;
    color: #667085;
}

.header-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.10);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.06);
}

.quick-modules-container {
    margin-top: 14px;
    padding-top: 14px;
}

.quick-modules-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.quick-modules-title {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.quick-modules-subtitle {
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
}

.quick-modules {
    gap: 10px;
    justify-content: flex-start;
}

.quick-module {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.04);
}

.quick-module i {
    font-size: 14px;
}

.quick-module span {
    white-space: nowrap;
}

.dev-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
}

body[data-theme="immersive"] .desktop-header {
    padding: 18px 22px 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(248, 244, 255, 0.44)),
        radial-gradient(circle at 14% 18%, rgba(196, 181, 253, 0.16), transparent 24%),
        radial-gradient(circle at 82% 14%, rgba(191, 219, 254, 0.14), transparent 24%);
}

body[data-theme="immersive"] .header-brand-mark {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 255, 255, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.58);
}

body[data-theme="immersive"] .header-brand-title {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body[data-theme="immersive"] .header-brand-slogan {
    color: #5b6475;
    font-size: 14px;
}

body[data-theme="immersive"] .server-status-card,
body[data-theme="immersive"] .header-btn,
body[data-theme="immersive"] .quick-module,
body[data-theme="immersive"] .mobile-bottom-nav,
body[data-theme="immersive"] .mobile-menu-panel {
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(18px);
}

body[data-theme="immersive"] .header-container {
    align-items: stretch;
}

body[data-theme="immersive"] .server-status-card {
    align-self: stretch;
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: none;
}

body[data-theme="immersive"] .server-icon {
    background: rgba(124, 58, 237, 0.12);
}

body[data-theme="immersive"] .server-subscription {
    background: rgba(124, 58, 237, 0.12);
}

body[data-theme="immersive"] .server-connection.connected {
    background: rgba(16, 185, 129, 0.14);
}

body[data-theme="immersive"] .server-connection.disconnected {
    background: rgba(245, 158, 11, 0.16);
}

body[data-theme="immersive"] .quick-modules-title,
body[data-theme="immersive"] .server-name {
    color: #1d2433;
}

body[data-theme="immersive"] .quick-modules-subtitle,
body[data-theme="immersive"] .server-url,
body[data-theme="immersive"] .header-brand-slogan {
    color: #667085;
}

body[data-theme="immersive"] .quick-module {
    color: #243041;
}

body[data-theme="immersive"] .quick-module.active {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.22);
}

body[data-theme="immersive"] .header-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.24);
    transform: translateY(-2px);
}

body[data-theme="immersive"] .header-btn:hover i {
    color: #ffffff;
}

body[data-theme="immersive"] .quick-modules-container {
    border-top-color: rgba(255, 255, 255, 0.22);
}

body[data-theme="immersive"] .quick-module.active span,
body[data-theme="immersive"] .quick-module.active i {
    color: #ffffff;
}

body[data-theme="immersive"] .quick-module.disabled {
    opacity: 0.88;
}

body[data-theme="immersive"][data-page="app-home"] .desktop-header {
    position: relative;
    width: calc(100% - 104px);
    margin: 24px 52px 0;
    padding: 22px 24px 14px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-bottom: 0;
    border-radius: 36px 36px 0 0;
    box-shadow: 0 18px 42px rgba(76, 29, 149, 0.08);
    background:
        radial-gradient(circle at 10% 0%, rgba(167, 139, 250, 0.14), transparent 32%),
        radial-gradient(circle at 88% 10%, rgba(147, 197, 253, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 244, 255, 0.54));
    backdrop-filter: blur(22px);
}

body[data-theme="immersive"][data-page="app-home"] .desktop-header::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: -1px;
    height: 1px;
    background: rgba(124, 58, 237, 0.08);
    pointer-events: none;
}

body[data-theme="immersive"][data-page="app-home"] .server-status-card {
    max-width: 520px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 6px 8px;
}

body[data-theme="immersive"][data-page="app-home"] .quick-modules-container {
    margin-top: 18px;
    padding-top: 14px;
    border-top-color: rgba(124, 58, 237, 0.08);
}

body[data-theme="immersive"][data-page="app-home"] .quick-module {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 8px 18px rgba(76, 29, 149, 0.05);
}

body[data-theme="immersive"][data-page="app-home"] .quick-module.active {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(124, 58, 237, 0.20);
    color: #5b21b6;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.10);
}

body[data-theme="immersive"][data-page="app-home"] .quick-module.active span,
body[data-theme="immersive"][data-page="app-home"] .quick-module.active i {
    color: #6d28d9;
}

body[data-theme="immersive"][data-page="app-home"] .quick-module:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(124, 58, 237, 0.22);
    color: #5b21b6;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.12);
}

body[data-theme="immersive"][data-page="app-home"] .quick-module:hover:not(.disabled) span,
body[data-theme="immersive"][data-page="app-home"] .quick-module:hover:not(.disabled) i {
    color: #6d28d9;
}

@media (max-width: 1090px) {
    .header-brand {
        min-width: 0;
    }

    .header-brand-copy {
        align-items: center;
        text-align: center;
    }

    .quick-modules-head {
        display: none;
    }
}

@media (max-width: 768px) {
    body[data-theme="immersive"][data-page="app-home"] .desktop-header {
        width: calc(100% - 32px);
        margin: 16px 16px 0;
        padding: 18px 16px 12px;
        border-radius: 28px 28px 0 0;
    }

    .header-brand-title {
        font-size: 18px;
    }

    .header-brand-slogan {
        font-size: 12px;
        max-width: none;
    }

    .server-meta-row {
        justify-content: center;
        display: contents;
    }
    body[data-theme="immersive"] .desktop-header {
        width: 100%;
        margin: 0;
    }
    body[data-theme="immersive"] .server-icon {
        display: none;
    }

}
