/* ==========================================================
   GLOBAL UNIVERSAL TOAST SYSTEM
========================================================== */

#toast{

position:fixed;

top:50%;

left:50%;

transform:
translate(-50%,-50%)
scale(.92);

width:calc(100% - 30px);

max-width:420px;

background:
linear-gradient(
135deg,
#071226,
#0f172a
);

color:#fff;

border-radius:24px;

padding:22px;

display:flex;

align-items:flex-start;

gap:16px;

z-index:999999;

opacity:0;

visibility:hidden;

transition:
all .35s ease;

pointer-events:none;

box-shadow:
0 25px 60px rgba(0,0,0,.35);

border:
1px solid rgba(255,255,255,.08);

backdrop-filter:blur(10px);

-webkit-backdrop-filter:blur(10px);

}

#toast.show{

opacity:1;

visibility:visible;

transform:
translate(-50%,-50%)
scale(1);

}

#toastIcon{

font-size:34px;

line-height:1;

flex-shrink:0;

}

.toast-content{

flex:1;

min-width:0;

}

#toastTitle{

font-weight:700;

margin:0 0 6px;

font-size:22px;

line-height:1.3;

color:#fff;

}

#toastMessage{

margin:0;

font-size:14px;

line-height:1.7;

opacity:.92;

color:rgba(255,255,255,.92);

}


/* ==========================================================
   UNIVERSAL SUCCESS POPUP
========================================================== */

.lead-popup{

position:fixed;

inset:0;

display:none;

align-items:center;

justify-content:center;

padding:20px;

z-index:99999;

background:
radial-gradient(circle at top right, rgba(255,0,119,.18), transparent 35%),
radial-gradient(circle at bottom left, rgba(255,106,0,.18), transparent 35%),
rgba(10,10,10,.58);

backdrop-filter:blur(8px);

-webkit-backdrop-filter:blur(8px);

opacity:0;

visibility:hidden;

transition:
opacity .28s ease,
visibility .28s ease;

}


/* ==========================================================
   SHOW POPUP
========================================================== */

.lead-popup.show{

display:flex;

opacity:1;

visibility:visible;

animation:popupFade .28s ease;

}


/* ==========================================================
   BODY LOCK
========================================================== */

.popup-open{

overflow:hidden;

}


/* ==========================================================
   POPUP BOX
========================================================== */

.lead-popup-box{

position:relative;

width:100%;

max-width:460px;

background:
linear-gradient(
180deg,
#ffffff 0%,
#fffaf7 100%
);

border-radius:28px;

padding:34px 28px 28px;

box-shadow:
0 30px 80px rgba(0,0,0,.22),
0 10px 30px rgba(255,106,0,.08);

border:
1px solid rgba(255,255,255,.7);

text-align:center;

overflow:hidden;

transform:
translateY(24px)
scale(.96);

animation:
popupRise .35s ease forwards;

}


/* ==========================================================
   TOP GLOW LINE
========================================================== */

.lead-popup-box::before{

content:"";

position:absolute;

top:0;

left:0;

right:0;

height:5px;

background:
linear-gradient(
90deg,
#ff6a00 0%,
#ff2d7a 50%,
#8a2eff 100%
);

}


/* ==========================================================
   LIGHT EFFECT
========================================================== */

.lead-popup-box::after{

content:"";

position:absolute;

top:-90px;

right:-90px;

width:180px;

height:180px;

border-radius:50%;

background:
radial-gradient(
circle,
rgba(255,106,0,.12),
transparent 70%
);

pointer-events:none;

}


/* ==========================================================
   TITLE
========================================================== */

.lead-popup h3{

margin:0;

padding-top:84px;

font-size:30px;

font-weight:800;

line-height:1.2;

color:#111827;

letter-spacing:-0.4px;

position:relative;

}


/* ==========================================================
   SUCCESS ICON
========================================================== */

.lead-popup h3::before{

content:"✓";

position:absolute;

top:0;

left:50%;

transform:translateX(-50%);

width:62px;

height:62px;

border-radius:50%;

display:flex;

align-items:center;

justify-content:center;

font-size:30px;

font-weight:900;

color:#fff;

background:
linear-gradient(
135deg,
#22c55e,
#16a34a
);

box-shadow:
0 12px 24px rgba(34,197,94,.28),
0 0 0 8px rgba(34,197,94,.08);

}


/* ==========================================================
   TEXT
========================================================== */

.lead-popup p{

margin:14px 0 0;

font-size:15px;

line-height:1.75;

color:#4b5563;

}

.lead-popup-sub{

font-size:14px !important;

color:#6b7280 !important;

margin-top:8px !important;

}


/* ==========================================================
   BUTTON WRAP
========================================================== */

.lead-popup-buttons{

display:grid;

grid-template-columns:1fr;

gap:12px;

margin-top:24px;

}


/* ==========================================================
   WHATSAPP BUTTON
========================================================== */

.btn-whatsapp{

border:none;

outline:none;

cursor:pointer;

text-decoration:none;

height:54px;

padding:0 18px;

border-radius:16px;

font-size:15px;

font-weight:800;

letter-spacing:.2px;

color:#fff;

background:
linear-gradient(
135deg,
#25d366,
#14b85a
);

box-shadow:
0 14px 28px rgba(37,211,102,.22);

transition:
transform .22s ease,
box-shadow .22s ease,
filter .22s ease;

}

.btn-whatsapp:hover{

transform:translateY(-2px);

box-shadow:
0 18px 34px rgba(37,211,102,.28);

filter:brightness(1.03);

}


/* ==========================================================
   CLOSE BUTTON
========================================================== */

.btn-close{

border:none;

outline:none;

cursor:pointer;

height:52px;

padding:0 18px;

border-radius:16px;

font-size:15px;

font-weight:800;

color:#111827;

background:#f4f4f5;

border:1px solid #e5e7eb;

transition:
transform .22s ease,
background .22s ease,
border-color .22s ease;

}

.btn-close:hover{

background:#ededee;

border-color:#d6d6d8;

transform:translateY(-1px);

}


/* ==========================================================
   CLOSE X BUTTON
========================================================== */

.lead-popup-close-x{

position:absolute;

top:14px;

right:14px;

width:38px;

height:38px;

border:none;

border-radius:50%;

background:#f5f5f5;

cursor:pointer;

font-size:18px;

}


/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes popupFade{

from{
opacity:0;
}

to{
opacity:1;
}

}

@keyframes popupRise{

from{

transform:
translateY(24px)
scale(.96);

opacity:0;

}

to{

transform:
translateY(0)
scale(1);

opacity:1;

}

}

@keyframes mobileSlide{

from{

transform:translateY(100%);

opacity:0;

}

to{

transform:translateY(0);

opacity:1;

}

}


/* ==========================================================
   TABLET
========================================================== */

@media(max-width:768px){

#toast{

max-width:92%;

padding:20px;

border-radius:22px;

}

#toastTitle{

font-size:20px;

}

#toastMessage{

font-size:14px;

}

#toastIcon{

font-size:30px;

}

.lead-popup{

padding:16px;

}

.lead-popup-box{

max-width:430px;

padding:32px 22px 24px;

border-radius:24px;

}

.lead-popup h3{

font-size:27px;

padding-top:78px;

}

.lead-popup h3::before{

width:58px;

height:58px;

font-size:28px;

}

}


/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:480px){

.lead-popup{

padding:14px;

align-items:flex-end;

}

.lead-popup-box{

max-width:100%;

border-radius:24px 24px 0 0;

padding:28px 18px 22px;

animation:
mobileSlide .34s ease forwards;

}

.lead-popup h3{

font-size:24px;

padding-top:72px;

}

.lead-popup h3::before{

width:54px;

height:54px;

font-size:26px;

}

.lead-popup p{

font-size:14px;

line-height:1.65;

}

.btn-whatsapp,
.btn-close{

height:50px;

font-size:14px;

border-radius:14px;

}

}