/* =========================================================
   INFLY CARNIVAL — Section & Popup (scoped .icv-)
   Palet: royal blue/indigo, magenta, cyan, gold
   ========================================================= */
:root {
    --icv-blue: #0d1666;
    --icv-blue-2: #20309c;
    --icv-pink: #ec2b7a;
    --icv-pink-l: #ff5fa2;
    --icv-cyan: #25cbe4;
    --icv-gold: #f7b500;
    --icv-gold-l: #ffd45e;
    --icv-purple: #7c3aed;
}

/* ---------- SECTION ---------- */
.icv-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(124, 58, 237, .45) 0%, transparent 60%),
        radial-gradient(ellipse 90% 60% at 50% 110%, rgba(236, 43, 122, .32) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 8% 20%, rgba(37, 203, 228, .18) 0%, transparent 55%),
        linear-gradient(180deg, #20309c 0%, #16226e 55%, #0d1666 100%);
    color: #fff;
}

.icv-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 30%, rgba(37, 203, 228, .16), transparent 45%);
    pointer-events: none;
}

.icv-container {
    position: relative;
    z-index: 2;
}

.icv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--icv-gold-l);
    background: rgba(247, 181, 0, .1);
    border: 1px solid rgba(247, 181, 0, .4);
}

.icv-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.02;
    margin: 1.2rem 0 1rem;
    letter-spacing: -.02em;
}

.icv-year {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .55);
}

.icv-grad-pink {
    background: linear-gradient(120deg, var(--icv-pink-l) 0%, var(--icv-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icv-lead {
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
    max-width: 32rem;
    margin-bottom: 1.4rem;
}

.icv-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
}

.icv-meta li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.icv-meta i {
    color: var(--icv-cyan);
    font-size: 1.1rem;
}

/* Countdown */
.icv-countdown {
    display: flex;
    gap: .7rem;
    margin-bottom: 1.8rem;
}

.icv-cd-box {
    min-width: 68px;
    padding: .7rem .4rem;
    text-align: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
}

.icv-cd-box span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--icv-gold-l);
    font-variant-numeric: tabular-nums;
}

.icv-cd-box small {
    display: block;
    margin-top: .35rem;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
}

/* Buttons */
.icv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.icv-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    border: none;
    cursor: pointer;
}

.icv-btn-gold {
    background: linear-gradient(120deg, var(--icv-gold) 0%, var(--icv-gold-l) 100%);
    color: #3a2500;
    box-shadow: 0 12px 30px rgba(247, 181, 0, .35);
}

.icv-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(247, 181, 0, .5);
    color: #3a2500;
}

.icv-btn-ghost {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
}

.icv-btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* Ticket card */
.icv-right {
    display: flex;
    justify-content: center;
}

.icv-ticket {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 2rem 1.8rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .04) 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
    transform-style: preserve-3d;
}

.icv-ticket-glow {
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(120deg, var(--icv-pink), var(--icv-cyan), var(--icv-gold));
    opacity: .35;
    filter: blur(22px);
    z-index: -1;
}

.icv-ticket-top {
    text-align: center;
    padding-bottom: 1.4rem;
}

.icv-logo {
    max-width: 220px;
    width: 78%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .4));
}

.icv-ticket-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -1.8rem;
    border-top: 2px dashed rgba(255, 255, 255, .28);
}

.icv-ticket-divider span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--icv-blue);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    margin-top: -13px;
}

.icv-ticket-divider span:first-child {
    margin-left: -13px;
}

.icv-ticket-divider span:last-child {
    margin-right: -13px;
}

.icv-ticket-bottom {
    padding-top: 1.4rem;
}

.icv-ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icv-ticket-row small {
    display: block;
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: .2rem;
}

.icv-ticket-row strong {
    font-size: .95rem;
    color: #fff;
}

.icv-barcode {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 46px;
    margin-top: 1rem;
    padding: .5rem .6rem;
    background: #fff;
    border-radius: 8px;
}

.icv-barcode span {
    display: block;
    height: 100%;
    background: #0d1666;
}

/* Confetti */
.icv-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.icv-conf {
    position: absolute;
    top: -20px;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    opacity: .85;
    animation: icv-fall 6s linear infinite;
}

.icv-conf-0 { background: var(--icv-pink); }
.icv-conf-1 { background: var(--icv-cyan); }
.icv-conf-2 { background: var(--icv-gold); }
.icv-conf-3 { background: var(--icv-purple); }

@keyframes icv-fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: .9; }
    100% { transform: translateY(105vh) rotate(540deg); opacity: .2; }
}

/* ---------- POPUP ---------- */
.icv-noscroll { overflow: hidden; }

.icv-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(6, 10, 46, .72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .35s ease;
}

.icv-popup-overlay.is-open { opacity: 1; }

.icv-popup-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 26px;
    padding: 2.4rem 1.8rem 1.6rem;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, .5) 0%, transparent 60%),
        radial-gradient(ellipse 90% 60% at 50% 110%, rgba(236, 43, 122, .35) 0%, transparent 60%),
        linear-gradient(180deg, #20309c 0%, #0d1666 100%);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
    transform: translateY(24px) scale(.96);
    transition: transform .4s cubic-bezier(.2, .9, .3, 1.2);
}

.icv-popup-overlay.is-open .icv-popup-card { transform: translateY(0) scale(1); }

.icv-popup-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.icv-popup-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.icv-popup-close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }

.icv-popup-link {
    position: relative;
    z-index: 2;
    display: block;
    text-decoration: none;
    color: #fff;
}

.icv-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--icv-gold-l);
    background: rgba(247, 181, 0, .12);
    border: 1px solid rgba(247, 181, 0, .4);
}

.icv-popup-logo {
    display: block;
    width: 68%;
    max-width: 230px;
    height: auto;
    margin: 1.2rem auto .4rem;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .45));
}

.icv-popup-title {
    font-size: 1.9rem;
    font-weight: 900;
    margin: .4rem 0 .3rem;
}

.icv-popup-sub {
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
    margin-bottom: 1.4rem;
}

.icv-popup-cta {
    width: 100%;
    justify-content: center;
}

.icv-popup-later {
    position: relative;
    z-index: 2;
    margin-top: .9rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
    cursor: pointer;
    transition: color .2s ease;
}

.icv-popup-later:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .icv-section { padding: 4rem 0; }
    .icv-left { text-align: center; }
    .icv-meta { justify-content: center; }
    .icv-countdown { justify-content: center; }
    .icv-actions { justify-content: center; }
    .icv-lead { margin-left: auto; margin-right: auto; }
}

@media (max-width: 420px) {
    .icv-cd-box { min-width: 58px; }
    .icv-cd-box span { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .icv-conf { animation: none; display: none; }
}
