.cookie-consent {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: auto;
    width: min(460px, calc(100vw - 32px));
    z-index: 99999;
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    padding: 15px 20px;
    animation: slideUp 0.3s ease;
    contain: layout style paint;
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-icon {
    font-size: 2rem;
    color: #f59e0b;
    flex-shrink: 0;
}
.cookie-text {
    flex: 1;
    min-width: 250px;
}
.cookie-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 5px;
}
.cookie-text p {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.5;
    margin: 0;
}
.cookie-text a {
    color: var(--primary-light, #6a8891);
    text-decoration: underline;
}
.cookie-text a:hover {
    color: var(--primary, #536f76);
}
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.cookie-btn.accept {
    background: linear-gradient(135deg, #536f76 0%, #3d5259 100%);
    color: #fff;
}
.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83,111,118,0.4);
}
.cookie-btn.decline {
    background: transparent;
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
    color: var(--text-secondary, #94a3b8);
}
.cookie-btn.decline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-secondary, #94a3b8);
}

/* Light mode */
[data-theme="light"] .cookie-consent {
    background: #fff;
    border-color: #e2e8f0;
}
[data-theme="light"] .cookie-text h4 {
    color: #1e293b;
}
[data-theme="light"] .cookie-text p {
    color: #64748b;
}
[data-theme="light"] .cookie-btn.decline {
    border-color: #e2e8f0;
    color: #64748b;
}
[data-theme="light"] .cookie-btn.decline:hover {
    background: #f1f5f9;
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        padding: 15px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-icon {
        font-size: 1.5rem;
    }
    .cookie-text h4 {
        font-size: 0.95rem;
    }
    .cookie-text p {
        font-size: 0.8rem;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    .cookie-btn {
        flex: 1;
        padding: 10px 15px;
    }
}


@keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

