/* =========================================
   1. ПЛАВАЮЩИЙ ПЕРЕКЛЮЧАТЕЛЬ ДИЗАЙНА (Виден всегда)
========================================= */
.theme-switcher-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(12, 5, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100000;
    border: 1px solid rgba(138, 43, 226, 0.5);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.theme-switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}
.theme-switch-toggle input { opacity: 0; width: 0; height: 0; }
.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #4b5563;
    transition: .4s;
    border-radius: 34px;
}
.theme-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.theme-switch-toggle input:checked + .theme-slider { background-color: #8a2be2; box-shadow: 0 0 10px #8a2be2; }
.theme-switch-toggle input:checked + .theme-slider:before { transform: translateX(20px); }
.theme-label-txt { font-size: 0.95rem; font-weight: bold; letter-spacing: 0.5px; }


/* =========================================
   2. ТОЛЬКО ДЛЯ PRO ДИЗАЙНА (Работает при включенном тумблере)
========================================= */

body.theme-cyberpunk {
    background-color: #0c0514 !important;
    background-image: radial-gradient(circle at 50% 0%, #1d0b3b 0%, #0c0514 50%);
    color: #e0d4ff !important;
    min-height: 100vh;
}
body.theme-cyberpunk .page-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 100px !important;
}

/* ВЕРХНЯЯ ШАПКА */
.custom-top-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 90px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; z-index: 1040; pointer-events: none;
}
.custom-top-header > * { pointer-events: auto; }

.custom-menu-btn {
    background: linear-gradient(135deg, #8a2be2 0%, #4b0082 100%);
    color: white !important; border: none; padding: 12px 28px;
    border-radius: 12px; font-weight: bold; font-size: 1.1rem;
    cursor: pointer; box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
.custom-menu-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6); }

/* ЛОГОТИП */
.custom-main-logo {
    font-size: 4rem !important; font-weight: 900 !important; color: white !important;
    letter-spacing: 2px !important; text-transform: uppercase; text-decoration: none !important;
    position: absolute; left: 50%; transform: translateX(-50%); margin: 0 !important;
    -webkit-text-stroke: 2px #8a2be2 !important; text-stroke: 2px #8a2be2 !important;
    text-shadow: 0 0 10px rgba(138, 43, 226, 1), 0 0 20px rgba(138, 43, 226, 0.9), 0 0 40px rgba(138, 43, 226, 0.7), 0 0 60px rgba(138, 43, 226, 0.5) !important;
}

/* КНОПКА ВЫХОД */
.custom-logout-btn {
    background: rgba(255, 77, 77, 0.05) !important; color: white !important;
    border: 1px solid #ff4d4d !important; border-radius: 10px !important;
    padding: 10px 20px !important; font-size: 0.95rem !important; font-weight: bold !important;
    text-decoration: none !important; transition: 0.3s !important;
    display: flex !important; align-items: center !important; gap: 8px;
}
.custom-logout-btn:hover {
    background: #ff4d4d !important; box-shadow: 0 5px 25px rgba(255, 77, 77, 0.6) !important; transform: translateY(-2px);
}

/* МОДАЛЬНОЕ ОКНО МЕНЮ (С ИДЕАЛЬНЫМИ ОТСТУПАМИ) */
body.theme-cyberpunk .navbar-vertical {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(12, 5, 20, 0.95) !important; backdrop-filter: blur(15px) !important;
    z-index: 9999 !important; border: none !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    
    /* 🔥 ВОТ ОНИ - ЖЕСТКИЕ ОТСТУПЫ ОТ КРАЕВ ЭКРАНА */
    padding: 40px 80px !important; 
    box-sizing: border-box !important;
    
    opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body.theme-cyberpunk .navbar-vertical.menu-active { opacity: 1; visibility: visible; }

.custom-close-btn {
    position: absolute; top: 30px; right: 40px; background: transparent; color: #b088ff;
    border: none; font-size: 3rem; line-height: 1; cursor: pointer; transition: 0.3s; z-index: 10000;
}
.custom-close-btn:hover { color: #fff; transform: rotate(90deg) scale(1.1); }

/* КОЛОНКИ МЕНЮ (С ОБЪЕМОМ И ДИСТАНЦИЕЙ) */
body.theme-cyberpunk .navbar-vertical .navbar-collapse {
    width: 100% !important; max-width: 1400px !important; /* Увеличили макс. ширину */
    display: flex !important; justify-content: center !important; margin: 0 auto !important;
}
body.theme-cyberpunk .navbar-vertical .navbar-nav {
    display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 40px !important; /* 🔥 Увеличили расстояние МЕЖДУ колонками */
    width: 100% !important; margin: 0 !important; padding: 0 !important; /* Убили отступы Tabler */
}

body.theme-cyberpunk .nav-item.dropdown {
    background: rgba(138, 43, 226, 0.05); border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px; 
    padding: 25px !important; /* 🔥 Сделали карточки более объемными внутри */
    box-sizing: border-box !important; transition: 0.3s;
}
body.theme-cyberpunk .nav-item.dropdown:hover {
    background: rgba(138, 43, 226, 0.1); border-color: rgba(138, 43, 226, 0.5); box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

body.theme-cyberpunk .nav-item.dropdown > .nav-link {
    font-size: 1.1rem !important; color: #b088ff !important; font-weight: 800 !important;
    text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    padding-bottom: 10px !important; margin-bottom: 15px !important; pointer-events: none !important;
}
body.theme-cyberpunk .dropdown-toggle::after { display: none !important; }

body.theme-cyberpunk .nav-item.dropdown .dropdown-menu {
    display: flex !important; flex-direction: column !important; position: static !important;
    background: transparent !important; border: none !important; box-shadow: none !important;
    padding: 0 !important; opacity: 1 !important; transform: none !important;
}

body.theme-cyberpunk .dropdown-item {
    color: #e0d4ff !important; padding: 10px 15px !important; border-radius: 8px !important;
    transition: 0.2s !important; font-size: 1rem !important; margin-bottom: 5px;
}
body.theme-cyberpunk .dropdown-item:hover {
    background: linear-gradient(90deg, #8a2be2 0%, #5d1b9e 100%) !important; color: #fff !important; transform: translateX(8px);
}