﻿/* ========================================================
   Phone Verification - Noon Simulation (100% Match)
   ======================================================== */

:root {
  --noon-yellow: #F59E0B;
  --noon-text: #1a1a1a;
  --noon-border: #e0e0e0;
  --whatsapp-green: #25d366;
  --whatsapp-light: #e8faf0;
  --sms-gray: #4b5563;
  --sms-light: #f3f4f6;
  --danger-red: #ff3333;
}

/* Backdrop Dimming */
.phone-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.phone-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Window */
.phone-modal {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 24px 28px;
  text-align: right;
  direction: rtl;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-backdrop.active .phone-modal {
  opacity: 1;
  transform: scale(1);
}

/* Shake Animation on Wrong OTP */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: translateX(-6px); }
  25%, 50%, 75% { transform: translateX(6px); }
}

.phone-modal.shake {
  animation: shake 0.4s ease-in-out;
}

/* Header */
.phone-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 12px;
}

.phone-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--noon-text);
  margin: 0;
}

.phone-modal-close {
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}

.phone-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.phone-modal-close .material-icons-outlined {
  font-size: 22px;
}

/* Subtitle */
.phone-modal-subtitle {
  font-size: 0.85rem;
  color: #777;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.otp-target-phone {
  font-weight: 800;
  color: #1a1a1a;
  direction: ltr;
  display: inline-block;
  margin-right: 4px;
}

/* Panels */
.phone-modal-panel {
  display: none;
}

.phone-modal-panel.active {
  display: block;
}

/* Input Row */
.phone-input-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--noon-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #ffffff;
  transition: border-color 0.15s;
}

.phone-input-row:focus-within {
  border-color: #1a1a1a;
}

.phone-input-row.invalid {
  border-color: var(--danger-red) !important;
}

/* Country Dropdown Wrapper */
.country-select-wrap {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #f9f9f9;
  border-left: 1px solid var(--noon-border);
  position: relative;
}

.country-select-wrap select {
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: #333;
  outline: none;
  cursor: pointer;
  padding-left: 8px;
  direction: ltr;
}

/* Phone input field */
.phone-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 14px;
  width: 100%;
  direction: ltr;
  text-align: left;
}

.phone-modal-input::placeholder {
  direction: rtl;
  text-align: right;
  font-weight: 600;
  font-size: 0.88rem;
  color: #aaa;
}

/* Error message label */
.phone-error-msg {
  color: var(--danger-red);
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: -6px;
  margin-bottom: 14px;
  display: block;
  min-height: 16px;
}

.phone-warning-msg {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Channel selection layout */
.channel-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 8px;
}

.channel-options {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.channel-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1.5px solid var(--noon-border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  background: #ffffff;
  transition: all 0.15s;
  user-select: none;
}

.channel-card input[type="radio"] {
  display: none;
}

.channel-card:hover {
  border-color: #888;
}

.channel-card.active {
  border-color: #1a1a1a;
  background: #f7f7f7;
}

.channel-card.active.whatsapp {
  border-color: var(--whatsapp-green);
  background: var(--whatsapp-light);
  color: #128c7e;
}

.channel-card svg {
  width: 20px;
  height: 20px;
}

/* Primary buttons */
.phone-primary-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--noon-yellow);
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s;
  text-align: center;
}

.phone-primary-btn:hover {
  opacity: 0.9;
}

.phone-primary-btn:disabled {
  background: #f2f2f2 !important;
  color: #b2b2b2 !important;
  cursor: not-allowed;
  opacity: 1 !important;
}

/* OTP grid */
.otp-inputs-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  direction: ltr;
  margin-bottom: 20px;
}

.otp-digit-input {
  width: 44px;
  height: 48px;
  border: 1.5px solid var(--noon-border);
  border-radius: 8px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--noon-text);
  outline: none;
  transition: border-color 0.15s;
}

.otp-digit-input:focus {
  border-color: #1a1a1a;
}

/* Countdown Timer */
.otp-timer-container {
  font-size: 0.85rem;
  font-weight: 700;
  color: #666;
  text-align: center;
  margin-bottom: 16px;
}

.otp-time-val {
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  direction: ltr;
  margin-left: 2px;
}

/* Channel Indicator Badge inside OTP */
.otp-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.otp-channel-badge.whatsapp {
  background: var(--whatsapp-light);
  color: #128c7e;
}

.otp-channel-badge.sms {
  background: var(--sms-light);
  color: var(--sms-gray);
}

.otp-channel-badge svg {
  width: 14px;
  height: 14px;
}

/* Resend buttons */
.otp-resend-container {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.otp-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 12px;
  border: 1.5px solid var(--noon-border);
  border-radius: 20px;
  background: #ffffff;
  cursor: pointer;
  color: #333;
  transition: all 0.15s;
  user-select: none;
}

.otp-resend-btn:hover {
  border-color: #1a1a1a;
  background: #f9f9f9;
}

.otp-resend-btn.whatsapp:hover {
  border-color: var(--whatsapp-green);
  background: var(--whatsapp-light);
}

.otp-resend-btn svg {
  width: 16px;
  height: 16px;
}

/* Attempts left counter */
.otp-attempts-left {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--danger-red);
  text-align: center;
  margin-bottom: 16px;
  min-height: 16px;
}

/* Back Link Action */
.otp-back-container {
  text-align: center;
  margin-top: 14px;
}

.otp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #666;
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s;
}

.otp-back-btn:hover {
  color: #1a1a1a;
}

/* Success Animation checkmark */
.success-panel {
  text-align: center;
  padding: 16px 0;
}

.success-checkmark-svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: block;
}

.success-checkmark-svg circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-svg path {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #10b981;
  stroke-width: 3;
  fill: none;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

/* Readonly Phone Card in Edit Account Page */
.readonly-phone-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--noon-border);
  border-radius: 8px;
  background: #f9f9f9;
  direction: rtl;
}

.readonly-phone-card .phone-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.readonly-phone-card .phone-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--noon-text);
  direction: ltr;
  display: inline-block;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.phone-badge.verified {
  background: var(--whatsapp-light);
  color: #10b981;
}

.phone-badge.unverified {
  background: #fee2e2;
  color: #ef4444;
}

.phone-badge .material-icons-outlined {
  font-size: 14px;
}

.phone-edit-trigger {
  color: #6D28D9;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.phone-edit-trigger:hover {
  background: #f0f4ff;
}

/* Spin loader utility */
.btn-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 6px;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Compatibility & Responsive adaptation */
@media (max-width: 480px) {
  .phone-modal {
    width: 92%;
    padding: 20px 22px;
  }
  .otp-digit-input {
    width: 38px;
    height: 44px;
    font-size: 1.15rem;
  }
}

/* ΓöÇΓöÇΓöÇ WhatsApp Help Trigger Button ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.otp-whatsapp-help-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin: 10px 0 4px;
  padding: 7px 12px;
  background: transparent;
  border: 1.5px dashed #e53e3e;
  border-radius: 8px;
  color: #e53e3e;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
  text-align: center;
}
.otp-whatsapp-help-trigger:hover {
  background: rgba(229, 62, 62, 0.08);
}
.otp-whatsapp-help-trigger .material-icons-outlined {
  font-size: 15px;
  vertical-align: middle;
  animation: pulse-warn 1.8s ease-in-out infinite;
}
@keyframes pulse-warn {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ΓöÇΓöÇΓöÇ WhatsApp Help Overlay & Popup ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.wa-help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}
.wa-help-popup {
  position: relative;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 28px 24px 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  text-align: center;
  animation: slideUp 0.25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.wa-help-close {
  position: absolute;
  top: 12px;
  left: 14px;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  cursor: pointer;
  transition: background 0.15s;
}
.wa-help-close:hover { background: rgba(255,255,255,0.14); }
.wa-help-close .material-icons-outlined { font-size: 18px; }
.wa-help-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.wa-help-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f5;
  margin: 0 0 8px;
}
.wa-help-desc {
  font-size: 0.83rem;
  color: #a0aec0;
  margin: 0 0 14px;
  line-height: 1.55;
}
.wa-help-msg-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: right;
}
.wa-help-msg-label {
  font-size: 0.75rem;
  color: #718096;
  white-space: nowrap;
}
.wa-help-code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #68d391;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  direction: ltr;
  text-align: center;
}
.wa-copy-btn {
  background: rgba(104,211,145,0.15);
  border: 1px solid rgba(104,211,145,0.3);
  border-radius: 6px;
  color: #68d391;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: inherit;
}
.wa-copy-btn:hover { background: rgba(104,211,145,0.25); }
.wa-help-step {
  font-size: 0.8rem;
  color: #a0aec0;
  margin: 0 0 10px;
}
.wa-help-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  margin-bottom: 16px;
}
.wa-help-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.wa-help-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 14px;
}
.wa-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #a0aec0;
}
.wa-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================================
   Premium Redesign — Header Title Group
   ======================================================== */
.pm-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-title-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ea-v2-primary-softer, #f3e8ff);
  color: var(--ea-v2-primary, #6D28D9);
}
.pm-title-icon .material-icons-outlined {
  font-size: 20px;
}
.pm-title-icon.wa {
  background: var(--whatsapp-light);
}
.pm-title-icon.wa svg {
  width: 20px;
  height: 20px;
}

.pm-title-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8a8a8a;
  margin: 2px 0 0;
  line-height: 1.4;
}

/* ========================================================
   Premium Redesign — Channel Cards
   ======================================================== */
.channel-card {
  flex-direction: column;
  gap: 6px;
  padding: 14px 10px;
  text-align: center;
  position: relative;
}
.channel-card svg {
  width: 24px;
  height: 24px;
}
.channel-card .cc-txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.3;
}
.channel-card .cc-title {
  font-size: 0.85rem;
  font-weight: 800;
}
.channel-card .cc-title .cc-rec {
  display: inline-block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  color: #128c7e;
  background: var(--whatsapp-light);
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 4px;
  vertical-align: middle;
}
.channel-card .cc-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9a9a9a;
}
.channel-card.active {
  border-color: #1a1a1a;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.channel-card.active.whatsapp {
  border-color: var(--whatsapp-green);
  background: var(--whatsapp-light);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.18);
}
.channel-card.active.whatsapp .cc-sub {
  color: #128c7e;
}

/* ========================================================
   Premium Redesign — CTA Buttons
   ======================================================== */
.phone-primary-btn {
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.phone-primary-btn.wa {
  background: linear-gradient(135deg, #128C7E, #25D366);
  color: #fff;
}
.phone-primary-btn.wa:disabled {
  background: #f2f2f2 !important;
  color: #b2b2b2 !important;
}

/* ========================================================
   Premium Redesign — Secure Note
   ======================================================== */
.pm-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9a9a9a;
  margin: 12px 0 0;
}
.pm-secure-note .material-icons-outlined {
  font-size: 15px;
  color: #10b981;
}

/* ========================================================
   Premium Redesign — OTP Channel Badge & Arrival Note
   ======================================================== */
.otp-channel-badge {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.22);
  animation: badge-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.otp-channel-badge.sms {
  box-shadow: 0 2px 8px rgba(75, 85, 99, 0.18);
}
.otp-channel-badge svg {
  width: 16px;
  height: 16px;
}
@keyframes badge-in {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.otp-arrival-note {
  font-size: 0.74rem;
  font-weight: 600;
  color: #999;
  text-align: center;
  margin: -6px 0 14px;
  padding: 0 6px;
  line-height: 1.5;
}

/* ========================================================
   Premium Redesign — Verified Phone Card in Edit Account
   ======================================================== */
.readonly-phone-card.verified .ea2-phone-ico {
  background: linear-gradient(135deg, #128C7E, #25D366);
  color: #fff;
}
.readonly-phone-card .ea2-wa-ico {
  width: 20px;
  height: 20px;
}

/* ========================================================
   Noon Exact Match — Modal Shell
   ======================================================== */
.phone-modal {
  border-radius: 16px;
  padding: 18px 24px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.noon-stepper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.noon-close-btn.phone-modal-close {
  width: 36px;
  height: 36px;
}
.noon-close-btn.phone-modal-close .material-icons-outlined {
  font-size: 20px;
}

.noon-step-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--noon-text);
  text-align: center;
  margin: 0 0 6px;
}

.noon-step-desc {
  font-size: 0.85rem;
  font-weight: 500;
  color: #777;
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.6;
}

.noon-otp-desc {
  font-size: 0.85rem;
  font-weight: 500;
  color: #777;
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.7;
}
.noon-otp-desc .noon-phone-val {
  direction: ltr;
  display: inline-block;
  font-weight: 800;
  color: var(--noon-text);
  unicode-bidi: plaintext;
}

/* Channel badge → inline chip inside the OTP description (Noon style) */
.otp-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  margin: 0 2px;
  padding: 3px 10px;
  font-size: 0.72rem;
  border-radius: 999px;
  animation: badge-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.otp-channel-badge svg {
  width: 16px;
  height: 16px;
}
.otp-channel-badge.whatsapp {
  background: var(--whatsapp-light);
  color: #128c7e;
  box-shadow: 0 1px 6px rgba(37, 211, 102, 0.25);
}
.otp-channel-badge.sms {
  background: var(--sms-light);
  color: var(--sms-gray);
  box-shadow: 0 1px 6px rgba(75, 85, 99, 0.15);
}

/* OTP boxes — Noon style */
.otp-inputs-row {
  gap: 10px;
  margin-bottom: 12px;
}
.otp-digit-input {
  width: 46px;
  height: 50px;
  border: 1.5px solid var(--noon-border);
  border-radius: 10px;
  background: #fff;
  font-size: 1.3rem;
}
.otp-digit-input:focus {
  border-color: #1a1a1a;
  border-bottom-width: 2.5px;
}

.otp-timer-container {
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* Resend — Noon: "الـOTP لسه موصلش؟" + two option buttons */
.otp-resend-container {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.otp-resend-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #555;
  margin: 0;
}
.otp-resend-options {
  display: flex;
  gap: 10px;
  width: 100%;
}
.otp-resend-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 8px;
  border: 1.5px solid var(--noon-border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.otp-resend-btn svg {
  width: 22px;
  height: 22px;
}
.otp-resend-btn:hover {
  border-color: #888;
  background: #f9f9f9;
}
.otp-resend-btn.whatsapp:hover {
  border-color: var(--whatsapp-green);
  background: var(--whatsapp-light);
}

/* Attempts — Noon muted style */
.otp-error-msg {
  color: var(--danger-red);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  margin: -6px 0 10px;
  min-height: 16px;
}

.otp-attempts-left {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sms-gray);
  margin-bottom: 12px;
  min-height: 16px;
}

@media (max-width: 480px) {
  .phone-modal {
    padding: 14px 18px 18px;
  }
  .otp-digit-input {
    width: 42px;
    height: 46px;
  }
}

