/* SilkBar CMP - Compliant with Italian Garante Privacy 2021 & GDPR Art. 7 */
.silkbar-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 960px;
    background: rgba(13, 13, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(151, 184, 255, 0.2);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(122, 240, 255, 0.1);
    z-index: 99999;
    color: #E0D6DE;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: none;
    animation: silkbarFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes silkbarFadeIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.silkbar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.silkbar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}
.silkbar-close-btn {
    background: transparent;
    border: none;
    color: #9E9AA7;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
}
.silkbar-close-btn:hover { color: #FFFFFF; }
.silkbar-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #C0B8C8;
    margin-bottom: 20px;
}
.silkbar-text a {
    color: #97B8FF;
    text-decoration: underline;
}
.silkbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}
.silkbar-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.silkbar-btn-accept {
    background: linear-gradient(135deg, #B380FF 0%, #7AF0FF 100%);
    color: #07070C;
    border: none;
}
.silkbar-btn-accept:hover {
    box-shadow: 0 0 15px rgba(122, 240, 255, 0.5);
    transform: translateY(-1px);
}
.silkbar-btn-reject {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.silkbar-btn-reject:hover {
    background: rgba(255, 255, 255, 0.12);
}
.silkbar-btn-prefs {
    background: transparent;
    color: #97B8FF;
    border: 1px solid rgba(151, 184, 255, 0.3);
}
.silkbar-btn-prefs:hover {
    background: rgba(151, 184, 255, 0.1);
}

/* Modal preferenze */
.silkbar-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.silkbar-modal {
    background: #0D0D17;
    border: 1px solid rgba(151, 184, 255, 0.2);
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
}
.silkbar-modal h3 {
    font-size: 1.25rem;
    color: #FFFFFF;
    margin-bottom: 12px;
}
.silkbar-pref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.silkbar-pref-info {
    max-width: 78%;
}
.silkbar-pref-title {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.95rem;
}
.silkbar-pref-desc {
    font-size: 0.85rem;
    color: #9E9AA7;
    margin-top: 2px;
}
/* Toggle Switch */
.silkbar-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.silkbar-switch input { opacity: 0; width: 0; height: 0; }
.silkbar-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #2D2D3D;
    transition: .3s;
    border-radius: 24px;
}
.silkbar-slider:before {
    position: absolute; content: ""; height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .silkbar-slider {
    background: linear-gradient(135deg, #B380FF 0%, #7AF0FF 100%);
}
input:checked + .silkbar-slider:before {
    transform: translateX(20px);
    background-color: #07070C;
}
input:disabled + .silkbar-slider {
    opacity: 0.6;
    cursor: not-allowed;
}
