:root {
    --cookie-bg-light: rgba(255, 255, 255, 0.98);
    --cookie-text-light: #2d3748;
    --cookie-btn-bg-light: #4a90e2;
    --cookie-btn-text-light: #ffffff;
    --cookie-link-light: #3182ce;
    --cookie-border-light: rgba(226, 232, 240, 0.8);
    
    --cookie-bg-dark: rgba(26, 32, 44, 0.98);
    --cookie-text-dark: #f7fafc;
    --cookie-btn-bg-dark: #4299e1;
    --cookie-btn-text-dark: #ffffff;
    --cookie-link-dark: #63b3ed;
    --cookie-border-dark: rgba(45, 55, 72, 0.8);
}

.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1.75rem 2rem;
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 9999;
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-consent.light-mode {
    background-color: var(--cookie-bg-light);
    color: var(--cookie-text-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--cookie-border-light);
}

.cookie-consent.dark-mode {
    background-color: var(--cookie-bg-dark);
    color: var(--cookie-text-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--cookie-border-dark);
}

.cookie-content {
    flex: 1;
    max-width: 800px;
}

.cookie-content p {
    margin: 0;
    font-weight: 400;
}

.cookie-content a {
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
}

.cookie-content a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cookie-content a:hover::after {
    transform: scaleX(1);
}

.cookie-consent.light-mode .cookie-content a {
    color: var(--cookie-link-light);
}

.cookie-consent.light-mode .cookie-content a::after {
    background-color: var(--cookie-link-light);
}

.cookie-consent.dark-mode .cookie-content a {
    color: var(--cookie-link-dark);
}

.cookie-consent.dark-mode .cookie-content a::after {
    background-color: var(--cookie-link-dark);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cookie-btn:hover::before {
    width: 300%;
    height: 300%;
}

.cookie-btn.accept {
    background-color: var(--cookie-btn-bg-light);
    color: var(--cookie-btn-text-light);
}

.cookie-btn.reject {
    background-color: transparent;
    border: 2px solid currentColor;
}

.cookie-consent.light-mode .cookie-btn.reject {
    color: var(--cookie-text-light);
}

.cookie-consent.dark-mode .cookie-btn.reject {
    color: var(--cookie-text-dark);
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 1rem;
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        width: 100%;
        max-width: 300px;
    }
}