/* ---------- login (WhatsApp OTP) ---------- */
.bar-r { display: flex; align-items: center; gap: 12px; }
.me { border: 0; cursor: pointer; height: 34px; min-width: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: var(--ink);
  font: 700 13px "Archivo"; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 160ms var(--ease-out), background-color 200ms ease; -webkit-tap-highlight-color: transparent; }
.me:active { transform: scale(.94); }
.me.in { padding: 0; background: var(--ink); color: #0B0A0E; font-weight: 900; font-size: 15px; }

.login { position: absolute; inset: 0; z-index: 12; background: #F7F5F2; color: #0B0A0E; display: flex; flex-direction: column; }
.login[hidden] { display: none; }
.login .q { view-transition-name: lgq; }
.login .hint .wa-ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }
#lgNext .wa-ico { width: 20px; height: 20px; }

/* six boxes drawn over one real input, so paste and iOS "From WhatsApp" autofill both work */
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 6px; }
.otp span { aspect-ratio: 5 / 6; border-radius: 14px; background: rgba(11,10,14,.06); display: grid; place-items: center;
  font: 900 30px "Archivo"; font-variant-numeric: tabular-nums;
  transition: box-shadow 160ms ease, background-color 200ms ease, color 200ms ease; }
.otp span:not(:empty) { background: rgba(11,10,14,.11); }
.otp span.cur { box-shadow: inset 0 0 0 2.5px #0B0A0E; }
.otp.ok span { background: #25D366; color: #fff; }
.otp.shake { animation: shake 380ms var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.otp-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; color: transparent; caret-color: transparent; }
.resend { margin: 20px 0 0; font-size: 15px; color: rgba(11,10,14,.55); font-variant-numeric: tabular-nums; }
.linkbtn { border: 0; background: none; padding: 0; font: 700 15px "Archivo"; color: #0B0A0E; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* mock only: stands in for the real WhatsApp notification */
.wa-toast { position: absolute; z-index: 30; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; gap: 12px; align-items: flex-start;
  text-align: left; padding: 12px 14px; border: 0; border-radius: 22px; cursor: pointer; color: #fff;
  background: rgba(44,42,48,.84); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 14px 34px rgba(0,0,0,.35); font: 400 14px/1.32 -apple-system, "Archivo", sans-serif;
  transform: translateY(-150%); transition: transform 460ms cubic-bezier(.32,.72,0,1); }
.wa-toast[hidden] { display: none; }
.wa-toast.in { transform: none; }
.wa-toast .wa-ico.big { width: 38px; height: 38px; flex: none; background: #25D366; border-radius: 10px; padding: 7px; box-sizing: border-box; }
.wa-toast .wa-ico.big path { fill: #fff; }
.wa-toast span { flex: 1; min-width: 0; }
.wa-toast b { font-weight: 600; }
.wa-toast small { float: right; font-size: 12px; color: rgba(255,255,255,.55); }
.wa-toast em { display: block; font-style: normal; margin-top: 2px; }

.lg-done { padding-top: 24px; }
.lg-done svg { width: 88px; height: 88px; display: block; margin-bottom: 22px; }
.lg-done circle { fill: #25D366; }
.lg-done path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: draw 520ms 120ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.lg-h5 { margin: 30px 0 6px; font-size: 22px; font-weight: 850; font-stretch: 108%; }
.mywish { list-style: none; margin: 0; padding: 0; }
.mywish li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(11,10,14,.08); font-weight: 650; font-size: 15px; }
.mywish img, .mywish .placeholder-art { width: 72px; height: 34px; object-fit: cover; border-radius: 6px; display: block; }
.mywish .placeholder-art { background: rgba(11,10,14,.08); color: rgba(11,10,14,.5); }
.rm { border: 0; background: rgba(11,10,14,.07); padding: 8px 12px; border-radius: 999px; font: 700 13px "Archivo"; color: #0B0A0E; cursor: pointer; }
.out { margin-top: 30px; color: #C4224F; }

@media (prefers-reduced-motion: reduce) {
  .wa-toast { transition: none; }
  .otp.shake, .lg-done path { animation: none; stroke-dashoffset: 0; }
}

.mybook { list-style: none; margin: 0; padding: 0; }
.mybook li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(11,10,14,.08); font-size: 15px; }
.mybook b { display: block; font-weight: 800; }
.mybook small { display: block; margin-top: 2px; color: rgba(11,10,14,.5); font-variant-numeric: tabular-nums; }
.mybook em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(11,10,14,.07); }
.mybook em.st-confirmed { background: #25D366; color: #fff; }
.wish-empty { color: var(--muted); font-size: 14px; padding: 14px 0; display: block !important; }
