/* Al-Fanar modern toast */
.aft-toast-host {
  position: fixed;
  z-index: 10050;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}

.aft-toast {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 16px 18px;
  border-radius: 18px;
  color: #f4f7fb;
  background: #0f1d36;
  border: 1px solid rgba(244, 180, 0, 0.35);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 40px rgba(11, 94, 215, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.aft-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.aft-toast.is-hiding {
  opacity: 0;
  transform: translateY(-12px);
}

.aft-toast-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.15rem;
  color: #071a36;
  background: linear-gradient(145deg, #ffe58a, #f4b400);
  box-shadow: 0 8px 20px rgba(244, 180, 0, 0.35);
  animation: aftToastPulse 1.8s ease-in-out infinite;
}

.aft-toast[data-type="success"] .aft-toast-icon {
  background: linear-gradient(145deg, #7dffc8, #16a34a);
  color: #04301c;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.aft-toast-copy {
  min-width: 0;
}

.aft-toast-copy strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.aft-toast-copy span {
  display: block;
  color: #a8bdd7;
  font-size: 0.8rem;
  line-height: 1.35;
}

.aft-toast-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #9fb1c8;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: 0.2s;
}

.aft-toast-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.aft-toast-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.aft-toast-bar > i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #0b5ed7, #f4b400, #16a34a);
  animation: aftToastBar linear forwards;
}

@keyframes aftToastPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes aftToastBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 520px) {
  .aft-toast-host { top: 16px; }
  .aft-toast { padding: 14px; gap: 12px; }
  .aft-toast-icon { width: 42px; height: 42px; font-size: 1rem; }
}

/* Avenor charming notification */
.aft-toast-host{
  top:clamp(18px,4vh,38px);
  width:min(460px,calc(100vw - 24px));
}
.aft-toast{
  grid-template-columns:58px 1fr 34px;
  gap:14px;
  min-height:104px;
  padding:16px 16px 18px;
  border:1px solid rgba(94,234,212,.25);
  border-radius:24px;
  color:#f8fafc;
  background:#0b1730;
  box-shadow:
    0 28px 80px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.04),
    0 0 55px rgba(94,234,212,.12);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  filter:none;
  transform:translateY(-16px);
  transition:opacity .32s ease,transform .4s cubic-bezier(.2,1.1,.3,1);
}
.aft-toast.is-visible{transform:translateY(0)}
.aft-toast.is-hiding{transform:translateY(-12px)}
.aft-toast:before{
  content:"";
  position:absolute;
  top:0;
  left:14%;
  right:14%;
  height:1px;
  background:linear-gradient(90deg,transparent,#5eead4,transparent);
  box-shadow:0 0 22px #5eead4;
}
.aft-toast-aura{
  position:absolute;
  width:150px;
  height:150px;
  left:-45px;
  top:-54px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(94,234,212,.2),transparent 68%);
  pointer-events:none;
}
.aft-toast-icon{
  position:relative;
  z-index:2;
  width:56px;
  height:56px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:18px;
  color:#04221c;
  background:linear-gradient(145deg,#a7f3d0,#5eead4 48%,#60a5fa);
  box-shadow:0 12px 28px rgba(94,234,212,.25),inset 0 1px 0 rgba(255,255,255,.6);
  animation:aftToastCharm 2.4s ease-in-out infinite;
}
.aft-toast[data-type="success"] .aft-toast-icon{
  color:#04221c;
  background:linear-gradient(145deg,#d1fae5,#5eead4 52%,#60a5fa);
  box-shadow:0 12px 28px rgba(94,234,212,.25),inset 0 1px 0 rgba(255,255,255,.6);
}
.aft-toast-copy{position:relative;z-index:2}
.aft-toast-brand{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
  color:#5eead4;
  font-size:.58rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.aft-toast-brand i{font-size:.45rem}
.aft-toast-copy strong{
  margin-bottom:3px;
  font-size:1rem;
  letter-spacing:-.01em;
}
.aft-toast-copy span{
  color:#a8b9cc;
  font-size:.79rem;
  line-height:1.42;
}
.aft-toast-close{
  position:relative;
  z-index:3;
  align-self:start;
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;
  color:#8094aa;
  background:rgba(255,255,255,.045);
}
.aft-toast-close:hover{
  color:#fff;
  border-color:rgba(94,234,212,.24);
  background:rgba(94,234,212,.09);
}
.aft-toast-bar{height:3px;background:rgba(255,255,255,.05)}
.aft-toast-bar > i{
  border-radius:999px;
  background:linear-gradient(90deg,#5eead4,#60a5fa,#a78bfa);
  box-shadow:0 0 12px rgba(94,234,212,.7);
}
.aft-toast-sparkles i{
  position:absolute;
  z-index:1;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#b9fff4;
  box-shadow:0 0 8px #5eead4;
  animation:aftSparkle 1.8s ease-in-out infinite;
}
.aft-toast-sparkles i:nth-child(1){top:18px;right:76px}
.aft-toast-sparkles i:nth-child(2){bottom:18px;left:92px;animation-delay:.5s}
.aft-toast-sparkles i:nth-child(3){top:14px;left:118px;animation-delay:1s}
.aft-toast-host.is-welcome{
  inset:0;
  top:0;
  left:0;
  width:auto;
  transform:none;
  display:grid;
  place-items:center;
  padding:18px;
  isolation:isolate;
  pointer-events:auto;
}
.aft-toast-host.is-welcome:before{
  content:"";
  position:fixed;
  z-index:0;
  inset:0;
  background:rgba(3,8,20,.82);
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  filter:none;
  animation:aftBackdropIn .35s ease both;
}
.aft-toast-host.is-welcome .aft-toast{
  position:relative;
  z-index:2;
  width:min(400px,calc(100vw - 28px));
  min-height:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  grid-template-columns:unset;
  grid-template-rows:unset;
  padding:32px 24px 22px;
  text-align:center;
  color:#fff;
  background:
    radial-gradient(90% 80% at 50% 0%,rgba(0,217,255,.18),transparent 58%),
    linear-gradient(180deg,#102a44,#061018);
  border:1px solid rgba(0,217,255,.42);
  border-radius:36px;
  box-shadow:0 35px 100px rgba(0,0,0,.58),0 0 70px rgba(0,217,255,.16);
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  filter:none !important;
  transform:none !important;
}
.aft-toast-host.is-welcome .aft-toast.is-visible,
.aft-toast-host.is-welcome .aft-toast.is-hiding{
  transform:none;
}
.aft-toast-logo{
  width:78px;height:78px;display:grid;place-items:center;
  border-radius:50%;
  background:#041018;
  border:2px solid rgba(0,217,255,.45);
  box-shadow:0 12px 28px rgba(0,217,255,.22);
}
.aft-toast-logo img{width:52px;height:52px;object-fit:contain}
.aft-welcome-go{
  margin-top:8px;
  min-height:46px;min-width:160px;padding:0 22px;border:0;border-radius:999px;
  color:#041018;font-weight:800;cursor:pointer;
  background:linear-gradient(105deg,#7af8ff,#00D9FF 42%,#00C896);
  box-shadow:0 12px 24px rgba(0,217,255,.28);
}
.aft-toast-host.is-welcome .aft-toast-icon{
  grid-column:auto;
  justify-self:center;
  width:78px;
  height:78px;
  margin-bottom:0;
  border-radius:50%;
  font-size:1.35rem;
  animation:none;
}
.aft-toast-host.is-welcome .aft-toast-copy{
  grid-column:auto;
  width:100%;
}
.aft-toast-host.is-welcome .aft-toast-brand{
  justify-content:center;
  color:#00D9FF;
  letter-spacing:.2em;
}
.aft-toast-host.is-welcome .aft-toast-copy strong{
  margin:4px 0 7px;
  font-size:1.45rem;
  color:#fff;
}
.aft-toast-host.is-welcome .aft-toast-copy span{
  max-width:320px;
  margin:0 auto;
  color:#d5e3f2;
  font-size:.94rem;
  line-height:1.55;
}
.aft-toast-host.is-welcome .aft-toast-close{
  position:absolute;
  top:14px;
  right:14px;
}
.aft-toast-host.is-welcome .aft-toast-sparkles{
  display:none;
}
@keyframes aftBackdropIn{
  from{opacity:0}
  to{opacity:1}
}
@keyframes aftToastCharm{
  0%,100%{transform:translateY(0) rotate(0)}
  50%{transform:translateY(-3px) rotate(2deg)}
}
@keyframes aftSparkle{
  0%,100%{opacity:.2;transform:scale(.7)}
  50%{opacity:1;transform:scale(1.35)}
}
@media(max-width:520px){
  .aft-toast{grid-template-columns:48px 1fr 32px;min-height:92px;padding:13px;gap:11px;border-radius:20px}
  .aft-toast-icon{width:46px;height:46px;border-radius:15px}
  .aft-toast-copy strong{font-size:.9rem}
  .aft-toast-copy span{font-size:.72rem}
  .aft-toast-host.is-welcome .aft-toast{
    grid-template-columns:unset;
    min-height:auto;
    padding:26px 18px 18px;
    border-radius:32px;
  }
  .aft-toast-host.is-welcome .aft-toast-icon{width:60px;height:60px;border-radius:20px;font-size:1.25rem}
  .aft-toast-host.is-welcome .aft-toast-copy strong{font-size:1.22rem}
  .aft-toast-host.is-welcome .aft-toast-copy span{font-size:.9rem;color:#d5e3f2}
}
@media(prefers-reduced-motion:reduce){
  .aft-toast,.aft-toast-icon,.aft-toast-sparkles i{animation:none;transition:none}
}
