/* Sandbox Global Banner */
.sandbox-banner {
    background-color: var(--fp-blue);
    color: white;
    padding: 8px 27px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sandbox-banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.sandbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sandbox-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 11px;
}

.sandbox-info-icon {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--fp-transition);
}

.sandbox-info-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sandbox-message {
    font-weight: 500;
    text-align: center;
    flex-grow: 1;
    margin: 0 20px;
}

.sandbox-switch-btn {
    background: white;
    color: var(--fp-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: var(--fp-transition);
    white-space: nowrap;
}

.sandbox-switch-btn:hover {
    background: #f8f9fa;
    color: var(--fp-blue-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Gen Z Style Popup */
#sandbox-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sandbox-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 550px;
    background: var(--fp-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 40px;
    z-index: 2001;
    display: none;
    opacity: 0;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sandbox-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.sandbox-modal h3 {
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 24px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.sandbox-feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.sandbox-feature-icon {
    background: var(--fp-blue-soft);
    color: var(--fp-blue);
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 20px;
}

.sandbox-feature-content h4 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
}

.sandbox-feature-content p {
    font-size: 14px;
    color: var(--fp-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.sandbox-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--fp-transition);
}

.sandbox-modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .sandbox-message {
        display: none;
    }

    .sandbox-modal {
        padding: 30px;
        width: 95%;
    }
}

/* Sandbox Intro Text (Minimalist Style) */
.sandbox-hr {
    height: 2px !important;
    background-color: #3366FF !important;
    margin: 1.5rem auto !important;
    max-width: 400px;
    opacity: 1 !important;
    display: block !important;
    clear: both !important;
}

.sandbox-intro-simple {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0.25rem;
    animation: fadeIn 1s ease-out;
    margin-top: 10px;
}

.sandbox-intro-simple p {
    font-size: 1rem;
    line-height: 1.4;
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .sandbox-intro-simple p {
        white-space: normal;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Switch-to-Live Modal ──────────────────────────────────── */
#switch-live-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 2100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.switch-live-modal {
    max-width: 620px !important;
    z-index: 2101 !important;
    padding: 36px !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    border: 1px solid #e8ecf0 !important;
    box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.2) !important;
}

.slm-header {
    text-align: center;
    margin-bottom: 20px;
}

.slm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--fp-blue), #4f8ef7);
    border-radius: 16px;
    color: #fff;
    font-size: 24px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(51, 102, 255, 0.35);
}

.switch-live-modal h3 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 8px !important;
}

.slm-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto;
}

.slm-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 20px 0;
}

.slm-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slm-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

.switch-live-select {
    width: 100%;
}

/* Force Select2 to look great inside the modal */
.switch-live-modal .select2-container {
    width: 100% !important;
}

.switch-live-modal .select2-container--default .select2-selection--multiple {
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 6px 8px;
    min-height: 44px;
    background: #f9fafb;
    transition: border-color 0.2s;
}

.switch-live-modal .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--fp-blue);
    box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.12);
}

.switch-live-modal .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--fp-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.switch-live-modal .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    float: left !important;
    padding-right: 0 !important;
    line-height: 1 !important;
}

.slm-hint {
    font-size: 12.5px;
    color: #9ca3af;
    background: #f9fafb;
    border-left: 3px solid var(--fp-blue);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 4px 0 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
}

.slm-hint i {
    color: var(--fp-blue);
    margin-top: 2px;
    flex-shrink: 0;
}

.slm-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

.slm-cancel-btn {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.slm-cancel-btn:hover {
    background: #e5e7eb;
}

.slm-confirm-btn {
    background: linear-gradient(135deg, var(--fp-blue), #4f8ef7);
    color: #fff !important;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(51, 102, 255, 0.35);
}

.slm-confirm-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .switch-live-modal {
        padding: 24px !important;
    }

    .slm-footer {
        flex-direction: column;
    }

    .slm-cancel-btn,
    .slm-confirm-btn {
        width: 100%;
        justify-content: center;
    }
}