/* L1017n verified wallet top-up: coin falls from above into the balance. */
/* Visual effect ONLY: all monetary accounting remains in Supabase. */
.l1017n-credit-fly-layer{
  position:fixed;inset:0;z-index:2147483000;pointer-events:none;
  overflow:hidden;isolation:isolate;
  font-family:'IBM Plex Sans Arabic',system-ui,sans-serif;
}
.l1017n-credit-fly-pill{
  position:absolute;top:0;left:0;display:flex;align-items:center;gap:10px;
  white-space:nowrap;direction:ltr;
  width:max-content;transform:translate(-500px,-500px);
  padding:10px 14px 10px 10px;
  color:#fbf7ff;font-size:clamp(15px,4vw,19px);font-weight:950;
  font-variant-numeric:tabular-nums;letter-spacing:.3px;
  background:linear-gradient(125deg,#44305f,#7b34a4 60%,#4c286c);
  border:1px solid #e7b5ffbb;border-radius:999px;
  box-shadow:0 9px 34px #823cba99,inset 0 1px 0 #fff7,0 0 0 5px #b370ee2a;
  will-change:transform,opacity,filter;
}
.l1017n-credit-coin{
  display:grid;place-items:center;flex:none;
  width:36px;height:36px;border-radius:50%;
  background:radial-gradient(circle at 34% 25%,#fffbd2,#ffd36b 38%,#d4921d 75%,#a26a12);
  color:#7c4a08;font-family:system-ui,sans-serif;font-weight:1000;font-size:24px;
  border:2px solid #fff5c7;box-shadow:0 0 19px #ffd36c88,inset 0 1px 0 #fff;
}
#walletView .wallet-hero.l1017n-credit-landed,
#customerWalletChip.l1017n-credit-landed{
  animation:l1017n-credit-landing 1s ease-out both!important;
}
#walletView .wallet-hero.l1017n-credit-landed #walletShowcaseBalance,
#customerWalletChip.l1017n-credit-landed #customerHeaderBalance{
  animation:l1017n-credit-balance-glow .85s ease-out both!important;
}
@keyframes l1017n-credit-landing{
  0%{filter:brightness(1);box-shadow:0 12px 30px #4c13504d}
  25%{filter:brightness(1.32);box-shadow:0 0 0 3px #f9b4ff9e,0 0 34px #d262efbd}
  100%{filter:brightness(1);box-shadow:0 12px 30px #4c13504d}
}
@keyframes l1017n-credit-balance-glow{
  0%{color:#fff;transform:scale(1)}
  32%{color:#fcf3a8;transform:scale(1.13);text-shadow:0 0 20px #ffe694}
  100%{color:#fff;transform:scale(1);text-shadow:none}
}
@media(prefers-reduced-motion:reduce){
  .l1017n-credit-fly-pill{will-change:auto}
  #walletView .wallet-hero.l1017n-credit-landed,
  #customerWalletChip.l1017n-credit-landed,
  #walletView .wallet-hero.l1017n-credit-landed #walletShowcaseBalance,
  #customerWalletChip.l1017n-credit-landed #customerHeaderBalance{
    animation:none!important;
  }
}

/* Confirmed credit receipt: lightweight, nonblocking and readable on phones. */
.l1017n-credit-success{position:fixed;z-index:2147483100;top:calc(92px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:min(300px,calc(100vw - 40px));box-sizing:border-box;display:flex;align-items:center;flex-direction:column;gap:10px;padding:22px 20px;border:1px solid #a6edce66;border-radius:26px;background:linear-gradient(145deg,#172c29f5,#181d2ff5);color:#f3fff9;box-shadow:0 24px 65px #0007,inset 0 1px #ffffff1f;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);pointer-events:none;direction:rtl;text-align:center;font-family:'IBM Plex Sans Arabic',system-ui,sans-serif;animation:l1017-receipt-in .45s cubic-bezier(.2,.8,.2,1) both;transition:opacity .22s,translate .22s}
.l1017n-credit-success strong{font-size:16px;line-height:1.6}
.l1017n-credit-success b{font-size:27px;font-variant-numeric:tabular-nums;color:#b9f8da;direction:ltr}
.l1017n-credit-success.is-leaving{opacity:0;translate:0 -12px}
.l1017n-success-mark{width:58px;height:58px;border-radius:50%;background:#83e5b615;box-shadow:0 0 30px #83e5b61a}
.l1017n-success-mark svg{width:100%;height:100%;stroke:#a6f4ce;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.l1017n-success-mark circle{stroke-dasharray:145;stroke-dashoffset:145;animation:l1017-draw .55s ease-out forwards}
.l1017n-success-mark path{stroke-dasharray:35;stroke-dashoffset:35;animation:l1017-draw .35s .35s ease-out forwards}
@keyframes l1017-draw{to{stroke-dashoffset:0}}
@keyframes l1017-receipt-in{from{opacity:0;transform:translate(-50%,-20px) scale(.94)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media(prefers-reduced-motion:reduce){.l1017n-credit-success,.l1017n-credit-success *{animation:none!important;transition:none!important}.l1017n-success-mark circle,.l1017n-success-mark path{stroke-dashoffset:0}}
