#sms-acc-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.55);
  z-index: 99998;
  align-items: center;
  justify-content: center;
}
#sms-acc-overlay.active {
  display: flex;
}

.sms-acc-box {
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 420px;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
  position: relative;
  animation: smsIn .2s ease;
  overflow: hidden;
}
@keyframes smsIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sms-acc-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  color: #bbb;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.sms-acc-close:hover {
  color: #555;
}

.sms-tabs {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
}
.sms-tab {
  flex: 1;
  padding: 15px 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: #999;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.sms-tab.active {
  color: #222;
  border-bottom-color: #222;
}

.sms-body {
  padding: 26px 28px 24px;
}

.sms-step {
  display: none;
}
.sms-step.active {
  display: block;
}

.sms-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}
.sms-desc {
  color: #888;
  font-size: 13px;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.sms-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color .2s;
  margin-bottom: 10px;
}
.sms-input:focus {
  border-color: #222;
  outline: none;
}

.sms-error {
  color: #e05d31;
  font-size: 13px;
  min-height: 16px;
  margin-bottom: 8px;
  text-align: center;
}

.sms-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}
.sms-btn:hover {
  background: #444;
}
.sms-btn:disabled {
  opacity: .5;
  cursor: default;
}

.sms-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}
.sms-link a {
  color: #222;
  font-weight: 600;
  text-decoration: none;
}
.sms-link a:hover {
  text-decoration: underline;
}

.sms-resend {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #aaa;
}
.sms-resend a {
  color: #222;
  font-weight: 600;
  display: none;
}

/* Code digits */
.sms-digits {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}
.sms-digit {
  width: 56px;
  height: 60px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
}
.sms-digit:focus {
  border-color: #222;
}

/* Phone row with dial select */
.sms-phone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.sms-dial-select {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  padding: 12px 10px;
  font-size: 14px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
}
.sms-dial-select:focus {
  border-color: #222;
  outline: none;
}
.sms-phone-row .sms-input {
  flex: 1;
  margin-bottom: 0;
}

/* Google OAuth button */
.sms-btn-google{width:100%;padding:12px;font-size:14px;font-weight:600;border:2px solid #e5e5e5;border-radius:8px;background:#fff;color:#444;cursor:pointer;transition:all .2s;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:10px}
.sms-btn-google:hover{border-color:#4285f4;color:#4285f4;background:#f8f8ff}
.sms-btn-google svg{flex-shrink:0}
.sms-google-divider{display:flex;align-items:center;gap:10px;margin:14px 0 6px;color:#ccc;font-size:12px}
.sms-google-divider::before,.sms-google-divider::after{content:'';flex:1;height:1px;background:#e5e5e5}

/* ===== UEstore style ===== */
#sms-acc-overlay, #sms-acc-overlay input, #sms-acc-overlay button { font-family: inherit; }
.sms-acc-box { border-radius: 4px; }
.sms-tab.active { color: #000; border-bottom-color: #ffd600; }
.sms-input, .sms-dial-select { border: 1px solid #dcdcdc; border-radius: 2px; box-shadow: none; }
.sms-input:focus { border-color: #ffd600; box-shadow: none; }
.sms-phone-row { align-items: stretch; }
.sms-dial-select { box-sizing: border-box; height: auto; margin-bottom: 0; color: #000; background: #f5f5f5; }
.sms-btn { border-radius: 8px; background: #ffd600; color: #000; }
.sms-btn:hover { background: #ffcc00; }
.sms-phone-row .sms-input { height: auto; }
.sms-dial-select { border: none; background: none; box-shadow: none; padding: 0 4px 0 0; font-size: 15px; }
.sms-digit { border: 1px solid #dcdcdc; border-radius: 2px; }
.sms-digit:focus { border-color: #ffd600; }
.sms-link a, .sms-resend a { color: #000; font-weight: 700; border-bottom: 1px solid #ffd600; }
.sms-link a:hover { text-decoration: none; }
.sms-tab { font-size: 15px; }
.sms-title { font-size: 20px; }
.sms-desc, .sms-link, .sms-resend { font-size: 14px; }
.sms-btn { padding: 14px; font-size: 16px; }
.sms-btn-google { font-size: 15px; }
.sms-google-divider { font-size: 13px; }
#login-phone-btn, #reg-phone-btn { background: #e5e5e5; color: #999; }
#login-phone-btn.ready, #reg-phone-btn.ready { background: #ffdc00; color: #000; }
