/* ═══════════════════════════════════════════════════════════════════
   Trade Up — Verification Layer Styles
   Shared across every form that uses verification.js
   ═══════════════════════════════════════════════════════════════════ */

/* ── VERIFICATION OVERLAY ───────────────────────────────────────── */

.tu-verify-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(1, 12, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.tu-verify-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ── VERIFY CARD ─────────────────────────────────────────────────── */

.tu-verify-card {
  width: 100%;
  max-width: 440px;
  background: #0d1e37;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(74, 125, 224, 0.1);
  transform: translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.tu-verify-overlay.is-active .tu-verify-card {
  transform: translateY(0);
}
.tu-verify-card.card-success {
  border-color: rgba(45, 208, 122, 0.35);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(45, 208, 122, 0.2),
              0 0 40px rgba(45, 208, 122, 0.08);
}

.tu-verify-icon {
  width: 64px;
  height: 64px;
  background: rgba(74, 125, 224, 0.12);
  border: 1px solid rgba(74, 125, 224, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a7de0;
  margin-bottom: 4px;
}

.tu-verify-title {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e8eef8;
  margin: 0;
}

.tu-verify-desc {
  font-size: 14px;
  color: #7a96bc;
  line-height: 1.6;
  margin: 0;
  max-width: 340px;
}
.tu-verify-desc strong { color: #c8d8f0; }

/* ── DEMO NOTICE ─────────────────────────────────────────────────── */

.tu-demo-note {
  background: rgba(184, 135, 44, 0.1);
  border: 1px solid rgba(184, 135, 44, 0.28);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #c8a85a;
  line-height: 1.55;
  text-align: left;
  width: 100%;
}

.tu-demo-badge {
  display: inline-block;
  background: rgba(184, 135, 44, 0.22);
  color: #c8a85a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── OTP INPUTS ──────────────────────────────────────────────────── */

.tu-otp-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: transform 0.18s ease;
}
.tu-otp-wrap.otp-error  { animation: otp-shake 0.45s ease; }
.tu-otp-wrap.otp-success .tu-otp-inputs { border-color: rgba(45, 208, 122, 0.5); }

@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-7px); }
  40%       { transform: translateX(7px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.tu-otp-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tu-otp-input {
  width: 46px;
  height: 56px;
  background: #0a1626;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #e8eef8;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  caret-color: #4a7de0;
}
.tu-otp-input:focus {
  border-color: rgba(74, 125, 224, 0.7);
  box-shadow: 0 0 0 3px rgba(74, 125, 224, 0.12);
}
.tu-otp-wrap.otp-success .tu-otp-input { border-color: rgba(45, 208, 122, 0.5); color: #2dd07a; }
.tu-otp-wrap.otp-error  .tu-otp-input  { border-color: rgba(248, 113, 113, 0.5); }

.tu-otp-sep {
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── BACK BUTTON (top-left corner of card) ───────────────────────── */

.tu-verify-card { position: relative; }

.tu-verify-back {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  color: #4a7de0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.tu-verify-back:hover {
  background: rgba(74, 125, 224, 0.1);
  color: #7ab4ff;
}

/* ── RESEND COOLDOWN ──────────────────────────────────────────────── */
.tu-btn-ghost:disabled {
  color: #3d5475;
  cursor: default;
  text-decoration: none;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */

.tu-btn-primary {
  width: 100%;
  padding: 13px;
  background: #2563c8;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}
.tu-btn-primary:hover:not(:disabled) { background: #3b7de8; transform: translateY(-1px); }
.tu-btn-primary:disabled { opacity: 0.6; cursor: default; }

.tu-btn-ghost {
  background: none;
  border: none;
  color: #4a7de0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tu-btn-ghost:hover { color: #7ab4ff; }

/* ── STATUS BADGE + ITEMS ────────────────────────────────────────── */

.tu-verify-status {
  margin-top: 4px;
}

.tu-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tu-status-pending {
  background: rgba(184, 135, 44, 0.12);
  border: 1px solid rgba(184, 135, 44, 0.28);
  color: #c8a85a;
}
.tu-status-verified {
  background: rgba(45, 208, 122, 0.12);
  border: 1px solid rgba(45, 208, 122, 0.28);
  color: #2dd07a;
}

.tu-status-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.tu-status-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.tu-status-item--ok   { color: #2dd07a; }
.tu-status-item--warn { color: #c8a85a; }

/* ── TURNSTILE WRAPPER ───────────────────────────────────────────── */

.tu-turnstile-wrap {
  margin: 16px 0 4px;
}

.tu-captcha-note {
  font-size: 11.5px;
  color: #3d5475;
  margin: 6px 0 0;
  line-height: 1.5;
}
.tu-captcha-note__warn {
  color: #c8a85a;
}

/* ── TOAST ───────────────────────────────────────────────────────── */

.tu-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: #1a2f4f;
  border: 1px solid rgba(74, 125, 224, 0.3);
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #c8d8f0;
  z-index: 10000;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.tu-toast--in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── MOBILE ──────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .tu-verify-card { padding: 32px 22px 28px; }
  .tu-otp-input   { width: 36px; height: 46px; font-size: 20px; }
  .tu-otp-inputs  { gap: 5px; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .tu-otp-sep     { width: 10px; }
}
