.yc-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: rgba(18, 20, 26, 0.96);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 320ms var(--ease, cubic-bezier(.4,0,.2,1)), opacity 320ms;
}
.yc-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.yc-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.yc-bar__text {
    flex: 1;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.86);
}
.yc-bar__text-vpn,
.yc-bar__text-cookie {
    display: block;
}
.yc-bar__text-vpn {
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
    padding-left: 10px;
    border-left: 2px solid #FCE116;
}
.yc-bar__text a {
    color: #FCE116;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.yc-bar__text a:hover { color: #fff; }
.yc-bar__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.yc-btn {
    border: none;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: background 160ms, transform 100ms, color 160ms;
    white-space: nowrap;
}
.yc-btn:active { transform: scale(0.97); }
.yc-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.yc-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}
.yc-btn--accept {
    background: #FCE116;
    color: #1D1D1F;
}
.yc-btn--accept:hover { background: #FFD600; }

.yc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms;
}
.yc-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.yc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.yc-modal__box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.96);
    transition: transform 240ms cubic-bezier(.34,1.56,.64,1);
}
.yc-modal.is-open .yc-modal__box { transform: scale(1); }
.yc-modal__head {
    padding: 18px 22px;
    border-bottom: 1px solid #EFEFF4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.yc-modal__head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1D1D1F;
}
.yc-modal__x {
    background: none;
    border: none;
    cursor: pointer;
    color: #8E8E93;
    padding: 4px;
    border-radius: 6px;
    display: flex;
}
.yc-modal__x:hover { background: #F5F5F7; color: #1D1D1F; }
.yc-modal__body {
    padding: 14px 22px 18px;
    overflow-y: auto;
}
.yc-modal__foot {
    padding: 14px 22px;
    border-top: 1px solid #EFEFF4;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #FAFAFA;
}
.yc-modal__foot .yc-btn--ghost {
    color: #1D1D1F;
    border-color: #D1D1D6;
}
.yc-modal__foot .yc-btn--ghost:hover {
    background: #F5F5F7;
    color: #1D1D1F;
}

.yc-cat {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #F2F2F7;
    cursor: pointer;
}
.yc-cat:last-child { border-bottom: none; }
.yc-cat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.yc-cat__name {
    font-size: 14px;
    font-weight: 700;
    color: #1D1D1F;
    flex: 1;
}
.yc-cat__lock {
    font-size: 11px;
    font-weight: 600;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.yc-cat__desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #6E6E73;
    padding-right: 56px;
}
.yc-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.yc-toggle__ui {
    width: 38px;
    height: 22px;
    background: #D1D1D6;
    border-radius: 11px;
    position: relative;
    transition: background 180ms;
    flex-shrink: 0;
}
.yc-toggle__ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 180ms;
}
.yc-toggle:checked ~ .yc-toggle__ui {
    background: #FCE116;
}
.yc-toggle:checked ~ .yc-toggle__ui::after {
    transform: translateX(16px);
}

@media (max-width: 768px) {
    .yc-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }
    .yc-bar__actions {
        flex-wrap: wrap;
    }
    .yc-bar__actions .yc-btn {
        flex: 1;
        min-width: 0;
    }
    .yc-bar__actions .yc-btn--accept {
        flex-basis: 100%;
        order: -1;
    }
}
