/* Christmas popup "2 months of Premium free" (1/12). Visuals and motion only, everything scoped under .agx-pop.
 * State: the root is hidden until it gets the class .agx-on (behaviour lives elsewhere).
 * Phones: bottom sheet that never covers the whole screen. From 760px: centred two-column card.
 * Art reused from the plugin: assets/landing/wrapped_gift.png, sparkles.png, assets/img/coin-128.webp. Lights, snow, streaks are CSS.
 * z-index 99980: below the cookie banner, event modal and the open mobile menu (99999 / 100000). */
@font-face{font-family:"FSEC";font-style:italic;font-weight:900;font-display:swap;src:url(../fonts/fsec-900i-greek.woff2) format("woff2");unicode-range:U+0370-03FF}
@font-face{font-family:"FSEC";font-style:italic;font-weight:900;font-display:swap;src:url(../fonts/fsec-900i-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

.agx-pop{--agx-ink:#040907;--agx-pine:#0c2318;--agx-lime:#c8ff3d;--agx-mint:#3ddc9c;--agx-gold:#ffd45a;--agx-berry:#a3162a;--agx-tx:#eef6f1;--agx-mu:#b4c7bc;
	display:none;position:fixed;inset:0;z-index:99980;font-family:Outfit,"Segoe UI",system-ui,sans-serif;color:var(--agx-tx);line-height:1.4;-webkit-font-smoothing:antialiased;text-align:center}
.agx-pop.agx-on{display:block}
.agx-pop *,.agx-pop *::before,.agx-pop *::after{box-sizing:border-box}
.agx-pop p,.agx-pop h2,.agx-pop ul{margin:0;padding:0}
.agx-pop img{display:block;max-width:none;height:auto;border:0}

.agx-pop .agx-bg{position:absolute;inset:0;background:rgba(2,8,6,.58);animation:agx-fade .35s ease both}

/* ---- card (phone: bottom sheet) ---- */
.agx-pop .agx-card{position:absolute;left:0;right:0;bottom:0;margin:0 auto;max-width:560px;max-height:calc(100% - 96px);display:flex;flex-direction:column;border-radius:28px 28px 0 0;outline:0;
	background:radial-gradient(85% 55% at 50% 0%,rgba(163,22,42,.62),transparent 68%),radial-gradient(70% 45% at 100% 100%,rgba(61,220,156,.2),transparent 65%),linear-gradient(172deg,var(--agx-pine),var(--agx-ink) 72%);
	box-shadow:inset 0 0 0 1px rgba(200,255,61,.3),inset 0 1px 0 1px rgba(255,255,255,.08),0 -18px 70px rgba(0,0,0,.6),0 0 90px -20px rgba(61,220,156,.45);
	animation:agx-sheet .55s cubic-bezier(.2,.9,.25,1) both}

/* clipped decoration layer: streaks, lights, snow */
.agx-pop .agx-fx{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}
.agx-pop .agx-streak{position:absolute;left:-20%;right:-20%;top:34%;height:2px;border-radius:2px;transform:rotate(-7deg);opacity:.55;
	background:linear-gradient(90deg,transparent,rgba(200,255,61,.85) 45%,rgba(255,255,255,.9) 50%,rgba(61,220,156,.8) 55%,transparent);box-shadow:0 0 14px 1px rgba(200,255,61,.55);
	animation:agx-streak 5.5s ease-in-out infinite}
.agx-pop .agx-streak + .agx-streak{top:78%;transform:rotate(5deg);opacity:.3;animation-delay:-2.6s}

.agx-pop .agx-lights{position:absolute;left:0;right:0;top:0;height:30px;display:flex;justify-content:space-around;padding:0 20px;border-top:1px solid rgba(255,255,255,.22)}
.agx-pop .agx-lights i{position:relative;width:8px;height:13px;margin-top:5px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;background:var(--c);box-shadow:0 0 10px 2px var(--c);animation:agx-twinkle 2.4s ease-in-out infinite}
.agx-pop .agx-lights i::before{content:"";position:absolute;left:2px;top:-5px;width:4px;height:5px;border-radius:1px;background:#31443a}
.agx-pop .agx-lights i:nth-child(4n+1){--c:#ffd45a}
.agx-pop .agx-lights i:nth-child(4n+2){--c:#ff5d6c;animation-delay:-.6s;margin-top:8px}
.agx-pop .agx-lights i:nth-child(4n+3){--c:#3ddc9c;animation-delay:-1.2s}
.agx-pop .agx-lights i:nth-child(4n+4){--c:#c8ff3d;animation-delay:-1.8s;margin-top:8px}
.agx-pop .agx-lights i:nth-child(n+10){display:none}

.agx-pop .agx-snow i{position:absolute;top:-12px;left:var(--x);width:var(--s,5px);height:var(--s,5px);border-radius:50%;background:#fff;opacity:var(--o,.7);box-shadow:0 0 6px rgba(255,255,255,.7);animation:agx-fall var(--d,9s) linear infinite;animation-delay:var(--w,0s)}
.agx-pop .agx-snow i:nth-child(1){--x:6%;--d:10s;--w:-2s}
.agx-pop .agx-snow i:nth-child(2){--x:15%;--s:3px;--d:13s;--w:-7s;--o:.5}
.agx-pop .agx-snow i:nth-child(3){--x:24%;--d:9s;--w:-4s}
.agx-pop .agx-snow i:nth-child(4){--x:33%;--s:3px;--d:14s;--w:-10s;--o:.45}
.agx-pop .agx-snow i:nth-child(5){--x:42%;--s:4px;--d:11s;--w:-1s}
.agx-pop .agx-snow i:nth-child(6){--x:51%;--s:3px;--d:15s;--w:-6s;--o:.5}
.agx-pop .agx-snow i:nth-child(7){--x:60%;--d:10s;--w:-8s}
.agx-pop .agx-snow i:nth-child(8){--x:69%;--s:3px;--d:12s;--w:-3s;--o:.5}
.agx-pop .agx-snow i:nth-child(9){--x:78%;--s:6px;--d:9.5s;--w:-5s;--o:.6}
.agx-pop .agx-snow i:nth-child(10){--x:87%;--s:3px;--d:13.5s;--w:-9s;--o:.45}
.agx-pop .agx-snow i:nth-child(11){--x:94%;--s:4px;--d:11.5s;--w:-.5s}
.agx-pop .agx-snow i:nth-child(12){--x:47%;--s:4px;--d:16s;--w:-12s;--o:.4}

/* ---- close: 44px target, always above the art ---- */
.agx-pop .agx-x{position:absolute;z-index:5;top:12px;right:12px;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(4,9,7,.72);color:#fff;cursor:pointer;display:grid;place-items:center;transition:background .15s,border-color .15s,transform .15s}
.agx-pop .agx-x svg{width:20px;height:20px}
.agx-pop .agx-x:hover{background:#fff;color:#06130d;border-color:#fff;transform:rotate(90deg)}
.agx-pop .agx-x:focus-visible,.agx-pop .agx-cta:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* ---- art: gift, our coin, sparkles (phone: badge over the top edge of the sheet) ---- */
.agx-pop .agx-art{position:absolute;z-index:2;left:50%;top:-58px;width:132px;height:132px;margin-left:-66px;pointer-events:none}
.agx-pop .agx-art::before{content:"";position:absolute;inset:-18%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,212,90,.42),rgba(255,93,108,.2) 55%,transparent);animation:agx-glow 4s ease-in-out infinite}
.agx-pop .agx-gift{position:absolute;left:8%;top:6%;width:84%;filter:drop-shadow(0 16px 18px rgba(0,0,0,.55));transform-origin:50% 90%;animation:agx-drop .8s cubic-bezier(.3,1.5,.5,1) .25s both,agx-bob 5s ease-in-out 1.1s infinite}
.agx-pop .agx-coin{position:absolute;right:-20%;top:-6%;width:42%;filter:drop-shadow(0 8px 10px rgba(0,0,0,.5)) drop-shadow(0 0 14px rgba(255,212,90,.55));animation:agx-coin 1s cubic-bezier(.2,1.2,.4,1) .7s both,agx-float 4.2s ease-in-out 1.8s infinite}
.agx-pop .agx-spark{position:absolute;left:-22%;top:20%;width:36%;animation:agx-spark 2.8s ease-in-out infinite}

/* ---- copy ---- */
.agx-pop .agx-body{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:80px 20px calc(14px + env(safe-area-inset-bottom,0px));scrollbar-width:thin}
.agx-pop .agx-k{font-size:13.5px;font-weight:700;color:var(--agx-gold);text-shadow:0 0 14px rgba(255,212,90,.5)}
.agx-pop .agx-h{font-family:FSEC,"Arial Narrow",Impact,sans-serif;font-style:italic;font-weight:900;text-transform:uppercase;line-height:.9;letter-spacing:-.01em;margin-top:4px}
.agx-pop .agx-h span{display:block}
.agx-pop .agx-h1{font-size:clamp(66px,21vw,92px);padding:0 .08em .04em;background:linear-gradient(#f6ffd0,var(--agx-lime) 42%,var(--agx-mint));-webkit-background-clip:text;background-clip:text;color:transparent;
	filter:drop-shadow(0 4px 0 rgba(0,70,30,.7)) drop-shadow(0 0 24px rgba(120,255,90,.4));animation:agx-slam .6s cubic-bezier(.2,1.3,.4,1) .2s both}
.agx-pop .agx-h2{font-size:clamp(31px,9.6vw,42px);color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.45);animation:agx-rise .5s ease .38s both}
.agx-pop .agx-lead{margin-top:10px;max-width:34ch;font-size:15.5px;font-weight:500;color:var(--agx-tx);text-wrap:balance;animation:agx-rise .5s ease .48s both}
.agx-pop .agx-ul{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 8px;margin-top:10px;animation:agx-rise .5s ease .56s both}
.agx-pop .agx-ul li{display:flex;align-items:center;gap:7px;padding:5px 12px 5px 6px;border-radius:999px;font-size:13.5px;font-weight:600;color:#fff;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.agx-pop .agx-ul svg{flex:none;width:24px;height:24px;padding:4px;border-radius:50%;background:linear-gradient(135deg,var(--agx-lime),var(--agx-mint));color:#06130d}
.agx-pop .agx-punch{margin-top:12px;font-size:15px;font-weight:800;color:var(--agx-lime);text-wrap:balance;animation:agx-rise .5s ease .64s both}

.agx-pop .agx-cta{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:420px;min-height:58px;margin-top:12px;padding:8px 14px;text-wrap:balance;border-radius:999px;text-decoration:none;
	font-family:FSEC,"Arial Narrow",Impact,sans-serif;font-style:italic;font-weight:900;text-transform:uppercase;font-size:clamp(17px,5.3vw,24px);line-height:1;letter-spacing:.01em;color:#06130d;
	background:linear-gradient(180deg,#e6ff8a,var(--agx-lime) 45%,#8fe95f);box-shadow:inset 0 -4px 0 rgba(0,70,30,.28),inset 0 2px 0 rgba(255,255,255,.6),0 12px 30px -8px rgba(200,255,61,.7),0 0 0 5px rgba(200,255,61,.14);
	transition:transform .15s,box-shadow .15s;animation:agx-rise .5s ease .72s both,agx-pulse 2.6s ease-in-out 1.6s infinite}
.agx-pop .agx-cta::after{content:"";position:absolute;top:0;bottom:0;left:-40%;width:30%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);animation:agx-sheen 3.6s ease-in-out 1.4s infinite}
.agx-pop .agx-cta svg{flex:none;width:26px;height:26px;padding:5px;border-radius:50%;background:#06130d;color:var(--agx-lime)}
.agx-pop .agx-cta:hover{transform:translateY(-2px);color:#06130d}
.agx-pop .agx-cta:active{transform:translateY(1px)}

.agx-pop .agx-terms{margin-top:10px;font-size:13.5px;font-weight:600;color:#e3efe8;text-wrap:balance}
.agx-pop .agx-foot{margin-top:8px;max-width:46ch;font-size:11.5px;line-height:1.35;color:#93aa9e;text-wrap:balance}

/* short phones (360x640 and below): tighter, the CTA stays on screen */
@media(max-height:680px) and (max-width:759px){
	.agx-pop .agx-art{top:-46px;width:104px;height:104px;margin-left:-52px}
	.agx-pop .agx-body{padding-top:62px}
	.agx-pop .agx-h1{font-size:64px}
	.agx-pop .agx-h2{font-size:31px}
	.agx-pop .agx-lead{font-size:14.5px;margin-top:8px}
	.agx-pop .agx-ul{margin-top:8px}.agx-pop .agx-ul li{font-size:13px}
	.agx-pop .agx-punch{margin-top:9px;font-size:14.5px}
	.agx-pop .agx-cta{min-height:54px;margin-top:10px}
}

/* ---- tablet and desktop: centred two-column card ---- */
@media(min-width:760px){
	.agx-pop{text-align:left;display:none;place-items:center;padding:24px}
	.agx-pop.agx-on{display:grid}
	.agx-pop .agx-bg{background:rgba(2,8,6,.74);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
	.agx-pop .agx-card{position:relative;left:auto;right:auto;bottom:auto;width:100%;max-width:900px;max-height:calc(100vh - 48px);flex-direction:row;border-radius:30px;
		background:radial-gradient(52% 78% at 19% 46%,rgba(163,22,42,.72),transparent 70%),radial-gradient(60% 60% at 100% 100%,rgba(61,220,156,.2),transparent 65%),linear-gradient(160deg,var(--agx-pine),var(--agx-ink) 70%);
		box-shadow:inset 0 0 0 1px rgba(200,255,61,.3),inset 0 1px 0 1px rgba(255,255,255,.08),0 40px 110px -20px rgba(0,0,0,.85),0 0 120px -20px rgba(61,220,156,.5);
		animation-name:agx-card}
	.agx-pop .agx-lights i:nth-child(n+10){display:block}
	.agx-pop .agx-streak{top:30%}
	.agx-pop .agx-art{position:relative;left:auto;top:auto;flex:0 0 37%;width:auto;height:auto;margin:0;min-height:430px}
	.agx-pop .agx-art::before{inset:16% 6% 18%}
	.agx-pop .agx-gift{left:14%;top:50%;width:74%;margin-top:-37%;animation-name:agx-drop,agx-bob}
	.agx-pop .agx-coin{right:7%;top:12%;width:30%}
	.agx-pop .agx-spark{left:5%;top:15%;width:23%}
	.agx-pop .agx-body{flex:1;align-items:flex-start;justify-content:center;padding:52px 60px 30px 6px}
	.agx-pop .agx-k{font-size:16px}
	.agx-pop .agx-h{margin-top:6px}
	.agx-pop .agx-h1{font-size:118px;padding-left:0}
	.agx-pop .agx-h2{font-size:52px}
	.agx-pop .agx-lead{font-size:18px;max-width:30ch;margin-top:16px}
	.agx-pop .agx-ul{justify-content:flex-start;margin-top:14px;gap:8px}
	.agx-pop .agx-ul li{font-size:14.5px;padding:6px 14px 6px 6px}
	.agx-pop .agx-punch{font-size:17px;margin-top:16px}
	.agx-pop .agx-cta{min-height:64px;font-size:26px;margin-top:18px;max-width:440px}
	.agx-pop .agx-terms{font-size:14px;margin-top:12px}
	.agx-pop .agx-foot{font-size:12px;margin-top:10px;max-width:none}
	.agx-pop .agx-x{top:16px;right:16px}
}

@keyframes agx-fade{from{opacity:0}}
@keyframes agx-sheet{from{transform:translateY(105%)}}
@keyframes agx-card{from{opacity:0;transform:translateY(26px) scale(.95)}}
@keyframes agx-rise{from{opacity:0;transform:translateY(12px)}}
@keyframes agx-slam{from{opacity:0;transform:translateX(-26px) skewX(-10deg) scale(1.12)}}
@keyframes agx-drop{from{opacity:0;transform:translateY(-70px) rotate(-14deg) scale(.7)}}
@keyframes agx-bob{50%{transform:translateY(-7px) rotate(3deg)}}
@keyframes agx-coin{from{opacity:0;transform:translate(-60%,70%) rotateY(540deg) scale(.4)}}
@keyframes agx-float{50%{transform:translateY(-9px) rotate(-8deg)}}
@keyframes agx-spark{0%,100%{opacity:.45;transform:scale(.8) rotate(-8deg)}50%{opacity:1;transform:scale(1.08) rotate(6deg)}}
@keyframes agx-glow{50%{opacity:.6;transform:scale(1.08)}}
@keyframes agx-twinkle{0%,100%{opacity:1}50%{opacity:.35;box-shadow:0 0 3px 0 var(--c)}}
@keyframes agx-fall{to{transform:translate3d(26px,720px,0)}}
@keyframes agx-streak{0%,100%{opacity:.25}50%{opacity:.7}}
@keyframes agx-sheen{0%,55%{left:-40%}100%{left:130%}}
@keyframes agx-pulse{50%{box-shadow:inset 0 -4px 0 rgba(0,70,30,.28),inset 0 2px 0 rgba(255,255,255,.6),0 14px 38px -6px rgba(200,255,61,.9),0 0 0 9px rgba(200,255,61,.1)}}

@media(prefers-reduced-motion:reduce){
	.agx-pop *,.agx-pop *::before,.agx-pop *::after{animation:none!important;transition:none!important}
	.agx-pop .agx-snow i{top:var(--y,30%)}
	.agx-pop .agx-snow i:nth-child(odd){--y:62%}
	.agx-pop .agx-snow i:nth-child(3n){--y:14%}
}
