/* Shared styles for the WhatsApp OTP widget (dark theme pages) */
.otp-row { display: flex; gap: 8px; align-items: stretch; }
.otp-row > input { flex: 1; min-width: 0; }
.otp-row > button { flex-shrink: 0; white-space: nowrap; }

.otp-btn {
    background: #25D366; color: #0b1a10; border: none; border-radius: 10px;
    padding: 0 16px; min-height: 40px; font-size: 14px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: opacity .2s, transform .15s;
}
.otp-btn:hover { opacity: .9; transform: translateY(-1px); }
.otp-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.otp-code-input { letter-spacing: 6px; font-weight: 700; text-align: center; font-size: 18px !important; }

.otp-links { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; }
.otp-link { background: none; border: none; padding: 0; color: #3B7BFF; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
.otp-link:hover { color: #fff; }
.otp-link.otp-disabled, .otp-link:disabled { color: #8892AA; cursor: default; }
.otp-locked { pointer-events: none; opacity: .45; }
[data-otp-code][readonly] { opacity: .7; }

.otp-msg { margin-top: 8px; font-size: 13px; line-height: 1.4; border-radius: 8px; padding: 8px 10px; }
.otp-msg-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.otp-msg-success { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.3);  color: #86efac; }
.otp-msg-info    { background: rgba(37,99,235,.12);  border: 1px solid rgba(37,99,235,.3);  color: #93c5fd; }

.otp-verified-badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700;
    color: #86efac; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3);
    border-radius: 999px; padding: 2px 10px;
}

.otp-spinner {
    display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: otp-spin .65s linear infinite; vertical-align: -2px;
}
@keyframes otp-spin { to { transform: rotate(360deg); } }
