/* ═══════════════════════════════════════ COOKIE BANNER ═══════════════════════════════════════ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a1a;
    color: #fff;
    padding: 16px 24px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
    display: none;
}
#cookie-banner .cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}
#cookie-banner .cookie-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    min-width: 200px;
}
#cookie-banner .cookie-text a {
    color: #fff;
    text-decoration: underline;
}
#cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
#cookie-manage {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    white-space: nowrap;
}
#cookie-manage:hover { color: #fff; }
#cookie-reject {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 3px;
    white-space: nowrap;
}
#cookie-reject:hover { background: rgba(255,255,255,0.1); }
#cookie-accept {
    background: #fff;
    border: 1px solid #fff;
    color: #1a1a1a;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    white-space: nowrap;
}
#cookie-accept:hover { background: #e8e8e8; }

/* ═══════════════════════════════════════ COOKIE MODAL ═══════════════════════════════════════ */
#cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}
#cookie-modal.open { display: flex; }
#cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
#cookie-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}
.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}
.cookie-modal-header span {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
#cookie-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
#cookie-modal-close:hover { color: #fff; }
.cookie-modal-body {
    padding: 20px 22px;
    flex: 1;
}
.cookie-modal-body > p {
    font-size: 13px;
    color: #555;
    margin: 0 0 18px;
    line-height: 1.6;
}
.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #eee;
}
.cookie-category-info { flex: 1; }
.cookie-category-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.cookie-category-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}
.cookie-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    justify-content: flex-end;
}
#cookie-save {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
    padding: 9px 18px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 3px;
}
#cookie-save:hover { border-color: #999; }
#cookie-accept-all {
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    color: #fff;
    padding: 9px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
}
#cookie-accept-all:hover { background: #333; }

/* ═══════════════════════════════════════ TOGGLE SWITCH ═══════════════════════════════════════ */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background .25s;
}
.cookie-toggle-slider:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: #22c55e; }
.cookie-toggle input:checked + .cookie-toggle-slider:before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.7; cursor: not-allowed; }

/* ═══════════════════════════════════════ SETTINGS BUTTON ═══════════════════════════════════════ */
#cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0.55;
    transition: opacity 0.2s;
    line-height: 1;
}
#cookie-settings-btn:hover { opacity: 1; }

/* ═══════════════════════════════════════ RESPONSIVE ═══════════════════════════════════════ */
@media (max-width: 600px) {
    #cookie-banner .cookie-content { flex-direction: column; align-items: flex-start; gap: 12px; }
    #cookie-banner .cookie-buttons { width: 100%; flex-direction: column; }
    #cookie-accept, #cookie-reject, #cookie-manage { width: 100%; text-align: center; }
    .cookie-modal-footer { flex-direction: column; }
    #cookie-save, #cookie-accept-all { width: 100%; text-align: center; }
}
