 :root {
            --cookie-bg: #212529; /*rgba(30, 36, 51, 0.97);*/
            --cookie-text: #e0e0e0;
            --cookie-text-secondary: #8891a5;
            --cookie-accent: #4a6cf7;
            --cookie-success: #1db954;
            --cookie-danger: #e94560;
            --cookie-border: rgba(255, 255, 255, 0.1);
            --cookie-radius: 12px;
            --cookie-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        .cookie-banner {
            position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
            width: 90%; max-width: 800px; background: var(--cookie-bg);
            border: 1px solid var(--cookie-border); border-radius: var(--cookie-radius);
            padding: 20px 24px; z-index: 99999; box-shadow: var(--cookie-shadow);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            display: flex; align-items: center; justify-content: space-between;
            gap: 20px; flex-wrap: wrap;
            animation: cookieSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        @keyframes cookieSlideUp {
            from { opacity: 0; transform: translateX(-50%) translateY(30px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

        @keyframes cookieSlideDown {
            from { opacity: 1; transform: translateX(-50%) translateY(0); }
            to { opacity: 0; transform: translateX(-50%) translateY(30px); }
        }

        .cookie-banner.hiding { animation: cookieSlideDown 0.3s ease forwards; }

        .cookie-banner-icon { font-size: 28px; flex-shrink: 0; animation: cookieBounce 2s ease-in-out infinite; }

        @keyframes cookieBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        .cookie-banner-content { flex: 1; min-width: 200px; }
        .cookie-banner-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
        .cookie-banner-text { font-size: 12px; color: var(--cookie-text-secondary); line-height: 1.5; }
        .cookie-banner-text a { color: var(--cookie-accent); text-decoration: underline; cursor: pointer; font-weight: 500; }
        .cookie-banner-text a:hover { color: #6b8cf8; }

        .cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

        .cookie-btn {
            padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer;
            font-size: 13px; font-weight: 600; transition: all 0.3s;
            white-space: nowrap; font-family: inherit;
        }
        .cookie-btn-accept { background: var(--cookie-accent); color: #fff; }
        .cookie-btn-accept:hover { background: #3b5de7; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(74, 108, 247, 0.4); }
        .cookie-btn-settings { background: transparent; border: 1px solid var(--cookie-border); color: var(--cookie-text-secondary); }
        .cookie-btn-settings:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
        .cookie-btn-decline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: #666; font-size: 11px; padding: 8px 14px; }
        .cookie-btn-decline:hover { color: #999; border-color: rgba(255, 255, 255, 0.2); }

        .cookie-modal-overlay {
            position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7);
            z-index: 100000; display: flex; align-items: center; justify-content: center;
            animation: cookieFadeIn 0.3s ease;
        }
        @keyframes cookieFadeIn { from { opacity: 0; } to { opacity: 1; } }

        .cookie-modal {
            background: #212529; border: 1px solid var(--cookie-border);/*#1e2433*/
            border-radius: var(--cookie-radius); padding: 30px;
            width: 90%; max-width: 550px; max-height: 85vh; overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            animation: cookieModalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @keyframes cookieModalIn {
            from { opacity: 0; transform: scale(0.95) translateY(-20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .cookie-modal h2 { font-size: 20px; color: #fff; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .cookie-modal p { font-size: 12px; color: var(--cookie-text-secondary); line-height: 1.6; margin-bottom: 16px; }

        .cookie-category {
            background: rgba(255, 255, 255, 0.03); border: 1px solid var(--cookie-border);
            border-radius: 10px; padding: 16px; margin-bottom: 12px;
        }
        .cookie-category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
        .cookie-category-title { font-weight: 600; color: #fff; font-size: 13px; display: flex; align-items: center; gap: 8px; }
        .cookie-category-desc { font-size: 11px; color: var(--cookie-text-secondary); line-height: 1.4; }

        .cookie-toggle {
            width: 44px; height: 24px; background: #444; border-radius: 12px;
            position: relative; cursor: pointer; transition: all 0.3s; flex-shrink: 0;
        }
        .cookie-toggle.active { background: var(--cookie-accent); }
        .cookie-toggle.disabled { opacity: 0.5; cursor: not-allowed; }
        .cookie-toggle::after {
            content: ''; width: 20px; height: 20px; background: #fff;
            border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: all 0.3s;
        }
        .cookie-toggle.active::after { left: 22px; }

        .cookie-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
        .cookie-modal-footer {
            margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cookie-border);
            text-align: center; font-size: 11px; color: var(--cookie-text-secondary);
        }
        .cookie-modal-footer a { color: var(--cookie-accent); text-decoration: underline; cursor: pointer; }
        .cookie-modal-footer a:hover { color: #6b8cf8; }

        .cookie-settings-btn {
            position: fixed; bottom: 20px; left: 20px; width: 40px; height: 40px;
            background: rgba(30, 36, 51, 0.9); border: 1px solid var(--cookie-border);
            border-radius: 50%; cursor: pointer; font-size: 18px; z-index: 9998;
            display: none; align-items: center; justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); transition: all 0.3s;
        }
        .cookie-settings-btn:hover { transform: scale(1.1); }
        .cookie-settings-btn.visible { display: flex; }

        @media (max-width: 600px) {
            .cookie-banner { bottom: 10px; width: 95%; padding: 16px; flex-direction: column; gap: 12px; }
            .cookie-banner-actions { width: 100%; flex-wrap: wrap; }
            .cookie-btn { flex: 1; text-align: center; padding: 10px 14px; font-size: 12px; }
            .cookie-btn-decline { flex: 0; width: 100%; }
            .cookie-modal { padding: 20px; }
        }