/* Custom Popup Styles - Matches Anishift Theme */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-popup-content {
    background: #202125;
    /* Dark Theme Bg */
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    overflow-y: auto;
    max-height: 80vh;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -webkit-overflow-scrolling: touch;
}

.custom-popup-content::-webkit-scrollbar {
    display: none;
}

.custom-popup-content {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.custom-popup-overlay.active .custom-popup-content {
    transform: scale(1);
}

.custom-popup-content h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.custom-popup-content p {
    margin: 0 0 20px 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

/* Input for Prompt */
.custom-popup-input-group {
    margin-bottom: 20px;
    display: none;
    /* Hidden by default */
}

.custom-popup-input-group.active {
    display: block;
}

.custom-popup-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.custom-popup-input:focus {
    border-color: #1e90ff;
}

/* Buttons */
.custom-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.custom-btn:active {
    transform: scale(0.95);
}

.custom-popup-actions .btn-primary {
    background: #1e90ff;
    color: #fff;
    flex: 1;
}

.custom-popup-actions .btn-primary:hover {
    background: #0b7dda;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.custom-popup-actions .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    flex: 1;
    display: none;
    /* Hidden by default */
}

.btn-secondary.active {
    display: block;
}

.custom-popup-actions .btn-secondary:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Icons */
.popup-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
}

.icon-success {
    color: #28a745;
}

.icon-error {
    color: #ff3c1f;
}

.icon-info {
    color: #1e90ff;
}

.icon-warning {
    color: #ffc107;
}