/* Вынесено из header.php. Правьте здесь — страница подключает этот файл. */
        *, *::before, *::after { box-sizing: border-box; }
        :root { 
            --bg: #f4f6fa; 
            --card: #ffffff; 
            --sidebar-bg: #ffffff; 
            --border: #e8ecf3; 
            --blue: #0099ff; 
            --blue-hover: #007acc;
            --blue-soft: rgba(0, 153, 255, 0.08); 
            --text: #1e293b; 
            --muted: #64748b; 
            --green: #10b981;
            --green-soft: rgba(16, 185, 129, 0.1);
            --orange: #f59e0b;
            --orange-soft: rgba(245, 158, 11, 0.1);
            --red: #ef4444;
        }

         .white-header, .container, .sticky-mobile-cta {
            position: relative;
            z-index: 1;
        }

        h1, h2, h3, h4, .heading-font { font-family: var(--heading-font); }

        .white-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: linear-gradient(90deg, #043673 0%, #025870 35%, #058d79 70%, #0ca86a 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.15); display: flex;
    justify-content: space-between; align-items: center; z-index: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}
        .white-header::before {
            content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 340px;
            background-image:
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30" viewBox="0 0 60 30" opacity="0.15"><circle cx="10" cy="10" r="1.5" fill="%23ffffff"/><circle cx="25" cy="10" r="1.5" fill="%23ffffff"/><circle cx="40" cy="10" r="1.5" fill="%23ffffff"/><circle cx="10" cy="22" r="1.5" fill="%23ffffff"/><circle cx="25" cy="22" r="1.5" fill="%23ffffff"/><circle cx="40" cy="22" r="1.5" fill="%23ffffff"/></svg>'),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="85" viewBox="0 0 300 85" fill="none" opacity="0.12"><path d="M0 65 Q40 70 80 50 T180 55 T300 30" stroke="%23ffffff" stroke-width="2" fill="none"/></svg>');
            background-position: 20px 15px, left bottom; background-repeat: no-repeat; pointer-events: none; z-index: 1;
        }
        .white-header::after {
            content: ''; position: absolute; right: 0; top: 0; height: 100%; width: 320px;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="320" height="85" viewBox="0 0 320 85" fill="none" opacity="0.18"><path d="M160 20 L220 35 L260 15 L290 50" stroke="%2326e696" stroke-width="1" stroke-dasharray="2 2"/><circle cx="220" cy="35" r="5" fill="%2326e696"/><circle cx="290" cy="50" r="6" fill="%2326e696"/></svg>');
            background-position: right center; background-repeat: no-repeat; pointer-events: none; z-index: 1;
        }

        .header-left-block { display: flex; align-items: center; text-decoration: none; z-index: 5; position: relative; cursor: pointer; }
        .header-logo-png { width: auto; object-fit: contain; filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2)); }
        .white-header-title { font-family: var(--heading-font); }
        .header-desc { color: #ffffff; font-weight: 500; border-left: 1px solid rgba(255,255,255,0.3); }

        .header-stats-panel { z-index: 5; position: relative; align-items: center; }
        .header-stat-bubble {
            background: rgba(4, 7, 18, 0.4); border: 1px solid rgba(255,255,255,0.12);
            color: #ffffff; font-weight: 600;
            display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); line-height: 1; box-sizing: border-box;
        }
        .header-stat-bubble span { white-space: nowrap; line-height: 1; }
        .header-stat-bubble svg { color: #26e696; }
        .stat-bubble-24h { border-color: rgba(56, 189, 248, 0.35); }
        .stat-bubble-24h svg { color: #38bdf8; }
        .stat-bubble-online { position: relative; }
        .stat-bubble-online::before {
            content: ''; width: 6px; height: 6px; border-radius: 50%; background: #26e696;
            box-shadow: 0 0 0 0 rgba(38, 230, 150, 0.6); animation: statPulse 2s infinite;
        }
        @keyframes statPulse {
            0% { box-shadow: 0 0 0 0 rgba(38, 230, 150, 0.6); }
            70% { box-shadow: 0 0 0 6px rgba(38, 230, 150, 0); }
            100% { box-shadow: 0 0 0 0 rgba(38, 230, 150, 0); }
        }
        .btn-header-exchange {
            display: inline-flex; align-items: center; gap: 6px;
            background: #26e696; color: #ffffff; text-decoration: none;
            border-radius: 20px; padding: 7px 18px; font-size: 11.5px; font-weight: 800;
            letter-spacing: 0.2px; transition: all 0.2s;
        }
        .btn-header-exchange:hover { filter: brightness(1.08); transform: translateY(-1px); }
        .btn-header-exchange svg { width: 13px; height: 13px; }
        .white-header-title { font-weight: 700; margin: 0 0 0 8px !important; color: #ffffff; display: flex; align-items: center; white-space: nowrap; gap: 0px; letter-spacing: -0.5px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); text-decoration: none; }
        .white-header-title b { color: #ffffff; font-weight: 700; }
        .white-header-title .rank-text { color: #26e696; font-weight: 700; }
        
        .header-search { display: flex; justify-content: flex-end; flex-grow: 1; margin-left: 10px; margin-right: 10px; z-index: 2; }
        .header-search input { border: 1px solid rgba(255,255,255,0.25); max-width: 100%; transition: 0.2s;
            color: #ffffff; background: rgba(0, 0, 0, 0.2) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="%23ffffff" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat 16px center; 
        }
        .header-search input::placeholder { color: rgba(255,255,255,0.6); }
        .header-search input:focus { outline: none; border-color: rgba(255,255,255,0.5); background-color: rgba(0,0,0,0.3); box-shadow: 0 0 0 4px rgba(255,255,255,0.1); }

        .search-dropdown {
            display: none; position: absolute; top: 100%; right: 0; max-width: 100%;
            background: #ffffff; border: 1px solid var(--border); border-radius: 10px;
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1); z-index: 2000; max-height: 450px; overflow: visible; margin-top: 6px;
        }
        .search-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; text-decoration: none; color: var(--text); transition: background 0.15s; border-bottom: 1px solid #f8fafc; }
        .search-item:last-child { border-bottom: none; }
        .search-item:hover { background: #f1f5f9; }
        .search-item-left { display: flex; align-items: center; gap: 12px; }
        .search-item-left img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #f1f5f9; border: 1px solid var(--border); }
        .search-item .ch-info { display: flex; flex-direction: column; gap: 1px; }
        .search-item .ch-title { font-weight: 600; font-size: 9px; color: var(--text); }
        .search-item .ch-username { font-size: 11.5px; color: #64748b; font-weight: 400; }
        .search-item-right { display: flex; align-items: center; gap: 14px; text-align: right; }
        .search-item .ch-subs { font-size: 9px; font-weight: 600; color: #475569; background: #f8fafc; padding: 4px 8px; border-radius: 6px; border: 1px solid #f1f5f9; }
        .search-item .ch-rating-badge {
            position: relative; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
            border-radius: 50%; font-size: 11px; font-weight: 700; background: #fff8e1; color: #b7791f; border: 1.5px solid #fcd34d; box-shadow: 0 2px 4px rgba(252, 211, 77, 0.2);
        }
        .search-item .ch-rating-badge .crown-icon { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #fbbf24; line-height: 1; }
        .search-no-results { padding: 16px; color: var(--muted); text-align: center; font-size: 12.5px; }

     

   @media (max-width: 992px) {
   

    .white-header {
        height: 35px !important;
        padding: 0 5px !important;
        gap: 2px !important;
    }
    .white-header::before, .white-header::after { display: none !important; }

    .header-left-block { max-width: max-content !important; flex-shrink: 0 !important; }
    .header-logo-png { height: 18px !important; }
    .white-header-title { font-size: 11px !important; margin-left: 2px !important; }

    .header-desc {
        display: block !important;
        font-size: 6px !important;
        margin-left: 4px !important;
        padding-left: 4px !important;
        max-width: 87px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    .header-search {
        order: unset !important;
        margin: 0 2px !important;
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        position: static !important;
    }
    .header-search input {
        width: 100% !important;
        font-size: 6px !important;
        padding: 4px 4px 4px 16px !important;
        background-position: 5px center !important;
        background-size: 7px !important;
        height: 16px !important;
        border-radius: 12px !important;
    }
    .search-dropdown { width: 240px !important; }

    .header-stats-panel {
        display: flex !important;
        gap: 2px !important;
        flex-shrink: 0 !important;
    }
    .header-stat-bubble {
        padding: 2px 4px !important;
        font-size: 5.7px !important;
        gap: 2px !important;
        height: 16px !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
    }
    .header-stat-bubble svg {
        width: 6px !important;
        height: 6px !important;
    }
    .stat-bubble-24h {
        display: none !important;
    }
}


/* ===== ФИКСИРОВАННОЕ увеличение +19% для всех десктопных экранов (993px+), БЕЗ vw/clamp/тиров ===== */
@media (min-width: 993px) {

        *, *::before, *::after { box-sizing: border-box; }
        :root { 
            --bg: #f4f6fa; 
            --card: #ffffff; 
            --sidebar-bg: #ffffff; 
            --border: #e8ecf3; 
            --blue: #0099ff; 
            --blue-hover: #007acc;
            --blue-soft: rgba(0, 153, 255, 0.08); 
            --text: #1e293b; 
            --muted: #64748b; 
            --green: #10b981;
            --green-soft: rgba(16, 185, 129, 0.1);
            --orange: #f59e0b;
            --orange-soft: rgba(245, 158, 11, 0.1);
            --red: #ef4444;
        }

         .white-header, .container, .sticky-mobile-cta {
            position: relative;
            z-index: 1;
        }

        h1, h2, h3, h4, .heading-font { font-family: var(--heading-font); }

        .white-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 63.1px;
    background: linear-gradient(90deg, #043673 0%, #025870 35%, #058d79 70%, #0ca86a 100%) !important;
    border-bottom: 1.2px solid rgba(255,255,255,0.15); padding: 0 29.8px; display: flex;
    justify-content: space-between; align-items: center; z-index: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}
        .white-header::before {
            content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 404.6px;
            background-image:
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30" viewBox="0 0 60 30" opacity="0.15"><circle cx="10" cy="10" r="1.5" fill="%23ffffff"/><circle cx="25" cy="10" r="1.5" fill="%23ffffff"/><circle cx="40" cy="10" r="1.5" fill="%23ffffff"/><circle cx="10" cy="22" r="1.5" fill="%23ffffff"/><circle cx="25" cy="22" r="1.5" fill="%23ffffff"/><circle cx="40" cy="22" r="1.5" fill="%23ffffff"/></svg>'),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="85" viewBox="0 0 300 85" fill="none" opacity="0.12"><path d="M0 65 Q40 70 80 50 T180 55 T300 30" stroke="%23ffffff" stroke-width="2" fill="none"/></svg>');
            background-position: 23.8px 17.8px, left bottom; background-repeat: no-repeat; pointer-events: none; z-index: 1;
        }
        .white-header::after {
            content: ''; position: absolute; right: 0; top: 0; height: 100%; width: 380.8px;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="320" height="85" viewBox="0 0 320 85" fill="none" opacity="0.18"><path d="M160 20 L220 35 L260 15 L290 50" stroke="%2326e696" stroke-width="1" stroke-dasharray="2 2"/><circle cx="220" cy="35" r="5" fill="%2326e696"/><circle cx="290" cy="50" r="6" fill="%2326e696"/></svg>');
            background-position: right center; background-repeat: no-repeat; pointer-events: none; z-index: 1;
        }

        .header-left-block { display: flex; align-items: center; text-decoration: none; z-index: 5; position: relative; cursor: pointer; }
        .header-logo-png { height: 54.7px; width: auto; object-fit: contain; filter: drop-shadow(0px 2.4px 4.8px rgba(0,0,0,0.2)); }
        .white-header-title { margin-left: 9.5px; font-family: var(--heading-font); }
        .header-desc { font-size: 14.9px; color: #ffffff; font-weight: 500; margin-left: 11.9px; border-left: 1.2px solid rgba(255,255,255,0.3); padding-left: 11.9px; line-height: 1.2; }

        .header-stats-panel { display: flex; gap: 8.3px; z-index: 5; position: relative; align-items: center; }
        .header-stat-bubble {
            background: rgba(4, 7, 18, 0.4); border: 1.2px solid rgba(255,255,255,0.12);
            color: #ffffff; border-radius: 23.8px; padding: 7.1px 19px; font-size: 13.1px; font-weight: 600;
            display: flex; align-items: center; justify-content: center; gap: 7.1px; backdrop-filter: blur(9.5px);
            white-space: nowrap; line-height: 1; height: 35.7px; box-sizing: border-box;
        }
        .header-stat-bubble span { white-space: nowrap; line-height: 1; }
        .header-stat-bubble svg { width: 14.3px; height: 14.3px; color: #26e696; }
        .stat-bubble-24h { border-color: rgba(56, 189, 248, 0.35); }
        .stat-bubble-24h svg { color: #38bdf8; }
        .stat-bubble-online { position: relative; }
        .stat-bubble-online::before {
            content: ''; width: 7.1px; height: 7.1px; border-radius: 50%; background: #26e696;
            box-shadow: 0 0 0 0 rgba(38, 230, 150, 0.6); animation: statPulse 2s infinite;
        }
        @keyframes statPulse {
            0% { box-shadow: 0 0 0 0 rgba(38, 230, 150, 0.6); }
            70% { box-shadow: 0 0 0 7.1px rgba(38, 230, 150, 0); }
            100% { box-shadow: 0 0 0 0 rgba(38, 230, 150, 0); }
        }
        .btn-header-exchange {
            display: inline-flex; align-items: center; gap: 7.1px;
            background: #26e696; color: #ffffff; text-decoration: none;
            border-radius: 23.8px; padding: 8.3px 21.4px; font-size: 13.7px; font-weight: 800;
            letter-spacing: 0.2px; transition: all 0.2s;
        }
        .btn-header-exchange:hover { filter: brightness(1.08); transform: translateY(-1.2px); }
        .btn-header-exchange svg { width: 15.5px; height: 15.5px; }
        .white-header-title { font-size: 30.9px; font-weight: 700; margin: 0 0 0 9.5px !important; color: #ffffff; display: flex; align-items: center; white-space: nowrap; gap: 0px; letter-spacing: -0.6px; filter: drop-shadow(0 2.4px 4.8px rgba(0,0,0,0.15)); text-decoration: none; }
        .white-header-title b { color: #ffffff; font-weight: 700; }
        .white-header-title .rank-text { color: #26e696; font-weight: 700; }
        
        .header-search { display: flex; justify-content: flex-end; flex-grow: 1; margin-left: 11.9px; margin-right: 11.9px; z-index: 2; position: relative; }
        .header-search input { 
            padding: 11.9px 19px 11.9px 50px; border: 1.2px solid rgba(255,255,255,0.25); border-radius: 28.6px; font-size: 13.7px; width: 321.3px; max-width: 100%; transition: 0.2s;
            color: #ffffff; background: rgba(0, 0, 0, 0.2) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="%23ffffff" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat 19px center; 
        }
        .header-search input::placeholder { color: rgba(255,255,255,0.6); }
        .header-search input:focus { outline: none; border-color: rgba(255,255,255,0.5); background-color: rgba(0,0,0,0.3); box-shadow: 0 0 0 4.8px rgba(255,255,255,0.1); }

        .search-dropdown {
            display: none; position: absolute; top: 100%; right: 0; width: 499.8px; max-width: 100%;
            background: #ffffff; border: 1.2px solid var(--border); border-radius: 11.9px;
            box-shadow: 0 14.3px 35.7px rgba(15, 23, 42, 0.1); z-index: 2000; max-height: 535.5px; overflow: visible; margin-top: 7.1px;
        }
        .search-item { display: flex; align-items: center; justify-content: space-between; padding: 11.9px 16.7px; text-decoration: none; color: var(--text); transition: background 0.15s; border-bottom: 1.2px solid #f8fafc; }
        .search-item:last-child { border-bottom: none; }
        .search-item:hover { background: #f1f5f9; }
        .search-item-left { display: flex; align-items: center; gap: 14.3px; }
        .search-item-left img { width: 45.2px; height: 45.2px; border-radius: 50%; object-fit: cover; background: #f1f5f9; border: 1.2px solid var(--border); }
        .search-item .ch-info { display: flex; flex-direction: column; gap: 1.2px; }
        .search-item .ch-title { font-weight: 600; font-size: 10.7px; color: var(--text); }
        .search-item .ch-username { font-size: 13.7px; color: #64748b; font-weight: 400; }
        .search-item-right { display: flex; align-items: center; gap: 16.7px; text-align: right; }
        .search-item .ch-subs { font-size: 10.7px; font-weight: 600; color: #475569; background: #f8fafc; padding: 4.8px 9.5px; border-radius: 7.1px; border: 1.2px solid #f1f5f9; }
        .search-item .ch-rating-badge {
            position: relative; display: flex; align-items: center; justify-content: center; width: 33.3px; height: 33.3px;
            border-radius: 50%; font-size: 13.1px; font-weight: 700; background: #fff8e1; color: #b7791f; border: 1.8px solid #fcd34d; box-shadow: 0 2.4px 4.8px rgba(252, 211, 77, 0.2);
        }
        .search-item .ch-rating-badge .crown-icon { position: absolute; top: -9.5px; left: 50%; transform: translateX(-50%); font-size: 11.9px; color: #fbbf24; line-height: 1; }
        .search-no-results { padding: 19px; color: var(--muted); text-align: center; font-size: 14.9px; }

     

   

}

/* ===== Переключатель темы (луна / солнце) ===== */
.tg-theme-toggle {
    flex-shrink: 0; width: 35.7px; height: 35.7px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(4, 7, 18, 0.4); border: 1.2px solid rgba(255,255,255,0.14); color: #ffd36b;
    backdrop-filter: blur(9.5px); transition: transform .25s ease, border-color .2s, box-shadow .2s;
}
.tg-theme-toggle:hover { transform: rotate(-18deg) scale(1.06); border-color: rgba(255,211,107,.55); box-shadow: 0 0 14px rgba(255,211,107,.25); }
.tg-theme-toggle svg { width: 17px; height: 17px; }
.tg-theme-toggle .tg-ico-sun { display: none; }
html[data-theme="dark"] .tg-theme-toggle { color: #7dd3fc; }
html[data-theme="dark"] .tg-theme-toggle:hover { border-color: rgba(125,211,252,.55); box-shadow: 0 0 14px rgba(125,211,252,.25); }
html[data-theme="dark"] .tg-theme-toggle .tg-ico-moon { display: none; }
html[data-theme="dark"] .tg-theme-toggle .tg-ico-sun { display: block; }
@media (max-width: 992px) {
    .tg-theme-toggle { width: 22px; height: 22px; border-width: 1px; }
    .tg-theme-toggle svg { width: 12px; height: 12px; }
}
/* плавная смена темы: вся страница одним наплывом (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }

/* ===== Плавная прокрутка на телефоне (обе темы) =====
   Размытие «под стеклом» и бесконечные анимации значков очень грузят телефон
   при прокрутке длинного списка каналов. На телефоне их отключаем, а строки,
   которых не видно на экране, браузер не рисует, пока до них не долистаешь. */
@media (max-width: 992px) {
    *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    .tariff-designer-badge { animation: none !important; filter: none !important; }
    .channels-list-2 > .ch-wrapper,
    .channels-list > .ch-wrapper { content-visibility: auto; contain-intrinsic-size: auto 44px; }
}

/* без подчёркивания при наведении на название канала и @ник */
.ch-title-link:hover, .ch-title .ch-title-link:hover, .ch-user:hover, a.ch-user:hover, .ch-row .ch-user:hover { text-decoration: none !important; }

/* ===================== Полировка (обе темы) ===================== */

/* «Связаться для покупки» — крупная заметная кнопка с иконкой Telegram */
.btn-contact-admin {
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%) !important;
    color: #fff !important; font-weight: 800 !important; letter-spacing: .2px;
    box-shadow: 0 10px 24px -8px rgba(14, 165, 233, .55), inset 0 1px 0 rgba(255,255,255,.25) !important;
}
.btn-contact-admin:hover { transform: translateY(-2px); filter: saturate(1.15) brightness(1.05); box-shadow: 0 14px 28px -8px rgba(14, 165, 233, .65) !important; }
@media (min-width: 993px) { .btn-contact-admin { padding: 14px 12px !important; font-size: 14.5px !important; border-radius: 12px !important; } }

/* промо-лендинг: «Тёмный дизайн» — тёмная кнопка, «Светлый дизайн» — светлая */
.promo-buttons-row .ptg .ptb.ptb-dark {
    background: linear-gradient(135deg, #0b1324 0%, #1b2b4a 100%) !important; color: #e6f6ff !important;
    border: 1px solid rgba(34, 211, 238, .45) !important; box-shadow: 0 4px 12px rgba(2, 8, 23, .35) !important;
}
.promo-buttons-row .ptg .ptb.ptb-light {
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%) !important; color: #0b3b4a !important;
    border: 1px solid #b9dcef !important; box-shadow: 0 4px 12px rgba(14, 116, 144, .12) !important;
}

/* пустое состояние («У вас пока нет каналов» и др.) */
.empty-state { position: relative; overflow: hidden; }
.empty-state::before {
    content: ""; display: block; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 4.5 2.5 11.8l6 2.2 2.2 6.5 3.4-4.4 5 3.6z'/%3E%3Cpath d='m8.5 14 13-9.5'/%3E%3C/svg%3E") center / 30px no-repeat,
                linear-gradient(135deg, #10b981, #0ea5e9 60%, #6366f1);
    box-shadow: 0 12px 28px -10px rgba(14, 165, 233, .6);
}
.empty-state .btn-prime {
    background: linear-gradient(135deg, #10b981, #0ea5e9) !important; border: 0 !important; color: #fff !important;
    border-radius: 12px !important; font-weight: 700 !important; box-shadow: 0 10px 22px -8px rgba(14, 165, 233, .6);
    transition: transform .2s, filter .2s;
}
.empty-state .btn-prime:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ===================== Плавность (обе темы) ===================== */
/* мягкий переход между страницами вместо «мигания» (Chrome, Edge, Яндекс) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
/* строки таблицы: подсветка при наведении плавно проявляется (раньше фон менялся рывком) */
.channels-list-2 > .ch-wrapper.js-channel-row { position: relative; }
.channels-list-2 > .ch-wrapper.js-channel-row::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0;
    background: linear-gradient(90deg, rgba(14, 165, 233, .09), rgba(14, 165, 233, .02) 45%, transparent 75%);
    box-shadow: inset 3px 0 0 #0ea5e9;
    transition: opacity .22s ease;
}
.channels-list-2 > .ch-wrapper.js-channel-row:hover::after { opacity: 1; }
.channels-list-2 > .ch-wrapper.js-channel-row > .ch-row { position: relative; z-index: 1; }
.channels-list-2 .ch-wrapper.js-channel-row, .channels-list-2 .ch-row { transition: none !important; }
/* значки тарифов на аватарках — анимация только через видеокарту */
.tariff-designer-badge { will-change: transform; }
/* строки вне экрана не рисуются, пока до них не долистаешь (и на компьютере) */
@media (min-width: 993px) {
    .channels-list-2 > .ch-wrapper, .channels-list > .ch-wrapper { content-visibility: auto; contain-intrinsic-size: auto 75px; }
}
/* аватар канала: кольцо зеркально (по просьбе) — исходное направление + отражённый градиент */
.channel-avatar-wrap.verified::before { animation-direction: normal !important; background: conic-gradient(from 0deg, #6ef3ff, #6ee7b7 25%, #39ffbd 50%, #31ff2a 75%, #37ffbd 100%) !important; }
.channel-avatar-wrap.unverified::before { animation-direction: normal !important; background: conic-gradient(from 0deg, #1dec25, #ffffff 25%, #de9bf6 50%, #89f2ef 75%, #66f93e 100%) !important; }

/* ===================== Тариф «Бизнес» — благородное золото (обе темы) ===================== */
[id^="goldGrad"] stop:first-child { stop-color: #f6d98a; }
[id^="goldGrad"] stop:last-child  { stop-color: #b8892f; }
.ch-wrapper.tariff-business-yellow .avatar-wrap .ch-avatar,
.ch-wrapper.tariff-business-yellow .avatar-wrap.verified .ch-avatar { border-color: #d4af37 !important; }
.ch-wrapper.tariff-business-yellow .avatar-wrap.verified .avatar-badge { background-color: #c9a24a !important; }
html:not([data-theme="dark"]) .ch-wrapper.js-channel-row.tariff-business-yellow { border-left-color: #c9a24a !important; }
html:not([data-theme="dark"]) .ch-wrapper.tariff-business-yellow .ch-title { color: #7a5a12 !important; }
html:not([data-theme="dark"]) .ch-wrapper.tariff-business-yellow .ch-user { color: #9a7522 !important; }
