/* ===== Тема и переменные ===== */
:root{
	--kpi-gap: 16px; 
    --hi-bg: #070b16;
    --hi-panel: rgba(255,255,255,.04);
    --hi-border: rgba(0, 255, 255, .18);
    --hi-cyan: #40e0ff;
    --hi-mag: #c43cff;
    --hi-green: #19ff95;
    --sidebar-w: 300px;
    --topbar-h: 58px;
}
html[data-bs-theme="dark"]{
    --bs-body-bg: var(--hi-bg);
    --bs-body-color: #e8f0ff;
    --bs-border-color: rgba(255,255,255,.08);
}

/* ===== Фон: виньетки + сетка ===== */
body{
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(196,60,255,.12), transparent 60%),
        radial-gradient(900px 450px at -10% 110%, rgba(64,224,255,.12), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 30%),
        color-mix(in srgb, var(--hi-bg) 92%, #000 8%);
    min-height: 100vh;
}
body:before{
    content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
    background:
        linear-gradient(transparent 31px, rgba(255,255,255,.04) 32px),
        linear-gradient(90deg, transparent 31px, rgba(255,255,255,.04) 32px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,.7), rgba(0,0,0,0.12) 60%, rgba(0,0,0,0));
}

/* ===== Премиум Topbar ===== */
.premium-navbar{
    height: var(--topbar-h);
    background: linear-gradient(135deg, 
        rgba(255,255,255,.08) 0%, 
        rgba(255,255,255,.04) 50%, 
        rgba(255,255,255,.02) 100%) !important;
    border-bottom: 1px solid rgba(64,224,255,.15);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 0 0 1px rgba(64,224,255,.08) inset,
        0 8px 32px rgba(0,0,0,.3),
        0 0 20px rgba(64,224,255,.05);
}

/* ===== Отдельные стили для топбара ===== */
.premium-navbar .brand-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 0.05rem !important;
    background: linear-gradient(135deg, #fff 0%, #40e0ff 50%, #c43cff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1.1 !important;
}

.premium-navbar .brand-subtitle {
    font-size: 0.75rem !important;
    color: #9bb7ff !important;
    opacity: 0.8 !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

.premium-mobile-menu-btn {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(64,224,255,.15);
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-mobile-menu-btn:hover {
    background: rgba(64,224,255,.1);
    border-color: rgba(64,224,255,.3);
    transform: scale(1.05);
}

.menu-icon {
    color: #40e0ff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.premium-mobile-menu-btn:hover .menu-icon {
    color: #fff;
    transform: rotate(90deg);
}

.premium-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(64,224,255,.3);
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 100%);
    border-radius: 12px;
}

.brand-icon i {
    font-size: 0.9rem;
    color: #fff;
    position: relative;
    z-index: 2;
}

.brand-content {
    flex: 1;
}

.premium-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-user-info {
    padding: 0.4rem 0.65rem;
    background: rgba(255,255,255,.05);
    border-radius: 8px;
    border: 1px solid rgba(64,224,255,.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.premium-user-info:hover {
    background: rgba(64,224,255,.08);
    border-color: rgba(64,224,255,.2);
    transform: translateY(-1px);
}

.user-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(64,224,255,.3);
    margin-right: 0.5rem;
}

.avatar-mini-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.user-details {
    flex: 1;
}

.user-name-mini {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.05rem;
    line-height: 1.2;
}

.user-status-mini {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6rem;
    color: #9bb7ff;
}

.status-dot-mini {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #19ff95;
    box-shadow: 0 0 8px rgba(25,255,149,.5);
    animation: statusPulse 2s ease-in-out infinite;
}

.premium-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.premium-action-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.75rem;
}

.premium-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left 0.6s ease;
}

.premium-action-btn:hover::before {
    left: 100%;
}

.premium-btn-primary {
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    color: #fff;
    border: 1px solid rgba(64,224,255,.3);
    box-shadow: 0 2px 10px rgba(64,224,255,.25);
}

.premium-btn-primary:hover {
    background: linear-gradient(135deg, #c43cff 0%, #40e0ff 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(64,224,255,.35);
}

.premium-btn-logout {
    background: rgba(255,107,107,.1);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,.2);
}

.premium-btn-logout:hover {
    background: rgba(255,107,107,.2);
    color: #fff;
    border-color: rgba(255,107,107,.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,107,107,.25);
}

.btn-icon-wrapper {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.premium-action-btn:hover .btn-icon-wrapper {
    transform: scale(1.1);
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.2px;
    font-size: 0.75rem;
}

/* ===== Старый Topbar (для совместимости) ===== */
.navbar{
    height: var(--topbar-h);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)) !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px) saturate(140%);
}
.navbar-brand{
    font-family: Orbitron, Inter, sans-serif;
    letter-spacing: .06em;
    color: #9ad7ff;
}

/* ===== Sidebar (desktop) для админки ===== */
@media (min-width: 992px){
    /* Стили только для админского сайдбара, не для premium-sidebar */
    aside.sidebar:not(.premium-sidebar){
        position: fixed; z-index: 2;
        top: calc(var(--topbar-h) + 20px); left: 18px;
        width: calc(var(--sidebar-w) - 18px);
        height: calc(100vh - var(--topbar-h) - 40px);
        padding: 10px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
        border: 1px solid var(--hi-border);
        box-shadow:
            0 0 0 1px rgba(64,224,255,.08) inset,
            0 18px 36px rgba(0,0,0,.55),
            0 0 24px rgba(64,224,255,.08);
        backdrop-filter: blur(12px) saturate(160%);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Отступ для контента в админке с премиум sidebar - используем те же стили что и в кабинете */
    body:has(.premium-sidebar) .content-wrap:not(:has(.cabinet-content)),
    .premium-sidebar ~ .content-wrap:not(:has(.cabinet-content)),
    .content-wrap:has(~ .premium-sidebar):not(:has(.cabinet-content)) {
        margin-left: 290px !important;
        margin-top: var(--topbar-h) !important;
    }
    
    /* Базовый отступ для контента в админке (старый стиль) */
    body .content-wrap:not(:has(~ .premium-sidebar)) {
        margin-left: var(--sidebar-w);
        margin-top: var(--topbar-h);
    }
    
    .navbar.sticky-top{ position: fixed; top:0; left:0; right:0; }
}

/* ===== Стили кнопок для десктопа ===== */
.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border: 1px solid rgba(255,193,7,0.3);
    color: #000;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #ff8c00, #ff6b00);
    border-color: rgba(255,193,7,0.5);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,193,7,0.3);
}

.btn-neo {
    background: linear-gradient(45deg, #40e0ff, #c43cff);
    border: 1px solid rgba(64,224,255,0.3);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-neo:hover {
    background: linear-gradient(45deg, #c43cff, #40e0ff);
    border-color: rgba(64,224,255,0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64,224,255,0.3);
}

/* ===== Мобильная адаптация премиум топбара ===== */
@media (max-width: 991px) {
    .premium-navbar {
        height: 50px;
        padding: 0.3rem 0.8rem;
    }
    
    .premium-navbar-brand {
        gap: 0.5rem;
    }
    
    .brand-icon {
        width: 32px;
        height: 32px;
    }
    
    .brand-icon i {
        font-size: 1rem;
    }
    
    .premium-navbar .brand-title {
        font-size: 0.8rem !important;
    }
    
    .premium-navbar .brand-subtitle {
        font-size: 0.65rem !important;
    }
    
    .premium-user-info {
        display: none !important;
    }
    
    .premium-action-buttons {
        gap: 0.5rem;
    }
    
    .premium-action-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .btn-text {
        display: none;
    }
    
    .premium-action-btn .btn-icon-wrapper {
        width: 18px;
        height: 18px;
    }
    
    .premium-mobile-menu-btn {
        min-width: 40px;
        max-width: 40px;
        height: 40px;
        padding: 0.4rem;
    }
    
    .menu-icon {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .premium-navbar {
        height: 48px;
        padding: 0.3rem 0.6rem;
    }
    
    .brand-icon {
        width: 28px;
        height: 28px;
    }
    
    .brand-icon i {
        font-size: 0.9rem;
    }
    
    .premium-navbar .brand-title {
        font-size: 0.75rem !important;
    }
    
    .premium-navbar .brand-subtitle {
        font-size: 0.6rem !important;
    }
    
    .premium-action-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .premium-mobile-menu-btn {
        min-width: 36px;
        max-width: 36px;
        height: 36px;
        padding: 0.3rem;
    }
    
    .menu-icon {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .premium-navbar {
        height: 44px;
        padding: 0.2rem 0.5rem;
    }
    
    .brand-icon {
        width: 24px;
        height: 24px;
    }
    
    .brand-icon i {
        font-size: 0.8rem;
    }
    
    .premium-navbar .brand-title {
        font-size: 0.7rem !important;
    }
    
    .premium-navbar .brand-subtitle {
        font-size: 0.55rem !important;
    }
    
    .premium-action-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .premium-mobile-menu-btn {
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        padding: 0.25rem;
    }
    
    .menu-icon {
        font-size: 0.8rem;
    }
}

/* ===== Планшеты ===== */
@media (max-width: 768px) {
    .navbar {
        height: 48px;
        padding: 0.3rem 0.6rem;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .dropdown-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .d-flex.align-items-center {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }
    
    .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Планшетные стили для кабинета */
    .content-wrap .cabinet-content{ padding: 1rem 1.5rem; }
    .content-wrap .cabinet-content .mb-3[style*="margin-top"]{ margin-top: 8px !important; }
    
}

/* ===== Телефоны ===== */
@media (max-width: 576px) {
    .navbar {
        height: 44px;
        padding: 0.2rem 0.5rem;
    }
    
    .navbar-brand {
        font-size: 0.8rem;
    }
    
    .navbar-brand i {
        font-size: 0.7rem;
    }
    
    .navbar-collapse {
        margin-top: 0.2rem;
        padding: 0.6rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .dropdown-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .d-flex.align-items-center {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .d-flex.align-items-center span {
        font-size: 0.7rem;
        min-width: auto;
    }
    
    .btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
        min-width: 100px;
    }
    
    /* Телефонные стили для кабинета */
    .content-wrap .cabinet-content{ padding: 0.5rem 0.75rem; }
    .content-wrap .cabinet-content .mb-3[style*="margin-top"]{ margin-top: 5px !important; }
    
}

/* ===== Премиум Sidebar (desktop) ===== */
@media (min-width: 992px){
    .premium-sidebar{
        position: fixed; z-index: 2;
        top: calc(var(--topbar-h) + 20px); left: 18px;
        width: calc(var(--sidebar-w) - 18px);
        height: calc((100vh - var(--topbar-h) - 20px) * 0.97);
        border-radius: 20px;
        background: var(--hi-panel) !important;
        border: 1px solid rgba(64,224,255,.12) !important;
        backdrop-filter: blur(10px) saturate(160%);
        box-shadow: 0 10px 28px rgba(0,0,0,.42), 0 0 24px rgba(64,224,255,.07);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    /* Убеждаемся, что навигация может скроллиться */
    .premium-sidebar .premium-nav {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Отступ для контента только в кабинете пользователя */
    .premium-sidebar ~ .content-wrap:has(.cabinet-content),
    body:has(.premium-sidebar) .content-wrap:has(.cabinet-content),
    .content-wrap:has(.cabinet-content) {
        margin-left: 280px !important;
        margin-top: var(--topbar-h) !important;
    }
    
    .content-wrap .cabinet-content{ padding: 1rem 2rem; }
    .navbar.sticky-top{ position: fixed; top:0; left:0; right:0; }
}

/* ===== Премиум Sidebar Components ===== */
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(64,224,255,.1);
    background: linear-gradient(135deg, rgba(64,224,255,.05) 0%, rgba(196,60,255,.05) 100%);
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(64,224,255,.3);
    position: relative;
    overflow: hidden;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 100%);
    border-radius: 50%;
}

.avatar-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.3);
    position: relative;
    z-index: 2;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #9bb7ff;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #19ff95;
    box-shadow: 0 0 10px rgba(25,255,149,.5);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.premium-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - var(--topbar-h) - 200px);
    /* Для Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(64,224,255,.3) rgba(255,255,255,.05);
}

/* Кастомный скроллбар для premium-nav */
.premium-nav::-webkit-scrollbar {
    width: 6px;
}

.premium-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,.05);
    border-radius: 3px;
    margin: 0.5rem 0;
}

.premium-nav::-webkit-scrollbar-thumb {
    background: rgba(64,224,255,.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.premium-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(64,224,255,.5);
}

.nav-section {
    margin-bottom: 1.25rem;
}

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem 0.6rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9bb7ff;
    opacity: 0.8;
}

.nav-section-title i {
    font-size: 0.75rem;
    color: #40e0ff;
}

.premium-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.5rem;
    margin: 0.15rem 0;
    color: #b8d4ff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64,224,255,.1), transparent);
    transition: left 0.6s ease;
}

.premium-nav-link:hover::before {
    left: 100%;
}

.premium-nav-link:hover {
    background: rgba(64,224,255,.08);
    color: #fff;
    transform: translateX(5px);
}

.premium-nav-link.active {
    background: linear-gradient(90deg, rgba(64,224,255,.15) 0%, rgba(196,60,255,.15) 100%);
    color: #fff;
    border-right: 3px solid #40e0ff;
}

.nav-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(64,224,255,.1);
}

.premium-nav-link:hover .nav-icon-wrapper {
    background: rgba(64,224,255,.15);
    border-color: rgba(64,224,255,.3);
    transform: scale(1.1);
}

.premium-nav-link.active .nav-icon-wrapper {
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    border-color: rgba(64,224,255,.5);
    box-shadow: 0 4px 15px rgba(64,224,255,.3);
}

.nav-icon-wrapper i {
    font-size: 0.95rem;
    color: #9bb7ff;
    transition: all 0.3s ease;
}

.premium-nav-link:hover .nav-icon-wrapper i,
.premium-nav-link.active .nav-icon-wrapper i {
    color: #fff;
    transform: scale(1.1);
}

.nav-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.8rem;
}

.nav-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.premium-nav-link.active .nav-indicator {
    background: #40e0ff;
    box-shadow: 0 0 10px rgba(64,224,255,.5);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(64,224,255,.1);
    background: rgba(0,0,0,.1);
}

.premium-logout-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255,107,107,.05);
    border: 1px solid rgba(255,107,107,.1);
}

.premium-logout-link:hover {
    background: rgba(255,107,107,.15);
    border-color: rgba(255,107,107,.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,107,.2);
}

.logout-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,107,107,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.premium-logout-link:hover .logout-icon {
    background: rgba(255,107,107,.2);
    transform: scale(1.1);
}

.logout-icon i {
    font-size: 0.95rem;
}

.nav-title{
    font-size: .65rem; text-transform: uppercase; letter-spacing: .12em;
    color: #9ad7ff; opacity: .9; margin: 3px 8px 6px;
    font-family: Orbitron, Inter, sans-serif;
}
.hi-link{
    display:flex; align-items:center; gap:8px;
    color:#daebff; text-decoration:none;
    padding: .4rem .75rem; border-radius: 12px; position: relative;
    transition: all .18s ease;
    font-size: .85rem;
}
.hi-link .bi{ font-size: .95rem; opacity: .95; }
.hi-link:hover{
    background: rgba(64,224,255,.08);
    transform: translateX(2px);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(64,224,255,.14) inset;
}
.hi-link.active{
    background: linear-gradient(90deg, rgba(196,60,255,.26), rgba(64,224,255,.26));
    color:#fff;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--hi-cyan) 60%, transparent) inset,
        0 6px 24px rgba(64,224,255,.25);
}
.hi-sep{ height:1px; background: rgba(64,224,255,.18); margin: 6px 6px; opacity:.35; }

/* ===== Карточки / стекло ===== */
.glass{
    background: var(--hi-panel) !important;
    border: 1px solid rgba(64,224,255,.12) !important;
    backdrop-filter: blur(10px) saturate(160%);
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.42), 0 0 24px rgba(64,224,255,.07);
}
.card .card-header{ background: transparent; border-bottom-color: rgba(64,224,255,.14); }
.kpi-label{ color: #9bb7ff; letter-spacing:.02em; }
.kpi-value{ font-weight: 700; font-size: 1.6rem; }

/* KPI карточки - одинаковый размер */
.kpi-card-body {
    min-height: 100px !important;
    display: flex !important;
    align-items: center !important;
}

/* ===== Таблица ===== */
.table{
    --bs-table-bg: transparent;
    --bs-table-color: #e6f3ff;
    --bs-table-striped-bg: rgba(64,224,255,.04);
    --bs-table-hover-bg: rgba(196,60,255,.06);
}
.table th{
    background: rgba(64,224,255,.08) !important;
    border-bottom: 2px solid rgba(64,224,255,.2) !important;
    color: #9ad7ff !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 0.75rem 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.table td{
    padding: 0.6rem 0.5rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(64,224,255,.1) !important;
}
.table tbody tr:hover{
    background: rgba(64,224,255,.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(64,224,255,.1);
}

/* ===== Современные бейджи статуса ===== */
.badge-status{
    display:inline-flex; align-items:center; gap:.35rem;
    padding:.38rem .66rem; border-radius:999px;
    font-weight:700; letter-spacing:.02em; font-size:.85rem;
    border:1px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    position: relative;
    z-index: 10;
}
.badge-status.success{
    color:#19ff95; background: rgba(25,255,149,.12); border-color: rgba(25,255,149,.38);
    box-shadow: 0 0 18px rgba(25,255,149,.18) inset, 0 2px 12px rgba(25,255,149,.12);
}
.badge-status.pending{
    color:#ffd34f; background: rgba(255,211,79,.10); border-color: rgba(255,211,79,.38);
    box-shadow: 0 0 18px rgba(255,211,79,.16) inset, 0 2px 12px rgba(255,211,79,.10);
}
.badge-status.danger{
    color:#ff6b7a; background: rgba(255,107,122,.10); border-color: rgba(255,107,122,.40);
    box-shadow: 0 0 18px rgba(255,107,122,.16) inset, 0 2px 12px rgba(255,107,122,.10);
}
.badge-status.inactive{
    color:#ff4d6d;
    background: rgba(255, 77, 109, .10);
    border-color: rgba(255, 77, 109, .50);
    box-shadow:
        0 0 20px rgba(255, 77, 109, .22) inset,
        0 2px 14px rgba(255, 77, 109, .18);
}

/* ===== Современные кнопки ===== */
.btn{ border-radius: 10px; }
.btn-neo{
    border-radius:12px; border:1px solid rgba(64,224,255,.22);
    color:#cfeaff; background:rgba(255,255,255,.04);
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-neo:hover{
    border-color:#40e0ff; color:#fff;
    box-shadow:0 6px 20px rgba(64,224,255,.18), inset 0 0 0 1px rgba(255,255,255,.06);
    transform:translateY(-1px);
}
.btn-neo-primary{
    background:linear-gradient(90deg,var(--hi-mag),var(--hi-cyan));
    color:#04121e; border:none;
    box-shadow:0 10px 28px rgba(64,224,255,.25), inset 0 0 0 1px rgba(255,255,255,.06);
}
.btn-neo-primary:hover{ filter:saturate(1.1) brightness(1.05); transform:translateY(-1px); }
.btn-neo-ghost{
    background:transparent; color:#daebff; border:1px dashed rgba(64,224,255,.28);
}
.btn-neo-ghost:hover{ border-style:solid; }
.btn-icon{
    padding:.4rem .5rem; border-radius:10px;
    background:rgba(255,255,255,.04); border:1px solid rgba(64,224,255,.16);
    color:#cfeaff;
}
.btn-icon:hover{ color:#fff; border-color:#40e0ff; box-shadow:0 6px 18px rgba(64,224,255,.18); }

/* Поиск/формы */
.search-input{ background: rgba(255,255,255,.05); border-color: rgba(64,224,255,.14); }
.search-input:focus{ border-color: var(--hi-cyan); box-shadow: 0 0 0 .2rem rgba(64,224,255,.2); }
.form-select, .form-control{ background: rgba(255,255,255,.04); border-color: rgba(64,224,255,.12); color:#e6f3ff; }
.form-select:focus, .form-control:focus{ border-color: var(--hi-cyan); box-shadow: 0 0 0 .2rem rgba(64,224,255,.18); }
.form-control-sm{ border-radius: 12px !important; }
.form-select-sm{ border-radius: 12px !important; }

/* ===== Hi-Tech выпадашки ===== */
.form-select {
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(64,224,255,.12) !important;
    color: #e6f3ff !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) saturate(160%);
    box-shadow: 0 0 0 1px rgba(64,224,255,.08) inset;
}

.form-select:focus {
    border-color: var(--hi-cyan) !important;
    box-shadow: 0 0 0 .2rem rgba(64,224,255,.18), 0 0 0 1px rgba(64,224,255,.12) inset !important;
    background: rgba(255,255,255,.08) !important;
}

/* Стили для dropdown меню Bootstrap */
.form-select option {
    background: rgba(7, 11, 22, 0.95) !important;
    color: #e6f3ff !important;
    padding: 8px 12px !important;
}

/* Кастомные dropdown для Bootstrap */
.dropdown-menu {
    background: rgba(7, 11, 22, 0.95) !important;
    border: 1px solid rgba(64,224,255,.25) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 
        0 0 0 1px rgba(64,224,255,.12) inset,
        0 18px 36px rgba(0,0,0,.6),
        0 0 24px rgba(64,224,255,.15);
    padding: 8px !important;
    max-height: 400px !important; /* Максимальная высота */
    overflow-y: auto !important; /* Вертикальный скролл */
    overflow-x: hidden !important; /* Скрываем горизонтальный скролл */
}

.dropdown-item {
    color: #e6f3ff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin: 2px 0 !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(64,224,255,.12) !important;
    color: #fff !important;
    transform: translateX(2px);
    box-shadow: 0 0 0 1px rgba(64,224,255,.2) inset;
}

.dropdown-item:active {
    background: rgba(196,60,255,.2) !important;
    color: #fff !important;
}

/* ===== Стилизация скроллбара для выпадашки городов ===== */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,.05);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(64,224,255,.3);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(64,224,255,.5);
}

/* Для Firefox */
.dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(64,224,255,.3) rgba(255,255,255,.05);
}

/* Специальные стили для страницы входа */
.login-page .form-control{
    background: rgba(255,255,255,.08);
    border-color: rgba(64,224,255,.2);
}
.login-page .form-control:focus{
    border-color: var(--hi-cyan);
    box-shadow: 0 0 0 .2rem rgba(64,224,255,.25);
    background: rgba(255,255,255,.12);
}


/* Сближаем KPI к топбару */
.content-wrap .container-fluid{ padding-top: 5px; }

/* Стили для Яндекс карты */
#map {
    width: 100% !important;
    height: 400px !important;
    border-radius: 8px;
    background: #f0f0f0;
    border: 1px solid var(--hi-border);
}

#map:empty::before {
    content: "Загрузка карты...";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--hi-text-muted);
    font-size: 14px;
}

/* Стили для управления фотографиями */
.photo-item .card {
    border: 1px solid var(--hi-border);
    background: rgba(255,255,255,.05);
    transition: all 0.3s ease;
}

.photo-item .card:hover {
    border-color: var(--hi-cyan);
    box-shadow: 0 0 20px rgba(64,224,255,.2);
    transform: translateY(-2px);
}

.photo-item .card-img-top {
    border-radius: 8px 8px 0 0;
    border: 2px solid rgba(64,224,255,0.3);
}

.photo-item .photo-image-container {
    width: 100% !important;
    max-height: 450px !important;
    aspect-ratio: auto !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.photo-item:hover .photo-image-container {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.01) !important;
}

.photo-item:hover .photo-image-container .instagram-photo {
    transform: scale(1.02) !important;
}

.photo-item .photo-image-container .instagram-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Гарантируем одинаковое отображение для предпросмотра фотографий */
#photos-preview-list .photo-image-container {
    width: 100% !important;
    max-height: 450px !important;
    aspect-ratio: auto !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#photos-preview-list .photo-image-container img,
#photos-preview-list .photo-image-container .instagram-photo {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover эффект как в Instagram для предпросмотра */
#photos-preview-list .photo-container:hover .photo-image-container {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.01) !important;
}

#photos-preview-list .photo-container:hover .photo-image-container img,
#photos-preview-list .photo-container:hover .photo-image-container .instagram-photo {
    transform: scale(1.02) !important;
}

.photo-item .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.photo-item .badge {
    font-size: 0.7rem;
}

/* ===== Улучшенные стили для фотографий (новый дизайн) ===== */
.photo-item-enhanced {
    margin-bottom: 0;
}

.photo-card-wrapper {
    position: relative;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(64,224,255,.12);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0,0,0,.3),
        0 0 0 1px rgba(64,224,255,.08) inset;
}

.photo-card-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(64,224,255,.3);
    box-shadow: 
        0 12px 40px rgba(0,0,0,.5),
        0 0 30px rgba(64,224,255,.2),
        0 0 0 1px rgba(64,224,255,.2) inset;
}

/* Контейнер изображения */
.photo-image-container-enhanced {
    position: relative;
    width: 100%;
    height: 280px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.photo-image-container-enhanced .instagram-photo-enhanced,
.photo-image-container-enhanced .animated-photo-enhanced {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-card-wrapper:hover .instagram-photo-enhanced,
.photo-card-wrapper:hover .animated-photo-enhanced {
    transform: scale(1.05);
}

/* Бейджи поверх фото */
.photo-badges-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
    transition: all 0.3s ease;
}

.photo-badge-main {
    background: linear-gradient(135deg, rgba(64,224,255,.25), rgba(64,224,255,.15));
    border: 1px solid rgba(64,224,255,.4);
    color: #40e0ff;
}

.photo-badge-animated {
    background: linear-gradient(135deg, rgba(25,255,149,.25), rgba(25,255,149,.15));
    border: 1px solid rgba(25,255,149,.4);
    color: #19ff95;
}

.photo-card-wrapper:hover .photo-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,.5);
}

/* Панель управления */
.photo-controls-panel {
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%);
    border-top: 1px solid rgba(64,224,255,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.photo-number {
    display: flex;
    align-items: center;
}

.photo-number-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    letter-spacing: 0.5px;
}

.photo-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.photo-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.photo-action-btn:hover {
    transform: translateY(-2px) scale(1.1);
    border-color: rgba(64,224,255,.4);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.photo-action-btn i {
    transition: transform 0.3s ease;
}

.photo-action-btn:hover i {
    transform: scale(1.2);
}

.photo-action-main {
    color: rgba(64,224,255,.8);
}

.photo-action-main:hover {
    background: rgba(64,224,255,.15);
    border-color: rgba(64,224,255,.5);
    color: #40e0ff;
    box-shadow: 0 4px 16px rgba(64,224,255,.3);
}

.photo-action-main.active {
    background: rgba(64,224,255,.2);
    border-color: rgba(64,224,255,.5);
    color: #40e0ff;
    box-shadow: 0 0 12px rgba(64,224,255,.4);
}

.photo-action-check {
    color: rgba(255,193,7,.8);
}

.photo-action-check:hover {
    background: rgba(255,193,7,.15);
    border-color: rgba(255,193,7,.5);
    color: #ffc107;
    box-shadow: 0 4px 16px rgba(255,193,7,.3);
}

.photo-action-animate {
    color: rgba(25,255,149,.8);
}

.photo-action-animate:hover {
    background: rgba(25,255,149,.15);
    border-color: rgba(25,255,149,.5);
    color: #19ff95;
    box-shadow: 0 4px 16px rgba(25,255,149,.3);
}

.photo-action-delete-animated {
    color: rgba(255,107,107,.8);
}

.photo-action-delete-animated:hover {
    background: rgba(255,107,107,.15);
    border-color: rgba(255,107,107,.5);
    color: #ff6b6b;
    box-shadow: 0 4px 16px rgba(255,107,107,.3);
}

.photo-action-delete {
    color: rgba(255,59,48,.8);
}

.photo-action-delete:hover {
    background: rgba(255,59,48,.15);
    border-color: rgba(255,59,48,.5);
    color: #ff3b30;
    box-shadow: 0 4px 16px rgba(255,59,48,.3);
}

/* ===== Премиум Mobile Sidebar ===== */
.premium-mobile-header {
    background: linear-gradient(135deg, rgba(64,224,255,.1) 0%, rgba(196,60,255,.1) 100%);
    border-bottom: 1px solid rgba(64,224,255,.15);
    padding: 1rem;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(64,224,255,.3);
}

.mobile-avatar-text {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.mobile-user-status {
    font-size: 0.75rem;
    color: #9bb7ff;
}

.premium-mobile-body {
    padding: 0;
    background: linear-gradient(135deg, 
        rgba(255,255,255,.05) 0%, 
        rgba(255,255,255,.02) 100%);
}

.premium-mobile-nav {
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 200px);
    /* Для Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(64,224,255,.3) rgba(255,255,255,.03);
}

/* Кастомный скроллбар для мобильной навигации */
.premium-mobile-nav::-webkit-scrollbar {
    width: 4px;
}

.premium-mobile-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,.03);
    border-radius: 2px;
}

.premium-mobile-nav::-webkit-scrollbar-thumb {
    background: rgba(64,224,255,.3);
    border-radius: 2px;
}

.premium-mobile-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(64,224,255,.5);
}

.mobile-nav-section {
    margin-bottom: 1.5rem;
}

.mobile-nav-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9bb7ff;
    opacity: 0.8;
}

.mobile-nav-section-title i {
    font-size: 0.8rem;
    color: #40e0ff;
}

.mobile-premium-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    color: #b8d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.mobile-premium-nav-link:hover {
    background: rgba(64,224,255,.08);
    color: #fff;
    transform: translateX(5px);
}

.mobile-premium-nav-link.active {
    background: linear-gradient(90deg, rgba(64,224,255,.15) 0%, rgba(196,60,255,.15) 100%);
    color: #fff;
    border-right: 3px solid #40e0ff;
}

.mobile-nav-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(64,224,255,.1);
}

.mobile-premium-nav-link:hover .mobile-nav-icon {
    background: rgba(64,224,255,.15);
    border-color: rgba(64,224,255,.3);
    transform: scale(1.1);
}

.mobile-premium-nav-link.active .mobile-nav-icon {
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    border-color: rgba(64,224,255,.5);
    box-shadow: 0 4px 15px rgba(64,224,255,.3);
}

.mobile-nav-icon i {
    font-size: 1rem;
    color: #9bb7ff;
    transition: all 0.3s ease;
}

.mobile-premium-nav-link:hover .mobile-nav-icon i,
.mobile-premium-nav-link.active .mobile-nav-icon i {
    color: #fff;
    transform: scale(1.1);
}

.mobile-logout-section {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid rgba(64,224,255,.1);
    background: rgba(0,0,0,.1);
}

.mobile-logout-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255,107,107,.05);
    border: 1px solid rgba(255,107,107,.1);
}

.mobile-logout-link:hover {
    background: rgba(255,107,107,.15);
    border-color: rgba(255,107,107,.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,107,.2);
}

.mobile-logout-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: rgba(255,107,107,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-logout-link:hover .mobile-logout-icon {
    background: rgba(255,107,107,.2);
    transform: scale(1.1);
}

.mobile-logout-icon i {
    font-size: 1rem;
}

/* Offcanvas (мобила) */
.offcanvas{ background: color-mix(in srgb, var(--hi-bg) 90%, #000 10%); border-right: 1px solid var(--hi-border); }
.offcanvas-body{ padding: 10px; }
.offcanvas-body .nav-title{ font-size: .65rem; margin: 3px 8px 6px; }
.offcanvas-body .hi-link{ padding: .4rem .75rem; font-size: .85rem; gap: 8px; }
.offcanvas-body .hi-link .bi{ font-size: .95rem; }
.offcanvas-body .hi-sep{ margin: 6px 6px; }

/* ===== Стили для страницы входа ===== */
.login-page{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(64,224,255,.25);
    backdrop-filter: blur(12px) saturate(160%);
    border-radius: 20px;
    box-shadow: 
        0 0 0 1px rgba(64,224,255,.12) inset,
        0 18px 36px rgba(0,0,0,.4),
        0 0 24px rgba(64,224,255,.12);
}
.login-header {
	color: #faf;
    background: transparent;
    border-radius: 20px 20px 0 0;
    font-family: Orbitron, Inter, sans-serif;
}
.btn-login {
    background: linear-gradient(90deg, var(--hi-mag), var(--hi-cyan));
    color: #04121e;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 28px rgba(64,224,255,.25), inset 0 0 0 1px rgba(255,255,255,.06);
}
.btn-login:hover {
    filter: saturate(1.1) brightness(1.05);
    transform: translateY(-1px);
    color: #04121e;
}
.form-label {
    color: #9bb7ff;
    font-weight: 600;
}
.alert-danger {
    background: rgba(255,107,122,.10);
    border: 1px solid rgba(255,107,122,.40);
    color: #ff6b7a;
    border-radius: 12px;
}

/* Анимация появления карточек */
.profile-card {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.profile-card:nth-child(1) { animation-delay: 0.1s; }
.profile-card:nth-child(2) { animation-delay: 0.2s; }
.profile-card:nth-child(3) { animation-delay: 0.3s; }
.profile-card:nth-child(4) { animation-delay: 0.4s; }
.profile-card:nth-child(5) { animation-delay: 0.5s; }
.profile-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Улучшенная типографика ===== */
.profile-card .card-title {
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    margin-bottom: 0.75rem !important;
    background: linear-gradient(135deg, #fff 0%, #40e0ff 50%, #c43cff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 0 20px rgba(64,224,255,.3) !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
}

.profile-card .card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #40e0ff, #c43cff);
    transition: width 0.3s ease;
}

.profile-card:hover .card-title::after {
    width: 100%;
}

.profile-card .card-text {
    font-size: 0.95rem !important;
    opacity: 0.9 !important;
    color: #b8d4ff !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
}

.profile-card:hover .card-text {
    opacity: 1 !important;
    color: #fff !important;
    transform: translateX(5px) !important;
}

.profile-card .card-text i {
    color: #40e0ff !important;
    font-size: 1.1rem !important;
    margin-right: 0.5rem !important;
    text-shadow: 0 0 10px rgba(64,224,255,.5) !important;
    transition: all 0.3s ease !important;
}

.profile-card:hover .card-text i {
    color: #c43cff !important;
    transform: scale(1.2) !important;
    text-shadow: 0 0 15px rgba(196,60,255,.7) !important;
}

/* Анимированный текст */
.profile-card .card-title {
    animation: textGlow 3s ease-in-out infinite alternate !important;
}

@keyframes textGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(64,224,255,.3));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(64,224,255,.6));
    }
}

/* ===== Улучшенные карточки анкет ===== */
.profile-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(64,224,255,.12) !important;
    background: var(--hi-panel) !important;
    backdrop-filter: blur(10px) saturate(160%) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(64,224,255,.05) 0%, rgba(196,60,255,.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.profile-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 
        0 20px 40px rgba(0,0,0,.4),
        0 0 30px rgba(64,224,255,.2),
        inset 0 0 0 1px rgba(64,224,255,.3) !important;
    border-color: rgba(64,224,255,.3) !important;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card .card-img-top {
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 2;
}

.profile-card:hover .card-img-top {
    transform: scale(1.05) !important;
}

.profile-card .card-body {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,.2) !important;
    backdrop-filter: blur(5px) !important;
}

.profile-card .card-title {
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    background: linear-gradient(135deg, #fff 0%, #9ad7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-card .card-text {
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
}

.profile-card .btn-group {
    gap: 0.5rem !important;
}

.profile-card .btn-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(64,224,255,.2) !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
    overflow: hidden !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.profile-card .btn-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64,224,255,.2), transparent);
    transition: left 0.5s ease;
}

.profile-card .btn-icon:hover::before {
    left: 100%;
}

.profile-card .btn-icon:hover {
    background: rgba(64,224,255,.15) !important;
    border-color: rgba(64,224,255,.4) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 8px 20px rgba(64,224,255,.3),
        inset 0 0 0 1px rgba(255,255,255,.1) !important;
    color: #fff !important;
}

.profile-card .btn-icon i {
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 2;
}

.profile-card .btn-icon:hover i {
    transform: scale(1.2) rotate(5deg) !important;
    text-shadow: 0 0 10px rgba(255,255,255,.8) !important;
}

/* Статус бейджи на карточках */
.profile-card .badge-status {
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.3) !important;
    animation: pulse 2s infinite !important;
}

.profile-card .badge-status.success {
    animation: pulseGreen 2s infinite !important;
}

.profile-card .badge-status.pending {
    animation: pulseYellow 2s infinite !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseGreen {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 0 rgba(25,255,149,.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 8px rgba(25,255,149,.1);
    }
}

@keyframes pulseYellow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 0 rgba(255,211,79,.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 8px rgba(255,211,79,.1);
    }
}

/* Эффект печатания для заголовков */
.profile-card .card-title.typing-effect {
    overflow: hidden;
    border-right: 2px solid #40e0ff;
    white-space: nowrap;
    animation: typing 2s steps(20, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #40e0ff; }
}

/* Дополнительные эффекты для текста */
.profile-card .card-text {
    text-shadow: 0 1px 3px rgba(0,0,0,.3) !important;
}

.profile-card:hover .card-text {
    text-shadow: 0 2px 6px rgba(0,0,0,.5) !important;
}

/* ===== Брендинг заголовок ===== */
.brand-header {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

/* Компактный брендинг заголовок для админ панели */
.content-wrap:has(.cabinet-content) .brand-header {
    padding: 1rem 0 !important;
    margin-bottom: 1.25rem !important;
}

.content-wrap:has(.cabinet-content) .brand-title {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
}

.content-wrap:has(.cabinet-content) .brand-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

.content-wrap:has(.cabinet-content) .brand-actions {
    margin-top: 0.75rem !important;
}

.content-wrap:has(.cabinet-content) .brand-actions .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
}

.brand-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(64,224,255,.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(196,60,255,.1) 0%, transparent 50%);
    z-index: -1;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    animation: brandGlow 3s ease-in-out infinite alternate, slideInDown 1.2s ease-out;
}

.brand-text {
    background: linear-gradient(135deg, #fff 0%, #40e0ff 30%, #c43cff 70%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(64,224,255,.5);
    letter-spacing: 2px;
    position: relative;
}

.brand-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #fff 0%, #40e0ff 30%, #c43cff 70%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(1px);
    opacity: 0.7;
    z-index: -1;
}

.brand-subtitle {
    font-size: 1.2rem;
    color: #b8d4ff;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1.4s ease-out;
}

.brand-actions {
    margin-top: 2rem;
    animation: fadeInUp 1.6s ease-out;
}

.brand-actions .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.brand-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left 0.6s ease;
}

.brand-actions .btn:hover::before {
    left: 100%;
}

.brand-actions .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(64,224,255,.3);
}

@keyframes brandGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(64,224,255,.3));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(64,224,255,.6));
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для брендинга */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.5rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .brand-actions .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .brand-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-subtitle {
        font-size: 0.9rem;
    }
    
    .brand-actions .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ===== Премиум KPI карточки ===== */
.premium-kpi-card {
    position: relative;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.premium-kpi-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.kpi-card-inner {
    position: relative;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255,255,255,.08) 0%, 
        rgba(255,255,255,.04) 50%, 
        rgba(255,255,255,.02) 100%);
    border: 1px solid rgba(64,224,255,.15);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
    z-index: 2;
}

.kpi-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(64,224,255,.05) 0%, 
        rgba(196,60,255,.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.premium-kpi-card:hover .kpi-card-inner::before {
    opacity: 1;
}

.kpi-icon-wrapper {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 3;
}

.kpi-icon-wrapper.kpi-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(102,126,234,.3);
}

.kpi-icon-wrapper.kpi-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(17,153,142,.3);
}

.kpi-icon-wrapper.kpi-info {
    background: linear-gradient(135deg, #40e0ff 0%, #00b4db 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(64,224,255,.3);
}

.kpi-icon-wrapper.kpi-warning {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255,107,53,.3);
}

.kpi-icon-wrapper.kpi-cyan {
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(64,224,255,.3);
}

.kpi-icon-wrapper.kpi-earnings {
    background: linear-gradient(135deg, #19ff95 0%, #00d4aa 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(25,255,149,.3);
}

.kpi-icon-wrapper.kpi-expense {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255,107,107,.3);
}

.kpi-icon-wrapper.kpi-balance {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(46,204,113,.3);
}

.kpi-icon-wrapper.kpi-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.04) 100%);
    color: rgba(255,255,255,.6);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.1);
}

.premium-kpi-card:hover .kpi-icon-wrapper {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
    bottom: 0.8rem;
    right: 0.8rem;
}

.kpi-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-label {
    font-size: 0.85rem;
    color: #9bb7ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #40e0ff 50%, #c43cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(64,224,255,.3);
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.kpi-trend i {
    font-size: 0.9rem;
}

.text-danger {
    color: #ff6b6b !important;
}

.kpi-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.kpi-primary-glow {
    background: radial-gradient(circle, rgba(102,126,234,.2) 0%, transparent 70%);
}

.kpi-success-glow {
    background: radial-gradient(circle, rgba(17,153,142,.2) 0%, transparent 70%);
}

.kpi-info-glow {
    background: radial-gradient(circle, rgba(64,224,255,.2) 0%, transparent 70%);
}

.kpi-warning-glow {
    background: radial-gradient(circle, rgba(255,107,53,.2) 0%, transparent 70%);
}

.kpi-cyan-glow {
    background: radial-gradient(circle, rgba(64,224,255,.2) 0%, transparent 70%);
}

.kpi-earnings-glow {
    background: radial-gradient(circle, rgba(25,255,149,.2) 0%, transparent 70%);
}

.kpi-expense-glow {
    background: radial-gradient(circle, rgba(255,107,107,.2) 0%, transparent 70%);
}

.kpi-balance-glow {
    background: radial-gradient(circle, rgba(46,204,113,.2) 0%, transparent 70%);
}

.kpi-secondary-glow {
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
}

.premium-kpi-card:hover .kpi-glow {
    opacity: 1;
    animation: kpiPulse 2s ease-in-out infinite;
}

@keyframes kpiPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

/* Анимация появления KPI карточек */
.premium-kpi-card {
    animation: kpiSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(50px);
}

.premium-kpi-card:nth-child(1) { animation-delay: 0.1s; }
.premium-kpi-card:nth-child(2) { animation-delay: 0.2s; }
.premium-kpi-card:nth-child(3) { animation-delay: 0.3s; }
.premium-kpi-card:nth-child(4) { animation-delay: 0.4s; }
.premium-kpi-card:nth-child(5) { animation-delay: 0.5s; }
.premium-kpi-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes kpiSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для премиум KPI */
@media (max-width: 768px) {
    .premium-kpi-card {
        height: 140px;
    }
    
    .kpi-card-inner {
        padding: 1rem;
    }
    
    .kpi-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 0.8rem;
        right: 0.8rem;
    }
    
    .kpi-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .premium-kpi-card {
        height: 120px;
    }
    
    .kpi-card-inner {
        padding: 0.8rem;
    }
    
    .kpi-icon-wrapper {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        bottom: 0.6rem;
        right: 0.6rem;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
    
    .kpi-label {
        font-size: 0.75rem;
    }
}

/* Специальные стили для KPI карточек в analytics.php */
.analytics-kpi-card {
    height: 180px !important;
}

.analytics-kpi-card .kpi-card-inner {
    padding: 1.25rem !important;
}

.analytics-kpi-card .kpi-icon-wrapper {
    width: 55px !important;
    height: 55px !important;
    font-size: 1.6rem !important;
    bottom: 1.25rem !important;
    right: 1.25rem !important;
}

.analytics-kpi-card .kpi-label {
    font-size: 0.8rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
}

.analytics-kpi-card .kpi-value {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.75rem !important;
}

/* Специальные стили для KPI карточек в profiles.php - уменьшенные размеры */
.profiles-kpi-card {
    height: 145px !important;
}

.profiles-kpi-card .kpi-card-inner {
    padding: 1rem !important;
}

.profiles-kpi-card .kpi-icon-wrapper {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
    bottom: 1rem !important;
    right: 1rem !important;
}

.profiles-kpi-card .kpi-label {
    font-size: 0.65rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
}

.profiles-kpi-card .kpi-value {
    font-size: 2rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.5rem !important;
}

/* Адаптивность для profiles KPI карточек */
@media (max-width: 1200px) {
    .profiles-kpi-card {
        height: 140px !important;
    }
    
    .profiles-kpi-card .kpi-value {
        font-size: 1.9rem !important;
    }
    
    .profiles-kpi-card .kpi-icon-wrapper {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.25rem !important;
    }
}

@media (max-width: 992px) {
    .profiles-kpi-card {
        height: 135px !important;
    }
    
    .profiles-kpi-card .kpi-card-inner {
        padding: 0.9rem !important;
    }
    
    .profiles-kpi-card .kpi-value {
        font-size: 1.8rem !important;
    }
    
    .profiles-kpi-card .kpi-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
}

/* Адаптивность для analytics KPI карточек */
@media (max-width: 1200px) {
    .analytics-kpi-card {
        height: 170px !important;
    }
    
    .analytics-kpi-card .kpi-value {
        font-size: 2.2rem !important;
    }
    
    .analytics-kpi-card .kpi-icon-wrapper {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }
}

@media (max-width: 992px) {
    .analytics-kpi-card {
        height: 160px !important;
    }
    
    .analytics-kpi-card .kpi-card-inner {
        padding: 1.1rem !important;
    }
    
    .analytics-kpi-card .kpi-value {
        font-size: 2rem !important;
    }
    
    .analytics-kpi-card .kpi-icon-wrapper {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.3rem !important;
    }
}

@media (max-width: 768px) {
    .analytics-kpi-card {
        height: 150px !important;
    }
    
    .analytics-kpi-card .kpi-card-inner {
        padding: 1rem !important;
    }
    
    .analytics-kpi-card .kpi-value {
        font-size: 1.8rem !important;
    }
    
    .analytics-kpi-card .kpi-icon-wrapper {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        bottom: 1rem !important;
        right: 1rem !important;
    }
    
    .analytics-kpi-card .kpi-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .analytics-kpi-card {
        height: 140px !important;
    }
    
    .analytics-kpi-card .kpi-card-inner {
        padding: 0.9rem !important;
    }
    
    .analytics-kpi-card .kpi-value {
        font-size: 1.6rem !important;
    }
    
    .analytics-kpi-card .kpi-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
        bottom: 0.8rem !important;
        right: 0.8rem !important;
    }
    
    .analytics-kpi-card .kpi-label {
        font-size: 0.7rem !important;
        margin-bottom: 0.4rem !important;
    }
}

/* ===== Стили для кнопки оплаты ===== */
.profile-card .btn-payment {
    background: linear-gradient(45deg, #ff6b35, #f7931e) !important;
    border: 1px solid rgba(255,107,53,.3) !important;
    color: #fff !important;
    position: relative !important;
    overflow: hidden !important;
}

.profile-card .btn-payment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    transition: left 0.6s ease;
}

.profile-card .btn-payment:hover::before {
    left: 100%;
}

.profile-card .btn-payment:hover {
    background: linear-gradient(45deg, #f7931e, #ff6b35) !important;
    border-color: rgba(255,107,53,.5) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 8px 20px rgba(255,107,53,.4),
        inset 0 0 0 1px rgba(255,255,255,.1) !important;
    color: #fff !important;
}

.profile-card .btn-payment i {
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 2;
}

.profile-card .btn-payment:hover i {
    transform: scale(1.2) rotate(-5deg) !important;
    text-shadow: 0 0 10px rgba(255,255,255,.8) !important;
}

/* Анимация для кнопки оплаты */
.profile-card .btn-payment {
    animation: paymentPulse 2s ease-in-out infinite !important;
}

@keyframes paymentPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255,107,53,.4);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(255,107,53,.1);
    }
}

/* ===== Instagram-стиль фото ===== */
.instagram-photo {
    object-fit: contain !important;
    background: #1a1a1a !important;
    object-position: center !important;
}

.card-img-top.instagram-photo {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
}

.profile-photo.instagram-photo {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
}

.photo-thumbnail.instagram-photo {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    border-radius: 12px !important;
}

/* Скрытие битых изображений */
img[src=""],
img:not([src]),
img[src*="undefined"],
img[src*="null"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Скрытие стандартной иконки битых изображений */
img {
    color: transparent;
    background: transparent;
}

/* Placeholder для битых изображений */
.profile-photo-placeholder {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#modalPhoto.instagram-photo {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    border-radius: 12px !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Компактный блок услуг - 4 столбца */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
}

.premium-checkbox-compact {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 2px solid rgba(64,224,255,.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
}

.premium-checkbox-compact:hover {
    background: rgba(64,224,255,.12);
    border-color: rgba(64,224,255,.4);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(64,224,255,.2);
}

.premium-checkbox-compact input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark-compact {
    position: relative;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(64,224,255,.3);
    border-radius: 4px;
    margin-right: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.checkmark-compact::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.premium-checkbox-compact:hover .checkmark-compact {
    border-color: rgba(64,224,255,.5);
    background: rgba(64,224,255,.1);
    transform: scale(1.1);
}

.premium-checkbox-compact input[type="checkbox"]:checked ~ .checkmark-compact {
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    border-color: #40e0ff;
    box-shadow: 0 4px 15px rgba(64,224,255,.4);
    transform: scale(1.1);
}

.premium-checkbox-compact input[type="checkbox"]:checked ~ .checkmark-compact::after {
    display: block;
}

.checkbox-label-compact {
    font-size: 0.85rem;
    color: #b8d4ff;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.premium-checkbox-compact:hover .checkbox-label-compact {
    color: #fff;
}

.premium-checkbox-compact input[type="checkbox"]:checked ~ .checkbox-label-compact {
    color: #fff;
    font-weight: 600;
}

/* Анимация появления услуг */
.service-item {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.15s; }
.service-item:nth-child(3) { animation-delay: 0.2s; }
.service-item:nth-child(4) { animation-delay: 0.25s; }
.service-item:nth-child(5) { animation-delay: 0.3s; }
.service-item:nth-child(6) { animation-delay: 0.35s; }
.service-item:nth-child(7) { animation-delay: 0.4s; }
.service-item:nth-child(8) { animation-delay: 0.45s; }
.service-item:nth-child(9) { animation-delay: 0.5s; }
.service-item:nth-child(10) { animation-delay: 0.55s; }

/* Адаптивность для блока услуг - 4 столбца */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .premium-checkbox-compact {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .premium-checkbox-compact {
        padding: 0.4rem 0.6rem;
        height: 55px !important;
        min-height: 55px !important;
        max-height: 55px !important;
    }
    
    .checkmark-compact {
        width: 16px;
        height: 16px;
        margin-right: 0.5rem;
    }
    
    .checkbox-label-compact {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .premium-checkbox-compact {
        padding: 0.5rem;
        justify-content: center;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
}

/* Премиум формы - одинаковые размеры */
.premium-form-control,
.premium-form-select {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
}

.premium-form-control:focus,
.premium-form-select:focus {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
}

/* Исключение для textarea - большие размеры */
textarea.premium-form-control,
#text.premium-form-control,
textarea#text.premium-form-control {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    padding: 1rem !important;
    line-height: 1.6 !important;
}

/* Одинаковые размеры для всех полей в блоке */
.card-body .premium-form-control,
.card-body .premium-form-select {
    width: 100% !important;
    height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

/* Исключение для textarea в card-body */
.card-body textarea.premium-form-control,
.card-body #text.premium-form-control,
.card-body textarea#text.premium-form-control {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    padding: 1rem !important;
    line-height: 1.6 !important;
}

/* Дополнительные стили для выравнивания */
.card-body .row {
    align-items: flex-end;
}

.card-body .premium-form-group {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.card-body .premium-form-label {
    margin-bottom: 0.5rem;
    display: block;
}

/* Одинаковая высота для всех элементов формы */
.card-body .col-md-6,
.card-body .col-md-3 {
    display: flex;
    flex-direction: column;
}

.card-body .premium-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Премиум формы и чекбоксы ===== */
.premium-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.premium-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9bb7ff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.premium-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(64,224,255,.15);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.premium-form-control:focus {
    outline: none;
    border-color: #40e0ff;
    background: rgba(255,255,255,.08);
    box-shadow: 
        0 0 0 4px rgba(64,224,255,.1),
        0 8px 25px rgba(64,224,255,.15);
    transform: translateY(-2px);
}

.premium-form-control::placeholder {
    color: rgba(155,183,255,.6);
    font-weight: 400;
}

.premium-form-control:hover {
    border-color: rgba(64,224,255,.3);
    background: rgba(255,255,255,.07);
}

/* Премиум селект */
.premium-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(64,224,255,.15);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.premium-form-select:focus {
    outline: none;
    border-color: #40e0ff;
    background: rgba(255,255,255,.08);
    box-shadow: 
        0 0 0 4px rgba(64,224,255,.1),
        0 8px 25px rgba(64,224,255,.15);
    transform: translateY(-2px);
}

.premium-form-select:hover {
    border-color: rgba(64,224,255,.3);
    background: rgba(255,255,255,.07);
}

.premium-form-select option {
    background: rgba(7, 11, 22, 0.95);
    color: #e6f3ff;
    padding: 8px 12px;
}

/* Премиум кнопки */
.premium-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.premium-btn-secondary {
    background: rgba(255,255,255,.05);
    color: #e6f3ff;
    border: 1px solid rgba(64,224,255,.2);
    box-shadow: 0 2px 8px rgba(64,224,255,.1);
}

.premium-btn-secondary:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(64,224,255,.4);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64,224,255,.15);
}

/* Премиум чекбоксы */
.premium-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.premium-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.premium-checkbox .checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(64,224,255,.3);
    border-radius: 6px;
    margin-right: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.premium-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.premium-checkbox:hover .checkmark {
    border-color: rgba(64,224,255,.5);
    background: rgba(64,224,255,.1);
    transform: scale(1.05);
}

.premium-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    border-color: #40e0ff;
    box-shadow: 0 4px 15px rgba(64,224,255,.3);
}

.premium-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

.premium-checkbox .checkbox-label {
    font-size: 0.9rem;
    color: #b8d4ff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.premium-checkbox:hover .checkbox-label {
    color: #fff;
}

.premium-checkbox input[type="checkbox"]:checked ~ .checkbox-label {
    color: #fff;
    font-weight: 600;
}

/* Премиум селекты */
.premium-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(64,224,255,.15);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.premium-form-select:focus {
    outline: none;
    border-color: #40e0ff;
    background: rgba(255,255,255,.08);
    box-shadow: 
        0 0 0 4px rgba(64,224,255,.1),
        0 8px 25px rgba(64,224,255,.15);
    transform: translateY(-2px);
}

.premium-form-select:hover {
    border-color: rgba(64,224,255,.3);
    background: rgba(255,255,255,.07);
}

/* Стили для option в премиум селектах - тёмный фон */
.premium-form-select option {
    background: rgba(7, 11, 22, 0.95) !important;
    color: #e6f3ff !important;
    padding: 8px 12px !important;
}

/* Премиум textarea */
.premium-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(64,224,255,.15);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    resize: vertical;
    min-height: 120px;
}

.premium-form-textarea:focus {
    outline: none;
    border-color: #40e0ff;
    background: rgba(255,255,255,.08);
    box-shadow: 
        0 0 0 4px rgba(64,224,255,.1),
        0 8px 25px rgba(64,224,255,.15);
    transform: translateY(-2px);
}

.premium-form-textarea:hover {
    border-color: rgba(64,224,255,.3);
    background: rgba(255,255,255,.07);
}

.premium-form-textarea::placeholder {
    color: rgba(155,183,255,.6);
    font-weight: 400;
}

/* Премиум поле загрузки файлов */
.premium-form-control[type="file"] {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,.05);
    border: 2px dashed rgba(64,224,255,.15);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.premium-form-control[type="file"]:hover {
    border-color: rgba(64,224,255,.3);
    background: rgba(255,255,255,.08);
    border-style: solid;
}

.premium-form-control[type="file"]:focus {
    outline: none;
    border-color: #40e0ff;
    background: rgba(255,255,255,.08);
    box-shadow: 
        0 0 0 4px rgba(64,224,255,.1),
        0 8px 25px rgba(64,224,255,.15);
    transform: translateY(-2px);
}

/* Премиум кнопки */
.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left 0.6s ease;
}

.premium-btn:hover::before {
    left: 100%;
}

.premium-btn-primary {
    background: linear-gradient(135deg, #40e0ff 0%, #c43cff 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(64,224,255,.3);
}

.premium-btn-primary:hover {
    background: linear-gradient(135deg, #c43cff 0%, #40e0ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64,224,255,.4);
    color: #fff;
}

.premium-btn-secondary {
    background: rgba(255,255,255,.08);
    color: #b8d4ff;
    border: 2px solid rgba(64,224,255,.2);
}

.premium-btn-danger {
    background: rgba(255,107,107,.1);
    color: #ff6b6b;
    border: 2px solid rgba(255,107,107,.2);
}

.premium-btn-danger:hover {
    background: rgba(255,107,107,.2);
    border-color: rgba(255,107,107,.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,.2);
}

.premium-btn-success {
    background: rgba(25,255,149,.1);
    color: #19ff95;
    border: 2px solid rgba(25,255,149,.2);
}

.premium-btn-success:hover {
    background: rgba(25,255,149,.2);
    border-color: rgba(25,255,149,.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25,255,149,.2);
}

/* Компактные премиум кнопки для фотографий */
.photo-container .premium-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: auto;
    height: auto;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-container .premium-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
}

.photo-container .premium-btn i {
    font-size: 0.9rem;
}

/* Инстаграмный стиль для фотографий */
.photo-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: block;
}

.photo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.4);
}

.photo-container .instagram-photo {
    object-fit: contain !important;
    background: #000 !important;
    transition: all 0.3s ease;
    border-radius: 12px;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.photo-container:hover .instagram-photo {
    transform: scale(1.02);
}

/* Инстаграмный бейдж */
.photo-container .badge {
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* Премиум кнопки с нашими цветами */
.premium-btn[style*="var(--hi-cyan)"]:hover {
    background: rgba(64,224,255,.2) !important;
    border-color: rgba(64,224,255,.4) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64,224,255,.2);
}

.premium-btn[style*="var(--hi-mag)"]:hover {
    background: rgba(196,60,255,.2) !important;
    border-color: rgba(196,60,255,.4) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196,60,255,.2);
}

.premium-btn[style*="var(--hi-green)"]:hover {
    background: rgba(25,255,149,.2) !important;
    border-color: rgba(25,255,149,.4) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25,255,149,.2);
}

/* Анимация появления форм */
.premium-form-group {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.premium-form-group:nth-child(1) { animation-delay: 0.1s; }
.premium-form-group:nth-child(2) { animation-delay: 0.2s; }
.premium-form-group:nth-child(3) { animation-delay: 0.3s; }
.premium-form-group:nth-child(4) { animation-delay: 0.4s; }
.premium-form-group:nth-child(5) { animation-delay: 0.5s; }
.premium-form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== AI Dashboard специфичные стили ===== */
.ai-dashboard .kpi-value {
    font-weight: 700;
    font-size: 1.6rem;
}

.ai-dashboard .card.glass {
    background: var(--hi-panel) !important;
    border: 1px solid rgba(64,224,255,.12) !important;
    backdrop-filter: blur(10px) saturate(160%);
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.42), 0 0 24px rgba(64,224,255,.07);
}

.ai-dashboard .btn-neo-primary {
    background: linear-gradient(90deg, var(--hi-mag), var(--hi-cyan));
    color: #04121e;
    border: none;
    box-shadow: 0 10px 28px rgba(64,224,255,.25), inset 0 0 0 1px rgba(255,255,255,.06);
}

.ai-dashboard .btn-neo-primary:hover {
    filter: saturate(1.1) brightness(1.05);
    transform: translateY(-1px);
    color: #04121e;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
@media (max-width: 991px) {
    .dropdown-menu {
        min-width: 280px !important;
        max-width: 90vw !important;
        margin-top: 0.5rem !important;
    }
    
    .dropdown-menu .form-control-sm {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .dropdown-menu .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .dropdown-menu .dropdown-item i {
        font-size: 0.9rem;
    }
    
    .dropdown-menu small.text-muted {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* ===== Улучшенные карточки анкет для Dashboard ===== */
.profile-card-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(64,224,255,.12);
    background: var(--hi-panel);
    backdrop-filter: blur(10px) saturate(160%);
    border-radius: 20px;
}

.profile-card-enhanced:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0,0,0,.5),
        0 0 40px rgba(64,224,255,.25),
        inset 0 0 0 1px rgba(64,224,255,.4);
    border-color: rgba(64,224,255,.3);
}

/* Контейнер изображения */
.profile-image-container {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
    width: 100%;
    display: block;
    background: #1a1a1a;
}

.profile-image-container img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

/* Контейнер для изображений профиля */
.profile-image-container {
    position: relative;
    overflow: hidden;
}

/* Стили для изображений в контейнере профиля */
.profile-image-container img {
    position: relative;
    z-index: 2;
}

/* Скрываем только действительно битые изображения (пустые src или невалидные) */
.profile-image-container img[src=""],
.profile-image-container img:not([src]),
.profile-image-container img[src*="undefined"],
.profile-image-container img[src*="null"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Placeholder для битых изображений - показываем поверх */
.profile-image-container .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 280px;
    z-index: 10;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, rgba(64,224,255,.1) 0%, rgba(196,60,255,.1) 100%) !important;
    align-items: center !important;
    justify-content: center !important;
}

.profile-card-enhanced:hover .profile-image-container img {
    transform: scale(1.08);
}

/* Неоновая линия под именем при наведении */
.profile-name-enhanced {
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

/* Убираем дублирование имени на мобильных */
.profile-card-enhanced .card-title {
    display: none !important;
}

.profile-card-enhanced h6.profile-name-enhanced {
    display: inline-block !important;
}

.profile-name-enhanced::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #40e0ff, #c43cff, #40e0ff);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 10px rgba(64,224,255,.6),
        0 0 20px rgba(64,224,255,.4),
        0 0 30px rgba(64,224,255,.2);
    animation: neonGlow 2s ease-in-out infinite;
}

.profile-card-enhanced:hover .profile-name-enhanced::after {
    width: 100%;
}

.profile-card-enhanced:hover .profile-name-enhanced {
    color: #fff !important;
    text-shadow: 
        0 0 10px rgba(64,224,255,.5),
        0 0 20px rgba(196,60,255,.3);
    transform: translateX(3px);
}

@keyframes neonGlow {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(64,224,255,.6),
            0 0 20px rgba(64,224,255,.4),
            0 0 30px rgba(64,224,255,.2);
        background-position: 0% 50%;
    }
    50% {
        box-shadow: 
            0 0 15px rgba(64,224,255,.8),
            0 0 30px rgba(64,224,255,.5),
            0 0 45px rgba(196,60,255,.3);
        background-position: 100% 50%;
    }
}

/* Overlay эффект при наведении */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.7) 0%,
        rgba(0,0,0,.5) 50%,
        rgba(0,0,0,.9) 100%
    );
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Убираем overlay эффект - теперь не используется */
.profile-card-enhanced:hover .image-overlay {
    display: none;
}

.overlay-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    color: #fff;
}

.overlay-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.overlay-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,.1);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    transition: all 0.3s ease;
}

.overlay-stat-item:hover {
    background: rgba(255,255,255,.2);
    transform: translateX(5px);
}

.overlay-stat-item i {
    font-size: 1.1rem;
    color: var(--hi-cyan);
}

.overlay-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.overlay-btn {
    background: rgba(64,224,255,.15);
    border: 1px solid rgba(64,224,255,.3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.overlay-btn:hover {
    background: rgba(64,224,255,.3);
    border-color: rgba(64,224,255,.5);
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    box-shadow: 0 8px 20px rgba(64,224,255,.3);
}

.overlay-btn i {
    font-size: 1.2rem;
}

/* Мини статистика в карточке */
.profile-mini-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: rgba(255,255,255,.03);
    border-radius: 10px;
    border: 1px solid rgba(64,224,255,.08);
}

.mini-stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #9bb7ff;
}

.mini-stat-item i {
    font-size: 1rem;
}

.mini-stat-item:hover {
    color: var(--hi-cyan);
}

/* Улучшенные кнопки действий */
.action-buttons-container {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(64,224,255,.2);
    border-radius: 12px;
    padding: 0.5rem;
    gap: 0;
    overflow: hidden;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: none;
    color: #b8d4ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(64,224,255,.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.action-btn-text {
    position: relative;
    z-index: 1;
}

.action-btn-separator {
    width: 1px;
    height: 24px;
    background: rgba(64,224,255,.2);
    margin: 0 0.25rem;
}

.action-btn-payment {
    color: #ff6b35;
}

.action-btn-payment:hover {
    color: #fff;
    background: rgba(255,107,53,.15);
}

.action-btn-payment::before {
    background: rgba(255,107,53,.15);
}

/* Компактные кнопки действий */
.action-buttons-container-compact {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(64,224,255,.2);
    border-radius: 10px;
    padding: 0.4rem;
    gap: 0;
    overflow: hidden;
}

.action-btn-compact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #b8d4ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    min-width: 44px;
    height: 40px;
}

.action-btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(64,224,255,.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.action-btn-compact:hover::before {
    opacity: 1;
}

.action-btn-compact:hover {
    color: #fff;
    transform: translateY(-2px);
}

.action-btn-compact i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.action-btn-separator-compact {
    width: 1px;
    height: 20px;
    background: rgba(64,224,255,.2);
    margin: 0 0.2rem;
}

.action-btn-compact-payment {
    color: #ff6b35;
}

.action-btn-compact-payment:hover {
    color: #fff;
    background: rgba(255,107,53,.15);
}

.action-btn-compact-payment::before {
    background: rgba(255,107,53,.15);
}

/* Адаптивность для улучшенных карточек */
@media (max-width: 768px) {
    .profile-card-enhanced:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .overlay-content {
        padding: 1rem;
    }
    
    .overlay-stat-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .action-btn-compact {
        padding: 0.45rem;
        min-width: 40px;
        height: 38px;
    }
    
    .action-btn-compact i {
        font-size: 0.95rem;
    }
}

/* Специальные правила для реальных мобильных устройств (touch) */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    /* Правила для реальных мобильных устройств с touch экраном */
    img[src*="foto2"],
    img.instagram-photo,
    img.profile-photo,
    .photo-container img,
    .profile-image-container img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* Размеры сохраняются из инлайн стилей */
    }
    
    /* Форма загрузки файлов - компактная на мобильных */
    .premium-form-control[type="file"] {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.8rem !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        line-height: 1.4 !important;
    }
    
    /* Подсказка под формой - компактная на мобильных */
    .premium-form-group .form-text {
        font-size: 0.75rem !important;
        margin-top: 0.5rem !important;
        line-height: 1.4 !important;
    }
    
    /* Лейбл формы - компактный на мобильных */
    .premium-form-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* Фото в edit_profile.php - правильный размер */
    .photo-container img[style*="height: 300px"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 300px !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    
    /* Фото в dashboard.php - правильный размер */
    .profile-image-container img[style*="height: 280px"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 280px !important;
        width: 100% !important;
        object-fit: contain !important;
        background: #1a1a1a !important;
    }
    
    /* Фото в profiles.php - правильный размер */
    img.profile-photo[style*="width: 60px"] {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 60px !important;
        height: 80px !important;
        object-fit: contain !important;
        background: #1a1a1a !important;
    }
}

@media (max-width: 576px) {
    /* Форма загрузки файлов - компактная на мобильных (маленькие экраны) */
    .premium-form-control[type="file"] {
        padding: 0.45rem 0.5rem !important;
        font-size: 0.75rem !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
    }
    
    /* Подсказка под формой - еще более компактная */
    .premium-form-group .form-text {
        font-size: 0.7rem !important;
        margin-top: 0.4rem !important;
        line-height: 1.3 !important;
        padding: 0 !important;
    }
    
    /* Лейбл формы - еще более компактный */
    .premium-form-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    /* Гарантированное отображение всех изображений - самое важное правило */
    /* Принудительно показываем изображения, но сохраняем оригинальные размеры из инлайн стилей */
    img:not([style*="display: none"]),
    img.instagram-photo:not([style*="display: none"]),
    img.profile-photo:not([style*="display: none"]),
    img.card-img-top:not([style*="display: none"]),
    .photo-container img:not([style*="display: none"]),
    .photo-container .instagram-photo:not([style*="display: none"]),
    .profile-image-container img:not([style*="display: none"]),
    .profile-image-container .instagram-photo:not([style*="display: none"]),
    .card-img-top:not([style*="display: none"]),
    .instagram-photo:not([style*="display: none"]),
    .profile-photo:not([style*="display: none"]) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* width и height сохраняются из инлайн стилей, не переопределяем! */
        position: relative !important;
        z-index: 1 !important;
        background-image: none !important;
    }
    
    /* Для таблиц - inline-block */
    table img:not([style*="display: none"]),
    td img:not([style*="display: none"]),
    .table img:not([style*="display: none"]) {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* Размеры сохраняются из инлайн стилей */
    }
    
    .profile-image-container {
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }
    
    /* Для dashboard.php - сохраняем высоту из инлайн стилей */
    .profile-card-enhanced .profile-image-container img[style*="height: 280px"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        object-fit: contain !important;
        background: #1a1a1a !important;
        /* Высота сохраняется из инлайн стиля */
    }
    
    /* Для profiles.php - сохраняем размеры из инлайн стилей */
    table .profile-photo[style*="width: 60px"],
    .table .profile-photo[style*="width: 60px"] {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        object-fit: contain !important;
        background: #1a1a1a !important;
        /* Размеры сохраняются из инлайн стиля */
    }
    
    .photo-container {
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
        min-height: 200px !important;
    }
    
    .photo-container img,
    .photo-container .instagram-photo {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* Высота должна сохраняться из инлайн стилей, не меняем её */
    }
    
    /* Исправление для Bootstrap колонок */
    .col-6 img,
    .col-sm-4 img,
    .col-md-3 img,
    .col-lg-4 img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Принудительное отображение изображений в таблицах */
    table img,
    td img,
    .table img,
    .table-responsive img {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .profile-name-enhanced {
        font-size: 1rem !important;
        display: block !important;
    }
    
    .profile-name-enhanced::after {
        height: 1.5px;
        bottom: -3px;
    }
    
    /* Убираем дублирование имени на мобильных */
    .profile-card-enhanced .card-title,
    .profile-card-enhanced h5.card-title,
    .profile-card-enhanced h6.card-title {
        display: none !important;
    }
    
    /* Гарантируем показ только одного имени */
    .profile-card-enhanced .profile-name-enhanced {
        display: inline-block !important;
        max-width: 100%;
    }
    
    /* Placeholder для битых изображений - всегда показываем */
    .profile-image-container .image-placeholder {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 280px !important;
        z-index: 10 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: linear-gradient(135deg, rgba(64,224,255,.1) 0%, rgba(196,60,255,.1) 100%) !important;
    }
    
    /* Скрываем только битые изображения на мобильных (которые действительно не загрузились) */
    .profile-image-container img[src=""],
    .profile-image-container img:not([src]),
    .profile-image-container img[src*="undefined"],
    .profile-image-container img[src*="null"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .overlay-stats {
        gap: 0.5rem;
    }
    
    .overlay-stat-item {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
    
    .action-buttons-container-compact {
        padding: 0.35rem;
    }
    
    .action-btn-compact {
        padding: 0.4rem;
        min-width: 36px;
        height: 36px;
    }
    
    .action-btn-compact i {
        font-size: 0.9rem;
    }
    
    .action-btn-separator-compact {
        height: 18px;
        margin: 0 0.15rem;
    }
}

/* Исправление отображения изображений на мобильных устройствах */
@media (max-width: 768px) {
    /* Принудительное отображение всех изображений - КРИТИЧЕСКИ ВАЖНО */
    /* НО сохраняем оригинальные размеры из инлайн стилей! */
    img:not([style*="display: none"]),
    img.instagram-photo:not([style*="display: none"]),
    img.profile-photo:not([style*="display: none"]),
    img.card-img-top:not([style*="display: none"]),
    .instagram-photo:not([style*="display: none"]),
    .profile-photo:not([style*="display: none"]),
    .card-img-top:not([style*="display: none"]) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* width и height НЕ переопределяем - сохраняем из инлайн стилей! */
        position: relative !important;
        z-index: 1 !important;
        background: transparent !important;
    }
    
    /* Убираем скрытие изображений через display: none, но сохраняем размеры */
    img[style*="display: none"]:not([style*="height"]),
    img[style*="display:none"]:not([style*="height"]) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Дополнительная защита - показываем все изображения, размеры из инлайн стилей */
    img[src*="foto2"],
    img[src*="photo"],
    img.instagram-photo,
    img.profile-photo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* Размеры сохраняются из инлайн стилей, не переопределяем */
    }
    
    /* Исправление позиционирования статус бейджа на мобильных */
    .profile-image-container {
        position: relative !important;
    }
    
    .profile-image-container .position-absolute {
        z-index: 10 !important;
    }
    
    .profile-image-container img {
        position: relative !important;
        z-index: 1 !important;
    }
    
    .profile-image-container .badge-status {
        z-index: 11 !important;
        position: relative !important;
    }
    
    .profile-image-container,
    .photo-container {
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }
    
    /* Показываем изображения, но НЕ переопределяем их размеры! */
    .profile-image-container img[style*="height"],
    .photo-container img[style*="height"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* Размеры сохраняются из инлайн стилей, НЕ переопределяем! */
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Исправление для edit_profile.php - фото с фиксированной высотой */
    /* Размеры сохраняются из инлайн стилей, только показываем изображение */
    .photo-container img[style*="height: 300px"],
    img[style*="height: 300px"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* height: 300px сохраняется из инлайн стиля */
    }
    
    /* Исправление для dashboard.php - фото карточек */
    /* Размеры сохраняются из инлайн стилей, только показываем изображение */
    .profile-card-enhanced .profile-image-container img[style*="height: 280px"],
    .profile-image-container img[style*="height: 280px"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        object-fit: contain !important;
        background: #1a1a1a !important;
        /* height: 280px сохраняется из инлайн стиля */
    }
    
    /* Исправление для profiles.php - фото в таблице */
    /* Размеры сохраняются из инлайн стилей, только показываем изображение */
    .profile-photo[style*="width: 60px"],
    img.profile-photo[style*="width: 60px"],
    img.profile-photo[style*="height: 80px"] {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        object-fit: contain !important;
        background: #1a1a1a !important;
        /* width: 60px и height: 80px сохраняются из инлайн стилей */
    }
    
    /* Исправление для profiles.php - фото в таблице - только показываем */
    /* Размеры сохраняются из инлайн стилей */
    td img.profile-photo,
    table img.profile-photo,
    .table img.profile-photo,
    .table-responsive img.profile-photo {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* Размеры сохраняются из инлайн стилей */
    }
}

/* ===== Слайдер фотографий ===== */
#photosSliderModal .modal-content {
    border: 1px solid rgba(64,224,255,.2);
    box-shadow: 
        0 0 0 1px rgba(64,224,255,.12) inset,
        0 25px 50px rgba(0,0,0,.6),
        0 0 40px rgba(64,224,255,.15);
}

#mainSliderPhoto {
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,.5),
        0 0 20px rgba(64,224,255,.1);
    transition: transform 0.3s ease;
}

#mainSliderPhoto:hover {
    transform: scale(1.02);
}

.slider-photo-clickable {
    transition: all 0.3s ease;
    position: relative;
}

.slider-photo-clickable:hover {
    box-shadow: 
        0 15px 40px rgba(0,0,0,.6),
        0 0 30px rgba(64,224,255,.2);
}

.slider-photo-clickable::after {
    content: '👆 Кликните для переключения';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.slider-photo-clickable:hover::after {
    opacity: 1;
}

#photosThumbnails {
    padding: 0.5rem;
    background: rgba(0,0,0,.2);
    border-radius: 12px;
    border: 1px solid rgba(64,224,255,.1);
}

.thumbnail-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail-item:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 15px rgba(64,224,255,.4);
    z-index: 10;
}

.thumbnail-item img {
    transition: all 0.3s ease;
}

.thumbnail-item:hover img {
    filter: brightness(1.1);
}

#prevPhotoBtn:disabled,
#nextPhotoBtn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#setMainPhotoBtn {
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(64,224,255,.3),
        inset 0 0 0 1px rgba(255,255,255,.1);
    z-index: 100 !important;
    position: relative !important;
}

/* Скрываем мобильную кнопку на десктопе по умолчанию */
@media (min-width: 769px) {
    #setMainPhotoBtnMobile {
        display: none !important;
    }
}

#setMainPhotoBtn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(64,224,255,.4),
        inset 0 0 0 1px rgba(255,255,255,.2);
}

/* Мобильные стили для кнопки "Сделать главным" */
@media (max-width: 768px) {
    /* Скрываем кнопки навигации на мобильных (можно переключать кликом по фото) */
    #prevPhotoBtn,
    #nextPhotoBtn {
        display: none !important;
    }
    
    /* Скрываем кнопку на изображении на мобильных */
    #photosSliderModal .position-absolute.bottom-0.start-50 {
        display: none !important;
    }
    
    /* Стили для мобильной кнопки "Сделать главным" */
    /* Показываем только если JavaScript установил display: flex */
    #setMainPhotoBtnMobile[style*="display: flex"],
    #setMainPhotoBtnMobile[style*="display:flex"] {
        display: flex !important;
        justify-content: center !important;
        margin: 1rem 0 !important;
    }
    
    #setMainPhotoBtnMobile .btn {
        min-width: 200px !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        box-shadow: 
            0 4px 20px rgba(64,224,255,.5),
            0 0 30px rgba(64,224,255,.3),
            inset 0 0 0 1px rgba(255,255,255,.2) !important;
    }
    
    /* Центрируем счетчик фотографий на мобильных */
    #photoCounter {
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Контейнер навигации - делаем flex column для центрирования */
    #photosSliderModal .d-flex.justify-content-between:has(#photoCounter) {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    #setMainPhotoBtnMobile .btn {
        min-width: 180px !important;
        padding: 0.65rem 1.25rem !important;
        font-size: 0.85rem !important;
    }
}

#mainPhotoBadge {
    backdrop-filter: blur(10px);
}

#photoCounter {
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(64,224,255,.5);
    letter-spacing: 1px;
}

/* Стилизация скроллбара для миниатюр */
#photosThumbnails::-webkit-scrollbar {
    height: 6px;
}

#photosThumbnails::-webkit-scrollbar-track {
    background: rgba(255,255,255,.05);
    border-radius: 3px;
}

#photosThumbnails::-webkit-scrollbar-thumb {
    background: rgba(64,224,255,.3);
    border-radius: 3px;
}

#photosThumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(64,224,255,.5);
}

/* Для Firefox */
#photosThumbnails {
    scrollbar-width: thin;
    scrollbar-color: rgba(64,224,255,.3) rgba(255,255,255,.05);
}

/* ===== Drag & Drop стили для фото ===== */
.sortable-ghost {
    opacity: 0.4;
    background: rgba(64,224,255,.2);
    border: 2px dashed var(--hi-cyan) !important;
    transform: scale(0.95);
}

.sortable-chosen {
    cursor: move !important;
    transform: scale(1.05);
    box-shadow: 
        0 10px 30px rgba(64,224,255,.4),
        0 0 40px rgba(64,224,255,.3) !important;
    border-color: var(--hi-cyan) !important;
    z-index: 1000;
}

.sortable-drag {
    opacity: 0.8;
}

/* Анимация появления уведомлений */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Индикатор перетаскивания для фото */
.photo-container[draggable="true"],
.photo-container[style*="cursor: move"] {
    position: relative;
}

.photo-container[style*="cursor: move"]::before {
    content: '⋮⋮';
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(64,224,255,.9);
    color: #fff;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
    z-index: 5;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.photo-container[style*="cursor: move"]:hover::before {
    opacity: 1;
}

/* ===== Премиум блок информации о странице ===== */
.premium-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 0;
}

.premium-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, 
        rgba(255,255,255,.06) 0%, 
        rgba(255,255,255,.03) 100%);
    border: 1px solid rgba(64,224,255,.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(64,224,255,.05) 0%, 
        rgba(196,60,255,.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.premium-info-item:hover {
    transform: translateY(-3px);
    border-color: rgba(64,224,255,.3);
    box-shadow: 
        0 4px 20px rgba(64,224,255,.15),
        0 0 0 1px rgba(64,224,255,.1);
    background: linear-gradient(135deg, 
        rgba(255,255,255,.08) 0%, 
        rgba(255,255,255,.05) 100%);
}

.premium-info-item:hover::before {
    opacity: 1;
}

.info-icon-wrapper {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, 
        rgba(64,224,255,.2) 0%, 
        rgba(196,60,255,.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--hi-cyan);
    box-shadow: 0 4px 12px rgba(64,224,255,.2);
    transition: all 0.3s ease;
}

.premium-info-item:hover .info-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 18px rgba(64,224,255,.3);
}

.info-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(155,183,255,.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hi-green);
    line-height: 1.3;
    word-break: break-word;
}

.info-value-success {
    color: var(--hi-green);
}

.info-value-warning {
    color: #ffaa00;
}

.info-value-muted {
    color: rgba(155,183,255,.5);
}

/* Адаптивность для премиум-блока информации */
@media (max-width: 768px) {
    .card-body .premium-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 0.75rem !important;
    }
    
    .premium-info-item {
        padding: 0.875rem 1rem !important;
        gap: 0.875rem !important;
        min-height: auto !important;
    }
    
    .info-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 1.1rem !important;
    }
    
    .info-label {
        font-size: 0.7rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .info-value {
        font-size: 0.875rem !important;
    }
    
    .card-body[style*="padding"] {
        padding: 1rem !important;
    }
}

@media (max-width: 576px) {
    .card-body .premium-info-grid {
        grid-template-columns: 1fr !important;
        gap: 0.625rem !important;
    }
    
    .premium-info-item {
        padding: 0.75rem !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
    }
    
    .info-icon-wrapper {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }
    
    .info-content {
        min-width: 0 !important;
        flex: 1 !important;
    }
    
    .info-label {
        font-size: 0.65rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .info-value {
        font-size: 0.8rem !important;
        word-break: break-word !important;
    }
    
    .card-body[style*="padding"] {
        padding: 0.875rem !important;
    }
    
    .card-header[style*="padding"] {
        padding: 0.875rem 1rem !important;
    }
}

/* Дополнительные стили для мобильных устройств с touch */
@media (max-width: 768px) and (hover: none) {
    .premium-info-item {
        padding: 0.875rem 1rem !important;
    }
    
    .premium-info-item:hover {
        transform: none !important;
    }
    
    .premium-info-item:hover .info-icon-wrapper {
        transform: none !important;
    }
}

/* ===== Премиум стили для пагинации ===== */
.pagination {
    gap: 8px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.pagination .page-item {
    margin: 0 !important;
}

.pagination .page-link {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(64, 224, 255, 0.18) !important;
    border-radius: 12px !important;
    color: rgba(232, 240, 255, 0.8) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 
        0 0 0 1px rgba(64, 224, 255, 0.05) inset,
        0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.pagination .page-link:hover {
    background: rgba(64, 224, 255, 0.12) !important;
    border-color: rgba(64, 224, 255, 0.4) !important;
    color: var(--hi-cyan) !important;
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 1px rgba(64, 224, 255, 0.2) inset,
        0 4px 16px rgba(64, 224, 255, 0.15),
        0 0 20px rgba(64, 224, 255, 0.1);
}

.pagination .page-link:focus {
    background: rgba(64, 224, 255, 0.12) !important;
    border-color: rgba(64, 224, 255, 0.4) !important;
    color: var(--hi-cyan) !important;
    box-shadow: 
        0 0 0 1px rgba(64, 224, 255, 0.2) inset,
        0 4px 16px rgba(64, 224, 255, 0.15),
        0 0 20px rgba(64, 224, 255, 0.1);
    outline: none !important;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, 
        rgba(196, 60, 255, 0.3) 0%, 
        rgba(64, 224, 255, 0.3) 100%) !important;
    border-color: rgba(64, 224, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 
        0 0 0 1px rgba(64, 224, 255, 0.3) inset,
        0 4px 16px rgba(64, 224, 255, 0.25),
        0 0 24px rgba(64, 224, 255, 0.15);
    font-weight: 700;
}

.pagination .page-item.active .page-link:hover {
    background: linear-gradient(135deg, 
        rgba(196, 60, 255, 0.4) 0%, 
        rgba(64, 224, 255, 0.4) 100%) !important;
    border-color: rgba(64, 224, 255, 0.6) !important;
    box-shadow: 
        0 0 0 1px rgba(64, 224, 255, 0.4) inset,
        0 6px 20px rgba(64, 224, 255, 0.3),
        0 0 30px rgba(64, 224, 255, 0.2);
    transform: translateY(-2px);
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(232, 240, 255, 0.3) !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: 
        0 0 0 1px rgba(64, 224, 255, 0.05) inset,
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Иконки в кнопках пагинации */
.pagination .page-link i {
    font-size: 16px;
    line-height: 1;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .pagination .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .pagination {
        gap: 6px !important;
    }
}

