/* Modern Cookie Popup Design - Complete Redesign */
:root {
    --accent-color: #FD9B14;
    --accent-hover: #DE2106;
    --background-light: #FFFFFF;
    --background-dark: #1A1A1A;
    --background-medium: #F8F9FA;
    --text-dark: #1E1E24;
    --text-light: #6C757D;
    --text-muted: #ADB5BD;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 25px rgba(0,0,0,0.08);
    --shadow-hover: 0 25px 80px rgba(0,0,0,0.15), 0 12px 35px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    --gradient-secondary: linear-gradient(135deg, #FD9B14 0%, #FFB347 50%, #DE2106 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Keyframes */
@keyframes slideInUp {
    from { 
        transform: translateY(60px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

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

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

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

@keyframes checkmark {
    0% { 
        opacity: 0; 
        transform: scale(0.3) rotate(-45deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) rotate(-45deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(-45deg); 
    }
}

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

/* Backdrop */
.cookie-popup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999999;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-out;
}

/* Main Popup Container */
.cookie-popup-container .cookie-popup {
    background: var(--background-light);
    color: var(--text-dark);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    max-width: 700px;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(253, 155, 20, 0.1);
}

/* Animated border effect */
.cookie-popup-container .cookie-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

.cookie-popup-container .cookie-popup:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    transition: var(--transition);
}

/* Header Section */
.cookie-panel {
    background: var(--gradient-primary);
    padding: 32px 40px 24px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.cookie-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.cookie-popup .cookie-panel ul {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
    border-bottom: none;
    width: 100%;
    position: relative;
    z-index: 2;
}

.cookie-popup .cookie-panel ul li.consent-panel {
    display: none;
}

.cookie-popup .cookie-panel ul li.details-panel {
    flex: unset;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: white;
    transition: var(--transition-fast);
    border: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 16px;
    font-size: 28px;
    font-family: "DM Sans", sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



.cookie-popup .cookie-panel ul li.details-panel.active {
    color: white;
    background: transparent;
    border-color: transparent;
}

.cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
    font-size: 48px;
    margin-right: 0;
    color: white;
    transition: var(--transition-fast);
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}



.cookie-popup .cookie-panel ul li.details-panel .subtitle {
    display: none;
}

/* Content Area */
.cookie-content.cookie-mid {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-grow: 1;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Cookie Categories Display */
.cookie-cookies-display {
    padding: 40px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--background-medium);
    scroll-behavior: smooth;
    flex-grow: 1;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--background-light);
}

/* Custom scrollbar */
.cookie-cookies-display::-webkit-scrollbar {
    width: 6px;
    background: var(--background-medium);
    border-radius: 3px;
}

.cookie-cookies-display::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

.cookie-cookies-display > p {
    margin-bottom: 32px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    text-align: left;
    font-weight: 400;
}

.cookie-cookies-display > p b {
    color: var(--text-dark);
    font-weight: 600;
}

/* Cookie Category Cards */
.cookie-category {
    background: var(--background-medium);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 20px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition-fast);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.cookie-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: var(--transition-fast);
}

.cookie-category:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: rgba(253, 155, 20, 0.2);
    background: white;
}

.cookie-category:hover::before {
    transform: scaleY(1);
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main .cookie-cat-name {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
}

.cookie-cookies-display .cookie-category .cat-describe {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

/* Modern Checkbox Design */
.cookie-cookies-display .cookie-category .choose {
    font-size: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    position: relative;
    background: white;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cookie-cookies-display .cookie-category .choose::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: scale(0);
    transition: var(--transition-fast);
    border-radius: 4px;
}

.cookie-cookies-display .cookie-category .choose:hover:not(.always-on) {
    border-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(253, 155, 20, 0.3);
    transform: scale(1.1);
}

.cookie-cookies-display .cookie-category .choose.active {
    border-color: var(--accent-color);
}

.cookie-cookies-display .cookie-category .choose.active::before {
    transform: scale(1);
}

.cookie-cookies-display .cookie-category .choose.active::after {
    content: "✓";
    font-size: 14px;
    color: white;
    position: absolute;
    font-weight: bold;
    animation: checkmark 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-cookies-display .cookie-category .choose.always-on {
    border-color: var(--accent-color);
    background: var(--accent-color);
    cursor: not-allowed;
    opacity: 0.8;
}

.cookie-cookies-display .cookie-category .choose.always-on::after {
    content: "✓";
    font-size: 14px;
    color: white;
    position: absolute;
    font-weight: bold;
}

/* Button Area */
.cookie-decide {
    width: 100%;
    padding: 32px 40px;
    background: var(--background-medium);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cookie-decide .pre-cookie-box {
    padding: 0;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    display: none;
    text-align: center;
    max-width: 500px;
}

.cookie-decide .pre-cookie-box h4 {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 18px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
}

.cookie-decide .pre-cookie-box p {
    margin-bottom: 12px;
}

.cookie-decide .pre-cookie-box p:last-child {
    margin-bottom: 0;
}

.cookie-decide .pre-cookie-box a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--accent-color);
}

.cookie-decide .pre-cookie-box a:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.cookie-decide ul {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    flex-direction: row;
}

.cookie-decide ul li.allow-selection {
    display: none;
}






/* Responsive Design */
@media (max-width: 768px) {
    .cookie-popup-container {
        padding: 16px;
    }
    
    .cookie-popup-container .cookie-popup {
        border-radius: 20px;
        max-width: 100%;
    }
    
    .cookie-panel {
        padding: 24px 24px 20px;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel {
        font-size: 24px;
        gap: 12px;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
        font-size: 36px;
    }
    
    .cookie-cookies-display {
        padding: 24px;
        max-height: 300px;
    }
    
    .cookie-cookies-display > p {
        margin-bottom: 24px;
        font-size: 15px;
    }
    
    .cookie-category {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .cookie-cookies-display .cookie-category .data .data-resume .cat-main .cookie-cat-name {
        font-size: 15px;
    }
    
    .cookie-cookies-display .cookie-category .choose {
        width: 20px;
        height: 20px;
    }
    
    .cookie-cookies-display .cookie-category .choose.active::after,
    .cookie-cookies-display .cookie-category .choose.always-on::after {
        font-size: 12px;
    }
    
    .cookie-decide {
        padding: 24px;
        gap: 20px;
    }
    
    .cookie-decide ul {
        gap: 12px;
    }
    
    
}

@media (max-width: 480px) {
    .cookie-popup-container .cookie-popup {
        border-radius: 16px;
    }
    
    .cookie-panel {
        padding: 20px 20px 16px;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel {
        font-size: 20px;
        gap: 10px;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
        font-size: 32px;
    }
    
    .cookie-cookies-display {
        padding: 20px;
        max-height: 250px;
    }
    
    .cookie-cookies-display .cookie-category .data .data-resume .cat-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    

}