/* ----------  Cera Pro (same source rizzup.net uses)  ---------- */
@font-face {
    font-family: CeraPro;
    src: url(https://cdn.plixi.com/landing/assets/fonts/cera/CeraPro-Regular.woff) format("woff"),
         url(https://cdn.plixi.com/landing/assets/fonts/cera/CeraPro-Regular.ttf)  format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: CeraPro;
    src: url(https://cdn.plixi.com/landing/assets/fonts/cera/CeraPro-Medium.woff) format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: CeraPro;
    src: url(https://cdn.plixi.com/landing/assets/fonts/cera/CeraPro-Bold.woff) format("woff"),
         url(https://cdn.plixi.com/landing/assets/fonts/cera/CeraPro-Bold.ttf)  format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ----------  base  ---------- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #ffffff;
    color: #000000;
    font-family: CeraPro, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: contain;     /* kill iOS rubber-band so we don't get ghost gaps */
}

.page {
    min-height: 100vh;
    min-height: 100dvh;               /* responsive to soft keyboard */
    display: flex;
    flex-direction: column;
    padding: 20px 20px 12px;          /* tight bottom padding kills the gap above the keyboard */
}

/* ----------  brand wordmark (top of page, large)  ---------- */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: clamp(32px, 8vw, 44px);
    color: #000000;
    letter-spacing: -1px;
    user-select: none;
    margin: 8px 0 0;
}
.brand-logo {
    width: auto;
    height: clamp(40px, 9.5vw, 52px);
    flex-shrink: 0;
    -webkit-user-drag: none;
    user-select: none;
    display: block;
}

/* ----------  hero (centered in the remaining space)  ---------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 28px 0 24px;
}

/* only vertically center on tall viewports — keeps mobile layout stable when keyboard pops up */
@media (min-height: 860px) {
    .hero { flex: 1; justify-content: center; padding: 0; }
}

.hero-title {
    font-weight: 700;
    color: #000000;
    font-size: clamp(40px, 10vw, 64px);
    line-height: 1.05;
    margin: 0 0 16px;
    text-align: center;
    letter-spacing: -1.5px;
}
.hero-sub {
    color: #6c757d;
    font-size: clamp(17px, 4.5vw, 22px);
    line-height: 1.4;
    margin: 0 0 40px;
    text-align: center;
    font-weight: 400;
    max-width: 520px;
}

/* ----------  input card  ---------- */
.card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.08),
                0 2px 8px  rgba(0, 0, 0, 0.05);
    padding: 28px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #eef0f2;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}
.input-group .at {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb6be;
    font-weight: 500;
    font-size: 20px;
    pointer-events: none;
}
.input-group input {
    width: 100%;
    padding: 20px 20px 20px 44px;
    font-family: inherit;
    font-size: 18px;
    color: #000;
    background: #ffffff;
    border: 1.5px solid #dfe3e8;
    border-radius: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
}
.input-group input::placeholder { color: #adb6be; }
.input-group input:hover { border-color: #c4cbd3; }
.input-group input:focus {
    border-color: #4b25ea;
    box-shadow: 0 0 0 3px rgba(75, 37, 234, 0.12);
}

/* ----------  primary button — solid blue (matches rizzup's "Start Growing")  ---------- */
.btn-primary {
    width: 100%;
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 14px;
    background-color: #bd18e6;
    background-image: linear-gradient(90deg, #4b25ea 0%, #bd18e6 50%, #fb590e 100%);
    box-shadow: rgba(0, 0, 0, 0.30) 0 2px 4px,
                rgba(0, 0, 0, 0.22) 0 8px 16px -4px,
                rgba(0, 0, 0, 0.40) 0 -3px 0 inset;
    transition: transform .15s ease, box-shadow .15s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active {
    transform: translateY(1px);
    box-shadow: rgba(0, 0, 0, 0.30) 0 1px 2px,
                rgba(0, 0, 0, 0.25) 0 4px 8px -3px,
                rgba(0, 0, 0, 0.45) 0 -3px 0 inset;
}
.btn-primary .bolt-icon { font-size: 1.05em; line-height: 1; }
.btn-primary .arrow { font-size: 1.1em; line-height: 1; }

/* ====================================================================
   GIFT TICKET  (home page form styled as a real, vertical gift card)
   ==================================================================== */

.ticket {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 70px 24px 32px;       /* taller top + bottom = card runs longer & gives the gift room to explode */
    color: #ffffff;
    overflow: hidden;
    background:
        linear-gradient(135deg, #4b25ea 0%, #6e1dea 28%, #bd18e6 58%, #f23b4a 82%, #fb590e 100%);
    box-shadow:
        0 24px 50px rgba(75, 37, 234, 0.40),
        0 8px 22px rgba(0, 0, 0, 0.18);
    isolation: isolate;
}

/* sparkle dot overlay — gives the card texture like a real gift card mosaic */
.ticket::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.13) 1px, transparent 1.6px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}

/* hanging notch at top center (the retail-display hole) */
.ticket-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

/* top label — single centered "INCLUDES FREE BOOST" tag (FREE corner badge removed) */
.ticket-top {
    position: absolute;
    top: 32px;
    left: 16px;
    right: 16px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}
.ticket-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
}

/* gift icon overrides (bigger inside the ticket, with stronger shadow) */
.ticket .gift-icon {
    width: 120px;
    height: 120px;
    margin: 26px auto 4px;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.30));
    position: relative;
    z-index: 1;
}

/* descriptive 2-line wordmark — replaces the RIZZUP logotype */
.ticket-brand {
    text-align: center;
    font-size: clamp(28px, 8vw, 38px);
    font-weight: 900;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -1.2px;
    margin: 12px 0 22px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    z-index: 1;
}
.ticket-brand .line-1 { display: block; opacity: 0.95; }
.ticket-brand .line-2 { display: block; }

/* fade the wordmark away while the gift jackpot fires so BOOST! reads clean */
.ticket.submitting .ticket-brand {
    animation: brand-fade 1.5s ease-out forwards;
}
@keyframes brand-fade {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* perforated divider (dashed line + side semicircle "tears") */
.ticket-perf {
    position: relative;
    height: 2px;
    margin: 0 -24px 18px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
    background-size: 8px 2px;
    background-repeat: repeat-x;
    z-index: 1;
}
.ticket-perf::before,
.ticket-perf::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.ticket-perf::before { left:  -10px; }
.ticket-perf::after  { right: -10px; }

/* gift-stage wrapper inside the ticket — anchors the burst overlay over the gift */
.ticket .gift-stage {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 30px auto 8px;    /* push gift down so the explosion has clearance from the top */
    z-index: 1;
}
.ticket .gift-stage .gift-icon {
    width: 100%;
    height: 100%;
    margin: 0;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.30));
}

/* SLOT-MACHINE BONUS HIT — gift opening sequence */
.gift-icon.opening {
    animation:
        gift-buildup  0.40s ease-in 1,
        gift-spin     0.40s cubic-bezier(0.45, 0, 0.55, 1) 0.40s 1,
        gift-jackpot  0.80s cubic-bezier(0.34, 1.56, 0.64, 1) 0.80s forwards;
}

/* anticipation: wobble accelerates and grows */
@keyframes gift-buildup {
    0%   { transform: rotate(0deg)   scale(1.05); }
    25%  { transform: rotate(-15deg) scale(1.08); }
    50%  { transform: rotate(18deg)  scale(1.12); }
    75%  { transform: rotate(-18deg) scale(1.16); }
    100% { transform: rotate(0deg)   scale(1.20);
           filter: brightness(1.3) drop-shadow(0 14px 28px rgba(0,0,0,0.30)); }
}

/* the spin — full 720° with growing glow */
@keyframes gift-spin {
    0%   { transform: rotate(0deg)   scale(1.20);
           filter: brightness(1.3) drop-shadow(0 14px 28px rgba(0,0,0,0.30)); }
    100% { transform: rotate(720deg) scale(1.40);
           filter: brightness(1.8)
                   drop-shadow(0 0 30px rgba(255, 220, 100, 0.9))
                   drop-shadow(0 0 60px rgba(255, 200,  50, 0.6)); }
}

/* JACKPOT — mega-pulse, white-hot, fade as it explodes (clamped so the top doesn't clip) */
@keyframes gift-jackpot {
    0%   { transform: rotate(720deg) scale(1.40); opacity: 1;
           filter: brightness(1.8)
                   drop-shadow(0 0 30px rgba(255, 220, 100, 0.9))
                   drop-shadow(0 0 60px rgba(255, 200,  50, 0.6)); }
    25%  { transform: rotate(720deg) scale(2.2);  opacity: 1;
           filter: brightness(3) saturate(1.8)
                   drop-shadow(0 0 80px  rgba(255, 240, 120, 1))
                   drop-shadow(0 0 160px rgba(255, 220,  50, 0.9)); }
    100% { transform: rotate(720deg) scale(2.6);  opacity: 0;
           filter: brightness(3)
                   drop-shadow(0 0 100px rgba(255, 240, 120, 1)); }
}

/* burst overlay — flies particles outward from the gift center */
.burst-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 3;
}
.burst-particle {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 26px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    will-change: transform, opacity;
    user-select: none;
}
/* 16 particles — big jackpot shower, fired at gift-jackpot peak */
.burst-overlay.show .burst-particle:nth-child(1)  { animation: burst-fly 1.1s ease-out 0.85s forwards; --x:    0px; --y: -200px; }
.burst-overlay.show .burst-particle:nth-child(2)  { animation: burst-fly 1.1s ease-out 0.90s forwards; --x:  100px; --y: -180px; }
.burst-overlay.show .burst-particle:nth-child(3)  { animation: burst-fly 1.1s ease-out 0.95s forwards; --x:  170px; --y: -110px; }
.burst-overlay.show .burst-particle:nth-child(4)  { animation: burst-fly 1.1s ease-out 0.90s forwards; --x:  200px; --y:    0px; }
.burst-overlay.show .burst-particle:nth-child(5)  { animation: burst-fly 1.1s ease-out 0.95s forwards; --x:  170px; --y:  110px; }
.burst-overlay.show .burst-particle:nth-child(6)  { animation: burst-fly 1.1s ease-out 0.90s forwards; --x:  100px; --y:  180px; }
.burst-overlay.show .burst-particle:nth-child(7)  { animation: burst-fly 1.1s ease-out 0.85s forwards; --x:    0px; --y:  200px; }
.burst-overlay.show .burst-particle:nth-child(8)  { animation: burst-fly 1.1s ease-out 0.90s forwards; --x: -100px; --y:  180px; }
.burst-overlay.show .burst-particle:nth-child(9)  { animation: burst-fly 1.1s ease-out 0.95s forwards; --x: -170px; --y:  110px; }
.burst-overlay.show .burst-particle:nth-child(10) { animation: burst-fly 1.1s ease-out 0.90s forwards; --x: -200px; --y:    0px; }
.burst-overlay.show .burst-particle:nth-child(11) { animation: burst-fly 1.1s ease-out 0.95s forwards; --x: -170px; --y: -110px; }
.burst-overlay.show .burst-particle:nth-child(12) { animation: burst-fly 1.1s ease-out 0.90s forwards; --x: -100px; --y: -180px; }
/* second wave — flies further and a bit later for a "shower" feel */
.burst-overlay.show .burst-particle:nth-child(13) { animation: burst-fly 1.0s ease-out 1.05s forwards; --x:   60px; --y: -240px; }
.burst-overlay.show .burst-particle:nth-child(14) { animation: burst-fly 1.0s ease-out 1.10s forwards; --x:  -60px; --y: -240px; }
.burst-overlay.show .burst-particle:nth-child(15) { animation: burst-fly 1.0s ease-out 1.05s forwards; --x:  240px; --y:   80px; }
.burst-overlay.show .burst-particle:nth-child(16) { animation: burst-fly 1.0s ease-out 1.10s forwards; --x: -240px; --y:   80px; }

@keyframes burst-fly {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0deg); }
    15%  { opacity: 1; transform: translate(-50%, -50%) scale(1.5) rotate(40deg); }
    100% { opacity: 0;
           transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.6) rotate(540deg); }
}

/* full-screen flash + BOOST! text — fire when the gift hits the jackpot */
.flash-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center,
                rgba(255, 250, 200, 0.95) 0%,
                rgba(255, 200,  50, 0.50) 28%,
                rgba(255, 200,  50, 0)    65%);
    pointer-events: none;
    opacity: 0;
    z-index: 9998;
    will-change: opacity, transform;
    transform: scale(0.6);
}
.flash-overlay.show { animation: flash 0.55s ease-out 0.85s forwards; }
@keyframes flash {
    0%   { opacity: 0; transform: scale(0.6); }
    25%  { opacity: 1; transform: scale(1);   }
    100% { opacity: 0; transform: scale(1.6); }
}

.boost-text {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: clamp(60px, 17vw, 100px);
    font-weight: 900;
    letter-spacing: -2px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    /* translate3d forces a GPU layer — kills the iOS Safari paint flicker during the pop */
    transform: translate3d(-50%, -50%, 0) scale(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    color: #ffd84a;
    /* paint-order: stroke fill puts the fill on top of the stroke,
       which eliminates the jagged stroke-vs-counter glitch on letters like S */
    -webkit-text-stroke: 6px #ffffff;
    paint-order: stroke fill;
    filter:
        drop-shadow(0 6px 0 #c97e00)
        drop-shadow(0 14px 30px rgba(255, 200, 50, 0.55));
}
.boost-text.show { animation: boost-pop 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s forwards; }
/* scale-only animation — rotation forced text re-rasterization every frame on mobile */
@keyframes boost-pop {
    0%   { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.3); }
    25%  { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1.4); }
    55%  { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1.1); }
    80%  { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1.2); }
    100% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.95); }
}

/* redeem section (input + button) sits inside the ticket below the perforation */
.ticket-redeem {
    position: relative;
    z-index: 1;
}
.ticket-redeem .input-group { margin-bottom: 8px; }

.account-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 4px 0 14px;
    padding: 0 4px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.account-notice .notice-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.account-notice strong {
    font-weight: 900;
    letter-spacing: 0.4px;
}
.ticket-redeem .input-group input {
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #111;
    font-weight: 500;
    padding-left: 20px;
    text-align: center;
    scroll-margin-bottom: 130px;     /* iOS: scroll enough to reveal the button below the input */
}
.ticket-redeem .input-group input::placeholder { color: #6b7280; }
.ticket-redeem .input-group input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.ticket-redeem .input-group .at { color: #6b7280; }

/* white "redeem" button on top of the colored ticket — high contrast */
.ticket-redeem .btn-primary {
    background-color: #ffffff;
    background-image: none;
    color: #4b25ea;
    box-shadow:
        rgba(0, 0, 0, 0.18) 0 4px 12px,
        rgba(0, 0, 0, 0.10) 0 -2px 0 inset;
}
.ticket-redeem .btn-primary:hover  { transform: translateY(-1px); }
.ticket-redeem .btn-primary:active { transform: translateY(1px); }

/* the gift box — wiggles like it's about to pop open */
.gift-icon {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 22px;
    transform-origin: 50% 50%;     /* center pivot — explosion grows evenly so the top doesn't clip */
    animation: gift-wiggle 2.6s ease-in-out infinite;
    filter: drop-shadow(0 6px 14px rgba(95, 36, 234, 0.25));
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* simpler smooth wiggle — much less jitter on 60Hz desktop displays */
@keyframes gift-wiggle {
    0%, 100% { transform: rotate(0deg)   scale(1);    }
    25%      { transform: rotate(-10deg) scale(1.05); }
    50%      { transform: rotate(0deg)   scale(1);    }
    75%      { transform: rotate(10deg)  scale(1.05); }
}

/* ====================================================================
   ACTIVATING PAGE — soft glow + sparkles + progress + CTA
   ==================================================================== */

.activate-wrap {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    width: 100%;
    padding: 20px 0;
}

.bolt-stage {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* soft radial aura behind the bolt — replaces the hard ring */
.bolt-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
    background: radial-gradient(circle,
                rgba(255, 240, 120, 0.55) 0%,
                rgba(255, 180,   0, 0.25) 35%,
                rgba(255, 180,   0, 0)    70%);
    filter: blur(22px);
    border-radius: 50%;
    animation: glow-pulse 1.6s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes glow-pulse {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50%      { transform: scale(1.15); opacity: 1;   }
}

/* rising sparkles around the bolt */
.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}
.sparkle {
    position: absolute;
    top: 65%;
    font-size: 18px;
    opacity: 0;
    animation: sparkle-rise 3.2s linear infinite;
    will-change: transform, opacity;
    user-select: none;
}
.sparkle:nth-child(1) { left:  6%; animation-delay: 0s;    font-size: 16px; }
.sparkle:nth-child(2) { left: 22%; animation-delay: 0.7s;  font-size: 22px; }
.sparkle:nth-child(3) { left: 38%; animation-delay: 2.1s;  font-size: 14px; }
.sparkle:nth-child(4) { left: 64%; animation-delay: 1.0s;  font-size: 20px; }
.sparkle:nth-child(5) { left: 82%; animation-delay: 1.7s;  font-size: 16px; }
.sparkle:nth-child(6) { left: 94%; animation-delay: 2.5s;  font-size: 14px; }

@keyframes sparkle-rise {
    0%   { transform: translateY(30px)   scale(0.4) rotate(0deg);   opacity: 0; }
    15%  { opacity: 0.9; }
    85%  { opacity: 0.9; }
    100% { transform: translateY(-220px) scale(1.2) rotate(180deg); opacity: 0; }
}

/* the bolt itself */
.bolt-emoji {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: inline-block;
    transform-origin: center center;
    animation: bolt-shake 0.35s infinite,
               bolt-flash 1.2s   infinite;
    filter: drop-shadow(0 0 12px rgba(255, 200, 0, 0.4));
    will-change: transform, filter;
    position: relative;
    z-index: 2;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes bolt-shake {
    0%   { transform: translate(0,    0)    rotate(0deg)   scale(1);    }
    10%  { transform: translate(-4px, -3px) rotate(-5deg)  scale(1.03); }
    20%  { transform: translate(4px,  -2px) rotate(4deg)   scale(1.06); }
    30%  { transform: translate(-3px, 3px)  rotate(-3deg)  scale(0.97); }
    40%  { transform: translate(3px,  2px)  rotate(5deg)   scale(1.04); }
    50%  { transform: translate(-5px, -2px) rotate(-4deg)  scale(1.07); }
    60%  { transform: translate(4px,  3px)  rotate(3deg)   scale(0.96); }
    70%  { transform: translate(-3px, -3px) rotate(-5deg)  scale(1.05); }
    80%  { transform: translate(3px,  2px)  rotate(4deg)   scale(1.02); }
    90%  { transform: translate(-4px, 3px)  rotate(-3deg)  scale(1.04); }
    100% { transform: translate(0,    0)    rotate(0deg)   scale(1);    }
}

@keyframes bolt-flash {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.5))
                drop-shadow(0 0 20px rgba(255, 200, 0, 0.25));
    }
    45%  {
        filter: drop-shadow(0 0 16px rgba(255, 220, 50, 0.8))
                drop-shadow(0 0 30px rgba(255, 220, 50, 0.4));
    }
    50%  {
        filter: brightness(2.3) saturate(1.8)
                drop-shadow(0 0 50px  rgba(255, 240, 120, 1))
                drop-shadow(0 0 110px rgba(255, 220,  50, 1))
                drop-shadow(0 0 170px rgba(255, 200,   0, 0.85));
    }
    55%  {
        filter: drop-shadow(0 0 16px rgba(255, 220, 50, 0.8))
                drop-shadow(0 0 30px rgba(255, 220, 50, 0.4));
    }
}

/* spinning starburst rays — sits behind the bolt for the "mega spin" feel */
.bolt-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
    z-index: 0;
    pointer-events: none;
    animation: rays-spin 9s linear infinite;
}
.ray {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 50%;
    margin-left: -3px;
    background: linear-gradient(to bottom,
                transparent 0%,
                rgba(255, 220, 100, 0.5) 75%,
                transparent 100%);
    transform-origin: bottom center;
    border-radius: 3px;
}
.ray:nth-child(1) { transform: rotate(0deg);   }
.ray:nth-child(2) { transform: rotate(45deg);  }
.ray:nth-child(3) { transform: rotate(90deg);  }
.ray:nth-child(4) { transform: rotate(135deg); }
.ray:nth-child(5) { transform: rotate(180deg); }
.ray:nth-child(6) { transform: rotate(225deg); }
.ray:nth-child(7) { transform: rotate(270deg); }
.ray:nth-child(8) { transform: rotate(315deg); }
@keyframes rays-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* indeterminate progress bar */
.progress-bar {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 8px;
    background: #f0f1f5;
    border-radius: 999px;
    overflow: hidden;
    transition: opacity 0.4s ease;
}
.progress-bar.done { opacity: 0; pointer-events: none; }
.progress-fill {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4b25ea, #bd18e6, #fb590e);
    animation: progress-slide 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes progress-slide {
    0%   { left: -45%; }
    100% { left: 100%; }
}

/* headline */
.activate-text {
    font-weight: 700;
    font-size: clamp(28px, 7vw, 42px);
    color: #000000;
    letter-spacing: -0.5px;
    text-align: center;
    margin: 0;
    line-height: 1.1;
}
/* status block — text on top, button below; both swap when .activate-wrap.complete fires */
.status-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.status-area .text-stack {
    position: relative;
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-area .activate-text,
.status-area .complete-text {
    position: absolute;
    margin: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-weight: 700;
    font-size: clamp(24px, 6.2vw, 36px);   /* sized to fit "Followers Boosted" on small phones */
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}
.status-area .complete-text {
    opacity: 0;
    transform: scale(0.85);
    color: #22c55e;
}
.status-area .status-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

/* COMPLETE STATE — fires on the wrap, cascades to everything inside */
.activate-wrap.complete .activate-text { opacity: 0; transform: scale(0.92); }
.activate-wrap.complete .complete-text { opacity: 1; transform: scale(1);    }
.activate-wrap.complete .status-btn    { opacity: 1; pointer-events: auto; transform: translateY(0); }
.activate-wrap.complete .progress-bar  { opacity: 0; pointer-events: none; }
.activate-wrap.complete .sparkles      { opacity: 0; transition: opacity 0.4s ease; }

/* bolt morphs out; checkmark rises in its place */
.activate-wrap.complete .bolt-emoji  { animation: bolt-finish 0.55s ease-out forwards; }
.activate-wrap.complete .bolt-check  { animation: check-rise  0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards; }
.activate-wrap.complete .bolt-glow   { animation: glow-finish 0.7s  ease-out forwards; }
.activate-wrap.complete .bolt-rays   { animation: rays-finish 0.5s  ease-out forwards; }

@keyframes bolt-finish {
    0%   { transform: scale(1)   rotate(0deg); opacity: 1;
           filter: brightness(1) drop-shadow(0 0 12px rgba(255, 200, 0, 0.5)); }
    40%  { transform: scale(1.4) rotate(0deg); opacity: 1;
           filter: brightness(2.5) saturate(1.8)
                   drop-shadow(0 0 60px rgba(255, 240, 120, 1))
                   drop-shadow(0 0 120px rgba(255, 220, 50, 0.9)); }
    100% { transform: scale(0.5) rotate(0deg); opacity: 0;
           filter: brightness(1.5); }
}
@keyframes check-rise {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0)   rotate(-45deg); }
    60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(8deg);   }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1)   rotate(0deg);   }
}
@keyframes glow-finish {
    0%   { transform: scale(1);
           background: radial-gradient(circle,
                       rgba(255, 240, 120, 0.55) 0%,
                       rgba(255, 180,   0, 0.25) 35%,
                       rgba(255, 180,   0, 0)    70%); }
    100% { transform: scale(1.1);
           background: radial-gradient(circle,
                       rgba(80,  220, 130, 0.55) 0%,
                       rgba(80,  220, 130, 0.20) 40%,
                       rgba(80,  220, 130, 0)    70%); }
}
@keyframes rays-finish {
    to { opacity: 0; }
}

/* the green checkmark that takes the bolt's place */
.bolt-check {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 200px;
    font-weight: 900;
    line-height: 1;
    color: #22c55e;
    text-shadow:
        0 0 30px rgba(80, 220, 130, 0.8),
        0 0 60px rgba(80, 220, 130, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%) scale(0);
}
.activate-text .dots::after {
    display: inline-block;
    content: '';
    width: 1ch;
    text-align: left;
    animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* button modifiers — purple CTA + inline (auto-width) */
.btn-primary.btn-purple {
    background-color: #5f24ea;
    background-image: linear-gradient(180deg, #7a3df3 0%, #5f24ea 100%);
    box-shadow: rgba(95, 36, 234, 0.45) 0 2px 4px,
                rgba(0,  0,  0,   0.25) 0 8px 16px -4px,
                rgba(0,  0,  0,   0.45) 0 -3px 0 inset;
}
.btn-primary.btn-inline {
    width: auto;
    min-width: 240px;
    padding: 18px 36px;
    text-decoration: none;
}

/* ====================================================================
   GROWING PAGE — pricing/tier replica
   ==================================================================== */

.page-growing { padding: 24px 16px 40px; background: #fafafa; }

.growing-section { width: 100%; max-width: 560px; margin: 0 auto; }

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: clamp(20px, 5.5vw, 26px);
    color: #000;
    margin: 12px 0 24px;
    text-align: center;
    letter-spacing: -0.3px;
}
.section-title .ig-icon {
    width: 1.2em; height: 1.2em;
    display: inline-block;
    flex-shrink: 0;
}

/* ----------  stepper  ---------- */
.stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 4px 28px;
    width: calc(100% - 8px);
    position: relative;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    z-index: 1;
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    background: #cbd5e1;
    transition: all 0.2s;
}
.step.completed .step-num { background: linear-gradient(45deg, #4b25ea, #bd18e6, #fb590e); }
.step.active .step-num    {
    background: linear-gradient(45deg, #4b25ea, #bd18e6, #fb590e);
    width: 34px; height: 34px;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(75, 37, 234, 0.35);
}
.step.future .step-num    { background: #e5e7eb; color: #6b7280; }
.step-label {
    font-size: 11px;
    color: #4b5563;
    font-weight: 500;
    white-space: nowrap;
}
.step-line {
    flex: 1;
    height: 1px;
    background: #d1d5db;
    margin: 17px 4px 0;
}

/* ----------  pricing card  ---------- */
.pricing-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ----------  tier tabs  ---------- */
.tier-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin: 6px 0 12px;
    position: relative;
}
.tier-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 12px 6px;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: relative;
    transition: all 0.2s ease;
}
.tier-tab.active {
    background: linear-gradient(45deg, #4b25ea, #bd18e6, #fb590e);
    color: #fff;
    box-shadow: 0 4px 10px rgba(75, 37, 234, 0.25);
}
.tier-icon { font-size: 16px; line-height: 1; }
.tier-name { font-size: 13px; }
.tier-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 2;
    letter-spacing: 0.2px;
}

/* ----------  tier description  ---------- */
.tier-info {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    color: #111;
}
.info-row .info-icon {
    color: #4b25ea;
    font-size: 14px;
    width: 18px;
    text-align: center;
}
.show-more {
    appearance: none;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: center;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    cursor: pointer;
    font-family: inherit;
}

/* ----------  featured special banner  ---------- */
.featured-special {
    position: relative;
    background: linear-gradient(135deg, #6e3aff 0%, #b234c8 60%, #d23dc1 100%);
    border-radius: 12px;
    padding: 22px 16px 16px;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
    overflow: hidden;
}
.featured-tag {
    background: linear-gradient(90deg, #4b25ea, #bd18e6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    display: inline-block;
    margin: -10px 0 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.featured-best-seller {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2d2bb8;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.featured-amount   { font-size: 22px; font-weight: 700; line-height: 1.05; }
.featured-followers{ font-size: 14px; font-weight: 500; opacity: 0.95; margin-bottom: 2px; }
.featured-emoji    { font-size: 28px; line-height: 1; margin: 4px 0 6px; }
.featured-price .price-now {
    font-size: 22px; font-weight: 700; margin-right: 6px;
}
.featured-price .price-was {
    font-size: 13px; text-decoration: line-through; opacity: 0.7;
}
.featured-rate { font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* ----------  package grid  ---------- */
.package-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.package {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 8px 10px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.package:hover { border-color: #c4cbd3; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.pkg-amount { font-size: 16px; font-weight: 700; color: #111; line-height: 1.1; }
.pkg-label  { font-size: 13px; color: #4b5563; }
.pkg-emoji  { font-size: 24px; margin: 6px 0; line-height: 1; }
.pkg-price  { margin-top: 4px; }
.pkg-price .price-now {
    font-size: 14px; font-weight: 700; color: #111;
}
.pkg-price .price-was {
    font-size: 11px; color: #9ca3af; text-decoration: line-through; margin-left: 4px;
}
.pkg-rate {
    font-size: 10px; color: #6b7280; margin-top: 4px;
}
.pkg-pill {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.pkg-pill.basic      { background: #fee2e2; color: #b91c1c; }
.pkg-pill.best-value { background: #d1fae5; color: #047857; }

/* ----------  total + offer + continue  ---------- */
.total-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}
.total-label { font-size: 14px; font-weight: 500; color: #4b5563; }
.total-now   { font-size: 17px; font-weight: 700; color: #111; }
.total-was   { font-size: 13px; color: #9ca3af; text-decoration: line-through; }

.offer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 6px 0 12px;
    font-size: 12px;
    color: #4b5563;
}
.save-pct {
    background: linear-gradient(90deg, #4b25ea, #bd18e6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.offer-divider { color: #d1d5db; }
.countdown {
    background: #ef4444;
    color: #fff;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

/* override btn-primary in growing context: full width, smaller pad, brighter purple */
.continue-btn {
    width: 100%;
    border-radius: 12px;
    font-size: 16px;
    padding: 16px 20px;
    gap: 10px;
}

/* ====================================================================
   PRIVACY MODAL  (popup that fires when the upstream profile is private)
   ==================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 35, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top))
             max(24px, env(safe-area-inset-right))
             max(24px, env(safe-area-inset-bottom))
             max(24px, env(safe-area-inset-left));
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 22px;
    padding: 32px 24px 24px;
    box-shadow:
        0 24px 60px rgba(15, 12, 35, 0.35),
        0 4px 12px  rgba(0, 0, 0, 0.10);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}
.modal-overlay.show .modal-card { transform: translateY(0) scale(1); }

.modal-overlay.shake .modal-card {
    animation: modal-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes modal-shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

.modal-icon {
    font-size: 44px;
    line-height: 1;
    margin: 0 0 14px;
}

.modal-title {
    font-weight: 700;
    font-size: clamp(20px, 5.6vw, 24px);
    color: #0f0c23;
    letter-spacing: -0.4px;
    margin: 0 0 10px;
}

.modal-text {
    font-size: 15px;
    line-height: 1.45;
    color: #4b5563;
    margin: 0 0 22px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 22px;        /* >=44pt tap target */
    border-radius: 12px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.modal-btn:active { transform: translateY(1px); }

.modal-btn-primary {
    color: #ffffff;
    background-image: linear-gradient(90deg, #4b25ea 0%, #bd18e6 50%, #fb590e 100%);
    box-shadow:
        rgba(0, 0, 0, 0.22) 0 4px 12px -2px,
        rgba(0, 0, 0, 0.35) 0 -2px 0 inset;
}

.modal-btn-ghost {
    color: #4b5563;
    background: transparent;
}
.modal-btn-ghost:hover { background: #f3f4f6; }

/* button loading state — used while the privacy AJAX call is in flight */
.btn-primary.loading,
.btn-primary[disabled] {
    opacity: 0.8;
    pointer-events: none;
    cursor: progress;
}
.btn-primary.loading .arrow { display: none; }
.btn-primary.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: -3px;
}
.ticket-redeem .btn-primary.loading::after {
    border-color: rgba(75, 37, 234, 0.25);
    border-top-color: #4b25ea;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

