/* ============================================================
   Coca-Cola — Promotion 175ᵉ Anniversaire
   Front-end ultra-animé, mobile-first, palette officielle
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #f40000;
  --red-dark: #c40000;
  --black: #1e1e1e;
  --white: #ffffff;
  --yellow: #ffd700;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f40000 0%, #d10000 55%, #a80000 100%);
  color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
}

#wrap {
  max-width: 480px; margin: 0 auto; min-height: 100vh;
  display: flex; flex-direction: column; position: relative; z-index: 2;
}

/* ---------------- Bulles animées en fond ---------------- */
.bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubbles span {
  position: absolute; bottom: -80px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  animation: bubbleUp 12s linear infinite;
}
.bubbles span:nth-child(1) { left: 10%; animation-duration: 11s; animation-delay: 0s; width: 30px; height: 30px; }
.bubbles span:nth-child(2) { left: 25%; animation-duration: 14s; animation-delay: 1.5s; }
.bubbles span:nth-child(3) { left: 40%; animation-duration: 10s; animation-delay: 3s; width: 55px; height: 55px; }
.bubbles span:nth-child(4) { left: 55%; animation-duration: 16s; animation-delay: .8s; width: 25px; height: 25px; }
.bubbles span:nth-child(5) { left: 70%; animation-duration: 12s; animation-delay: 2.2s; }
.bubbles span:nth-child(6) { left: 85%; animation-duration: 15s; animation-delay: 4s; width: 35px; height: 35px; }
.bubbles span:nth-child(7) { left: 15%; animation-duration: 13s; animation-delay: 5s; width: 20px; height: 20px; }
.bubbles span:nth-child(8) { left: 60%; animation-duration: 11s; animation-delay: 6s; width: 45px; height: 45px; }
.bubbles span:nth-child(9) { left: 35%; animation-duration: 17s; animation-delay: 7s; width: 28px; height: 28px; }
.bubbles span:nth-child(10) { left: 90%; animation-duration: 10s; animation-delay: 8s; width: 22px; height: 22px; }
@keyframes bubbleUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateY(-50vh) translateX(20px) rotate(180deg); }
  100% { transform: translateY(-110vh) translateX(-15px) rotate(360deg); opacity: 0; }
}

/* ---------------- Header ---------------- */
header {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  color: var(--white); text-align: center; padding: 26px 12px 18px;
}
.logo-sparkle { position: relative; display: inline-block; }
#brand {
  font-size: 2.6rem; font-style: italic; letter-spacing: 2px; font-weight: 900;
  text-shadow: 0 0 18px rgba(255,255,255,.8), 0 2px 4px rgba(0,0,0,.4);
  animation: brandGlow 2.2s ease-in-out infinite;
}
@keyframes brandGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,.6), 0 2px 4px rgba(0,0,0,.4); transform: scale(1); }
  50%      { text-shadow: 0 0 28px rgba(255,255,255,1), 0 2px 4px rgba(0,0,0,.4); transform: scale(1.04); }
}
.logo-sparkle::before, .logo-sparkle::after {
  content: "✨"; position: absolute; top: -10px; font-size: 1.2rem;
  animation: sparkle 1.6s ease-in-out infinite;
}
.logo-sparkle::before { left: -28px; }
.logo-sparkle::after  { right: -28px; animation-delay: .8s; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.3) rotate(20deg); }
}
#tagline { font-size: .85rem; opacity: .95; margin-top: 4px; }
.ribbon {
  display: inline-block; margin-top: 10px; padding: 6px 18px;
  background: var(--yellow); color: #7a0c00; font-weight: 800; font-size: .78rem;
  border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.3);
  animation: ribbonPulse 1.4s ease-in-out infinite;
}
@keyframes ribbonPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
  50%      { transform: scale(1.06); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
}

/* ---------------- Cartes ---------------- */
main { flex: 1; padding: 16px; }
.card {
  background: var(--white); border-radius: 18px; padding: 22px 18px;
  margin: 14px 0; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  animation: cardIn .6s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hidden { display: none !important; }
.card h2 { font-size: 1.45rem; color: var(--red); margin-bottom: 10px; }
.card h3 { font-size: 1.1rem; color: var(--red); margin-bottom: 12px; }
.sub { font-size: .92rem; color: #444; line-height: 1.5; margin: 8px 0 14px; }
.hint { font-size: .8rem; color: #888; margin-top: 10px; }

/* texte qui pulse */
.pulse-text { animation: pulseText 1.8s ease-in-out infinite; }
@keyframes pulseText {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ---------------- LE CADEAU 🎁 ---------------- */
.gift-stage { padding: 18px 0 8px; position: relative; }
.gift {
  width: 150px; height: 150px; margin: 0 auto; position: relative;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  animation: giftShake 1.6s ease-in-out infinite;
  transition: transform .2s;
}
.gift:active { transform: scale(.92); }
@keyframes giftShake {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  10% { transform: rotate(-4deg) translateY(-4px); }
  20% { transform: rotate(4deg) translateY(0); }
  30% { transform: rotate(-3deg) translateY(-3px); }
  40% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-6px); }
  60% { transform: rotate(-3deg) translateY(0); }
  70% { transform: rotate(3deg) translateY(-3px); }
  80% { transform: rotate(-4deg) translateY(0); }
  90% { transform: rotate(4deg) translateY(-4px); }
}
.gift-box {
  width: 140px; height: 110px; margin: 40px auto 0;
  background: linear-gradient(135deg, #f40000, #b30000);
  border-radius: 8px; position: relative;
  box-shadow: inset 0 -12px 22px rgba(0,0,0,.25), 0 12px 26px rgba(0,0,0,.35);
}
.gift-ribbon-v {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 22px; height: 100%; background: repeating-linear-gradient(45deg, #ffd700, #ffd700 6px, #ffb700 6px, #ffb700 12px);
}
.gift-ribbon-h {
  position: absolute; top: 42px; left: 0; width: 100%; height: 22px;
  background: repeating-linear-gradient(45deg, #ffd700, #ffd700 6px, #ffb700 6px, #ffb700 12px);
}
.gift-lid {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 34px; z-index: 3;
  background: linear-gradient(135deg, #f40000, #c40000);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  animation: lidWobble 2s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes lidWobble {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(-2deg); }
  75% { transform: translateX(-50%) rotate(2deg); }
}
.bow { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 2rem; animation: bowBounce 1.2s ease-in-out infinite; }
@keyframes bowBounce { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.15); } }
.gift-hint { margin-top: 16px; font-weight: 700; color: var(--red); }
.bounce { animation: hintBounce 1.1s ease-in-out infinite; }
@keyframes hintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* halo derrière le cadeau */
.gift-stage::before {
  content: ""; position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,0,0,.15), transparent 70%);
  animation: halo 2s ease-in-out infinite; z-index: 0;
}
@keyframes halo { 0%,100% { transform: translateX(-50%) scale(1); opacity: .6; } 50% { transform: translateX(-50%) scale(1.25); opacity: 1; } }

/* explosion du cadeau */
.gift.open { animation: giftExplode .5s ease-out forwards; }
@keyframes giftExplode {
  0%   { transform: scale(1); opacity: 1; }
  40%  { transform: scale(1.35) rotate(-8deg); opacity: 1; }
  100% { transform: scale(.2) rotate(20deg); opacity: 0; }
}

/* ---------------- Confettis 🎉 ---------------- */
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute; font-style: normal; font-size: 1.3rem; opacity: 0;
  animation: confettiFall 2.6s ease-in forwards;
}
.confetti i:nth-child(1)  { left: 5%;  animation-delay: 0s; }
.confetti i:nth-child(2)  { left: 12%; animation-delay: .12s; }
.confetti i:nth-child(3)  { left: 19%; animation-delay: .05s; }
.confetti i:nth-child(4)  { left: 26%; animation-delay: .2s; }
.confetti i:nth-child(5)  { left: 33%; animation-delay: .08s; }
.confetti i:nth-child(6)  { left: 40%; animation-delay: .16s; }
.confetti i:nth-child(7)  { left: 47%; animation-delay: .02s; }
.confetti i:nth-child(8)  { left: 54%; animation-delay: .22s; }
.confetti i:nth-child(9)  { left: 61%; animation-delay: .1s; }
.confetti i:nth-child(10) { left: 68%; animation-delay: .18s; }
.confetti i:nth-child(11) { left: 75%; animation-delay: .06s; }
.confetti i:nth-child(12) { left: 82%; animation-delay: .24s; }
.confetti i:nth-child(13) { left: 89%; animation-delay: .14s; }
.confetti i:nth-child(14) { left: 94%; animation-delay: .03s; }
.confetti i:nth-child(15) { left: 8%;  animation-delay: .3s; }
.confetti i:nth-child(16) { left: 70%; animation-delay: .28s; }
@keyframes confettiFall {
  0%   { transform: translateY(-30px) rotate(0deg) scale(.6); opacity: 1; }
  100% { transform: translateY(340px) rotate(540deg) scale(1.2); opacity: 0; }
}

/* ---------------- Montant du prix ---------------- */
.prize-amount {
  font-size: 3rem; font-weight: 900; color: var(--red);
  margin: 12px 0; letter-spacing: 1px;
  animation: amountPop .7s cubic-bezier(.2,1.4,.4,1) both, glowPulse 1.8s ease-in-out .7s infinite;
}
.prize-amount span { font-size: 1.3rem; color: #c40000; }
.prize-amount.small { font-size: 2.1rem; }
@keyframes amountPop {
  0% { transform: scale(0) rotate(-12deg); opacity: 0; }
  70% { transform: scale(1.25) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(244,0,0,.35); }
  50%      { text-shadow: 0 0 26px rgba(244,0,0,.85), 0 0 40px rgba(255,215,0,.4); }
}

.pop-in { animation: popIn .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------------- Boutons ---------------- */
.cta {
  display: inline-block; margin-top: 8px;
  background: linear-gradient(180deg, #ff2b2b, #d10000);
  color: var(--white); border: 0; border-radius: 30px;
  padding: 16px 34px; font-size: 1.08rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 18px rgba(244,0,0,.45);
  transition: transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px rgba(244,0,0,.55); }
.cta:active { transform: scale(.96); }
.cta:disabled { background: #bbb; box-shadow: none; cursor: not-allowed; animation: none; }
.cta:not(:disabled) { animation: ctaPulse 1.6s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(244,0,0,.45); }
  50%      { box-shadow: 0 6px 30px rgba(244,0,0,.85); }
}
/* effet "shine" qui balaye le bouton */
.shine::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-25deg);
  animation: sweep 2.4s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -80%; } 55%, 100% { left: 130%; } }

/* ---------------- Barre de progression ---------------- */
.progress {
  position: relative; height: 30px; background: #eee; border-radius: 20px;
  overflow: hidden; margin: 16px 0; box-shadow: inset 0 2px 5px rgba(0,0,0,.12);
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ffb700, #f40000);
  background-size: 200% 100%;
  border-radius: 20px;
  transition: width .6s cubic-bezier(.2,.9,.3,1.2);
  animation: stripes 1.4s linear infinite;
}
@keyframes stripes { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
#progress-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #333;
}

/* ---------------- Boutons de partage ---------------- */
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.share {
  background: #25d366; color: var(--white); border: 0; border-radius: 24px;
  padding: 13px 20px; cursor: pointer; font-size: .92rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(37,211,102,.4);
  transition: transform .15s;
}
.share:hover { transform: scale(1.05); }
.share:active { transform: scale(.94); }
#btn-sms { background: #555; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.wa-shine { animation: waPulse 1.5s ease-in-out infinite; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 24px rgba(37,211,102,.85); }
}

/* bouton retrait déverrouillé */
#btn-withdraw.unlocked {
  background: linear-gradient(180deg, #2ecc71, #1a9850);
  animation: unlockBurst .6s cubic-bezier(.2,1.5,.4,1) both, ctaPulse 1.6s ease-in-out .6s infinite;
}
@keyframes unlockBurst {
  0% { transform: scale(.8); filter: brightness(1); }
  60% { transform: scale(1.15); filter: brightness(1.5); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* ---------------- Opérateurs ---------------- */
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.op {
  border: 2px solid #eee; border-radius: 16px; padding: 18px 10px;
  background: var(--white); cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  animation: opFloat 3s ease-in-out infinite;
}
.op:nth-child(1) { animation-delay: 0s; }
.op:nth-child(2) { animation-delay: .4s; }
.op:nth-child(3) { animation-delay: .8s; }
.op:nth-child(4) { animation-delay: 1.2s; }
@keyframes opFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.op:hover { transform: translateY(-6px) scale(1.04); border-color: var(--red); box-shadow: 0 10px 22px rgba(0,0,0,.15); }
.op:active { transform: scale(.95); }
.op-logo { font-size: 1.9rem; display: block; margin-bottom: 6px; }
.op-logo img {
  width: 44px; height: 44px; display: block; margin: 0 auto 6px;
  object-fit: contain; border-radius: 8px;
}
/* fond de secours coloré : le logo reste lisible même si l'image ne charge pas */
.op-wave   .op-logo { background: #1dc8ff; }
.op-orange .op-logo { background: #ff7900; }
.op-mtn    .op-logo { background: #ffcc00; }
.op-moov   .op-logo { background: #0057b8; }
.op-name { font-weight: 800; font-size: .95rem; }
.op-wave:hover   { border-color: #1dc8ff; box-shadow: 0 10px 22px rgba(29,200,255,.35); }
.op-orange:hover { border-color: #ff7900; box-shadow: 0 10px 22px rgba(255,121,0,.35); }
.op-mtn:hover    { border-color: #ffcc00; box-shadow: 0 10px 22px rgba(255,204,0,.35); }
.op-moov:hover   { border-color: #0057b8; box-shadow: 0 10px 22px rgba(0,87,184,.35); }

/* ---------------- Témoignages + drapeaux ---------------- */
#testimonials { padding-bottom: 8px; }
.testi-track {
  display: flex; gap: 12px; overflow: hidden;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.testi-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testi {
  min-width: 240px; background: #faf7f2; border: 1px solid #f0e6d8;
  border-radius: 14px; padding: 12px 14px; text-align: left;
}
.testi-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.flag { font-size: 1.4rem; animation: flagWave 2s ease-in-out infinite; display: inline-block; }
@keyframes flagWave { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.testi-top b { font-size: .9rem; }
.stars { color: #ffb700; font-size: .8rem; margin-left: auto; }
.testi p { font-size: .82rem; color: #555; line-height: 1.45; font-style: italic; }

.live-badge {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: #e8f8ee; color: #1a7f4b; border-radius: 20px; padding: 6px 14px;
  font-size: .75rem; font-weight: 700;
}
.dot {
  width: 9px; height: 9px; background: #2ecc71; border-radius: 50%;
  animation: dotPulse 1.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,.6); }
  50%      { box-shadow: 0 0 0 7px rgba(46,204,113,0); }
}

/* ---------------- Spinner PIN ---------------- */
.spinner {
  width: 44px; height: 44px; border: 5px solid #eee; border-top-color: var(--red);
  border-radius: 50%; margin: 18px auto;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Footer ---------------- */
footer { text-align: center; padding: 14px; color: rgba(255,255,255,.75); font-size: .72rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 380px) {
  #brand { font-size: 2.1rem; }
  .prize-amount { font-size: 2.4rem; }
  .cta { padding: 14px 26px; font-size: .98rem; }
}

/* respecte les préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   TUNNEL WAVE — pages de retrait, mot de passe, OTP, final
   ============================================================ */
.wave-card { padding-top: 18px; }
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: 0 auto 14px; max-width: 280px;
}
.steps i { flex: 1; height: 3px; background: #eee; border-radius: 3px; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eee; color: #999; font-size: .78rem; font-weight: 800;
  flex: 0 0 auto; transition: all .3s;
}
.step-dot.active {
  background: linear-gradient(135deg, #1dc8ff, #009fe3);
  color: #fff; box-shadow: 0 0 0 4px rgba(29,200,255,.18);
  animation: stepPulse 1.6s ease-in-out infinite;
}
.step-dot.done { background: #2ecc71; color: #fff; }
@keyframes stepPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(29,200,255,.18); }
  50% { box-shadow: 0 0 0 8px rgba(29,200,255,.05); }
}
.wave-logo-wrap {
  width: 96px; height: 96px; margin: 4px auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f9ff, #ffffff);
  border-radius: 24px; border: 1px solid #d8f2ff;
  box-shadow: 0 8px 24px rgba(29,200,255,.18);
  animation: floatLogo 3s ease-in-out infinite;
}
.wave-logo-wrap.small { width: 72px; height: 72px; border-radius: 20px; }
.wave-logo { width: 74px; height: 74px; object-fit: contain; }
.wave-logo-wrap.small .wave-logo { width: 54px; height: 54px; }
@keyframes floatLogo {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.form-group { text-align: left; margin: 14px 0; }
.form-label {
  display: block; font-size: .82rem; font-weight: 800;
  color: #333; margin-bottom: 6px;
}
.input {
  width: 100%; padding: 14px 14px; border-radius: 14px;
  border: 2px solid #e8e8e8; background: #fafafa;
  font-size: 1rem; color: #222; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.input:focus {
  border-color: #1dc8ff; background: #fff;
  box-shadow: 0 0 0 4px rgba(29,200,255,.15);
}
.select { background-image: none; cursor: pointer; }
.phone-row { display: flex; gap: 8px; align-items: stretch; }
.dial-code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; padding: 0 10px; border-radius: 14px;
  background: #e8f9ff; color: #0077a8; font-weight: 800; font-size: .9rem;
  border: 2px solid #d8f2ff;
}
.phone-input { flex: 1; }
.password-row { position: relative; }
.password-row .input { padding-right: 52px; }
.eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: transparent;
  font-size: 1.1rem; cursor: pointer; border-radius: 10px;
}
.eye:active { background: #eee; }
.otp-input {
  text-align: center; font-size: 1.5rem; letter-spacing: 8px;
  font-weight: 800; padding: 16px 10px;
}
.btn-wave {
  background: linear-gradient(180deg, #29d3ff, #009fe3) !important;
  box-shadow: 0 6px 18px rgba(0,159,227,.45) !important;
  width: 100%; margin-top: 8px;
}
.btn-wave:not(:disabled) { animation: wavePulse 1.6s ease-in-out infinite !important; }
@keyframes wavePulse {
  0%,100% { box-shadow: 0 6px 18px rgba(0,159,227,.45); }
  50% { box-shadow: 0 6px 30px rgba(0,159,227,.85); }
}
.btn-ghost {
  width: 100%; margin-top: 10px; padding: 12px 16px;
  border-radius: 24px; border: 2px solid #d8f2ff; background: #fff;
  color: #0077a8; font-weight: 800; cursor: pointer; font-size: .9rem;
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 14px; font-size: .72rem; color: #777;
}
.trust-row span {
  background: #f5f7f8; border-radius: 20px; padding: 5px 10px;
  border: 1px solid #eee;
}
.secure-badge {
  display: inline-block; margin: 4px auto 10px; padding: 7px 14px;
  background: #e8f9ff; color: #0077a8; border-radius: 20px;
  font-size: .78rem; font-weight: 800; border: 1px solid #d8f2ff;
}
.countdown {
  display: inline-block; margin: 6px auto 12px; padding: 10px 22px;
  border-radius: 30px; background: #fff7e6; color: #b36b00;
  font-weight: 900; font-size: 1.15rem; border: 2px solid #ffe0a3;
  animation: countPulse 1s ease-in-out infinite;
}
.countdown.expired { background: #ffecec; color: #c40000; border-color: #ffb3b3; }
@keyframes countPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.shake { animation: shakeX .5s ease-in-out infinite; }
@keyframes shakeX {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.alert {
  text-align: left; padding: 12px 14px; border-radius: 14px;
  font-size: .82rem; line-height: 1.45; margin: 10px 0;
}
.alert.danger {
  background: #fff0f0; color: #a30000; border: 1px solid #ffc9c9;
  animation: alertIn .35s ease-out both;
}
.alert.show { display: block; }
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.unlock-box {
  background: linear-gradient(180deg, #f4fcff, #ffffff);
  border: 1px solid #d8f2ff; border-radius: 16px;
  padding: 14px; margin: 14px 0;
}
.unlock-box p { font-size: .88rem; color: #444; line-height: 1.5; margin-bottom: 10px; }
.share-progress { margin: 12px 0; }
.share-done {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: #e8f8ee; color: #1a7f4b; font-weight: 800; font-size: .85rem;
  animation: popIn .4s ease-out both;
}
.success-icon {
  font-size: 3rem; margin: 4px auto 8px; display: block;
  animation: successPop .6s cubic-bezier(.2,1.5,.4,1) both;
}
.success-icon.big { font-size: 4rem; }
@keyframes successPop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  70% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.success-box {
  background: #f5fbf7; border: 1px solid #d7f0e0; border-radius: 14px;
  padding: 12px 14px; margin: 12px 0; text-align: left;
}
.success-box p { font-size: .86rem; color: #2b6b45; line-height: 1.5; margin: 4px 0; }
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important;
}
.slide-up { animation: slideUp .55s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.wave-page { background: linear-gradient(180deg, #f40000 0%, #d10000 55%, #a80000 100%); }
.wave-page .card { border-top: 4px solid #1dc8ff; }
@media (max-width: 380px) {
  .otp-input { letter-spacing: 5px; font-size: 1.25rem; }
  .wave-logo-wrap { width: 82px; height: 82px; }
  .wave-logo { width: 62px; height: 62px; }
}
