
<style>
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');
    @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: #000000;
        min-height: 100vh;
        display: block;
        padding: 0;
        position: relative;
        overflow-x: hidden;
        color: #ffffff;
        word-wrap: break-word;
        overflow-wrap: break-word;
        touch-action: pan-y;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Обертка для контента */
        .main-content-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Главный заголовок и слоган на главной */
    .container .main-title {
        font-family: 'Orbitron', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 108px;
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: 1.5px;
        text-align: center;
        margin: 8px 0 50px;
        color: #ffffff;
    }
    .title-wrap {
        display: inline-block;
        text-align: center;
    }
    .container .title-caption {
        font-size: 14px; /* немного крупнее */
        color: rgba(255,255,255,0.8);
        text-align: center;
        margin-top: 5px;  /* Заголовок -> 5px -> Надпись */
        margin-bottom: 25px; /* Надпись -> 25px -> Подзаголовок */
    }
    .container .title-caption a {
        color: #ff4d4d;
        text-decoration: none;
    }
    .container .title-caption a:hover {
        text-decoration: underline;
    }
    .container .main-tagline {
        font-size: 16px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.85);
        text-align: center;
        margin-bottom: 50px;
    }
    @media (max-width: 768px) {
        .container .main-title {
            font-size: 72px;
            margin-bottom: 50px;
        }
        .container .main-tagline {
            font-size: 14px;
            margin-bottom: 50px;
        }
    }
    
    /* Группа переключателя и плашки */
    .header .btn-group {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    .switch-wrapper {
        position: relative;
        width: 360px; /* рабочая область под кнопку и плашку */
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .switch-wrapper .switch {
        transition: transform .3s ease;
        z-index: 1;
    }
    /* Плашка с количеством участников, выезжает из-под кнопки слева (десктоп) */
    .members-badge {
        display: none !important;
        position: absolute;
        top: 50%;
        left: 0; /* прилипшая к левой границе рабочей области */
        transform: translateY(-50%) translateX(-16px); /* спрятана под кнопкой слева */
        display: inline-flex;
        align-items: center;
        gap: 10px;
        height: 48px;
        padding: 10px 18px;
        border-radius: 14px;
        background: linear-gradient(90deg, rgba(98,60,191,0.8), rgba(171,84,247,0.8));
        border: 1px solid rgba(138,85,255,0.45);
        color: rgba(255,255,255,0.95);
        font-weight: 600;
        font-size: 14px;
        letter-spacing: .2px;
        line-height: 1;
        backdrop-filter: blur(8px);
        box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
        opacity: 0;
        transition: opacity .3s ease, transform .3s ease;
        pointer-events: none;
    }
    .members-badge .badge-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #a855f7;
        box-shadow: 0 0 8px #a855f7, 0 0 16px rgba(168,85,247,0.65);
        flex-shrink: 0;
    }
    .members-badge .badge-content {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }
    .members-badge .line-1 {
        font-size: 12px;
        opacity: .9;
    }
    .members-badge .line-2 {
        font-size: 18px;
        font-weight: 800;
    }
    .members-badge .line-2 .unit {
        font-size: 12px;
        font-weight: 600;
        opacity: .9;
        margin-left: 6px;
    }
    /* Наведение на саму кнопку: кнопка смещается вправо, плашка выезжает слева и прилипает */
    .switch-wrapper .switch:hover { transform: none; }
    @media (max-width: 768px) {
        .members-badge {
            display: none;
        }
    }
    
    /* Кнопки действий справа от плашки (как на скриншоте) */
    .side-actions {
        position: absolute;
        right: -64px;
        top: 50px; /* подняли на 70px */
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .action-btn {
        width: 44px;
        height: 44px;
        background: #7c3aed;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(0,0,0,0.45);
        background: #8b5cf6;
    }
            .action-btn svg {
        width: 22px;
        height: 22px;
        fill: #fff;
    }
            /* Увеличенный размер для кнопки-подарка */
            .action-btn.gift-btn {
                width: 56px;
                height: 56px;
            }
            .action-btn.gift-btn svg {
                width: 50px;
                height: 50px;
            }
            @media (max-width: 768px) {
                .side-actions {
                    position: fixed;
                    top: calc(max(10px, env(safe-area-inset-top)) + 30px);
                    right: max(10px, env(safe-area-inset-right));
                    left: auto;
                    bottom: auto;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-end;
                    justify-content: flex-start;
                    gap: 10px;
                    z-index: 1000;
                    transform: none;
                }
                .action-btn {
                    width: 44px;
                    height: 44px;
                    border-radius: 12px;
                }
            }
    
    /* Footer */
    footer.site-footer {
        max-width: 900px;
        margin: 60px auto 20px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: center; /* центрируем на десктопе */
        text-align: center;      /* текст по центру */
        color: rgba(255,255,255,0.7);
        font-size: 12px;
        line-height: 5px;        /* межстрочное расстояние 5px */
    }
    .footer-links {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center; /* ссылки по центру */
    }
    .footer-links a {
        color: rgba(255,255,255,0.75);
        text-decoration: none;
    }
    .footer-links a:hover {
        text-decoration: underline;
    }
    @media (max-width: 768px) {
        footer.site-footer {
            max-width: 100%;
            padding: 0 16px;
            flex-direction: column;
            gap: 14px;
            align-items: flex-start;
        }
    }
    
    /* Кнопка \"Смотреть\" слева с вращающимся текстом */
    .watch-left {
        position: absolute;
        left: -56px; /* дополнительно сместили влево на 3px */
        top: 56px;
        width: 128px;
        height: 128px;
        border-radius: 50%;
        background: radial-gradient( circle at 50% 50%, #a855f7 0%, #7c3aed 60%, rgba(124,58,237,0.4) 100% );
        box-shadow: 0 10px 30px rgba(124,58,237,.6), inset 0 2px 6px rgba(255,255,255,.2);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transform: none; /* фиксированное позиционирование без дополнительного сдвига */
    }
    .watch-left svg.play {
        width: 34px;
        height: 34px;
        fill: #fff;
        z-index: 2;
        pointer-events: none;
    }
    .watch-left .circle-text {
        position: absolute;
        inset: 0;
        animation: rotate 8s linear infinite;
        pointer-events: none;
    }
    .watch-left .circle-text svg {
        width: 100%;
        height: 100%;
    }
    @keyframes rotate {
        to { transform: rotate(360deg); }
    }
    @media (max-width: 768px) {
        .watch-left {
            position: fixed;
            top: calc(max(10px, env(safe-area-inset-top)) + 30px); /* на одном уровне с правыми иконками */
            left: max(10px, env(safe-area-inset-left));
            width: 64px;   /* в 2 раза меньше */
            height: 64px;  /* в 2 раза меньше */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        .watch-left svg.play {
            width: 24px;
            height: 24px;
        }
    }
    
    /* Модалка видео */
    .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    .modal-overlay.active { display: flex; }
    .modal {
        width: min(1000px, 92vw);
        background: rgba(10,10,18,0.9);
        border: 1px solid rgba(138,85,255,0.35);
        border-radius: 20px;
        box-shadow: 0 30px 80px rgba(0,0,0,0.6);
        padding: 22px 22px 26px;
        backdrop-filter: blur(8px);
        position: relative;
    }
    .modal h3 {
        text-align: center;
        color: #fff;
        font-size: 22px;
        margin: 6px 0 6px;
    }
    .modal p.subtitle {
        text-align: center;
        color: rgba(255,255,255,0.8);
        font-size: 13px;
        margin-bottom: 16px;
    }
    .modal .close {
        position: absolute;
        right: 14px;
        top: 12px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(124,58,237,0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #fff;
        font-size: 20px;
        line-height: 1;
    }
    .modal .cta-club {
        margin-top: 16px;
        width: 100%;
        height: 52px;
        border-radius: 12px;
        background: linear-gradient(90deg, #8b5cf6, #7c3aed);
        border: 1px solid rgba(255,255,255,0.12);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-weight: 700;
        letter-spacing: .3px;
        position: relative;
        overflow: hidden;
        text-decoration: none;
    }
    .cta-club::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
        transform: skewX(-20deg);
        animation: shine 2.6s infinite;
    }
    @keyframes shine {
        0% { left: -100%; }
        60% { left: 120%; }
        100% { left: 120%; }
    }
    
    /* На десктопе центрируем контейнер */
    @media (min-width: 769px) {
        body:not(:has(.dashboard-layout)) {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            min-height: 100vh;
        }
        
        .main-content-wrapper {
            width: 100%;
            max-width: 1600px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .container {
            margin: 0 auto;
            position: relative;
        }
        
        /* Desktop: ensure 50px gap between logo and heading */
        .logo .title-wrap {
            margin-top: 25px !important; /* Лого -> 25px -> Заголовок */
        }
        .container .main-title {
            margin-top: 0 !important;
            margin-bottom: 5px !important; /* Заголовок -> 5px -> Надпись */
        }
        /* Desktop: enforce logo above heading order */
        .logo {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .logo img {
            order: 0;
            display: block;
        }
        .logo .title-wrap {
            order: 1;
        }
        /* Ensure subtitle paragraph comes after caption */
        .logo > p {
            order: 2;
            margin-top: 25px !important; /* Надпись -> 25px -> Подзаголовок */
        }
        
        .cards-wrapper {
            margin-top: 60px;
            width: 100%;
        }
    }
    
    /* На мобильных убираем центрирование */
    @media (max-width: 768px) {
        body {
            padding: 0;
        }
        /* Mobile spacing: title -> 5px -> caption; caption -> 25px -> subtitle */
        .container .main-title {
            margin-bottom: 5px !important;
        }
        .container .title-caption {
            font-size: 16px !important;
            margin-top: 5px !important;
            margin-bottom: 25px !important;
        }
        .logo > p {
            margin-top: 25px !important;
        }
        /* Center footer text and links on mobile */
        footer.site-footer {
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
        }
        .footer-links {
            justify-content: center !important;
        }
        /* Hide footer entirely on mobile */
        footer.site-footer {
            display: none !important;
        }
    }
    
    /* Фоновые градиенты с фиолетовыми акцентами */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(circle at 20% 30%, rgba(88, 86, 214, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(125, 122, 255, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
            linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
        z-index: -2;
    }
    
    /* Интерактивный фон с трубками */
    #canvas {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        overflow: hidden;
        z-index: -1;
        pointer-events: auto;
    }
    
    /* На мобильных устройствах скрываем canvas и используем обычный фон */
    @media (max-width: 768px) {
        #canvas {
            display: none !important;
        }
        
        body {
            height: auto;
            min-height: 100vh;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            display: block;
            align-items: flex-start;
            padding-top: 20px;
            padding-bottom: 20px;
        }
        
        .container {
            background: transparent !important;
            backdrop-filter: none !important;
            border-radius: 0 !important;
            border: none !important;
            box-shadow: none !important;
            padding: 20px !important;
            margin: 0 auto;
        }
        
        .container::before,
        .container::after {
            display: none !important;
        }
        
    .container .logo {
        margin-top: 50px !important;
        }
    }
    
    /* Стили для электрических плашек */
    :root {
        --electric-border-color: #dd8448;
        --electric-light-color: #f5a872;
        --gradient-color: rgba(221, 132, 72, 0.2);
        --color-neutral-900: #1a1a1a;
    }
    
    .cards-wrapper {
        display: flex;
        flex-direction: row;
        gap: 30px;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        flex-wrap: wrap;
        margin-top: 60px;
    }
    
    .main-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        flex: 1;
        min-width: 300px;
        max-width: 400px;
    }
    
    .svg-container {
        position: absolute;
        width: 0;
        height: 0;
    }
    
    .card-container {
        padding: 2px;
        border-radius: 24px;
        position: relative;
        background: linear-gradient(-30deg, var(--gradient-color), transparent, var(--gradient-color)),
                    linear-gradient(to bottom, var(--color-neutral-900), var(--color-neutral-900));
        width: 100%;
        max-width: 350px;
    }
    
    .inner-container {
        position: relative;
    }
    
    .border-outer {
        border: 2px solid rgba(221, 132, 72, 0.5);
        border-radius: 24px;
        padding-right: 4px;
        padding-bottom: 4px;
    }
    
    .main-card {
        width: 100%;
        height: 500px;
        border-radius: 24px;
        border: 2px solid var(--electric-border-color);
        margin-top: -4px;
        margin-left: -4px;
        background: var(--color-neutral-900);
    }
    
    .main-container:first-child .main-card {
        filter: url(#turbulent-displace-1);
    }
    
    .main-container:nth-child(2) .main-card {
        filter: url(#turbulent-displace-2);
    }
    
    .main-container:nth-child(3) .main-card {
        filter: url(#turbulent-displace-3);
    }
    
    .glow-layer-1 {
        border: 2px solid rgba(221, 132, 72, 0.6);
        border-radius: 24px;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        filter: blur(1px);
        pointer-events: none;
    }
    
    .glow-layer-2 {
        border: 2px solid var(--electric-light-color);
        border-radius: 24px;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        filter: blur(4px);
        pointer-events: none;
    }
    
    .overlay-1 {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 24px;
        opacity: 1;
        mix-blend-mode: overlay;
        transform: scale(1.1);
        filter: blur(16px);
        background: linear-gradient(-30deg, white, transparent 30%, transparent 70%, white);
        pointer-events: none;
    }
    
    .overlay-2 {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 24px;
        opacity: 0.5;
        mix-blend-mode: overlay;
        transform: scale(1.1);
        filter: blur(16px);
        background: linear-gradient(-30deg, white, transparent 30%, transparent 70%, white);
        pointer-events: none;
    }
    
    .background-glow {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 24px;
        filter: blur(32px);
        transform: scale(1.1);
        opacity: 0.3;
        z-index: -1;
        background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
        pointer-events: none;
    }
    
    .content-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        z-index: 1;
    }
    
    .content-top {
        display: flex;
        flex-direction: column;
        padding: 48px;
        padding-bottom: 16px;
        height: 100%;
    }
    
    .content-bottom {
        display: flex;
        flex-direction: column;
        padding: 48px;
        padding-top: 16px;
    }
    
    .scrollbar-glass {
        background: radial-gradient(47.2% 50% at 50.39% 88.37%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%),
                    rgba(255, 255, 255, 0.04);
        position: relative;
        transition: background 0.3s ease;
        border-radius: 14px;
        width: fit-content;
        height: fit-content;
        padding: 8px 16px;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .scrollbar-glass:hover {
        background: radial-gradient(47.2% 50% at 50.39% 88.37%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%),
                    rgba(255, 255, 255, 0.08);
    }
    
    .scrollbar-glass::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 1px;
        background: linear-gradient(150deg, rgba(255, 255, 255, 0.48) 16.73%, rgba(255, 255, 255, 0.08) 30.2%, rgba(255, 255, 255, 0.08) 68.2%, rgba(255, 255, 255, 0.6) 81.89%);
        border-radius: inherit;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: xor;
        -webkit-mask-composite: xor;
        pointer-events: none;
    }
    
    .title {
        font-size: 36px;
        font-weight: 500;
        margin-top: auto;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .description {
        opacity: 0.5;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.6;
    }
    
    .divider {
        margin-top: auto;
        border: none;
        height: 1px;
        background-color: currentColor;
        opacity: 0.1;
        mask-image: linear-gradient(to right, transparent, black, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black, transparent);
    }
    
    /* Адаптация для мобильных */
    @media (max-width: 768px) {
        .cards-wrapper {
            flex-direction: column;
            gap: 20px;
            padding: 20px;
            margin-top: 40px;
        }
        
        .main-container {
            width: 100%;
            max-width: 100%;
        }
        
        .card-container {
            max-width: 100%;
        }
        
        .main-card {
            height: 400px;
        }
        
        .content-top,
        .content-bottom {
            padding: 32px 24px;
        }
        
        .title {
            font-size: 28px;
        }
        
        .description {
            font-size: 14px;
        }
    }
    
    .container {
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(40px) saturate(200%);
        border-radius: 32px;
        border: 1px solid rgba(88, 86, 214, 0.2);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(88, 86, 214, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        padding: 60px 50px;
        max-width: 900px;
        width: 100%;
        position: relative;
        z-index: 1;
        margin: 0 auto;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.2) 20%, 
            rgba(255, 255, 255, 0.2) 80%, 
            transparent
        );
        border-radius: 32px 32px 0 0;
    }
    
    .card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border-radius: 24px;
        padding: 40px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        margin-bottom: 20px;
        transition: all 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    h1 {
        font-size: 4.5rem;
        font-weight: 900;
        color: #ffffff;
        margin-bottom: 20px;
        letter-spacing: -0.03em;
        text-shadow: 
            0 0 40px rgba(255, 255, 255, 0.1),
            0 4px 20px rgba(0, 0, 0, 0.3);
        background: linear-gradient(135deg, 
            #ffffff 0%, 
            rgba(255, 255, 255, 0.95) 30%,
            rgba(255, 255, 255, 0.85) 70%,
            rgba(255, 255, 255, 0.7) 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    h2 {
        font-size: 2.5rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 20px;
        color: #ffffff;
    }
    
    h3 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 16px;
        color: #ffffff;
    }
    
    .subtitle {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 40px;
        font-weight: 300;
        line-height: 1.6;
    }
    
    .btn {
        display: inline-block;
        padding: 16px 32px;
        background: #ffffff;
        border: none;
        border-radius: 12px;
        color: #000000;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .btn:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
    
    .btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
    }
    
    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .btn-liquid {
        display: inline-block;
        position: relative;
        width: 240px;
        height: 60px;
        border-radius: 27px;
        color: #fff;
        font: 700 14px/60px "Droid Sans", sans-serif;
        letter-spacing: 0.05em;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
    }
    
    .btn-liquid .inner {
        position: relative;
        z-index: 2;
    }
    
    .btn-liquid canvas {
        position: absolute;
        top: -50px;
        right: -50px;
        bottom: -50px;
        left: -50px;
        z-index: 1;
    }
    
    /* Кнопка-переключатель */
    #switch {
        visibility: hidden;
        clip: rect(0 0 0 0);
        position: absolute;
        left: 9999px;
    }
    
    .switch {
        display: block;
        width: 130px;
        height: 60px;
        margin: 0 auto;
        position: relative;
        background: #ced8da;
        background: linear-gradient(to right, #ced8da 0%, #d8e0e3 29%, #ccd4d7 34%, #d4dcdf 62%, #fff9f4 68%, #e1e9ec 74%, #b7bfc2 100%);
        transition: all 0.2s ease-out;
        cursor: pointer;
        border-radius: 0.35em;
        box-shadow: 
            0 0 1px 2px rgba(0,0,0,0.7),
            inset 0 2px 0 rgba(255,255,255,0.6),
            inset 0 -1px 0 1px rgba(0,0,0,0.3),
            0 8px 10px rgba(0,0,0,0.15);
    }
    
    .switch::before {
        display: block;
        position: absolute;
        left: -35px;
        right: -35px;
        top: -25px;
        bottom: -25px;
        z-index: -2;
        content: "";
        border-radius: 0.4em;
        background: #d5dde0;
        background: linear-gradient(#d7dfe2, #bcc7cd);
        box-shadow:
            inset 0 2px 0 rgba(255,255,255,0.6),
            inset 0 -1px 1px 1px rgba(0,0,0,0.3),
            0 0 8px 2px rgba(0,0,0,0.2),
            0 2px 4px 2px rgba(0,0,0,0.1);
        pointer-events: none;
        transition: all 0.2s ease-out;
    }
    
    .switch::after {
        content: "";
        position: absolute;
        right: -25px;
        top: 50%;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #788b91;
        margin-top: -8px;
        z-index: -1;
        box-shadow: 
            inset 0 -1px 8px rgba(0,0,0,0.7),
            inset 0 -2px 2px rgba(0,0,0,0.2),
            0 1px 0 white,
            0 -1px 0 rgba(0,0,0,0.5),
            -47px 32px 15px 13px rgba(0,0,0,0.25);
    }
    
    /* Лампочка пульсирует мягко при наведении (красный светлее ↔ темнее → к серому циклично) */
    .switch:hover::after {
        animation: pulse-red 1.6s ease-in-out infinite;
    }
    @keyframes pulse-red {
        0% {
            background: #ff8a80; /* светло-красный */
            box-shadow:
                0 0 6px rgba(255, 138, 128, 0.6),
                0 0 12px rgba(255, 138, 128, 0.45);
        }
        50% {
            background: #b00020; /* тёмно-красный */
            box-shadow:
                0 0 8px rgba(176, 0, 32, 0.7),
                0 0 16px rgba(176, 0, 32, 0.55);
        }
        80% {
            background: #9e9e9e; /* к серому */
            box-shadow:
                0 0 4px rgba(158, 158, 158, 0.35),
                0 0 8px rgba(158, 158, 158, 0.25);
        }
        100% {
            background: #ff8a80; /* обратно к светло-красному */
            box-shadow:
                0 0 6px rgba(255, 138, 128, 0.6),
                0 0 12px rgba(255, 138, 128, 0.45);
        }
    }
    
    #switch:checked ~ .switch {
        background: #b7bfc2;
        background: linear-gradient(to right, #b7bfc2 0%, #e1e9ec 26%, #fff9f4 32%, #d4dcdf 38%, #ccd4d7 66%, #d8e0e3 71%, #ced8da 100%);
    }
    
    /* При включении (нажатии) лампочка зелёная */
    #switch:checked ~ .switch::after {
        background: #00e676;
        box-shadow:
            0 0 6px rgba(0, 230, 118, 0.7),
            0 0 12px rgba(0, 230, 118, 0.5);
        animation: none;
    }
    /* В приоритете оставляем зелёный и без пульсации даже при наведении, если включено */
    #switch:checked ~ .switch:hover::after {
        background: #00e676;
        box-shadow:
            0 0 6px rgba(0, 230, 118, 0.7),
            0 0 12px rgba(0, 230, 118, 0.5);
        animation: none;
    }
    /* Пока удерживаем клик по переключателю — тоже зелёный */
    .switch:active::after {
        background: #00e676;
        box-shadow:
            0 0 6px rgba(0, 230, 118, 0.7),
            0 0 12px rgba(0, 230, 118, 0.5);
        animation: none;
    }
    
    .btn-danger {
        background: #ff3b30;
        color: #ffffff;
    }
    
    .btn-danger:hover {
        background: #ff453a;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select {
        width: 100%;
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        font-size: 1rem;
        color: #ffffff;
        transition: all 0.2s ease;
        font-family: inherit;
    }
    
    input:focus,
    select:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    }
    
    input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .form-group {
        margin-bottom: 24px;
    }
    
    label {
        display: block;
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.9);
    }

    .secure-input {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding-right: 8px;
    }

    .secure-input input {
        border: none;
        background: transparent;
        padding: 14px 16px;
        font-size: 0.95rem;
        letter-spacing: 0.08em;
        flex: 1;
    }

    .secure-input .icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.08);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: rgba(255, 255, 255, 0.85);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .secure-input .icon-btn:hover,
    .secure-input .icon-btn.active {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .api-key-item {
        background: #f5f5f7;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .api-key-info {
        flex: 1;
    }
    
    .api-key-name {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 4px;
        color: #ffffff;
    }
    
    .api-key-meta {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .api-key-actions {
        display: flex;
        gap: 8px;
    }
    
    .token-display {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 20px;
        font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
        font-size: 13px;
        word-break: break-all;
        color: rgba(255, 255, 255, 0.9);
        margin-top: 12px;
        position: relative;
        transition: all 0.2s ease;
    }
    
    .token-display:hover {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
    }
    
    .token-actions {
        display: flex;
        gap: 12px;
        margin-top: 16px;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .stat-card {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        padding: 24px;
        color: #ffffff;
    }
    
    /* Эффект стекла для stat-card только в клиентской панели - как на основном сайте */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .stat-card {
        background: rgba(30, 41, 59, 0.4);
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
        border: 1px solid rgba(99, 102, 241, 0.25);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(99, 102, 241, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    .stat-value {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 14px;
        opacity: 0.9;
    }
    
    .api-key-item {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.2s ease;
    }
    
    .api-key-item:hover {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }
    
    /* Эффект стекла для api-key-item только в клиентской панели - как на основном сайте */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .api-key-item {
        background: rgba(30, 41, 59, 0.4);
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
        border: 1px solid rgba(99, 102, 241, 0.25);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(99, 102, 241, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .api-key-item:hover {
        transform: translateY(-2px);
        border-color: rgba(99, 102, 241, 0.35);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(99, 102, 241, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .api-key-status {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        margin-left: 8px;
    }
    
    .api-key-status.active {
        background: #d1f2eb;
        color: #006644;
    }
    
    .api-key-status.revoked {
        background: #ffe5e5;
        color: #d70015;
    }
    
    .alert {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 24px;
        font-size: 17px;
    }
    
    .alert-success {
        background: rgba(81, 207, 102, 0.2);
        color: #51cf66;
        border: 1px solid rgba(81, 207, 102, 0.3);
    }
    
    .alert-error {
        background: rgba(255, 59, 48, 0.2);
        color: #ff3b30;
        border: 1px solid rgba(255, 59, 48, 0.3);
    }
    
    .header {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .logo {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .logo h1 {
        font-size: 4.5rem;
        font-weight: 900;
        color: #ffffff;
        margin-bottom: 20px;
        letter-spacing: -0.03em;
        text-shadow: 
            0 0 40px rgba(255, 255, 255, 0.1),
            0 4px 20px rgba(0, 0, 0, 0.3);
        background: linear-gradient(135deg, 
            #ffffff 0%, 
            rgba(255, 255, 255, 0.95) 30%,
            rgba(255, 255, 255, 0.85) 70%,
            rgba(255, 255, 255, 0.7) 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: fadeInUp 0.8s ease-out;
    }
    
    .logo p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.1rem;
        font-weight: 300;
        animation: fadeInUp 1s ease-out;
    }
    
    .header .btn-group {
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 30px;
        animation: fadeInUp 1.2s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
        margin-top: 80px;
        padding: 0 20px;
    }
    
    .features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-top: 40px;
    }
    
    .feature-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 24px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .feature-card:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .feature-icon {
        font-size: 40px;
        margin-bottom: 12px;
        opacity: 0.9;
    }
    
    .feature-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: #ffffff;
    }
    
    .feature-desc {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.5;
    }
    
    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 30px;
        position: relative;
    }
    
    .top-mobile-menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        background: rgba(88, 86, 214, 0.2);
        border: 1px solid rgba(88, 86, 214, 0.5);
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: absolute;
        top: 0;
        right: 0;
    }
    
    .top-mobile-menu-toggle:hover {
        background: rgba(88, 86, 214, 0.3);
    }
    
    .top-mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .top-mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .top-mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .top-mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .top-mobile-menu {
        display: none;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .top-mobile-menu.active {
        display: flex;
    }
    
    .top-mobile-menu-item {
        background: rgba(88, 86, 214, 0.2);
        border: 1px solid rgba(88, 86, 214, 0.3);
        border-radius: 8px;
        padding: 12px 16px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
        text-decoration: none;
        display: block;
    }
    
    .top-mobile-menu-item:hover {
        background: rgba(88, 86, 214, 0.4);
        border-color: rgba(88, 86, 214, 0.6);
        transform: translateX(4px);
    }
    
    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        margin-bottom: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav h2 {
        color: #ffffff;
    }
    
    .nav-links {
        display: flex;
        align-items: center;
        gap: 24px;
        height: auto;
    }
    
    .nav-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 1rem;
        transition: all 0.2s ease;
    }
    
    .nav-links a:hover {
        color: #ffffff;
        opacity: 1;
    }
    
    /* Logout Button Styles */
    .nav-links .logoutButton {
        position: relative;
        width: 120px;
        height: 70px;
        min-height: 70px;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0;
        margin: 0;
        overflow: visible;
        display: inline-flex;
        align-items: flex-start;
        justify-content: center;
        vertical-align: middle;
        flex-shrink: 0;
        z-index: 1;
        box-sizing: border-box;
    }
    
    .logoutButton {
        position: relative;
        width: 120px;
        height: 50px;
        min-height: 50px;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0;
        margin: 0;
        overflow: visible;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        line-height: 1;
        box-sizing: border-box;
    }
    
    .logoutButton svg {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 50px;
        transition: all calc(var(--figure-duration, 100) * 1ms) ease;
        pointer-events: none;
        display: block;
    }
    
    .logoutButton .doorway {
        z-index: 1;
    }
    
    .logoutButton .figure {
        z-index: 2;
        transform: translateX(-50%) var(--transform-figure, none);
        transition: all calc(var(--figure-duration, 100) * 1ms) ease;
    }
    
    .logoutButton .figure .arm1 {
        transform: var(--transform-arm1, none);
        transform-origin: 55px 56px;
        transition: all calc(var(--walking-duration, 100) * 1ms) ease;
    }
    
    .logoutButton .figure .wrist1 {
        transform: var(--transform-wrist1, none);
        transform-origin: 69px 60px;
        transition: all calc(var(--walking-duration, 100) * 1ms) ease;
    }
    
    .logoutButton .figure .arm2 {
        transform: var(--transform-arm2, none);
        transform-origin: 45px 40px;
        transition: all calc(var(--walking-duration, 100) * 1ms) ease;
    }
    
    .logoutButton .figure .wrist2 {
        transform: var(--transform-wrist2, none);
        transform-origin: 32px 45px;
        transition: all calc(var(--walking-duration, 100) * 1ms) ease;
    }
    
    .logoutButton .figure .leg1 {
        transform: var(--transform-leg1, none);
        transform-origin: 52px 73px;
        transition: all calc(var(--walking-duration, 100) * 1ms) ease;
    }
    
    .logoutButton .figure .calf1 {
        transform: var(--transform-calf1, none);
        transform-origin: 52px 84px;
        transition: all calc(var(--walking-duration, 100) * 1ms) ease;
    }
    
    .logoutButton .figure .leg2 {
        transform: var(--transform-leg2, none);
        transform-origin: 37px 72px;
        transition: all calc(var(--walking-duration, 100) * 1ms) ease;
    }
    
    .logoutButton .figure .calf2 {
        transform: var(--transform-calf2, none);
        transform-origin: 29px 82px;
        transition: all calc(var(--walking-duration, 100) * 1ms) ease;
    }
    
    .logoutButton .door {
        z-index: 3;
        transition: transform 0.3s ease;
    }
    
    .logoutButton.clicked .door {
        transform: translateX(-50%) translateX(5px);
    }
    
    .logoutButton.door-slammed .door {
        transform: translateX(-50%) translateX(-2px);
    }
    
    .logoutButton .button-text {
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: rgba(255, 255, 255, 0.9);
        white-space: nowrap;
        font-weight: 500;
        pointer-events: none;
        z-index: 10;
        line-height: 1.2;
        margin-top: 4px;
    }
    
    .logoutButton--light svg path,
    .logoutButton--light svg circle {
        fill: #ffffff !important;
        stroke: #ffffff !important;
        stroke-width: 0;
    }
    
    .logoutButton--light .bang {
        fill: #ff0000 !important;
        stroke: none !important;
    }
    
    .logoutButton--light svg {
        display: block;
    }
    
    .logoutButton--light .doorway path {
        fill: rgba(255, 255, 255, 0.1);
        stroke: #ffffff;
        stroke-width: 1;
    }
    
    .logoutButton--light .door path {
        fill: rgba(255, 255, 255, 0.1);
        stroke: #ffffff;
        stroke-width: 1;
    }
    
    .logoutButton--light .figure circle,
    .logoutButton--light .figure path {
        fill: #ffffff !important;
        stroke: none !important;
    }
    
    .logoutButton.falling .figure {
        transform: translateX(-50%) translateY(20px) rotate(90deg);
        transition: all 1.6s ease;
    }
    
    @media (max-width: 768px) {
        .logoutButton {
            display: none;
        }
    }
    
    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .tele-banner {
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(0, 136, 204, 0.9);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        padding: 12px 20px;
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .tele-banner:hover {
        background: rgba(0, 136, 204, 1);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
    }
    
    /* Табы */
    .tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .tab {
        padding: 12px 24px;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.7);
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
        position: relative;
        top: 1px;
    }
    
    .tab:hover {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .tab.active {
        color: #ffffff;
        border-bottom-color: #5856d6;
        background: rgba(88, 86, 214, 0.1);
    }
    
    /* Стили для инструментов */
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-bottom: 32px;
    }
    
    .tool-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 24px;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .tool-card:hover {
        border-color: rgba(88, 86, 214, 0.5);
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }
    
    .tool-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .tool-name {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 8px;
    }
    
    .tool-desc {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 16px;
    }
    
    .tool-status {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 16px;
    }
    
    .status-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
    }
    
    .status-indicator.connected {
        background: #5856d6;
        box-shadow: 0 0 8px rgba(88, 86, 214, 0.6);
    }
    
    .status-text {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .status-progress {
        width: 100%;
        height: 4px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        margin-top: 12px;
        overflow: hidden;
    }
    
    .status-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #5856d6 0%, #7d7aff 100%);
        transition: width 0.3s ease;
    }
    
    .tool-section-header {
        background: linear-gradient(135deg, #5856d6 0%, #7d7aff 100%);
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .tool-section-title {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
    }
    
    .tool-section-count {
        background: rgba(255, 255, 255, 0.2);
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 14px;
        margin-left: 12px;
    }
    
    .tool-section-actions {
        display: flex;
        gap: 8px;
    }
    
    .btn-collapse {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #ffffff;
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
    }
    
    .btn-collapse:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .settings-form {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .settings-instructions {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 24px;
        border-left: 3px solid #5856d6;
    }
    
    .settings-instructions h4 {
        color: #ffffff;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .settings-instructions ol {
        color: rgba(255, 255, 255, 0.8);
        padding-left: 24px;
        line-height: 1.8;
    }
    
    .settings-instructions li {
        margin-bottom: 8px;
    }
    
    .toggle-switch {
        position: relative;
        width: 50px;
        height: 28px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .toggle-switch.active {
        background: #5856d6;
    }
    
    .toggle-switch::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 24px;
        background: #ffffff;
        border-radius: 50%;
        top: 2px;
        left: 2px;
        transition: all 0.3s ease;
    }
    
    .toggle-switch.active::after {
        left: 24px;
    }
    
    .video-url-input {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
        width: 100%;
    }
    
    .video-select {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
        width: 100%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px;
        padding-right: 40px;
        appearance: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .video-select:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .video-select:focus {
        outline: none;
        border-color: #5856d6;
        box-shadow: 0 0 0 3px rgba(88, 86, 214, 0.2);
    }
    
    .video-select option {
        background: #1a1a1a !important;
        color: #ffffff !important;
        padding: 12px;
    }
    
    select option {
        background: #1a1a1a !important;
        color: #ffffff !important;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }
    
    .tab-content {
        display: none;
    }
    
    .tools-subtab-content {
        display: none;
    }
    
    .tools-subtab-content.active {
        display: block;
    }
    
    .tool-expandable-section {
        background: linear-gradient(135deg, #5856d6 0%, #7d7aff 100%);
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .tool-expandable-section:hover {
        background: linear-gradient(135deg, #7d7aff 0%, #9d9aff 100%);
    }
    
    .tool-expandable-section .tool-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .tool-expandable-section .tool-header-icon {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }
    
    .tool-expandable-section .tool-header-info {
        display: flex;
        flex-direction: column;
    }
    
    .tool-expandable-section .tool-header-name {
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    .tool-expandable-section .tool-header-count {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
    }
    
    .tool-expandable-section .tool-header-action {
        color: #ffffff;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .tool-expandable-section .tool-action-text {
        display: inline;
    }
    
    .tool-expandable-section .tool-action-icon {
        display: inline-block;
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    .tool-items-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
        margin-top: 16px;
        margin-bottom: 24px;
    }
    
    .tool-item-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 20px;
        transition: all 0.3s ease;
    }
    
    .tool-item-card:hover {
        border-color: rgba(88, 86, 214, 0.5);
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }
    
    .tool-item-icon {
        width: 40px;
        height: 40px;
        background: rgba(88, 86, 214, 0.2);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .tool-item-name {
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 8px;
    }
    
    .tool-item-desc {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        line-height: 1.5;
    }
    
    .settings-section {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 24px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }
    
    .settings-section-content {
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .settings-section-header {
        background: linear-gradient(135deg, #5856d6 0%, #7d7aff 100%);
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .settings-section-title {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
    }
    
    .management-tool-section {
        background: rgba(88, 86, 214, 0.1);
        border: 1px solid rgba(88, 86, 214, 0.3);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .management-tool-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }
    
    .management-tool-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .management-tool-name {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
    }
    
    .management-tool-count {
        background: rgba(255, 255, 255, 0.2);
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 14px;
        color: #ffffff;
    }
    
    .management-tool-status {
        background: rgba(52, 199, 89, 0.2);
        color: #34c759;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
    }
    
    .management-tool-actions {
        display: flex;
        gap: 8px;
    }
    
    .management-tool-item {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .management-tool-item-info {
        flex: 1;
    }
    
    .management-tool-item-name {
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 4px;
        font-family: monospace;
    }
    
    .management-tool-item-desc {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
    }
    
    .management-tool-item-status {
        background: rgba(52, 199, 89, 0.2);
        color: #34c759;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        margin-right: 16px;
    }
    
    .management-tool-item-status.disabled {
        background: rgba(255, 59, 48, 0.2);
        color: #ff3b30;
    }
    
    /* Mobile Menu Styles */
    .mobile-menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        background: rgba(88, 86, 214, 0.2);
        border: 1px solid rgba(88, 86, 214, 0.5);
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        margin: 16px 0 16px auto;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(88, 86, 214, 0.3);
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .mobile-menu {
        display: none;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .mobile-menu-item {
        background: rgba(88, 86, 214, 0.2);
        border: 1px solid rgba(88, 86, 214, 0.3);
        border-radius: 8px;
        padding: 12px 16px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
    }
    
    .mobile-menu-item:hover {
        background: rgba(88, 86, 214, 0.4);
        border-color: rgba(88, 86, 214, 0.6);
        transform: translateX(4px);
    }
    
    .mobile-menu-item.active {
        background: linear-gradient(135deg, #5856d6 0%, #7d7aff 100%);
        border-color: #5856d6;
    }
    
    /* Mobile Sub-tabs Dropdown */
    .mobile-subtabs-dropdown {
        display: none;
    }
    
    .mobile-dropdown-select {
        width: 100%;
        padding: 12px 16px;
        background: rgba(88, 86, 214, 0.2);
        border: 1px solid rgba(88, 86, 214, 0.5);
        border-radius: 12px;
        color: #ffffff;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px;
        padding-right: 40px;
        transition: all 0.3s ease;
    }
    
    .mobile-dropdown-select:hover {
        background-color: rgba(88, 86, 214, 0.3);
        border-color: rgba(88, 86, 214, 0.7);
    }
    
    .mobile-dropdown-select:focus {
        outline: none;
        border-color: #5856d6;
        box-shadow: 0 0 0 3px rgba(88, 86, 214, 0.2);
    }
    
    .mobile-dropdown-select option {
        background: #1a1a1a;
        color: #ffffff;
        padding: 12px;
    }
    
    .tab-content.active {
        display: block;
    }
    
    .progress-bar {
        width: 100%;
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        overflow: hidden;
        margin: 16px 0;
    }
    
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #0088cc 0%, #0077b5 100%);
        transition: width 0.3s ease;
        border-radius: 4px;
    }
    
    .video-result {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 20px;
        margin-top: 20px;
        text-align: center;
    }
    
    .video-result.success {
        border-color: rgba(81, 207, 102, 0.3);
        background: rgba(81, 207, 102, 0.1);
    }
    
    .video-result.error {
        border-color: rgba(255, 59, 48, 0.3);
        background: rgba(255, 59, 48, 0.1);
    }
    
    @media (min-width: 769px) {
        .container[style*="max-width: 600px"] {
            max-width: 700px !important;
        }
        .container[style*="max-width: 1000px"] {
            max-width: 1200px !important;
        }
        
        /* На десктопе скрываем мобильную плашку */
        .api-key-status-badge {
            display: none !important;
        }
        
        .api-key-status-badge-desktop {
            display: inline-block !important;
        }
        
        /* На десктопе скрываем сокращенную плашку статуса "Вкл." */
        .management-status-mobile {
            display: none !important;
        }
        
        .management-status-desktop {
            display: inline !important;
        }
    }
    
    @media (min-width: 1400px) {
        .container[style*="max-width: 1000px"] {
            max-width: 1400px !important;
        }
    }
    
    .desktop-only {
        display: inline;
    }
    
    @media (max-width: 768px) {
        .desktop-only {
            display: none;
        }
        
        .desktop-tabs {
            display: none !important;
        }
        
        .mobile-menu-toggle {
            display: flex !important;
        }
        
        .mobile-menu {
            margin-top: 16px;
        }
        
        .tools-subtabs {
            display: none !important;
        }
        
        .mobile-subtabs-dropdown {
            display: block !important;
        }
        
        .management-tool-section {
            padding: 16px !important;
        }
        
        .management-tool-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }
        
        .management-tool-actions {
            width: 100%;
            justify-content: flex-start;
        }
        
        .management-tool-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }
        
        .management-tool-item > div:last-child {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .management-controls {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .management-buttons {
            width: 100%;
            justify-content: stretch;
        }
        
        .management-buttons {
            width: 100%;
            flex-direction: column;
        }
        
        .management-buttons .btn {
            flex: 1;
            min-width: 0;
            width: 100%;
            text-align: center;
            white-space: normal;
            word-wrap: break-word;
            padding: 12px 8px;
        }
        
        #api-keys-tab > div:first-child {
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }
        
        #api-keys-tab > div:first-child h3 {
            width: 100%;
            text-align: center;
        }
        
        #api-keys-tab > div:first-child .btn {
            width: 100%;
            max-width: 300px;
        }
        
        .video-url-input {
            font-size: 14px;
            padding: 12px 14px;
        }
        
        .video-select {
            font-size: 14px;
            padding: 12px 14px;
        }
        
        select option {
            background: #1a1a1a !important;
            color: #ffffff !important;
        }
        
        h1 {
            font-size: 3rem;
        }
        
        h2 {
            font-size: 2rem;
        }
        
        .container {
            padding: 20px 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            border-radius: 0 !important;
        }
        
        body {
            padding: 0 !important;
        }
        
        .container > * {
            padding-left: 16px;
            padding-right: 16px;
        }
        
        .card {
            padding: 24px;
            margin-left: 16px;
            margin-right: 16px;
        }
        
        .api-key-item {
            flex-direction: column;
            align-items: flex-start;
        }
        
        /* Плашка статуса: на десктопе показываем desktop версию, на мобилке - мобильную */
        .api-key-status-badge-desktop {
            display: inline-block !important;
        }
        
        .api-key-status-badge {
            display: none !important;
        }
        
        /* Кнопка удалить по центру и ниже на мобилке */
        .api-key-item > div[style*="gap: 8px"] {
            width: 100% !important;
            justify-content: center !important;
            margin-top: 16px !important;
        }
        
        .api-key-item > div[style*="gap: 8px"] .btn {
            width: 100%;
            max-width: 200px;
        }
        
        .api-key-actions {
            width: 100%;
            margin-top: 12px;
        }
        
        .api-key-actions .btn {
            flex: 1;
        }
        
        /* Переключение плашек статуса на мобилке */
        .api-key-status-badge-desktop {
            display: none !important;
        }
        
        .api-key-status-badge {
            display: inline-block !important;
        }
        
        .tele-banner {
            top: 10px;
            right: 10px;
            padding: 10px 16px;
            font-size: 0.85rem;
        }
        
        .header-top {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 20px;
            margin-bottom: 30px;
            width: 100%;
        }
        
        .header-top > div:first-child {
            flex: 1;
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .header-top > div:first-child img {
            margin: 0 auto;
        }
        
        .top-mobile-menu-toggle {
            display: flex !important;
            position: absolute;
            top: 0;
            right: 0;
        }
        
        .nav {
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }
        
        .nav h2 {
            font-size: 1.5rem;
            text-align: center;
            width: 100%;
        }
        
        .nav-links {
            display: none !important;
        }
        
        .api-key-modal-content {
            padding: 20px !important;
            width: 95% !important;
            max-width: 95% !important;
        }
        
        .api-key-modal-content h3 {
            font-size: 1.2rem !important;
            margin-bottom: 16px !important;
        }
        
        .api-key-modal-content input[type="text"] {
            font-size: 12px !important;
            min-width: 150px !important;
            width: 100% !important;
            padding: 10px 0 !important;
        }
        
        .api-key-modal-content button.btn {
            width: 100% !important;
            margin-top: 8px !important;
        }
        
        .api-key-input-container {
            flex-direction: column !important;
            align-items: stretch !important;
        }
        
        .api-key-input-container input {
            width: 100% !important;
            min-width: 100% !important;
            margin-bottom: 8px !important;
        }
        
        .api-key-copy-btn {
            width: 100% !important;
            margin-top: 0 !important;
        }
        
        .stats-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }
        
        .stat-card {
            padding: 16px;
        }
        
        .stat-value {
            font-size: 24px;
        }
        
        .tools-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }
        
        .tool-card {
            padding: 16px;
        }
        
        .tool-items-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }
        
        .tool-item-card {
            padding: 16px;
        }
        
        h3 {
            font-size: 1.3rem;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        .btn {
            width: 100%;
            padding: 14px 20px;
            font-size: 1rem;
            word-wrap: break-word;
            white-space: normal;
        }
        
        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="url"],
        select {
            font-size: 16px;
            padding: 14px 16px;
            box-sizing: border-box;
        }
        
        .card {
            padding: 20px;
        }
        
        .logo h1 {
            font-size: 2.5rem;
            word-wrap: break-word;
        }
        
        .logo p {
            font-size: 14px;
            word-wrap: break-word;
        }
        
        .subtitle {
            font-size: 0.95rem;
            word-wrap: break-word;
        }
        
        .api-key-item {
            padding: 16px;
            word-wrap: break-word;
        }
        
        /* Контейнер с заголовком и плашкой на мобилке */
        .api-key-item > div:first-of-type > div:first-child {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }
        
        .api-key-item > div:first-of-type > div:first-child > div:first-child {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }
        
        /* Принудительно растягиваем контейнер с заголовком и плашкой на всю ширину */
        .api-key-item > div:first-of-type > div:first-child[style*="flex: 1"] {
            width: 100% !important;
            max-width: 100% !important;
            flex: 1 1 100% !important;
        }
        
        .api-key-item > div:first-of-type > div:first-child > div:first-child[style*="display: flex"] {
            display: flex !important;
            flex-wrap: nowrap !important;
            justify-content: space-between !important;
            align-items: center !important;
            gap: 8px !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            box-sizing: border-box !important;
        }
        
        .api-key-item > div:first-of-type > div:first-child > div:first-child > div[style*="font-weight: 600"] {
            flex: 0 1 auto !important;
            min-width: 0 !important;
            max-width: none !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            font-size: 14px !important;
            margin-right: 8px !important;
        }
        
        .api-key-title-row {
            width: 100% !important;
            max-width: 100% !important;
            justify-content: flex-start !important;
            box-sizing: border-box !important;
            position: relative !important;
        }
        
        .api-key-title-text {
            flex: 1 1 auto !important;
            min-width: 0 !important;
            padding-right: 100px !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }
        
        .api-key-item > div:first-of-type > div:first-child > div:first-child .api-key-status-badge,
        .api-key-title-row .api-key-status-badge {
            position: absolute !important;
            right: 5px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            flex: 0 0 auto !important;
            margin: 0 !important;
            flex-shrink: 0 !important;
        }
        
        }
        
        .settings-section {
            padding: 16px;
        }
        
        .settings-section-header {
            padding: 12px 16px;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tool-section-header {
            padding: 12px 16px;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tool-expandable-section {
            padding: 12px 16px;
            flex-wrap: wrap;
        }
        
        .tool-expandable-section .tool-header-left {
            flex: 1;
            min-width: 0;
        }
        
        .tool-expandable-section .tool-header-name {
            font-size: 16px;
            word-wrap: break-word;
        }
        
        /* Скрыть текст "Развернуть"/"Свернуть" и увеличить иконку треугольника на мобилке */
        .tool-expandable-section .tool-action-text {
            display: none !important;
        }
        
        .tool-expandable-section .tool-action-icon {
            font-size: 24px !important;
            margin-left: 0 !important;
        }
        
        .management-tool-section {
            padding: 12px;
            overflow: hidden;
        }
        
        .management-tool-header {
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .management-tool-info {
            flex: 1;
            min-width: 0;
            width: 100%;
        }
        
        .management-tool-name {
            font-size: 16px;
            word-wrap: break-word;
            overflow-wrap: break-word;
            margin-bottom: 4px;
        }
        
        .management-tool-count {
            font-size: 12px;
            padding: 3px 8px;
            margin: 4px 0;
            display: inline-block;
        }
        
        .management-tool-status {
            font-size: 12px;
            padding: 3px 8px;
            margin: 4px 0;
            display: inline-block;
            word-wrap: break-word;
        }
        
        .management-status-desktop {
            display: inline;
        }
        
        .management-status-mobile {
            display: none;
        }
        
        .management-tool-actions {
            width: 100%;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
        }
        
        .management-tool-actions .btn {
            flex: 1;
            min-width: 0;
            padding: 8px 12px;
            font-size: 12px;
        }
        
        .management-tool-item {
            padding: 12px;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .management-tool-item-info {
            flex: 1;
            min-width: 0;
            width: 100%;
        }
        
        .management-tool-item-name {
            font-size: 14px;
            word-wrap: break-word;
            overflow-wrap: break-word;
            margin-bottom: 4px;
        }
        
        .management-tool-item-desc {
            font-size: 12px;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        .management-tool-item > div:last-child {
            width: 100%;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .management-tool-item-status {
            font-size: 11px;
            padding: 3px 8px;
            margin-right: 0;
        }
        
        .management-controls {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
        }
        
        .management-controls > div:first-child {
            font-size: 16px;
            text-align: center;
        }
        
        .management-buttons {
            width: 100%;
            flex-direction: column;
            gap: 8px;
        }
        
        .management-buttons .btn {
            width: 100%;
            padding: 12px 16px;
            font-size: 14px;
        }
        
        /* Центрирование заголовков и описаний на мобилке */
        #merge-video-tab h3,
        #subtitles-tab h3,
        #tools-settings-subtab h3 {
            text-align: center !important;
        }
        
        #merge-video-tab > p,
        #subtitles-tab > p {
            text-align: center !important;
        }
        
        /* Центрирование плашек с информацией на мобилке */
        #subtitles-tab > div[style*="display: flex"][style*="gap: 12px"][style*="flex-wrap: wrap"] {
            justify-content: center !important;
            align-items: center !important;
        }
        
        #subtitles-tab > div[style*="display: flex"][style*="gap: 12px"] > span {
            flex-shrink: 0;
        }
        
        /* Переключение статусов на мобилке */
        .management-status-desktop {
            display: none !important;
        }
        
        .management-status-mobile {
            display: inline !important;
        }
        
        .token-display {
            padding: 12px;
            font-size: 11px;
            word-break: break-all;
        }
        
        .video-result {
            padding: 16px;
            word-wrap: break-word;
        }
        
        .progress-bar {
            margin: 12px 0;
        }
        
        .tabs {
            flex-wrap: wrap;
            gap: 4px;
        }
        
        .tab {
            padding: 10px 16px;
            font-size: 0.9rem;
            flex: 1;
            min-width: 0;
            text-align: center;
            word-wrap: break-word;
        }
        
        .mobile-menu-item {
            padding: 10px 12px;
            font-size: 13px;
            word-wrap: break-word;
        }
        
        .mobile-dropdown-select {
            font-size: 14px;
            padding: 10px 14px;
        }
    }
    
    /* Очень маленькие экраны (320px - 374px) */
    @media (max-width: 374px) {
        body {
            padding: 0 !important;
        }
        
        .container {
            padding: 16px 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            border-radius: 0 !important;
        }
        
        .container > * {
            padding-left: 12px;
            padding-right: 12px;
        }
        
        .card {
            padding: 16px;
            border-radius: 16px;
            margin-left: 12px;
            margin-right: 12px;
        }
        
        h1 {
            font-size: 2rem;
        }
        
        h2 {
            font-size: 1.5rem;
        }
        
        h3 {
            font-size: 1.1rem;
        }
        
        .logo h1 {
            font-size: 2rem;
        }
        
        .logo p {
            font-size: 12px;
        }
        
        .btn {
            padding: 12px 16px;
            font-size: 0.9rem;
        }
        
        .stat-card {
            padding: 12px;
        }
        
        .stat-value {
            font-size: 20px;
        }
        
        .tool-card {
            padding: 12px;
        }
        
        .api-key-item {
            padding: 12px;
        }
        
        .nav h2 {
            font-size: 1.3rem;
        }
        
        .tab {
            padding: 8px 12px;
            font-size: 0.85rem;
        }
        
        .tele-banner {
            top: 5px;
            right: 5px;
            padding: 8px 12px;
            font-size: 0.75rem;
        }
        
        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="url"],
        select {
            padding: 12px 14px;
            font-size: 16px;
        }
        
        .tool-icon {
            font-size: 24px;
        }
        
        .tool-name {
            font-size: 16px;
        }
        
        .tool-desc {
            font-size: 12px;
        }
        
        /* Дополнительные стили для управления и GPTs на очень маленьких экранах */
        .management-controls > div:first-child {
            font-size: 14px;
        }
        
        .management-buttons .btn {
            font-size: 13px;
            padding: 10px 14px;
        }
        
        .management-tool-name {
            font-size: 14px;
        }
        
        .management-tool-item-name {
            font-size: 13px;
        }
    }
    
    /* Новый дизайн - Dashboard Layout */
    .dashboard-layout {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background: #111827;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    /* Современный фон для клиентской панели (без поиска в header) - убираем градиенты, т.к. используется nebula shader */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-layout {
        background: transparent;
        position: relative;
    }
    
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-content {
        background: transparent;
        position: relative;
        z-index: 2;
    }
    
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-body {
        position: relative;
        z-index: 2;
    }
    
    /* Nebula Shader контейнер для фона только в клиентской панели */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) #nebulaShaderContainer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
    }
    
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) #nebulaShaderContainer canvas {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    /* Убираем отступы body для dashboard страниц */
    body:has(.dashboard-layout) {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        align-items: unset !important;
        justify-content: unset !important;
    }
    
    .dashboard-header {
        background: #1f2937;
        border-bottom: 1px solid #374151;
        padding: 12px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Стеклянный эффект для header только в клиентской панели */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-header {
        background: rgba(30, 41, 59, 0.6);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .dashboard-header-left {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .dashboard-header-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: #ffffff;
    }
    
    .dashboard-header-logo img {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .dashboard-header-logo-text {
        font-size: 20px;
        font-weight: 700;
        color: #ffffff;
    }
    
    .dashboard-header-search {
        position: relative;
        width: 100%;
        max-width: 400px;
    }
    
    .dashboard-header-search input {
        width: 100%;
        padding: 10px 16px 10px 44px;
        background: #374151;
        border: 1px solid #4b5563;
        border-radius: 8px;
        color: #ffffff;
        font-size: 14px;
        outline: none;
        transition: all 0.2s;
    }
    
    .dashboard-header-search input:focus {
        border-color: #3b82f6;
        background: #4b5563;
    }
    
    .dashboard-header-search svg {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: #9ca3af;
        pointer-events: none;
    }
    
    .dashboard-header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .dashboard-header-button {
        padding: 10px 16px;
        background: #3b82f6;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background 0.2s;
    }
    
    .dashboard-header-button:hover {
        background: #2563eb;
    }
    
    .dashboard-header-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #374151;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s;
        position: relative;
    }
    
    .dashboard-header-icon:hover {
        background: #4b5563;
    }
    
    .dashboard-header-icon svg {
        width: 20px;
        height: 20px;
        color: #d1d5db;
    }
    
    .dashboard-header-notification-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 8px;
        height: 8px;
        background: #ef4444;
        border-radius: 50%;
        border: 2px solid #1f2937;
    }
    
    .dashboard-header-profile {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid #374151;
        object-fit: cover;
        transition: all 0.2s;
    }
    
    .dashboard-header-profile:hover {
        border-color: #3b82f6;
        transform: scale(1.05);
    }
    
    .dashboard-header-profile-container {
        position: relative;
    }
    
    .dashboard-profile-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 200px;
        background: rgba(31, 41, 55, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        padding: 8px;
        z-index: 1000;
        animation: fadeIn 0.2s ease;
    }
    
    /* Стеклянный эффект для меню профиля только в клиентской панели */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-profile-menu {
        background: rgba(31, 41, 55, 0.4);
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
        border: 1px solid rgba(88, 86, 214, 0.2);
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(88, 86, 214, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .profile-menu-item {
        width: 100%;
        padding: 12px 16px;
        background: transparent;
        border: none;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.2s;
        text-align: left;
    }
    
    .profile-menu-item:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #ffffff;
    }
    
    .profile-menu-item span:first-child {
        font-size: 18px;
        line-height: 1;
    }
    
    .profile-menu-item svg {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .profile-menu-item:hover svg {
        color: #ffffff;
    }
    
    .profile-menu-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 4px 0;
    }
    
    .dashboard-body {
        display: flex;
        flex: 1;
        overflow: hidden;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .dashboard-sidebar {
        width: 280px;
        background: #1f2937;
        border-right: 1px solid #374151;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        flex-shrink: 0;
        position: relative;
    }
    
    /* Стеклянный эффект для sidebar только в клиентской панели - только для десктопа */
    @media (min-width: 769px) {
        body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar {
            background: rgba(30, 41, 59, 0.5);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-right: 1px solid rgba(99, 102, 241, 0.2);
        }
    }
    
    @media (max-width: 768px) {
        .dashboard-sidebar {
            position: fixed !important;
            left: -280px !important;
        }
    }
    
    .dashboard-sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .dashboard-sidebar::-webkit-scrollbar-track {
        background: #111827;
    }
    
    .dashboard-sidebar::-webkit-scrollbar-thumb {
        background: #374151;
        border-radius: 3px;
    }
    
    .dashboard-sidebar::-webkit-scrollbar-thumb:hover {
        background: #4b5563;
    }
    
    .dashboard-sidebar-profile {
        padding: 24px;
        border-bottom: 1px solid #374151;
    }
    
    /* Стеклянный эффект для профиля sidebar только в клиентской панели */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar-profile {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dashboard-sidebar-profile-img {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        margin-bottom: 12px;
        border: 2px solid #374151;
        object-fit: cover;
    }
    
    .dashboard-sidebar-profile-name {
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 4px;
    }
    
    .dashboard-sidebar-profile-email {
        font-size: 14px;
        color: #9ca3af;
    }
    
    .dashboard-sidebar-actions {
        padding: 16px;
        display: flex;
        gap: 8px;
    }
    
    .dashboard-sidebar-action-btn {
        flex: 1;
        padding: 12px;
        border: none;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        transition: all 0.2s;
    }
    
    .dashboard-sidebar-action-btn.active {
        background: #3b82f6;
        color: #ffffff;
    }
    
    .dashboard-sidebar-action-btn:not(.active) {
        background: #374151;
        color: #d1d5db;
    }
    
    /* Стеклянный эффект для кнопок действий sidebar только в клиентской панели */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar-action-btn:not(.active) {
        background: rgba(51, 65, 85, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(99, 102, 241, 0.15);
    }
    
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar-action-btn.active {
        background: rgba(99, 102, 241, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(99, 102, 241, 0.4);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    
    .dashboard-sidebar-action-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .dashboard-sidebar-nav {
        flex: 1;
        padding: 16px;
        overflow-y: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-content: flex-start;
    }
    
    .dashboard-sidebar-nav-item {
        flex: 1;
        min-width: calc(33.333% - 6px);
        padding: 12px;
        border: none;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        transition: all 0.2s;
        text-align: center;
    }
    
    .dashboard-sidebar-nav-item.active {
        background: #3b82f6;
        color: #ffffff;
    }
    
    .dashboard-sidebar-nav-item:not(.active) {
        background: #374151;
        color: #d1d5db;
    }
    
    /* Стеклянный эффект для пунктов навигации sidebar только в клиентской панели */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar-nav-item:not(.active) {
        background: rgba(51, 65, 85, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(99, 102, 241, 0.15);
    }
    
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar-nav-item.active {
        background: rgba(99, 102, 241, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(99, 102, 241, 0.4);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    
    .dashboard-sidebar-nav-item span {
        font-size: 20px;
        line-height: 1;
    }
    
    .dashboard-sidebar-nav-item:hover {
        background: #374151;
        color: #ffffff;
    }
    
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar-nav-item:hover {
        background: rgba(99, 102, 241, 0.3);
        border-color: rgba(99, 102, 241, 0.3);
    }
    
    .dashboard-sidebar-nav-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .dashboard-sidebar-nav-badge {
        margin-left: auto;
        background: #3b82f6;
        color: #ffffff;
        font-size: 12px;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 12px;
        min-width: 20px;
        text-align: center;
    }
    
    .dashboard-sidebar-divider {
        height: 1px;
        background: #374151;
        margin: 16px 0;
    }
    
    /* Стеклянный эффект для разделителя sidebar только в клиентской панели */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar-divider {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dashboard-sidebar-logout {
        padding: 12px 16px;
        border-top: 1px solid #374151;
    }
    
    .dashboard-sidebar-logout-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        color: #ef4444;
        text-decoration: none;
        font-size: 14px;
        border-radius: 8px;
        transition: background 0.2s;
        cursor: pointer;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
    }
    
    .dashboard-sidebar-logout-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .dashboard-sidebar-logout-btn:hover {
        background: rgba(239, 68, 68, 0.1);
    }
    
    /* Стеклянный эффект для кнопки выхода только в клиентской панели */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar-logout-btn:hover {
        background: rgba(239, 68, 68, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .dashboard-content {
        flex: 1;
        padding: 24px;
        overflow-y: auto;
        overflow-x: hidden;
        background: transparent;
        min-width: 0;
        width: 100%;
        max-width: none;
    }
    
    .dashboard-content-card {
        background: #1f2937;
        border: 1px solid #374151;
        border-radius: 12px;
        padding: 24px;
        margin-bottom: 24px;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
    
    /* Эффект стекла для карточек только в клиентской панели */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-content-card {
        background: rgba(30, 41, 59, 0.4);
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
        border: 1px solid rgba(99, 102, 241, 0.25);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(99, 102, 241, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Убираем изменение фона при наведении - только легкий эффект поднятия */
    body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-content-card:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 24px 70px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(99, 102, 241, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    .dashboard-content-card h3 {
        font-size: 20px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 16px;
    }
    
    /* Hamburger Menu Button */
    .dashboard-hamburger {
        display: none;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 201;
        transition: all 0.3s;
    }
    
    .dashboard-hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .dashboard-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .dashboard-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .dashboard-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Overlay для мобильного меню */
    .dashboard-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 199;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }
    
    .dashboard-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: none;
    }
    
    @media (max-width: 768px) {
        .dashboard-overlay.active {
            pointer-events: none;
            background: rgba(0, 0, 0, 0.7) !important;
        }
    }
    
    /* Адаптивность для планшетов (768px - 1024px) */
    @media (max-width: 1024px) {
        .dashboard-sidebar {
            width: 260px;
        }
        
        .dashboard-header-search {
            max-width: 300px;
        }
        
        .dashboard-header-button {
            padding: 8px 12px;
            font-size: 13px;
        }
        
        .dashboard-header-button svg {
            width: 16px;
            height: 16px;
        }
    }
    
    /* Адаптивность для мобильных устройств и планшетов */
    @media (max-width: 768px) {
        body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-body {
            z-index: 0 !important;
        }
        
        body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar {
            background: #1f2937 !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }
        
        .dashboard-hamburger {
            display: flex;
            z-index: 301 !important;
            position: relative;
        }
        
        .dashboard-header {
            z-index: 300 !important;
            position: relative !important;
        }
        
        .dashboard-overlay {
            z-index: 299 !important;
        }
        
        .dashboard-sidebar {
            position: fixed !important;
            left: -280px !important;
            top: 0 !important;
            bottom: 0 !important;
            z-index: 302 !important;
            transition: left 0.3s ease;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
            width: 280px !important;
            max-width: 280px !important;
            min-width: 280px !important;
            overflow-y: auto;
            overflow-x: hidden;
            box-sizing: border-box;
            transform: translateX(0) !important;
            background: #1f2937 !important;
            pointer-events: auto !important;
        }
        
        .dashboard-sidebar.mobile-open {
            pointer-events: auto !important;
            background: #1f2937 !important;
        }
        
        body:has(.dashboard-layout):not(:has(.dashboard-header-search)) .dashboard-sidebar.mobile-open {
            background: #1e293b !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }
        
        .dashboard-sidebar.mobile-open {
            left: 0 !important;
            transform: translateX(0) !important;
        }
        
        .dashboard-sidebar:not(.mobile-open) {
            left: -280px !important;
            transform: translateX(0) !important;
        }
        
        .dashboard-sidebar * {
            box-sizing: border-box;
        }
        
        .dashboard-sidebar-nav {
            overflow-y: auto !important;
            overflow-x: hidden !important;
            flex-direction: column !important;
            flex-wrap: nowrap !important;
            gap: 8px !important;
            display: flex !important;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            padding: 12px !important;
        }
        
        .dashboard-sidebar-nav-item {
            min-width: 100% !important;
            width: 100% !important;
            max-width: 100% !important;
            flex: none !important;
            box-sizing: border-box !important;
            padding: 12px !important;
        }
        
        .dashboard-header {
            padding: 10px 16px;
        }
        
        .dashboard-header-left {
            gap: 12px;
        }
        
        .dashboard-header-logo-text {
            font-size: 18px;
        }
        
        .dashboard-header-search {
            display: none;
        }
        
        .dashboard-header-right {
            gap: 8px;
        }
        
        .dashboard-header-button {
            padding: 8px 12px;
            font-size: 12px;
        }
        
        .dashboard-header-button span,
        .dashboard-header-button svg + span {
            display: none;
        }
        
        .dashboard-header-icon {
            width: 36px;
            height: 36px;
        }
        
        .dashboard-header-profile {
            width: 36px;
            height: 36px;
        }
        
        .dashboard-content {
            padding: 16px;
            width: 100%;
        }
        
        .dashboard-content-card {
            padding: 16px;
        }
        
        .dashboard-sidebar-profile {
            padding: 20px;
        }
        
        .dashboard-sidebar-profile-img {
            width: 56px;
            height: 56px;
        }
        
        .dashboard-sidebar-actions {
            padding: 12px;
            gap: 6px;
        }
        
        .dashboard-sidebar-action-btn {
            padding: 10px;
            font-size: 11px;
        }
        
        .dashboard-sidebar-nav {
            padding: 12px !important;
            gap: 8px !important;
            flex-direction: column !important;
            flex-wrap: nowrap !important;
            display: flex !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }
        
        .dashboard-sidebar-nav-item {
            padding: 12px !important;
            font-size: 12px !important;
            min-width: 100% !important;
            width: 100% !important;
            flex: none !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }
    }
    
    /* Адаптивность для маленьких мобильных устройств (до 480px) */
    @media (max-width: 480px) {
        .dashboard-header {
            padding: 8px 12px;
        }
        
        .dashboard-header-logo img {
            width: 28px;
            height: 28px;
        }
        
        .dashboard-header-logo-text {
            font-size: 16px;
        }
        
        .dashboard-header-button {
            padding: 6px 10px;
            font-size: 11px;
        }
        
        .dashboard-header-icon {
            width: 32px;
            height: 32px;
        }
        
        .dashboard-header-icon svg {
            width: 18px;
            height: 18px;
        }
        
        .dashboard-header-profile {
            width: 32px;
            height: 32px;
        }
        
        .dashboard-sidebar {
            width: 100%;
            max-width: 100vw;
            box-sizing: border-box;
        }
        
        .dashboard-sidebar-nav {
            padding: 12px !important;
            gap: 8px !important;
            flex-direction: column !important;
            flex-wrap: nowrap !important;
            display: flex !important;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            overflow-x: hidden !important;
        }
        
        .dashboard-sidebar-nav-item {
            min-width: 100% !important;
            width: 100% !important;
            max-width: 100% !important;
            flex: none !important;
            box-sizing: border-box !important;
            padding: 12px !important;
        }
        
        .dashboard-content {
            padding: 12px;
        }
        
        .dashboard-content-card {
            padding: 12px;
        }
        
        .dashboard-content-card h3 {
            font-size: 18px;
        }
        
        .dashboard-sidebar-profile {
            padding: 16px;
        }
        
        .dashboard-sidebar-profile-img {
            width: 48px;
            height: 48px;
        }
        
        .dashboard-sidebar-profile-name {
            font-size: 14px;
        }
        
        .dashboard-sidebar-profile-email {
            font-size: 12px;
        }
        
        .dashboard-sidebar-actions {
            padding: 10px;
            flex-direction: column;
        }
        
        .dashboard-sidebar-action-btn {
            width: 100%;
            padding: 12px;
        }
        
        .dashboard-sidebar-nav-item {
            padding: 12px;
            font-size: 12px;
            min-width: 100% !important;
            width: 100% !important;
            flex: none !important;
            max-width: 100% !important;
            box-sizing: border-box;
        }
        
        .dashboard-sidebar-nav {
            flex-direction: column !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
            box-sizing: border-box;
        }
    }
    
    /* Улучшенная адаптивность для всех элементов */
    @media (min-width: 481px) and (max-width: 768px) {
        .dashboard-sidebar {
            width: 260px;
        }
        
        .dashboard-header-search {
            max-width: 200px;
        }
    }
    
    /* Адаптивность для больших экранов */
    @media (min-width: 1920px) {
        .dashboard-sidebar {
            width: 320px;
        }
        
        .dashboard-content {
            padding: 32px;
            max-width: none;
        }
        
        .dashboard-content-card {
            max-width: none;
        }
        
        .dashboard-header {
            padding: 16px 32px;
        }
    }
    
    /* Десктоп - полная ширина */
    @media (min-width: 769px) {
        .dashboard-content {
            padding: 32px 48px;
            max-width: none;
            width: 100%;
        }
        
        .dashboard-content-card {
            max-width: none;
            width: 100%;
            padding: 32px;
        }
        
        .dashboard-header-search {
            max-width: 500px;
        }
    }
</style>
