/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.verification-modal {
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-backdrop.active .verification-modal {
    transform: scale(1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

/* Icon Section */
.modal-icon {
    text-align: center;
    margin-bottom: 25px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.2));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

.icon-wrapper i {
    font-size: 36px;
    color: #22c55e;
}

/* Modal Title */
.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.email-highlight {
    color: #22c55e;
    font-weight: 600;
}

/* OTP Input Container */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.otp-input {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s;
    caret-color: #22c55e;
}

.otp-input:focus {
    outline: none;
    border-color: #22c55e;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.otp-input:not(:placeholder-shown) {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

/* Verify Button */
.btn-verify {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10b981, #22c55e);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.btn-verify:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-verify:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Resend Section */
.resend-section {
    text-align: center;
    font-size: 14px;
    color: #888;
}

.resend-text {
    margin-bottom: 10px;
}

.timer {
    color: #22c55e;
    font-weight: 600;
}

.btn-resend {
    background: transparent;
    border: none;
    color: #22c55e;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-resend:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.1);
    text-decoration: underline;
}

.btn-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Demo Button (for testing) */
.demo-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981, #22c55e);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Custom SweetAlert Styling */
.swal2-popup {
    background: rgba(20, 20, 20, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
}

.swal2-title {
    color: #fff !important;
}

.swal2-html-container {
    color: #b0b0b0 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #10b981, #22c55e) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
}

@media (max-width: 480px) {
    .verification-modal {
        padding: 30px 20px;
    }

    .otp-container {
        gap: 8px;
    }

    .otp-input {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .modal-title {
        font-size: 22px;
    }
}