/* ========================================
   BLOCKING COOKIE CONSENT WALL
   Vibrant, Colorful, Marketing-Focused Design
   ======================================== */

/* Loading Spinner for Static GDPR */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #6C3CE1;
    border-radius: 50%;
    animation: spinner-rotate 1s linear infinite;
}

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

/* Full-Screen Blocking Overlay - OPTIMIZED for performance */
.cookie-wall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    /* OPTIMIZED: Solid gradient without blur for better performance */
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.98) 0%,
        rgba(118, 75, 162, 0.98) 50%,
        rgba(240, 147, 251, 0.98) 100%);
    /* REMOVED: backdrop-filter: blur(10px) - expensive on mobile */
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out; /* Faster animation */
    overflow-y: auto;
    padding: 20px;
    pointer-events: all;
}

/* Hidden state when consent exists */
.cookie-wall-overlay.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cookie-wall-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* Vibrant Modal Card */
.cookie-wall-modal {
    background: white;
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Split Layout - AI on Left, Content on Right */
.cookie-modal-content {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
    min-height: 600px;
    flex: 1;
    overflow: hidden;
}

/* ===== TWO COLUMN LAYOUT - AI Avatar + Content ===== */
/* Professional design with branding on left, consent on right */

/* Ensure grid layout works correctly */
.cookie-modal-content {
    display: grid !important;
    grid-template-columns: 35% 65%;
    gap: 0;
    min-height: 550px;
}

/* AI Avatar section styling - always visible */
.ai-avatar-section {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Cookie content takes remaining space */
.cookie-content-section {
    width: 100%;
    border-radius: 0 32px 32px 0;
}

/* AI Avatar Section (LEFT) */
.ai-avatar-section {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    border-radius: 32px 0 0 32px;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Futuristic AI Hologram - OPTIMIZED: Removed float animation */
.ai-hologram {
    position: relative;
    width: 200px;
    height: 200px;
    /* REMOVED: animation: float 6s - reduces GPU usage */
}

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

/* Logo Container (replaces AI Face) - OPTIMIZED */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    /* REMOVED: animation pulse-glow and backdrop-filter for performance */
    display: flex;
    align-items: center;
    justify-content: center;
}

.insightlearn-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.4));
    /* REMOVED: animation logo-pulse - static is better for performance */
}

/* AI Face Container (kept for backwards compatibility) */
.ai-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6C3CE1 0%, #5a2dc7 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.8),
                inset 0 0 30px rgba(255, 255, 255, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 60px rgba(102, 126, 234, 0.8),
                    inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 100px rgba(102, 126, 234, 1),
                    inset 0 0 50px rgba(255, 255, 255, 0.5);
    }
}

/* AI Eyes */
.ai-eye {
    position: absolute;
    top: 40%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: blink 4s ease-in-out infinite;
}

.ai-eye.left { left: 30%; }
.ai-eye.right { right: 30%; }

@keyframes blink {
    0%, 48%, 52%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0; transform: scaleY(0.1); }
}

/* AI Mouth */
.ai-mouth {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    animation: talk 2s ease-in-out infinite;
}

@keyframes talk {
    0%, 100% { width: 40px; }
    50% { width: 50px; }
}

/* Particle Effects - OPTIMIZED: Hidden for performance */
.ai-particles {
    display: none; /* Hidden - particles cause GPU strain */
}

.particle {
    display: none;
}

/* Scanning Line Effect - OPTIMIZED: Disabled */
.ai-scan-line {
    display: none; /* Disabled - continuous animation is expensive */
}

/* AI Glow Background - OPTIMIZED: Static instead of animated */
.ai-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(102, 126, 234, 0.2) 0%,
        transparent 70%);
    /* REMOVED: animation glow-pulse for performance */
    pointer-events: none;
}

/* AI Name - OPTIMIZED: Static color */
.ai-name {
    font-size: 32px;
    font-weight: 700;
    color: #6C3CE1;
    margin-top: 32px;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
    /* REMOVED: animation color-shift for performance */
}

/* AI Subtitle */
.ai-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* AI Message */
.ai-message {
    margin-top: 24px;
    text-align: center;
}

.ai-message p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ai-message-secondary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-style: italic;
}

/* Cookie Content Section (RIGHT) */
.cookie-content-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(60px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Header Section - OPTIMIZED */
.cookie-wall-header {
    padding: 48px 48px 32px 48px;
    text-align: center;
    background: linear-gradient(135deg, #6C3CE1 0%, #5a2dc7 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* REMOVED: .cookie-wall-header::before ripple animation for performance */

.cookie-icon-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.cookie-icon {
    font-size: 80px;
    display: inline-block;
    /* REMOVED: bounce animation for performance - static icon */
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.cookie-wall-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.cookie-wall-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Body Section */
.cookie-wall-body {
    padding: 40px 48px;
    overflow-y: auto;
    flex: 1;
    background: #fafbfc;
}

.cookie-simple-info {
    text-align: center;
}

.cookie-description {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 0 32px 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.cookie-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.cookie-feature {
    background: white;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
}

.cookie-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
    border-color: #6C3CE1;
}

.feature-icon {
    font-size: 36px;
    display: block;
}

.feature-text {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

/* Detailed Settings */
.cookie-settings-content {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar */
.cookie-settings-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-settings-content::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
}

.cookie-settings-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6C3CE1 0%, #5a2dc7 100%);
    border-radius: 4px;
}

.cookie-settings-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.settings-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 28px 0;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-category {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: #6C3CE1;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.12);
}

.cookie-category.necessary {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.cookie-category.analytics {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.cookie-category.marketing {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}

.cookie-category.functional {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.category-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.category-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #111827;
}

.category-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.category-details {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

.category-details p {
    margin: 8px 0;
}

.category-details strong {
    color: #374151;
    font-weight: 600;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 32px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .switch-slider {
    background: linear-gradient(135deg, #6C3CE1 0%, #5a2dc7 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.cookie-switch input:checked + .switch-slider::before {
    transform: translateX(24px);
}

.cookie-switch.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-switch.disabled .switch-slider {
    cursor: not-allowed;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Footer Section */
.cookie-wall-footer {
    padding: 32px 48px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.cookie-links {
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.cookie-link {
    color: #6C3CE1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.cookie-link:hover {
    color: #5a2dc7;
    text-decoration: underline;
}

.link-separator {
    margin: 0 12px;
    color: #d1d5db;
}

/* Action Buttons */
.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-actions button {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

.btn-icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

/* FontAwesome icon specific styling for buttons */
.cookie-actions button i.btn-icon {
    font-style: normal;
}

/* Reject All - BRIGHT YELLOW X on dark circle - DANGER/WARNING feel */
.btn-cookie-reject .btn-icon {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fbbf24;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4), inset 0 0 8px rgba(251, 191, 36, 0.2);
    border: 2px solid #fbbf24;
}
.btn-cookie-reject:hover .btn-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a2e;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
}

/* Cookie Settings - BRIGHT CYAN gear on dark - TECH feel */
.btn-cookie-settings .btn-icon {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #22d3ee;
    font-size: 16px;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4), inset 0 0 8px rgba(34, 211, 238, 0.2);
    border: 2px solid #22d3ee;
}
.btn-cookie-settings:hover .btn-icon {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: #1a1a2e;
    animation: spin-gear 0.5s ease;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
}
@keyframes spin-gear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

/* Accept All - BRIGHT GREEN checkmark - SUCCESS feel */
.btn-cookie-accept .btn-icon,
.btn-cookie-accept-all-settings .btn-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.9), 0 0 50px rgba(16, 185, 129, 0.5); }
}
.btn-cookie-accept:hover .btn-icon,
.btn-cookie-accept-all-settings:hover .btn-icon {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(16, 185, 129, 1), 0 0 60px rgba(16, 185, 129, 0.6);
}

/* Back button - PURPLE arrow */
.btn-cookie-back .btn-icon {
    background: linear-gradient(135deg, #6C3CE1 0%, #5a2dc7 100%);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-cookie-back:hover .btn-icon {
    transform: translateX(-4px) scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.7);
}

/* Save button - ORANGE disk icon */
.btn-cookie-save .btn-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-cookie-save:hover .btn-icon {
    animation: pulse-save 0.4s ease;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.7);
}
@keyframes pulse-save {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Accept All Button - Primary Gradient */
.btn-cookie-accept,
.btn-cookie-accept-all-settings {
    background: linear-gradient(135deg, #6C3CE1 0%, #5a2dc7 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-cookie-accept::before,
.btn-cookie-accept-all-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-cookie-accept:hover,
.btn-cookie-accept-all-settings:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-cookie-accept:hover::before,
.btn-cookie-accept-all-settings:hover::before {
    left: 100%;
}

.btn-cookie-accept:active,
.btn-cookie-accept-all-settings:active {
    transform: translateY(-1px) scale(0.98);
}

/* Reject All Button - GDPR Compliant (EQUAL Prominence) */
.btn-cookie-reject {
    /* Vibrant red gradient - EQUAL visual weight as Accept All */
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;  /* High contrast white text - SAME as Accept All */
    border: none;  /* Clean modern design - SAME as Accept All */
    font-weight: 700;  /* SAME as Accept All */
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);  /* SAME strength as Accept All */
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover (SAME as Accept All) */
.btn-cookie-reject::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-cookie-reject:hover::before {
    left: 100%;
}

.btn-cookie-reject:hover {
    transform: translateY(-3px) scale(1.02);  /* SAME lift as Accept All */
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5);  /* Enhanced shadow on hover */
}

.btn-cookie-reject:active {
    transform: translateY(-1px) scale(0.98);
}

/* Focus state for accessibility */
.btn-cookie-reject:focus {
    outline: 3px solid rgba(239, 68, 68, 0.5);
    outline-offset: 2px;
}

/* Settings Button - Secondary */
.btn-cookie-settings {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(240, 147, 251, 0.3);
}

.btn-cookie-settings:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(240, 147, 251, 0.4);
}

/* Save Button */
.btn-cookie-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-cookie-save:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
}

/* Back Button */
.btn-cookie-back {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-cookie-back:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Responsive Design - TABLET */
@media (max-width: 768px) {
    .cookie-wall-overlay {
        padding: 12px;
    }

    .cookie-wall-container {
        max-width: 100%;
    }

    .cookie-wall-modal {
        border-radius: 16px;
        max-height: 95vh;
    }

    /* Stack AI avatar on top for mobile */
    .cookie-modal-content {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }

    /* Show AI section in compact mode on tablet/mobile */
    .ai-avatar-section {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        padding: 16px 20px;
        border-radius: 16px 16px 0 0;
        min-height: auto;
        gap: 12px;
    }

    /* Compact hologram for mobile */
    .ai-hologram {
        width: 60px;
        height: 60px;
    }

    .ai-glow {
        width: 70px;
        height: 70px;
    }

    .logo-container {
        width: 50px;
        height: 50px;
    }

    .insightlearn-logo {
        width: 36px;
        height: 36px;
    }

    /* Compact text for mobile */
    .ai-name {
        font-size: 18px;
        margin-top: 0;
    }

    .ai-subtitle {
        font-size: 11px;
        display: none; /* Hide subtitle on mobile */
    }

    .ai-message {
        display: none; /* Hide message on mobile - save space */
    }

    .cookie-content-section {
        padding: 0;
    }

    .cookie-wall-header {
        padding: 20px 16px 16px 16px;
    }

    .cookie-icon {
        font-size: 48px;
    }

    .cookie-wall-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .cookie-wall-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }

    .cookie-wall-body {
        padding: 16px;
    }

    .cookie-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .cookie-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 16px;
    }

    .cookie-feature {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .feature-icon {
        font-size: 24px;
    }

    .feature-text {
        font-size: 11px;
    }

    .cookie-category {
        padding: 16px;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-wall-footer {
        padding: 16px;
    }

    .cookie-links {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .cookie-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-actions button {
        width: 100%;
        min-width: auto;
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-icon {
        width: 24px;
        height: 24px;
        font-size: 14px !important;
        margin-right: 6px;
    }
}

/* MOBILE SMALL - Ultra compact */
@media (max-width: 480px) {
    .cookie-wall-overlay {
        padding: 8px;
        align-items: flex-end; /* Align to bottom like a sheet */
    }

    .cookie-wall-modal {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    /* Compact AI section for small mobile */
    .ai-avatar-section {
        display: flex !important;
        flex-direction: row !important;
        padding: 12px 16px;
        gap: 10px;
    }

    .ai-hologram {
        width: 45px;
        height: 45px;
    }

    .ai-glow {
        width: 55px;
        height: 55px;
    }

    .logo-container {
        width: 38px;
        height: 38px;
    }

    .insightlearn-logo {
        width: 28px;
        height: 28px;
    }

    .ai-name {
        font-size: 15px;
    }

    .cookie-wall-header {
        padding: 16px 12px 12px 12px;
    }

    .cookie-icon-wrapper {
        margin-bottom: 12px;
    }

    .cookie-icon {
        font-size: 36px;
    }

    .cookie-wall-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .cookie-wall-subtitle {
        font-size: 12px;
    }

    .cookie-wall-body {
        padding: 12px;
    }

    .cookie-description {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .cookie-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-top: 12px;
    }

    .cookie-feature {
        padding: 10px 6px;
        border-radius: 8px;
    }

    .feature-icon {
        font-size: 20px;
    }

    .feature-text {
        font-size: 10px;
    }

    .cookie-wall-footer {
        padding: 12px;
    }

    .cookie-links {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .link-separator {
        margin: 0 6px;
    }

    .cookie-actions {
        gap: 6px;
    }

    .cookie-actions button {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
        font-size: 12px !important;
        margin-right: 4px;
    }

    .category-icon {
        font-size: 24px;
    }

    .category-title {
        font-size: 14px;
    }

    .category-description {
        font-size: 12px;
    }
}

/* VERY SMALL MOBILE (iPhone SE, etc) */
@media (max-width: 375px) {
    .cookie-wall-modal {
        max-height: 90vh;
    }

    /* Very compact AI section for tiny screens */
    .ai-avatar-section {
        display: flex !important;
        flex-direction: row !important;
        padding: 10px 12px;
        gap: 8px;
    }

    .ai-hologram {
        width: 36px;
        height: 36px;
    }

    .ai-glow {
        width: 44px;
        height: 44px;
    }

    .logo-container {
        width: 30px;
        height: 30px;
    }

    .insightlearn-logo {
        width: 22px;
        height: 22px;
    }

    .ai-name {
        font-size: 13px;
    }

    .cookie-wall-header {
        padding: 12px 10px 10px 10px;
    }

    .cookie-icon {
        font-size: 28px;
    }

    .cookie-wall-title {
        font-size: 16px;
    }

    .cookie-wall-subtitle {
        font-size: 11px;
    }

    .cookie-wall-body {
        padding: 10px;
    }

    .cookie-description {
        font-size: 11px;
    }

    .cookie-features-grid {
        gap: 4px;
    }

    .cookie-feature {
        padding: 8px 4px;
    }

    .feature-icon {
        font-size: 18px;
    }

    .feature-text {
        font-size: 9px;
    }

    .cookie-wall-footer {
        padding: 10px;
    }

    .cookie-actions button {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Print styles - hide cookie wall when printing */
@media print {
    .cookie-wall-overlay {
        display: none !important;
    }
}

/* Accessibility - Focus states */
.cookie-actions button:focus,
.cookie-switch:focus-within,
.cookie-link:focus {
    outline: 3px solid #6C3CE1;
    outline-offset: 2px;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-wall-overlay,
    .cookie-wall-modal,
    .cookie-icon,
    .cookie-wall-header::before,
    .ai-hologram,
    .ai-face,
    .ai-eye,
    .ai-mouth,
    .particle,
    .ai-scan-line,
    .ai-glow,
    .ai-name {
        animation: none !important;
    }

    .cookie-actions button,
    .cookie-feature,
    .switch-slider,
    .switch-slider::before {
        transition: none !important;
    }
}

/* ===== POLICY MODAL STYLES ===== */
.policy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);  /* Darker dimming */
    backdrop-filter: none;  /* Remove duplicate blur - GDPR wall already has it */
    z-index: 999999;  /* SAME as GDPR wall - layers properly */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;  /* More breathing room */
    animation: fadeIn 0.3s ease-out;
}

.policy-modal-overlay.show {
    display: flex;
}

.policy-modal {
    background: white;
    border-radius: 20px;  /* Softer corners */
    max-width: 700px;  /* Slightly narrower for better readability */
    min-width: 320px;  /* Prevent collapse on mobile */
    width: 100%;
    max-height: 85vh;  /* More space around modal */
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);  /* Stronger shadow */
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);  /* Smooth bounce */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-modal-header {
    padding: 24px 32px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #6C3CE1 0%, #5a2dc7 100%);
    border-radius: 16px 16px 0 0;
}

.policy-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.policy-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-size: 24px;
    line-height: 1;
}

.policy-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.policy-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    color: #374151;
    line-height: 1.8;
}

.policy-modal-body h2 {
    color: #5a2dc7;
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.policy-modal-body h3 {
    color: #6C3CE1;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.policy-modal-body p {
    margin-bottom: 16px;
}

.policy-modal-body ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.policy-modal-body li {
    margin-bottom: 8px;
}

.policy-scroll-indicator {
    padding: 16px 32px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-top: 2px solid #e5e7eb;
    text-align: center;
    color: #5a2dc7;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.policy-scroll-indicator.hidden {
    display: none;
}

.policy-scroll-icon {
    animation: bounce 2s infinite;
}

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

.policy-modal-footer {
    padding: 24px 32px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.policy-close-btn {
    background: linear-gradient(135deg, #6C3CE1 0%, #5a2dc7 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.policy-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.policy-close-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsive - Improved UX */
@media (max-width: 768px) {
    .policy-modal-overlay {
        padding: 20px;
    }

    .policy-modal {
        max-height: 80vh;  /* More space around modal on mobile */
        border-radius: 16px;
    }

    .policy-modal-header {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }

    .policy-modal-body {
        padding: 24px;
    }

    .policy-scroll-indicator {
        padding: 16px;
    }

    .policy-modal-footer {
        padding: 20px;
        border-radius: 0 0 16px 16px;
    }

    .policy-modal-title {
        font-size: 20px;
    }

    .policy-close-btn {
        width: 100%;  /* Full-width button on mobile - easier to tap */
        padding: 16px;
    }

    .policy-modal-close {
        width: 44px;  /* Larger tap target */
        height: 44px;
    }
}

/* ========================================
   COOKIE CONSENT WALL - RESPONSIVE DESIGN
   Device-compatible layout for all screens
   ======================================== */

/* Tablet landscape and small desktop (1024px - 1200px) */
@media (max-width: 1200px) {
    .cookie-wall-container {
        max-width: 95%;
    }

    .cookie-modal-content {
        grid-template-columns: 35% 65%;
        min-height: 500px;
    }

    .ai-avatar-section {
        padding: 30px 20px;
    }

    .ai-hologram {
        width: 100px;
        height: 100px;
    }

    .logo-container {
        width: 60px;
        height: 60px;
    }

    .insightlearn-logo {
        width: 40px;
        height: 40px;
    }
}

/* Tablet portrait (768px - 1024px) */
@media (max-width: 1024px) {
    .cookie-wall-modal {
        border-radius: 24px;
        max-height: 85vh;
    }

    .cookie-modal-content {
        grid-template-columns: 30% 70%;
        min-height: 450px;
    }

    .ai-avatar-section {
        padding: 25px 15px;
    }

    .ai-name {
        font-size: 18px;
    }

    .ai-subtitle {
        font-size: 12px;
    }

    .ai-message {
        font-size: 12px;
        padding: 10px 12px;
    }

    .ai-message-secondary {
        font-size: 11px;
    }

    .cookie-content-section {
        padding: 25px;
    }

    .cookie-title {
        font-size: 22px;
    }

    .cookie-description {
        font-size: 14px;
    }

    .action-buttons {
        gap: 10px;
    }

    .btn-reject,
    .btn-settings,
    .btn-accept {
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* Mobile landscape and large phones (576px - 768px) */
@media (max-width: 768px) {
    .cookie-wall-overlay {
        padding: 15px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .cookie-wall-modal {
        border-radius: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Switch to single column layout on mobile */
    .cookie-modal-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        min-height: auto;
    }

    /* AI Avatar section becomes horizontal header on mobile */
    .ai-avatar-section {
        flex-direction: row !important;
        padding: 20px;
        gap: 15px;
        border-radius: 20px 20px 0 0;
        min-height: auto;
        align-items: center;
        justify-content: flex-start;
    }

    .ai-hologram {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .ai-glow {
        width: 70px;
        height: 70px;
    }

    .logo-container {
        width: 40px;
        height: 40px;
    }

    .insightlearn-logo {
        width: 28px;
        height: 28px;
    }

    /* Text content inline on mobile */
    .ai-avatar-section .ai-name,
    .ai-avatar-section .ai-subtitle {
        display: inline;
    }

    .ai-name {
        font-size: 16px;
        margin-bottom: 0;
    }

    .ai-subtitle {
        font-size: 11px;
        margin-bottom: 0;
        margin-left: 8px;
    }

    /* Hide message on small mobile - save space */
    .ai-message {
        display: none;
    }

    /* Cookie content section full width */
    .cookie-content-section {
        padding: 20px;
        border-radius: 0 0 20px 20px;
    }

    .cookie-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .cookie-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* Stack buttons vertically on mobile */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-reject,
    .btn-settings,
    .btn-accept {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
        min-height: 48px; /* Touch-friendly */
    }

    .btn-accept {
        order: -1; /* Move accept to top on mobile */
    }

    .powered-by {
        font-size: 10px;
        margin-top: 15px;
    }
}

/* Small mobile phones (max-width: 480px) */
@media (max-width: 480px) {
    .cookie-wall-overlay {
        padding: 10px;
        padding-top: 20px;
    }

    .cookie-wall-modal {
        border-radius: 16px;
    }

    .ai-avatar-section {
        padding: 15px;
        gap: 12px;
    }

    .ai-hologram {
        width: 50px;
        height: 50px;
    }

    .ai-glow {
        width: 60px;
        height: 60px;
    }

    .logo-container {
        width: 35px;
        height: 35px;
    }

    .insightlearn-logo {
        width: 24px;
        height: 24px;
    }

    .ai-name {
        font-size: 14px;
    }

    .ai-subtitle {
        font-size: 10px;
    }

    .cookie-content-section {
        padding: 15px;
    }

    .cookie-title {
        font-size: 18px;
    }

    .cookie-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .btn-reject,
    .btn-settings,
    .btn-accept {
        padding: 12px 16px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* Extra small devices (max-width: 360px) */
@media (max-width: 360px) {
    .cookie-wall-overlay {
        padding: 8px;
    }

    .ai-avatar-section {
        padding: 12px;
    }

    .ai-hologram {
        width: 40px;
        height: 40px;
    }

    .ai-name {
        font-size: 13px;
    }

    .cookie-content-section {
        padding: 12px;
    }

    .cookie-title {
        font-size: 16px;
    }

    .cookie-description {
        font-size: 11px;
    }

    .btn-reject,
    .btn-settings,
    .btn-accept {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Landscape orientation fix for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .cookie-wall-overlay {
        align-items: flex-start;
        padding: 10px;
    }

    .cookie-wall-modal {
        max-height: 95vh;
    }

    .cookie-modal-content {
        display: grid !important;
        grid-template-columns: 25% 75% !important;
        min-height: auto;
    }

    .ai-avatar-section {
        flex-direction: column !important;
        padding: 15px 10px;
    }

    .ai-hologram {
        width: 50px;
        height: 50px;
    }

    .ai-message {
        display: none;
    }

    .cookie-content-section {
        padding: 15px;
    }

    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn-reject,
    .btn-settings,
    .btn-accept {
        flex: 1;
        min-width: 100px;
    }
}
/* ========================================
   GDPR Cookie Consent - COMPACT MODE
   B2B Enterprise Clean Design
   v2.2.10-dev (2025-12-24)

   Purpose: Hides AI avatar section for cleaner,
   faster loading GDPR consent wall
   ======================================== */

/* Override: Single column layout (no AI avatar) */
.cookie-modal-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: auto !important;
}

/* HIDE the AI Avatar section completely */
.ai-avatar-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Cookie content takes full width */
.cookie-content-section {
    width: 100% !important;
    border-radius: 32px !important;
    flex: 1;
}

/* Compact modal size */
.cookie-wall-modal {
    max-width: 700px !important;
    margin: auto;
    min-height: auto !important;
}

/* Improved header styling */
.cookie-wall-header {
    padding: 32px 40px 24px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 32px 32px 0 0;
}

.cookie-icon-wrapper {
    margin-bottom: 16px;
}

.cookie-icon {
    font-size: 56px;
    display: block;
}

.cookie-wall-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.cookie-wall-subtitle {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

/* Body styling */
.cookie-wall-body {
    padding: 24px 40px;
}

.cookie-simple-info {
    max-width: 100%;
}

.cookie-description {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

/* Features grid - 2x2 layout */
.cookie-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cookie-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.cookie-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

/* Footer styling */
.cookie-wall-footer {
    padding: 24px 40px 32px 40px;
    background: #fafafa;
    border-radius: 0 0 32px 32px;
    border-top: 1px solid #e5e7eb;
}

.cookie-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cookie-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #6C3CE1;
    text-decoration: underline;
}

.link-separator {
    color: #d1d5db;
}

/* Button container */
.cookie-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* All buttons base style */
.cookie-actions button {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    min-width: 160px;
}

/* Button icons */
.btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Accept button - Primary */
.btn-cookie-accept,
.btn-cookie-accept-all-settings {
    background: linear-gradient(135deg, #6C3CE1 0%, #5a2dc7 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.btn-cookie-accept:hover,
.btn-cookie-accept-all-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
}

/* Reject button - Equal prominence (GDPR compliant) */
.btn-cookie-reject {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.btn-cookie-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45);
}

/* Settings button - Secondary */
.btn-cookie-settings {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-cookie-settings:hover {
    background: #f9fafb;
    border-color: #d1d5db !important;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
    .cookie-wall-modal {
        max-width: 100% !important;
        border-radius: 24px !important;
        margin: 16px;
    }

    .cookie-wall-header {
        padding: 24px 24px 20px 24px;
        border-radius: 24px 24px 0 0;
    }

    .cookie-icon {
        font-size: 48px;
    }

    .cookie-wall-title {
        font-size: 24px;
    }

    .cookie-wall-subtitle {
        font-size: 14px;
    }

    .cookie-wall-body {
        padding: 20px 24px;
    }

    .cookie-description {
        font-size: 14px;
    }

    .cookie-features-grid {
        gap: 12px;
    }

    .cookie-feature {
        padding: 16px 12px;
    }

    .feature-icon {
        font-size: 28px;
    }

    .feature-text {
        font-size: 12px;
    }

    .cookie-wall-footer {
        padding: 20px 24px 24px 24px;
        border-radius: 0 0 24px 24px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions button {
        width: 100%;
        min-width: auto;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .cookie-wall-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .cookie-wall-modal {
        border-radius: 20px 20px 0 0 !important;
        margin: 0;
        max-height: 90vh;
    }

    .cookie-content-section {
        border-radius: 20px 20px 0 0 !important;
    }

    .cookie-wall-header {
        padding: 20px 20px 16px 20px;
        border-radius: 20px 20px 0 0;
    }

    .cookie-icon {
        font-size: 40px;
    }

    .cookie-wall-title {
        font-size: 20px;
    }

    .cookie-wall-subtitle {
        font-size: 13px;
    }

    .cookie-wall-body {
        padding: 16px 20px;
    }

    .cookie-description {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .cookie-features-grid {
        gap: 8px;
    }

    .cookie-feature {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .feature-icon {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .feature-text {
        font-size: 11px;
    }

    .cookie-wall-footer {
        padding: 16px 20px 20px 20px;
        border-radius: 0;
    }

    .cookie-links {
        margin-bottom: 16px;
    }

    .cookie-link {
        font-size: 12px;
    }

    .cookie-actions button {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .cookie-wall-title {
        font-size: 18px;
    }

    .cookie-wall-subtitle {
        font-size: 12px;
    }

    .cookie-description {
        font-size: 12px;
    }

    .cookie-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-text {
        font-size: 10px;
    }
}

/* Accessibility: Focus states */
.cookie-actions button:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-actions button {
        transition: none;
    }

    .cookie-feature {
        transition: none;
    }

    .cookie-wall-modal {
        animation: none;
    }
}
/* ========================================
   GDPR Cookie Banner - Udemy/Coursera Style
   v2.3.7-dev (2025-12-24)

   Professional bottom banner
   Mobile-first responsive
   GDPR/CCPA compliant
   ======================================== */

/* ===== CRITICAL: Hidden state ===== */
.cookie-wall-overlay.hidden,
.cookie-wall-overlay[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

#static-cookie-wall.hidden,
#static-cookie-wall[style*="display: none"] {
    display: none !important;
}

/* ===== OVERLAY: Bottom banner positioning ===== */
.cookie-wall-overlay:not(.hidden) {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    z-index: 999999 !important;
    display: block !important;
    animation: gdprSlideUp 0.3s ease-out forwards;
}

/* ===== CONTAINER ===== */
.cookie-wall-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== MODAL: White bar with shadow ===== */
.cookie-wall-modal {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12) !important;
    border-top: 3px solid #6C3CE1 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== CONTENT: Horizontal layout ===== */
.cookie-modal-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 14px 24px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    min-height: auto !important;
}

/* ===== HIDE: AI Avatar section ===== */
.ai-avatar-section {
    display: none !important;
}

/* ===== COOKIE CONTENT SECTION ===== */
.cookie-content-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 20px !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ===== HEADER: Logo + Title ===== */
.cookie-wall-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Logo wrapper */
.cookie-logo-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Logo image */
.gdpr-logo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Hide old cookie icon */
.cookie-icon-wrapper,
.cookie-icon {
    display: none !important;
}

/* Title */
.cookie-wall-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1c1d1f !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
}

/* Hide subtitle in compact mode */
.cookie-wall-subtitle {
    display: none !important;
}

/* ===== BODY: Hidden in compact mode ===== */
.cookie-wall-body {
    display: none !important;
}

.cookie-simple-info,
.cookie-description,
.cookie-features-grid {
    display: none !important;
}

/* ===== FOOTER: Buttons ===== */
.cookie-wall-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Hide policy links in compact mode */
.cookie-links {
    display: none !important;
}

/* Buttons container */
.cookie-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

/* ===== BUTTON BASE STYLES ===== */
.cookie-actions button {
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    min-height: 36px !important;
}

/* Hide button icons */
.btn-icon {
    display: none !important;
}

/* Cookie Settings - Light gray */
.btn-cookie-settings {
    background: #f7f9fa !important;
    color: #5c5c5c !important;
    border: 1px solid #d1d7dc !important;
}

.btn-cookie-settings:hover {
    background: #e8eaed !important;
    color: #1c1d1f !important;
}

/* Reject All - Outlined (GDPR: equal prominence) */
.btn-cookie-reject {
    background: #ffffff !important;
    color: #1c1d1f !important;
    border: 1.5px solid #1c1d1f !important;
}

.btn-cookie-reject:hover {
    background: #1c1d1f !important;
    color: #ffffff !important;
}

/* Accept All - Primary purple */
.btn-cookie-accept,
.btn-cookie-accept-all-settings {
    background: #6C3CE1 !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-cookie-accept:hover,
.btn-cookie-accept-all-settings:hover {
    background: #5a2dc7 !important;
}

/* Focus states */
.cookie-actions button:focus {
    outline: 2px solid #6C3CE1 !important;
    outline-offset: 2px !important;
}

/* ===== SETTINGS OPEN: Restore full modal when Cookie Settings is clicked ===== */
.cookie-wall-overlay.settings-open {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.98) 0%,
        rgba(118, 75, 162, 0.98) 50%,
        rgba(240, 147, 251, 0.98) 100%) !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.cookie-wall-overlay.settings-open .cookie-wall-container {
    max-width: 900px !important;
    width: 100% !important;
}

.cookie-wall-overlay.settings-open .cookie-wall-modal {
    background: #1a1a2e !important;
    border-radius: 24px !important;
    border-top: none !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5) !important;
    max-height: 90vh !important;
    overflow: hidden !important;
}

.cookie-wall-overlay.settings-open .cookie-modal-content {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    min-height: auto !important;
}

.cookie-wall-overlay.settings-open .ai-avatar-section {
    display: none !important;
}

.cookie-wall-overlay.settings-open .cookie-content-section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
}

.cookie-wall-overlay.settings-open .cookie-wall-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 24px 32px 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cookie-wall-overlay.settings-open .cookie-wall-title {
    color: #ffffff !important;
    font-size: 18px !important;
    margin: 0 !important;
}

.cookie-wall-overlay.settings-open .cookie-wall-subtitle {
    display: none !important;
}

.cookie-wall-overlay.settings-open .cookie-wall-body {
    display: block !important;
    padding: 24px 32px !important;
    overflow-y: auto !important;
    max-height: 50vh !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.cookie-wall-overlay.settings-open .cookie-settings-content {
    display: block !important;
    max-height: none !important;
}

.cookie-wall-overlay.settings-open .cookie-categories {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.cookie-wall-overlay.settings-open .cookie-category {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.cookie-wall-overlay.settings-open .cookie-category:hover {
    border-color: #6C3CE1 !important;
    box-shadow: 0 4px 12px rgba(164, 53, 240, 0.2) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.cookie-wall-overlay.settings-open .category-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.cookie-wall-overlay.settings-open .category-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.cookie-wall-overlay.settings-open .category-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.cookie-wall-overlay.settings-open .category-description {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 2px 0 0 !important;
}

.cookie-wall-overlay.settings-open .category-details {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.6 !important;
}

.cookie-wall-overlay.settings-open .category-details p {
    margin: 4px 0 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.cookie-wall-overlay.settings-open .category-details strong {
    color: rgba(255, 255, 255, 0.85) !important;
}

.cookie-wall-overlay.settings-open .settings-intro {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 0 20px !important;
    line-height: 1.6 !important;
}

.cookie-wall-overlay.settings-open .cookie-wall-footer {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 32px 24px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cookie-wall-overlay.settings-open .cookie-links {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
}

.cookie-wall-overlay.settings-open .cookie-actions {
    justify-content: center !important;
}

.cookie-wall-overlay.settings-open .btn-icon {
    display: inline-flex !important;
}

/* Toggle switch styling for settings view */
.cookie-wall-overlay.settings-open .cookie-switch {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.cookie-wall-overlay.settings-open .cookie-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.cookie-wall-overlay.settings-open .switch-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #d1d5db !important;
    border-radius: 24px !important;
    transition: 0.3s !important;
}

.cookie-wall-overlay.settings-open .switch-slider::before {
    content: "" !important;
    position: absolute !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    border-radius: 50% !important;
    transition: 0.3s !important;
}

.cookie-wall-overlay.settings-open .cookie-switch input:checked + .switch-slider {
    background-color: #6C3CE1 !important;
}

.cookie-wall-overlay.settings-open .cookie-switch input:checked + .switch-slider::before {
    transform: translateX(20px) !important;
}

.cookie-wall-overlay.settings-open .cookie-switch.disabled .switch-slider {
    background-color: #6C3CE1 !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.cookie-wall-overlay.settings-open .cookie-switch.disabled input:checked + .switch-slider::before {
    transform: translateX(20px) !important;
}

/* Mobile responsive for settings open */
@media (max-width: 768px) {
    .cookie-wall-overlay.settings-open .cookie-wall-body {
        padding: 16px !important;
        max-height: 45vh !important;
    }

    .cookie-wall-overlay.settings-open .cookie-wall-header {
        padding: 16px !important;
    }

    .cookie-wall-overlay.settings-open .cookie-wall-footer {
        padding: 12px 16px 16px !important;
    }

    .cookie-wall-overlay.settings-open .cookie-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .cookie-wall-overlay.settings-open .cookie-actions button {
        width: 100% !important;
    }
}

/* ===== ANIMATION ===== */
@keyframes gdprSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== MOBILE: Stack vertically ===== */
@media (max-width: 768px) {
    .cookie-modal-content {
        flex-direction: column !important;
        align-items: center !important;
        padding: 16px !important;
        gap: 12px !important;
    }

    .cookie-content-section {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .cookie-wall-header {
        justify-content: center !important;
    }

    .cookie-wall-footer {
        width: 100% !important;
    }

    .cookie-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .cookie-actions button {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .cookie-modal-content {
        padding: 14px 12px !important;
    }

    .gdpr-logo {
        width: 32px !important;
        height: 32px !important;
    }

    .cookie-wall-title {
        font-size: 14px !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .cookie-wall-overlay:not(.hidden) {
        animation: none !important;
    }

    .cookie-actions button {
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    .cookie-wall-modal {
        border-top-width: 4px !important;
    }

    .btn-cookie-reject {
        border-width: 2px !important;
    }
}
