.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    padding: 2rem;
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.cookie-banner-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    animation: cookieBounce 2s ease-in-out infinite;
}

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

.cookie-banner-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.cookie-banner-text p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie i {
    width: 18px;
    height: 18px;
}

.btn-customize {
    background: rgba(71, 85, 105, 0.5);
    color: #cbd5e1;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-customize:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-accept-all {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.btn-accept-all:hover {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.show {
    display: block;
    opacity: 1;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 24px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cookie-modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-close-modal {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    background: rgba(71, 85, 105, 0.2);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.btn-close-modal i {
    width: 20px;
    height: 20px;
}

.cookie-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cookie-intro {
    margin-bottom: 2rem;
}

.cookie-intro p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-category {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

.cookie-category-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-category-icon.necessary {
    background: linear-gradient(135deg, #10b981, #059669);
}

.cookie-category-icon.analytics {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.cookie-category-icon.marketing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.cookie-category-icon.preferences {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.cookie-category-icon i {
    color: white;
    width: 24px;
    height: 24px;
}

.cookie-category-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.cookie-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-count {
    font-size: 0.8rem;
    color: #94a3b8;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(71, 85, 105, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.3);
    transition: all 0.3s ease;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-color: rgba(139, 92, 246, 0.5);
}

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

.cookie-toggle input:disabled + .toggle-slider {
    cursor: not-allowed;
}

.cookie-category-description {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid rgba(71, 85, 105, 0.2);
}

.cookie-category-description p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 1.5rem 0;
}

.cookie-benefits {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.cookie-benefits h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a855f7;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-benefits li {
    font-size: 0.875rem;
    color: #cbd5e1;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cookie-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.5);
}

.btn-reject-all {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-reject-all:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.btn-save-preferences {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-save-preferences:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-accept-all-modal {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.btn-accept-all-modal:hover {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.cookie-toast {
    position: fixed;
    bottom: -100px;
    right: 2rem;
    background: rgba(15, 23, 42, 0.98);
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10002;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-toast.show {
    bottom: 2rem;
}

.toast-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.toast-icon i {
    width: 18px;
    height: 18px;
}

.cookie-toast span {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cookie-banner-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto;
    }

    .cookie-banner-text {
        text-align: center;
    }

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

    .btn-cookie {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-modal-header {
        padding: 1.5rem;
    }

    .cookie-modal-header h2 {
        font-size: 1.25rem;
    }

    .cookie-modal-body {
        padding: 1.5rem;
    }

    .cookie-modal-footer {
        flex-direction: column;
        padding: 1rem 1.5rem;
    }

    .cookie-modal-footer .btn-cookie {
        width: 100%;
    }

    .cookie-category-header {
        padding: 1rem;
    }

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

    .cookie-category-description {
        padding: 0 1rem 1rem;
    }

    .cookie-toast {
        right: 1rem;
        left: 1rem;
    }

    .cookie-toast.show {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1.5rem;
    }

    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }

    .cookie-banner-text p {
        font-size: 0.875rem;
    }

    .btn-cookie {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .cookie-modal-header h2 {
        font-size: 1.1rem;
    }

    .cookie-intro p {
        font-size: 0.875rem;
    }

    .cookie-category-info h3 {
        font-size: 1rem;
    }
}

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

.cookie-modal-body::-webkit-scrollbar-track {
    background: rgba(71, 85, 105, 0.2);
    border-radius: 4px;
}

.cookie-modal-body::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

.cookie-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

.cookie-settings-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cookie-settings-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

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

.cookie-settings-btn i {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .cookie-settings-btn {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        left: 1rem;
    }

    .cookie-settings-btn i {
        width: 20px;
        height: 20px;
    }
}
