/* NutriBites OTP Vault v1.1.0 - animated glass modal, scoped to the WhatsApp block */
.nb-waloops-otp-body .nbv-native-code {
  position:absolute !important; width:1px !important; height:1px !important; opacity:0 !important;
  pointer-events:none !important; overflow:hidden !important;
}
.nb-waloops-otp-body .nbv-launch {
  display:block; width:100%; margin:12px 0 0; min-height:48px; cursor:pointer;
  border:1px solid rgba(49,107,107,.18); border-radius:14px;
  background:linear-gradient(180deg,#fdfefe,#f2f7f7); color:#255a58;
  font-weight:800; font-size:14px; letter-spacing:.01em;
  box-shadow:0 8px 20px rgba(26,57,56,.08);
}
.nb-waloops-otp-body .nbv-launch:hover,
.nb-waloops-otp-body .nbv-launch:focus-visible {
  outline:none; transform:translateY(-1px); box-shadow:0 10px 28px rgba(26,57,56,.12);
}
.nb-waloops-otp-body .nbv-launch::before { content:'🔐 '; }

.nbv-mask[hidden] { display:none !important; }
.nbv-mask {
  position:fixed; inset:0; z-index:2147483000; display:flex; align-items:center; justify-content:center;
  padding:20px; background:rgba(7,17,21,.58); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  opacity:0; transition:opacity .32s ease;
}
.nbv-mask.nbv-active { opacity:1; }
body.nbv-open { overflow:hidden !important; }

.nbv-safe {
  box-sizing:border-box; position:relative; width:min(100%, 760px); max-height:92vh; overflow:auto;
  border-radius:34px; color:#fff; font-family:inherit; padding:28px 28px 24px;
  border:1px solid rgba(178,245,255,.35);
  background:
    radial-gradient(1200px 260px at 50% 112%, rgba(84,247,255,.16), transparent 45%),
    radial-gradient(600px 240px at 18% 12%, rgba(79,230,209,.16), transparent 40%),
    linear-gradient(180deg, rgba(15,56,66,.97), rgba(9,28,36,.98));
  box-shadow:0 35px 120px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.04);
  transform:translateY(72px) scale(.96);
  opacity:0;
  transition:transform .48s cubic-bezier(.22,1,.36,1), opacity .32s ease;
}
.nbv-mask.nbv-active .nbv-safe { transform:translateY(0) scale(1); opacity:1; }
.nbv-safe * { box-sizing:border-box; }
.nbv-safe::after {
  content:''; position:absolute; inset:auto 6% -8px; height:26px; border-radius:50%;
  background:radial-gradient(circle, rgba(49,255,226,.45), rgba(49,255,226,0)); filter:blur(16px); pointer-events:none;
}
.nbv-close {
  position:absolute; top:16px; right:16px; width:44px; height:44px; border-radius:50%;
  border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.06); color:#e9f6f9;
  font-size:26px; line-height:1; cursor:pointer;
}
.nbv-header { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.nbv-brandmark { width:56px; height:56px; border-radius:16px; display:grid; place-items:center;
  background:linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.18); overflow:hidden; }
.nbv-brandmark img { width:100%; height:100%; object-fit:contain; }
.nbv-brandtext strong { display:block; font-size:19px; line-height:1.1; }
.nbv-brandtext span { font-size:12px; color:#c7dfdf; }

.nbv-hero {
  display:grid; grid-template-columns:minmax(0, 1.02fr) minmax(0, .98fr); gap:24px; align-items:center;
}
.nbv-visual { position:relative; min-height:240px; display:grid; place-items:center; }
.nbv-vault {
  position:relative; width:min(100%, 300px); aspect-ratio:1/1; border-radius:34px;
  background:linear-gradient(145deg,#c8d7df,#6b8fa0 40%,#d5e2ea 70%,#748f9f);
  box-shadow:inset -8px -10px 20px rgba(255,255,255,.35), inset 12px 10px 22px rgba(18,42,52,.28), 0 26px 60px rgba(0,0,0,.35);
}
.nbv-vault::before {
  content:''; position:absolute; left:50%; top:50%; width:62%; height:62%; transform:translate(-50%,-50%);
  border-radius:50%; background:radial-gradient(circle at 50% 50%, rgba(36,255,170,.45), rgba(36,255,170,.08) 56%, rgba(0,0,0,.18) 57%, rgba(255,255,255,.18) 62%, rgba(0,0,0,0) 63%);
  box-shadow:0 0 24px rgba(36,255,170,.35);
}
.nbv-vault::after {
  content:'WhatsApp'; position:absolute; inset:auto 0 34%; text-align:center; font-weight:800; font-size:28px; color:#fff; text-shadow:0 0 14px rgba(36,255,170,.55);
}
.nbv-door {
  position:absolute; right:-18px; top:14px; width:110px; height:calc(100% - 28px); border-radius:0 28px 28px 0;
  background:linear-gradient(145deg,#d8e7ef,#88a2b0 35%,#d6e4ea 78%,#7b96a7);
  box-shadow:inset -8px -8px 18px rgba(255,255,255,.3), inset 8px 8px 18px rgba(13,35,46,.18), 0 20px 50px rgba(0,0,0,.18);
  transform:perspective(600px) rotateY(-32deg); transform-origin:left center;
}
.nbv-wheel { position:absolute; left:50%; top:50%; width:74px; height:74px; transform:translate(-50%,-50%); border-radius:50%; border:6px solid rgba(27,57,71,.65); }
.nbv-wheel::before, .nbv-wheel::after { content:''; position:absolute; inset:50% auto auto 50%; width:72px; height:4px; background:#1e4f63; transform:translate(-50%,-50%); }
.nbv-wheel::after { transform:translate(-50%,-50%) rotate(90deg); }
.nbv-whatsapp-dot { position:absolute; left:50%; top:40%; transform:translate(-50%,-50%); width:74px; height:74px; border-radius:50%; display:grid; place-items:center; background:radial-gradient(circle at 30% 30%, #59ffb8, #0dc66d 70%); font-size:34px; box-shadow:0 0 28px rgba(56,255,160,.6); }
.nbv-shield {
  position:absolute; left:18px; bottom:28px; width:96px; height:112px; clip-path:polygon(50% 0%, 91% 18%, 91% 56%, 50% 100%, 9% 56%, 9% 18%);
  background:linear-gradient(160deg, rgba(102,255,243,.9), rgba(39,154,170,.65)); border:1px solid rgba(255,255,255,.45); box-shadow:0 0 28px rgba(80,255,232,.28);
}
.nbv-shield::before { content:'🔒'; position:absolute; inset:0; display:grid; place-items:center; font-size:32px; }
.nbv-ring { position:absolute; left:50%; bottom:8px; transform:translateX(-50%); width:86%; height:36px; border-radius:50%; border:2px solid rgba(80,250,255,.62); box-shadow:0 0 24px rgba(80,250,255,.22), inset 0 0 14px rgba(80,250,255,.16); }

.nbv-copy { position:relative; }
.nbv-title { margin:0 0 10px; font-size:26px; font-weight:900; line-height:1.12; }
.nbv-subtitle { color:#d4e5e8; font-size:16px; line-height:1.55; margin:0 0 18px; }
.nbv-subtitle strong { color:#47f58d; }

.nbv-digits { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin:0 0 16px; }
.nbv-digit {
  min-width:0; height:74px; display:grid; place-items:center; border-radius:18px;
  border:1px solid rgba(122,255,245,.36); background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  color:#f7ffff; font-size:38px; font-weight:900; letter-spacing:.02em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 rgba(0,0,0,0);
}
.nbv-digit.nbv-filled { box-shadow:0 0 18px rgba(79,255,237,.35), inset 0 0 0 1px rgba(255,255,255,.12); }
.nbv-digit.nbv-next { border-color:#dffca7; }
.nbv-accessible-label { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
.nbv-input {
  width:100%; height:1px; opacity:0; position:absolute; pointer-events:none;
}

.nbv-meta { display:flex; align-items:center; gap:14px; flex-wrap:wrap; color:#d2edf1; font-size:14px; margin:0 0 18px; }
.nbv-meta b { color:#fff; font-size:16px; }
.nbv-sep { opacity:.35; }
.nbv-resend {
  border:0; background:none; padding:0; color:#6cf2ff; font-weight:700; cursor:pointer;
}
.nbv-resend:hover { text-decoration:underline; }
.nbv-feedback { min-height:20px; font-size:12px; color:#b8d7d3; line-height:1.5; margin:0 0 12px !important; }
.nbv-feedback.nbv-warning { color:#fdd4a4; }
.nbv-feedback.nbv-good { color:#8cffbc; }

.nbv-pad { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:0 0 16px; max-width:330px; }
.nbv-pad button {
  min-height:52px; border-radius:16px; border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); color:#fff; font-size:22px; cursor:pointer;
}
.nbv-pad button:hover,.nbv-pad button:focus-visible { outline:none; background:linear-gradient(180deg, rgba(74,254,239,.3), rgba(44,153,167,.25)); }
.nbv-pad-empty { display:block; }
.nbv-verify {
  width:100%; min-height:68px; border:0; border-radius:999px; cursor:pointer; position:relative; overflow:hidden;
  background:linear-gradient(180deg,#46f59d,#1fb676 55%,#149867); color:#fff; font-size:18px; font-weight:900; letter-spacing:.01em;
  box-shadow:0 18px 40px rgba(30,210,112,.28), inset 0 1px 0 rgba(255,255,255,.3);
}
.nbv-verify:disabled { background:linear-gradient(180deg,#547a6b,#406158); color:#d2dbd7; box-shadow:none; cursor:not-allowed; }
.nbv-verify::before { content:'🛡️'; margin-right:10px; }
.nbv-foot { margin-top:12px; font-size:12px; color:#b6d3d9; }

@media (max-width: 860px) {
  .nbv-safe { width:min(100%, 520px); padding:22px 18px 20px; border-radius:26px; }
  .nbv-hero { grid-template-columns:1fr; gap:8px; }
  .nbv-visual { min-height:210px; }
  .nbv-pad { max-width:none; }
}
@media (max-width: 520px) {
  .nbv-mask { padding:10px; }
  .nbv-safe { border-radius:22px; }
  .nbv-title { font-size:23px; }
  .nbv-subtitle { font-size:14px; }
  .nbv-digit { height:58px; border-radius:14px; font-size:28px; }
  .nbv-meta { font-size:13px; gap:10px; }
  .nbv-verify { min-height:58px; font-size:17px; }
}
@media (prefers-reduced-motion: reduce) {
  .nbv-mask, .nbv-safe { transition:none; }
}
