/* Auto-moved from header.php */

.header-notifications {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-right: 15px;
        }

        .header-notifications__link {
            position: relative;
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transition: background 0.2s, color 0.2s;
            border: none;
            background: transparent;
            cursor: pointer;
        }

        .header-notifications__link:hover {
            background: var(--bg-elevated-soft);
            color: var(--accent);
        }

        .header-notifications__badge {
            position: absolute;
            top: 4px;
            right: 4px;
            background: var(--accent-strong);
            color: #fff;
            font-size: 10px;
            font-weight: bold;
            min-width: 16px;
            height: 16px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            border: 2px solid var(--bg-main);
        }

        /* Р’С‹РїР°РґР°СЋС‰РµРµ РјРµРЅСЋ РґРѕР±Р°РІР»РµРЅРёСЏ */
        .header-add-menu {
            position: relative;
        }

        .header-add-menu__dropdown {
            position: absolute;
            top: calc(100% + 4px);
            right: 0;
            background: var(--bg-elevated);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            min-width: 240px;
            padding: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
            z-index: 1000;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
            overflow: hidden;
        }

        .header-add-menu__trigger:hover + .header-add-menu__dropdown,
        .header-add-menu__dropdown:hover {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .header-add-menu__item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            color: var(--text-main);
            text-decoration: none;
            border-radius: 8px;
            transition: background 0.2s, color 0.2s;
            font-size: 14px;
            cursor: pointer;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }

        .header-add-menu__item:hover {
            background: rgba(var(--accent-rgb), 0.1);
            color: var(--accent);
        }

        .header-add-menu__item svg {
            flex-shrink: 0;
            opacity: 0.7;
        }

        .header-add-menu__divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
            margin: 8px 0;
        }

        .header-add-menu__item--primary {
            background: rgba(var(--accent-rgb), 0.15);
            color: var(--accent);
        }

        .header-add-menu__item--primary svg {
            opacity: 1;
        }

        .header-add-menu__item--primary:hover {
            background: rgba(var(--accent-rgb), 0.2);
        }

        .header-theme-menu {
            position: relative;
        }

        .header-theme-menu__dropdown {
            position: absolute;
            top: calc(100% + 4px);
            right: 0;
            background: rgba(var(--accent-rgb), 0.12);
            border: 1px solid rgba(var(--accent-rgb), 0.3);
            border-radius: 16px;
            padding: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
            z-index: 1000;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
            display: grid;
            grid-template-columns: repeat(3, 30px);
            gap: 6px;
            min-width: 114px;
        }

        .header-theme-menu__trigger:hover + .header-theme-menu__dropdown,
        .header-theme-menu__dropdown:hover {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .header-theme-menu__item {
            width: 30px;
            height: 30px;
            border-radius: 0;
            border: none;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .header-theme-menu__item:hover {
            transform: translateY(-1px);
        }

        .header-theme-menu__item.is-active {
            transform: scale(1.06);
        }

        .header-theme-menu__swatch {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: none;
            box-shadow: none;
        }

        /* Р’С‹РїР°РґР°СЋС‰РµРµ РјРµРЅСЋ РїСЂРѕС„РёР»СЏ */
        .header-user-menu {
            position: relative;
        }

        .header-user-menu__dropdown {
            position: absolute;
            top: calc(100% + 4px);
            right: 0;
            background: var(--bg-elevated);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            min-width: 240px;
            padding: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
            z-index: 1000;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
            overflow: hidden;
        }

        .header-user-menu:hover .header-user-menu__dropdown,
        .header-user-menu__dropdown:hover {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .header-user-menu__item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            color: var(--text-main);
            text-decoration: none;
            border-radius: 8px;
            transition: background 0.2s, color 0.2s;
            font-size: 14px;
            cursor: pointer;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }

        .header-user-menu__item:hover {
            background: rgba(var(--accent-rgb), 0.1);
            color: var(--accent);
        }

        .header-user-menu__item svg {
            flex-shrink: 0;
            opacity: 0.7;
        }

        .header-user-menu__divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
            margin: 8px 0;
        }

        .header-user-menu__item--logout {
            color: #ff6b6b;
        }

        .header-user-menu__item--logout:hover {
            background: rgba(255, 107, 107, 0.1);
            color: #ff6b6b;
        }

        /* Р»РѕРіРѕС‚РёРї + РѕРїРёСЃР°РЅРёРµ */
        .site-branding {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .site-branding-content {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        /* 18+ Toggle Switch */
        .header-18-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 0;
        }

        .header-18-toggle__label {
            color: var(--text-main);
            font-size: 14px;
            font-weight: 500;
        }

        .header-18-toggle__switch {
            position: relative;
            width: 48px;
            height: 24px;
            background: rgba(255, 255, 255, 0.12);
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.3s, border 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .header-18-toggle__switch.active {
            background: rgba(var(--accent-rgb), 0.35);
            border-color: rgba(var(--accent-rgb), 0.6);
            box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
        }

        .header-18-toggle__slider {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: #fff;
            border-radius: 50%;
            transition: transform 0.3s, background 0.3s;
        }

        .header-18-toggle__switch.active .header-18-toggle__slider {
            transform: translateX(24px);
            background: var(--accent);
            box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.6);
        }

        /* Header Search */
        .header-search {
            display: flex;
            align-items: center;
            margin: 0 24px;
            vertical-align: middle;
        }

        .header-search__toggle {
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.05));
            border: 1px solid rgba(var(--accent-rgb), 0.2);
            color: var(--accent);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all var(--transition-fast);
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .header-search__toggle:hover {
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.1));
            border-color: rgba(var(--accent-rgb), 0.4);
            color: #b4ff4f;
            transform: scale(1.05);
            box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.2);
        }

        .header-search__toggle.active {
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.15));
            border-color: rgba(var(--accent-rgb), 0.5);
            color: #b4ff4f;
        }

        .header-search__form {
            display: flex;
            align-items: center;
            background:
                radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.08), transparent 50%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 14, 18, 0.95));
            border: 1px solid rgba(var(--accent-rgb), 0.15);
            border-radius: 20px;
            padding: 6px 14px;
            transition: all var(--transition-med);
            width: 0;
            height: 32px;
            opacity: 0;
            overflow: hidden;
            margin-left: 0;
            margin-top: 0;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            position: relative;
        }

        .header-search__form.expanded {
            width: 300px;
            opacity: 1;
            margin-left: 12px;
            margin-top: 16px;
            vertical-align: middle;
            overflow: visible;
        }

        .header-search__form::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 28px;
            padding: 1px;
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), transparent);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
            opacity: 0;
            transition: opacity var(--transition-med);
        }

        .header-search__form:focus-within {
            background:
                radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.12), transparent 50%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(10, 14, 18, 1));
            border-color: rgba(var(--accent-rgb), 0.4);
            box-shadow:
                0 12px 40px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(var(--accent-rgb), 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transform: translateY(-1px);
        }

        .header-search__form:focus-within::before {
            opacity: 1;
        }

        .header-search__input {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--text-main);
            font-size: 14px;
            font-weight: 500;
            outline: none;
            line-height: 1.4;
            z-index: 1;
            width: 100%;
            box-sizing: border-box;
        }

        .header-search__input::placeholder {
            color: rgba(245, 247, 246, 0.5);
            font-weight: 400;
        }

        .header-search__button {
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.05));
            border: 1px solid rgba(var(--accent-rgb), 0.2);
            color: var(--accent);
            cursor: pointer;
            padding: 6px;
            border-radius: 8px;
            transition: all var(--transition-fast);
            flex-shrink: 0;
            margin-left: 8px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
        }

        .header-search__button:hover {
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.1));
            border-color: rgba(var(--accent-rgb), 0.4);
            color: #b4ff4f;
            transform: scale(1.05);
            box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.2);
        }

        .header-search__button:active {
            transform: scale(0.98);
        }

        /* Header Search Suggestions */
        .header-search-suggestions {
            scrollbar-width: thin;
            scrollbar-color: rgba(var(--accent-rgb), 0.3) rgba(15, 23, 42, 0.5);
        }

        .header-search-suggestions::-webkit-scrollbar {
            width: 6px;
        }

        .header-search-suggestions::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.5);
            border-radius: 3px;
        }

        .header-search-suggestions::-webkit-scrollbar-thumb {
            background: rgba(var(--accent-rgb), 0.3);
            border-radius: 3px;
        }

        .header-search-suggestions::-webkit-scrollbar-thumb:hover {
            background: rgba(var(--accent-rgb), 0.5);
        }

        .search-suggestion-item {
            cursor: pointer;
        }

        .search-suggestion-item:first-child {
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
        }

        .search-suggestion-item:last-child {
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        /* 18+ Confirmation Modal */
        .modal-18 {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0s linear 0.3s;
            backdrop-filter: blur(12px);
        }

        .modal-18.active {
            opacity: 1;
            visibility: visible;
            transition: opacity 0.3s ease, visibility 0s linear 0s;
        }

        .modal-18__overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            cursor: pointer;
        }

        .modal-18__content {
            position: relative;
            background:
                radial-gradient(circle at top left, rgba(255, 107, 107, 0.08), transparent 60%),
                linear-gradient(135deg, #1a1a1a, #0f0f0f);
            border-radius: 20px;
            max-width: 420px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow:
                0 25px 60px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 107, 107, 0.2);
            border: 1px solid rgba(255, 107, 107, 0.3);
            transform: translateY(-20px) scale(0.95);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            padding: 28px 24px;
        }

        .modal-18.active .modal-18__content {
            transform: translateY(0) scale(1);
        }

        .modal-18__header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .modal-18__icon {
            font-size: 32px;
            flex-shrink: 0;
        }

        .modal-18__title {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            color: #ff6b6b;
        }

        .modal-18__body {
            margin-bottom: 24px;
        }

        .modal-18__text {
            margin: 0 0 12px 0;
            color: var(--text-main);
            font-size: 14px;
            line-height: 1.6;
        }

        .modal-18__text:last-child {
            margin-bottom: 0;
        }

        .modal-18__footer {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        .modal-18__btn {
            padding: 10px 20px;
            border-radius: 10px;
            border: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        .modal-18__btn--cancel {
            background: transparent;
            color: #9ca7a0;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-18__btn--cancel:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
        }

        .modal-18__btn--confirm {
            background: linear-gradient(135deg, #ff6b6b, #ff5252);
            color: white;
            box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
        }

        .modal-18__btn--confirm:hover {
            background: linear-gradient(135deg, #ff5252, #ff3838);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
        }

        .modal-18__btn:active {
            transform: scale(0.98);
        }

        /* Mobile responsive for search */
        @media (max-width: 768px) {
            .header-search {
                margin: 0 16px;
            }

            .header-search__toggle {
                width: 40px;
                height: 40px;
                padding: 8px;
            }

            .header-search__form.expanded {
                width: 100%;
                max-width: 220px;
                margin-left: 8px;
            }

            .header-search__form {
                height: 40px;
                padding: 8px 14px;
            }

            .header-search__input {
                font-size: 13px;
            }

            .header-search__button {
                width: 28px;
                height: 28px;
                padding: 6px;
                margin-left: 8px;
            }
        }

        @media (max-width: 480px) {
            .site-header > .container {
                gap: 12px;
            }

            .site-branding-content {
                gap: 12px;
            }

            .site-branding {
                gap: 4px;
            }

            .header-search {
                order: 3;
                margin: 8px 0 0 0;
            }

            .header-search__form.expanded {
                width: 100%;
                max-width: 220px;
                margin-left: 0;
            }

            .header-search__form {
                height: 38px;
            }
        }

        .header-user-icon__link.btn-login-register {
            background: linear-gradient(135deg, var(--accent), var(--accent-strong));
            color: var(--bg-main);
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            display: inline-block;
            text-align: center;
            font-size: 14px;
        }

        .header-user-icon__link.btn-login-register:hover {
            background: linear-gradient(135deg, var(--accent-strong), var(--accent));
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
            color: var(--bg-main);
        }

.header-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.18);
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.header-auth-button:hover {
    background: rgba(var(--accent-rgb), 0.28);
    border-color: rgba(var(--accent-rgb), 0.7);
    color: var(--text-main);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.site-logo {
    display: inline-block;
    width: 160px;
    height: 50px;
}

.site-logo--mask {
    background-color: var(--accent);
    -webkit-mask-image: var(--logo-url);
    mask-image: var(--logo-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: left center;
    mask-position: left center;
}

.gtm-noscript-iframe { display: none; visibility: hidden; }

