/**
 * Elysium Media FZCO - Ultra Premium Cookie Consent System
 * World-class design with cutting-edge animations
 * Version 3.0.0
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Core Colors */
    --cookie-bg-primary: #050508;
    --cookie-bg-secondary: #0a0a10;
    --cookie-bg-tertiary: #0f0f18;
    --cookie-bg-card: rgba(12, 12, 20, 0.95);

    /* Accent Colors */
    --cookie-accent-primary: #00d4ff;
    --cookie-accent-secondary: #7c3aed;
    --cookie-accent-tertiary: #00ff88;
    --cookie-accent-warning: #ff6b35;

    /* Gradient Definitions */
    --cookie-gradient-main: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #00ff88 100%);
    --cookie-gradient-hover: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, #7c3aed 100%);
    --cookie-gradient-glow: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    --cookie-gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);

    /* Text Colors */
    --cookie-text-primary: #ffffff;
    --cookie-text-secondary: rgba(255, 255, 255, 0.7);
    --cookie-text-tertiary: rgba(255, 255, 255, 0.5);
    --cookie-text-muted: rgba(255, 255, 255, 0.35);

    /* Border Colors */
    --cookie-border-subtle: rgba(255, 255, 255, 0.06);
    --cookie-border-medium: rgba(255, 255, 255, 0.1);
    --cookie-border-accent: rgba(0, 212, 255, 0.3);

    /* Shadows */
    --cookie-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --cookie-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --cookie-shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6);
    --cookie-shadow-glow: 0 0 60px rgba(0, 212, 255, 0.15);
    --cookie-shadow-glow-intense: 0 0 100px rgba(0, 212, 255, 0.25);

    /* Timing */
    --cookie-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --cookie-ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --cookie-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Sizes */
    --cookie-border-radius-sm: 8px;
    --cookie-border-radius-md: 12px;
    --cookie-border-radius-lg: 20px;
    --cookie-border-radius-xl: 28px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes cookieSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes cookieSlideDown {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100%) scale(0.95);
        filter: blur(10px);
    }
}

@keyframes cookieModalIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) rotateX(10deg);
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

@keyframes cookieModalOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) rotateX(-10deg);
        filter: blur(20px);
    }
}

@keyframes cookieGradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes cookieGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes cookieFloatOrb {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -15px) rotate(90deg);
    }
    50% {
        transform: translate(-5px, -25px) rotate(180deg);
    }
    75% {
        transform: translate(-15px, -10px) rotate(270deg);
    }
}

@keyframes cookieShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes cookieCheckmark {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes cookieSuccessRing {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cookieParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

@keyframes cookieBorderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

@keyframes cookieRipple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--cookie-ease-out-expo), visibility 0.6s;
}

.cookie-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN BANNER - ULTRA PREMIUM DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100%) scale(0.95);
    width: calc(100% - 48px);
    max-width: 1100px;
    background: var(--cookie-bg-card);
    border-radius: var(--cookie-border-radius-xl);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    box-shadow: var(--cookie-shadow-lg), var(--cookie-shadow-glow);
    transition: all 0.8s var(--cookie-ease-out-expo);
}

.cookie-banner.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.cookie-banner.hiding {
    animation: cookieSlideDown 0.6s var(--cookie-ease-out-expo) forwards;
}

/* Banner Background Effects */
.cookie-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cookie-gradient-card);
    pointer-events: none;
}

.cookie-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--cookie-gradient-glow);
    animation: cookieFloatOrb 20s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.5;
}

/* Animated Border */
.cookie-banner-border {
    position: absolute;
    inset: 0;
    border-radius: var(--cookie-border-radius-xl);
    padding: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--cookie-accent-primary) 25%,
        var(--cookie-accent-secondary) 50%,
        var(--cookie-accent-tertiary) 75%,
        transparent 100%
    );
    background-size: 400% 100%;
    animation: cookieGradientFlow 8s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

/* Banner Inner Container */
.cookie-banner-inner {
    position: relative;
    z-index: 2;
    padding: 32px 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COOKIE ICON - 3D ANIMATED
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.cookie-icon-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    animation: cookieGlowPulse 3s ease-in-out infinite;
    border-radius: 50%;
}

.cookie-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cookie-bg-tertiary) 0%, var(--cookie-bg-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cookie-border-medium);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.cookie-icon-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
}

.cookie-icon {
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 2;
}

.cookie-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cookie-icon svg circle:first-child {
    fill: none;
    stroke: url(#cookieGradient);
    stroke-width: 1.5;
}

.cookie-icon svg circle:not(:first-child) {
    fill: var(--cookie-accent-primary);
    opacity: 0.8;
}

/* Floating particles around icon */
.cookie-icon-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cookie-icon-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cookie-accent-primary);
    border-radius: 50%;
    opacity: 0;
}

.cookie-banner.visible .cookie-icon-particle {
    animation: cookieParticle 2s ease-out forwards;
}

.cookie-icon-particle:nth-child(1) { top: 50%; left: 0; animation-delay: 0.1s; }
.cookie-icon-particle:nth-child(2) { top: 20%; left: 20%; animation-delay: 0.2s; }
.cookie-icon-particle:nth-child(3) { top: 0; left: 50%; animation-delay: 0.3s; }
.cookie-icon-particle:nth-child(4) { top: 20%; right: 20%; animation-delay: 0.4s; }
.cookie-icon-particle:nth-child(5) { top: 50%; right: 0; animation-delay: 0.5s; }
.cookie-icon-particle:nth-child(6) { bottom: 20%; right: 20%; animation-delay: 0.6s; }

/* ═══════════════════════════════════════════════════════════════════════════
   BANNER CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-content {
    min-width: 0;
}

.cookie-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cookie-text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cookie-accent-primary);
}

.cookie-title-badge svg {
    width: 12px;
    height: 12px;
}

.cookie-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--cookie-text-secondary);
    margin: 0;
    max-width: 600px;
}

.cookie-link {
    color: var(--cookie-accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.cookie-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cookie-accent-primary);
    transition: width 0.3s ease;
}

.cookie-link:hover {
    color: var(--cookie-text-primary);
}

.cookie-link:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BANNER ACTIONS - PREMIUM BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

/* Base Button Styles */
.cookie-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--cookie-border-radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--cookie-ease-out-expo);
    white-space: nowrap;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cookie-btn:hover::before {
    opacity: 1;
}

/* Primary Button - Gradient with Glow */
.cookie-btn-primary {
    background: var(--cookie-gradient-main);
    background-size: 200% 200%;
    color: var(--cookie-bg-primary);
    box-shadow:
        0 4px 20px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.1);
    animation: cookieGradientFlow 6s ease infinite;
}

.cookie-btn-primary::before {
    background: var(--cookie-gradient-hover);
    background-size: 200% 200%;
    animation: cookieGradientFlow 4s ease infinite reverse;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(0, 212, 255, 0.4),
        0 0 60px rgba(0, 212, 255, 0.2);
}

.cookie-btn-primary:active {
    transform: translateY(0);
}

.cookie-btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--cookie-ease-out-back);
}

.cookie-btn-primary:hover svg {
    transform: translateX(4px);
}

/* Secondary Button - Glass Morphism */
.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--cookie-text-primary);
    border: 1px solid var(--cookie-border-medium);
}

.cookie-btn-secondary::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.cookie-btn-secondary:hover {
    border-color: var(--cookie-border-accent);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

/* Tertiary Button - Text Only */
.cookie-btn-tertiary {
    background: transparent;
    color: var(--cookie-text-secondary);
    padding: 10px 20px;
}

.cookie-btn-tertiary:hover {
    color: var(--cookie-accent-primary);
}

/* Button Ripple Effect */
.cookie-btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: cookieRipple 0.6s ease-out forwards;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREFERENCES MODAL - WORLD CLASS
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--cookie-ease-out-expo);
}

.cookie-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9) rotateX(10deg);
    width: calc(100% - 48px);
    max-width: 680px;
    max-height: calc(100vh - 80px);
    background: var(--cookie-bg-card);
    border-radius: var(--cookie-border-radius-xl);
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    box-shadow: var(--cookie-shadow-lg), var(--cookie-shadow-glow-intense);
    display: flex;
    flex-direction: column;
    transition: all 0.6s var(--cookie-ease-out-expo);
    perspective: 1000px;
}

.cookie-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1) rotateX(0deg);
}

/* Modal Border Animation */
.cookie-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--cookie-border-radius-xl);
    padding: 1px;
    background: conic-gradient(
        from 0deg,
        var(--cookie-accent-primary),
        var(--cookie-accent-secondary),
        var(--cookie-accent-tertiary),
        var(--cookie-accent-primary)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: cookieBorderRotate 10s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

/* Modal Header */
.cookie-modal-header {
    position: relative;
    padding: 28px 32px;
    border-bottom: 1px solid var(--cookie-border-subtle);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.cookie-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cookie-accent-primary), transparent);
    opacity: 0.3;
}

.cookie-modal-title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cookie-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cookie-text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.cookie-modal-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--cookie-text-tertiary);
    margin: 0;
}

.cookie-modal-close {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cookie-border-subtle);
    border-radius: 50%;
    color: var(--cookie-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cookie-border-medium);
    color: var(--cookie-text-primary);
    transform: rotate(90deg);
}

.cookie-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal Body */
.cookie-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    scrollbar-width: thin;
    scrollbar-color: var(--cookie-accent-primary) transparent;
}

.cookie-modal-body::-webkit-scrollbar {
    width: 6px;
}

.cookie-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.cookie-modal-body::-webkit-scrollbar-thumb {
    background: var(--cookie-accent-primary);
    border-radius: 3px;
    opacity: 0.5;
}

.cookie-modal-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--cookie-text-secondary);
    margin: 0 0 28px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: var(--cookie-border-radius-md);
    border: 1px solid var(--cookie-border-subtle);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COOKIE CATEGORIES - PREMIUM CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-category {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border: 1px solid var(--cookie-border-subtle);
    border-radius: var(--cookie-border-radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--cookie-ease-out-expo);
}

.cookie-category:hover {
    border-color: var(--cookie-border-medium);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cookie-category.expanded {
    border-color: var(--cookie-border-accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.05);
}

/* Category Header */
.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-category-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cookie-category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cookie-bg-tertiary) 0%, var(--cookie-bg-secondary) 100%);
    border-radius: var(--cookie-border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--cookie-border-subtle);
    transition: all 0.4s ease;
}

.cookie-category:hover .cookie-category-icon {
    border-color: var(--cookie-border-accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.cookie-category-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--cookie-accent-primary);
    transition: transform 0.3s ease;
}

.cookie-category:hover .cookie-category-icon svg {
    transform: scale(1.1);
}

.cookie-category-info {
    flex: 1;
    min-width: 0;
}

.cookie-category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cookie-text-primary);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-category-required {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cookie-accent-tertiary);
}

.cookie-category-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--cookie-text-tertiary);
    margin: 0;
}

/* Category Controls */
.cookie-category-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-category-expand {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cookie-text-muted);
    transition: all 0.4s var(--cookie-ease-out-expo);
}

.cookie-category-expand svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s var(--cookie-ease-out-expo);
}

.cookie-category.expanded .cookie-category-expand svg {
    transform: rotate(180deg);
}

/* Category Content */
.cookie-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--cookie-ease-out-expo);
}

.cookie-category.expanded .cookie-category-content {
    max-height: 300px;
}

.cookie-category-content-inner {
    padding: 0 24px 24px;
    border-top: 1px solid var(--cookie-border-subtle);
    margin-top: -1px;
}

.cookie-category-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--cookie-text-secondary);
    margin: 20px 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOGGLE SWITCH - PREMIUM ANIMATED
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-toggle {
    position: relative;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-toggle-track {
    position: absolute;
    inset: 0;
    background: var(--cookie-bg-tertiary);
    border: 1px solid var(--cookie-border-medium);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s var(--cookie-ease-out-expo);
    overflow: hidden;
}

.cookie-toggle-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--cookie-accent-primary), var(--cookie-accent-secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cookie-toggle input:checked + .cookie-toggle-track {
    border-color: var(--cookie-accent-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.cookie-toggle input:checked + .cookie-toggle-track::before {
    opacity: 1;
}

.cookie-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--cookie-text-primary);
    border-radius: 50%;
    transition: all 0.4s var(--cookie-ease-out-back);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-toggle input:checked ~ .cookie-toggle-thumb {
    left: 29px;
    background: var(--cookie-bg-primary);
}

.cookie-toggle-thumb svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s var(--cookie-ease-out-back);
}

.cookie-toggle input:checked ~ .cookie-toggle-thumb svg {
    opacity: 1;
    transform: scale(1);
    stroke: var(--cookie-accent-tertiary);
}

/* Disabled Toggle */
.cookie-toggle.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.cookie-toggle.disabled .cookie-toggle-track {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.2));
    border-color: rgba(0, 255, 136, 0.3);
}

.cookie-toggle.disabled .cookie-toggle-thumb {
    left: 29px;
    background: var(--cookie-accent-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--cookie-border-subtle);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-modal-footer-left {
    display: flex;
    gap: 12px;
}

.cookie-modal-footer-right {
    display: flex;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUCCESS ANIMATION - CELEBRATION
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 100002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s var(--cookie-ease-out-back);
}

.cookie-success.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-success-content {
    position: relative;
    padding: 48px 64px;
    background: var(--cookie-bg-card);
    border-radius: var(--cookie-border-radius-xl);
    border: 1px solid var(--cookie-border-accent);
    box-shadow: var(--cookie-shadow-lg), var(--cookie-shadow-glow-intense);
    text-align: center;
}

.cookie-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.cookie-success-ring {
    position: absolute;
    inset: 0;
    border: 3px solid var(--cookie-accent-tertiary);
    border-radius: 50%;
    animation: cookieSuccessRing 0.6s var(--cookie-ease-out-back) forwards;
}

.cookie-success-check {
    width: 100%;
    height: 100%;
}

.cookie-success-check circle {
    fill: none;
    stroke: var(--cookie-accent-tertiary);
    stroke-width: 2;
    opacity: 0.2;
}

.cookie-success-check path {
    fill: none;
    stroke: var(--cookie-accent-tertiary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: cookieCheckmark 0.8s var(--cookie-ease-out-expo) 0.3s forwards;
}

.cookie-success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cookie-text-primary);
    margin: 0 0 8px;
}

.cookie-success-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--cookie-text-secondary);
    margin: 0;
}

/* Success Particles */
.cookie-success-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cookie-success-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
}

.cookie-success.visible .cookie-success-particle {
    animation: cookieParticle 1s ease-out forwards;
}

.cookie-success-particle:nth-child(1) { background: var(--cookie-accent-primary); top: 50%; left: 10%; animation-delay: 0.1s; }
.cookie-success-particle:nth-child(2) { background: var(--cookie-accent-secondary); top: 30%; left: 20%; animation-delay: 0.15s; }
.cookie-success-particle:nth-child(3) { background: var(--cookie-accent-tertiary); top: 20%; left: 40%; animation-delay: 0.2s; }
.cookie-success-particle:nth-child(4) { background: var(--cookie-accent-primary); top: 20%; left: 60%; animation-delay: 0.25s; }
.cookie-success-particle:nth-child(5) { background: var(--cookie-accent-secondary); top: 30%; left: 80%; animation-delay: 0.3s; }
.cookie-success-particle:nth-child(6) { background: var(--cookie-accent-tertiary); top: 50%; left: 90%; animation-delay: 0.35s; }

/* ═══════════════════════════════════════════════════════════════════════════
   SETTINGS BUTTON - FLOATING
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-settings-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--cookie-bg-card);
    border: 1px solid var(--cookie-border-medium);
    border-radius: 50%;
    cursor: pointer;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s var(--cookie-ease-out-back);
    box-shadow: var(--cookie-shadow-md);
    animation: cookieSettingsFloat 4s ease-in-out infinite;
    animation-play-state: paused;
}

.cookie-settings-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    animation-play-state: running;
}

.cookie-settings-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--cookie-gradient-main);
    background-size: 300% 300%;
    animation: cookieGradientFlow 6s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cookie-settings-btn:hover::before {
    opacity: 0.5;
}

.cookie-settings-btn:hover {
    border-color: var(--cookie-accent-primary);
    box-shadow: var(--cookie-shadow-md), 0 0 30px rgba(0, 212, 255, 0.2);
    transform: scale(1.1) translateY(0);
}

.cookie-settings-btn svg {
    width: 26px;
    height: 26px;
    stroke: var(--cookie-accent-primary);
    transition: transform 0.4s var(--cookie-ease-out-expo);
}

.cookie-settings-btn:hover svg {
    transform: rotate(180deg);
}

/* Tooltip */
.cookie-settings-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    padding: 8px 16px;
    background: var(--cookie-bg-card);
    border: 1px solid var(--cookie-border-medium);
    border-radius: var(--cookie-border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--cookie-text-secondary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cookie-settings-btn:hover .cookie-settings-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .cookie-icon-wrapper {
        margin: 0 auto;
    }

    .cookie-description {
        max-width: 100%;
    }

    .cookie-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 16px;
        width: calc(100% - 32px);
        border-radius: var(--cookie-border-radius-lg);
    }

    .cookie-banner-inner {
        padding: 24px;
        gap: 20px;
    }

    .cookie-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .cookie-icon-container {
        width: 64px;
        height: 64px;
    }

    .cookie-icon {
        width: 32px;
        height: 32px;
    }

    .cookie-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .cookie-description {
        font-size: 0.875rem;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal {
        width: calc(100% - 32px);
        max-height: calc(100vh - 48px);
        border-radius: var(--cookie-border-radius-lg);
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-modal-title {
        font-size: 1.3rem;
    }

    .cookie-category-header {
        padding: 16px 20px;
        gap: 12px;
    }

    .cookie-category-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-category-icon svg {
        width: 20px;
        height: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer-left,
    .cookie-modal-footer-right {
        width: 100%;
        flex-direction: column;
    }

    .cookie-settings-btn {
        width: 48px;
        height: 48px;
        bottom: 16px;
        left: 16px;
    }

    .cookie-settings-btn svg {
        width: 22px;
        height: 22px;
    }

    .cookie-settings-tooltip {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cookie-banner.visible {
        transform: translateX(-50%) translateY(0);
    }

    .cookie-modal.visible {
        transform: translate(-50%, -50%);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SVG GRADIENT DEFINITIONS (for JS injection)
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
