/* ============================================
   DIGISAPIENCE LIGHTBOX POPUP
   Semi-Blur Background
   ============================================ */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    max-width: 500px;
    width: 90%;
    background: #1a1a1a;
    border-radius: 24px;
    border: 1px solid #f8be14;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
}

.lightbox-overlay.active .lightbox-container {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(248, 190, 20, 0.15);
    border: none;
    color: #f8be14;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(248, 190, 20, 0.3);
    transform: rotate(90deg);
}

.lightbox-header {
    background: #141414;
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #f8be14;
}

.lightbox-icon {
    width: 80px;
    height: 80px;
    background: rgba(248, 190, 20, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.lightbox-icon i {
    font-size: 2.5rem;
}

.lightbox-icon.success i { color: #10b981; }
.lightbox-icon.error i { color: #ef4444; }
.lightbox-icon.warning i { color: #f59e0b; }
.lightbox-icon.info i { color: #f8be14; }

.lightbox-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f8be14;
    margin: 0 0 5px;
}

.lightbox-header p {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
}

.lightbox-body {
    padding: 30px;
    text-align: center;
}

.lightbox-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.lightbox-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(248, 190, 20, 0.2);
    border-top-color: #f8be14;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #ccc;
    font-size: 0.9rem;
}

.lightbox-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid #2a2a2a;
}

.lightbox-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #f8be14, #ffd966);
    border: none;
    border-radius: 40px;
    color: #0a0a0a;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(248, 190, 20, 0.3);
}

.auto-close-timer {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #888;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 20px;
    pointer-events: none;
}

@media (max-width: 600px) {
    .lightbox-container { width: 92%; }
    .lightbox-header { padding: 20px; }
    .lightbox-header h3 { font-size: 1.3rem; }
    .lightbox-body { padding: 20px; }
    .lightbox-footer { padding: 15px 20px 20px; }
    .lightbox-btn { padding: 10px 20px; font-size: 0.9rem; }
    .lightbox-icon { width: 60px; height: 60px; }
    .lightbox-icon i { font-size: 2rem; }
}