/* ===== Banner ===== */
.sc-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    width: calc(100% - 40px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04);
    z-index: 999998;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    animation: scSlideUp .4s ease;
}

@keyframes scSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sc-banner-inner {
    padding: 20px 22px;
}

.sc-banner-icon {
    margin-bottom: 10px;
}

.sc-banner-text p {
    font-size: 13px;
    line-height: 1.65;
    color: #4a5568;
    margin: 0 0 8px;
}

.sc-banner-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.sc-banner-links a {
    font-size: 12px;
    color: #38A0B7;
    text-decoration: none;
    font-weight: 600;
}
.sc-banner-links a:hover {
    text-decoration: underline;
}
.sc-banner-links span {
    color: #cbd5e0;
    font-size: 10px;
}

.sc-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.sc-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    font-family: inherit;
    white-space: nowrap;
}

.sc-btn-accept {
    background: #38A0B7;
    color: #fff;
    flex: 1;
}
.sc-btn-accept:hover {
    background: #2d8a9e;
}

.sc-btn-reject {
    background: #f1f5f9;
    color: #475569;
    flex: 1;
}
.sc-btn-reject:hover {
    background: #e2e8f0;
}

.sc-btn-settings {
    background: transparent;
    color: #38A0B7;
    border: 1.5px solid #38A0B7;
    flex-basis: 100%;
    text-align: center;
}
.sc-btn-settings:hover {
    background: rgba(56,160,183,.06);
}

.sc-btn-accept-outline {
    background: transparent;
    color: #38A0B7;
    border: 1.5px solid #38A0B7;
}
.sc-btn-accept-outline:hover {
    background: rgba(56,160,183,.06);
}

/* ===== Overlay ===== */
.sc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 999998;
}
.sc-overlay.active {
    display: block;
}

/* ===== Settings Panel ===== */
.sc-settings {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    max-width: 540px;
    width: 92%;
    max-height: 85vh;
    z-index: 999999;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-shadow: 0 24px 80px rgba(0,0,0,.18);
    overflow: hidden;
    flex-direction: column;
}
.sc-settings.active {
    display: flex;
    animation: scFadeIn .25s ease;
}

@keyframes scFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.sc-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.sc-settings-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.sc-settings-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color .2s;
}
.sc-settings-close:hover {
    color: #4a5568;
}

.sc-settings-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.sc-settings-intro {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 20px;
}

/* ===== Toggle Items ===== */
.sc-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sc-toggle-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #eef2f6;
}

.sc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-toggle-info strong {
    font-size: 14px;
    color: #1e293b;
}

.sc-always-on {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #38A0B7;
    background: rgba(56,160,183,.1);
    padding: 2px 10px;
    border-radius: 50px;
}

.sc-toggle-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.65;
    margin: 8px 0 0;
}

/* ===== Toggle Switch ===== */
.sc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.sc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: .25s;
}

.sc-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .25s;
}

.sc-switch input:checked + .sc-slider {
    background: #38A0B7;
}

.sc-switch input:checked + .sc-slider::before {
    transform: translateX(20px);
}

/* ===== Settings Footer ===== */
.sc-settings-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.sc-settings-footer .sc-btn {
    flex: 1;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
    .sc-banner {
        bottom: 12px;
        left: 12px;
        width: calc(100% - 24px);
        max-width: none;
    }
    .sc-banner-inner {
        padding: 16px;
    }
    .sc-banner-actions {
        flex-direction: column;
    }
    .sc-btn {
        padding: 12px 16px;
        text-align: center;
    }
    .sc-settings {
        width: 96%;
        max-height: 90vh;
    }
    .sc-settings-body {
        padding: 16px;
    }
}