/* Semsem OTP Verification - shared styles */
.semsem-otp-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.semsem-otp-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    direction: rtl;
    text-align: right;
    animation: semsemSlideIn 0.25s ease;
}

@keyframes semsemSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.semsem-otp-header {
    background: linear-gradient(135deg, #ff6b00, #ff9a00);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.semsem-otp-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.semsem-otp-icon { font-size: 28px; }

.semsem-otp-body { padding: 24px; }

.semsem-otp-phone-label {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.semsem-otp-phone-label strong {
    color: #222;
    font-size: 16px;
    display: block;
    margin-top: 4px;
}

.semsem-otp-error {
    background: #fff0f0;
    border: 1px solid #ffb3b3;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.semsem-otp-success {
    background: #f0fff4;
    border: 1px solid #b3ffcc;
    color: #1a7a3d;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.semsem-otp-input-wrap { margin-bottom: 16px; }

.semsem-otp-input {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 8px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s;
    direction: ltr;
}

.semsem-otp-input:focus {
    outline: none;
    border-color: #ff6b00;
}

.semsem-otp-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, background 0.2s;
}

.semsem-otp-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.semsem-otp-btn-primary {
    background: linear-gradient(135deg, #ff6b00, #ff9a00);
    color: #fff;
}

.semsem-otp-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #e05c00, #e08800);
}

.semsem-otp-btn-link {
    background: transparent;
    color: #ff6b00;
    border: 1px solid #ff6b00;
    font-weight: 600;
    font-size: 13px;
}

.semsem-otp-btn-link:hover:not(:disabled) { background: #fff4eb; }

.semsem-otp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: semsemSpin 0.7s linear infinite;
}

.semsem-otp-btn-link .semsem-otp-spinner {
    border-color: rgba(255, 107, 0, 0.3);
    border-top-color: #ff6b00;
}

@keyframes semsemSpin {
    to { transform: rotate(360deg); }
}

/* Registration modal wrapper */
#semsem-reg-otp-modal .semsem-otp-backdrop {
    position: fixed;
}
