/* =========================================================
   CANDY PHOTOBOOTH LANDING MASTER CSS
   Dipakai untuk halaman utama, event public, gallery, dan landing lain
========================================================= */

:root {
    --candy-primary: #6d5dfc;
    --candy-pink: #ec4899;
    --candy-blue: #0ea5e9;
    --candy-mint: #22c55e;
    --candy-yellow: #f59e0b;

    --candy-dark: #101828;
    --candy-text: #344054;
    --candy-muted: #667085;
    --candy-border: #eaecf0;
    --candy-soft: #f8fafc;
    --candy-white: #ffffff;

    --candy-radius-sm: 14px;
    --candy-radius: 22px;
    --candy-radius-lg: 34px;
    --candy-pill: 999px;

    --candy-shadow-sm: 0 12px 30px rgba(16, 24, 40, .06);
    --candy-shadow: 0 26px 80px rgba(16, 24, 40, .12);
    --candy-shadow-pop: 0 28px 70px rgba(109, 93, 252, .20);

    --candy-glass: rgba(255, 255, 255, .78);
    --candy-glass-border: rgba(255, 255, 255, .74);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.candy-body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--candy-dark);
    background:
        radial-gradient(circle at 10% 10%, rgba(109, 93, 252, .18), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(236, 72, 153, .16), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(14, 165, 233, .12), transparent 36%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #fff1f8 100%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* =========================================================
   BACKGROUND
========================================================= */

.candy-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.candy-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(109, 93, 252, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 93, 252, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.candy-ribbon {
    position: fixed;
    left: -8%;
    right: -8%;
    bottom: -18%;
    z-index: 0;
    height: 42vh;
    pointer-events: none;
    background:
        repeating-linear-gradient(115deg,
            rgba(109, 93, 252, .07) 0 18px,
            transparent 18px 42px,
            rgba(236, 72, 153, .07) 42px 60px,
            transparent 60px 86px);
    transform: rotate(-3deg);
    opacity: .86;
}

.candy-orb {
    position: fixed;
    z-index: 1;
    border-radius: var(--candy-pill);
    pointer-events: none;
    filter: blur(10px);
    opacity: .75;
}

.candy-orb.is-purple {
    width: 190px;
    height: 190px;
    left: 5%;
    top: 18%;
    background: rgba(109, 93, 252, .16);
    animation: candyOrbFloat 9s ease-in-out infinite;
}

.candy-orb.is-pink {
    width: 260px;
    height: 260px;
    right: 4%;
    bottom: 9%;
    background: rgba(236, 72, 153, .14);
    animation: candyOrbFloat 11s ease-in-out infinite reverse;
}

.candy-orb.is-blue {
    width: 120px;
    height: 120px;
    left: 48%;
    top: 8%;
    background: rgba(14, 165, 233, .13);
    animation: candyOrbFloatSmall 7s ease-in-out infinite;
}

/* =========================================================
   NAVBAR
========================================================= */

.candy-navbar {
    position: relative;
    z-index: 5;
    padding: 22px 0;
    animation: candyFadeDown .7s ease both;
}

.candy-nav-inner {
    min-height: 62px;
    padding: 9px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .82);
    box-shadow: var(--candy-shadow-sm);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.candy-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--candy-dark);
    font-weight: 950;
    letter-spacing: -.3px;
}

.candy-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    background: #fff;
    border: 1px solid var(--candy-border);
    box-shadow: 0 10px 28px rgba(16, 24, 40, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.candy-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.candy-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candy-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   BUTTON
========================================================= */

.candy-btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 16px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    color: var(--candy-dark);
    transition: .22s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.candy-btn svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.6;
}

.candy-btn-primary {
    color: #fff;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .38), transparent 30%),
        linear-gradient(135deg, var(--candy-primary), var(--candy-pink));
    box-shadow: 0 14px 34px rgba(109, 93, 252, .26);
}

.candy-btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-18deg);
    transition: .55s ease;
}

.candy-btn-primary:hover::before {
    left: 130%;
}

.candy-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(236, 72, 153, .35);
}

.candy-btn-light {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(234, 236, 240, .92);
    backdrop-filter: blur(16px);
}

.candy-btn-light:hover {
    color: var(--candy-primary);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--candy-shadow-sm);
}

/* =========================================================
   HERO
========================================================= */

.candy-hero {
    position: relative;
    z-index: 4;
    padding: 54px 0 34px;
}

.candy-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: var(--candy-pill);
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(255, 255, 255, .84);
    color: var(--candy-primary);
    font-size: 13px;
    font-weight: 950;
    box-shadow: var(--candy-shadow-sm);
    backdrop-filter: blur(16px);
    margin-bottom: 18px;
    animation: candyFadeUp .7s ease .1s both;
}

.candy-badge svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.6;
}

.candy-title {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .96;
    font-weight: 950;
    letter-spacing: -2.8px;
    color: var(--candy-dark);
    margin-bottom: 20px;
    animation: candyFadeUp .75s ease .18s both;
}

.candy-title .is-gradient {
    display: inline-block;
    background: linear-gradient(135deg, var(--candy-primary), var(--candy-pink), var(--candy-blue));
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: candyGradientMove 4s ease-in-out infinite;
}

.candy-title .is-cursor {
    position: relative;
}

.candy-title .is-cursor::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 9%;
    width: 4px;
    height: 82%;
    border-radius: var(--candy-pill);
    background: var(--candy-pink);
    animation: candyBlinkCursor .85s steps(2, start) infinite;
}

.candy-lead {
    max-width: 650px;
    color: var(--candy-muted);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 28px;
    animation: candyFadeUp .75s ease .28s both;
}

.candy-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    animation: candyFadeUp .75s ease .38s both;
}

.candy-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: candyFadeUp .75s ease .48s both;
}

.candy-stat {
    min-width: 160px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .80);
    box-shadow: var(--candy-shadow-sm);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: .22s ease;
}

.candy-stat:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--candy-shadow-pop);
}

.candy-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: var(--candy-primary);
    background: rgba(109, 93, 252, .10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.candy-stat-icon svg {
    width: 20px;
    height: 20px;
}

.candy-stat strong {
    display: block;
    color: var(--candy-dark);
    font-size: 23px;
    font-weight: 950;
    line-height: 1;
}

.candy-stat span {
    display: block;
    color: var(--candy-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* =========================================================
   BOOTH MOCKUP
========================================================= */

.booth-showcase {
    position: relative;
    min-height: 540px;
    padding: 18px;
    animation: candyFadeLeft .85s ease .28s both;
}

.showcase-chip {
    position: absolute;
    z-index: 6;
    padding: 10px 13px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(234, 236, 240, .95);
    box-shadow: 0 18px 42px rgba(16, 24, 40, .14);
    color: var(--candy-dark);
    font-size: 13px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    backdrop-filter: blur(14px);
    white-space: nowrap;
    pointer-events: none;
}

.showcase-chip.is-top {
    top: 36px;
    right: 0;
    animation: candyChipFloatOne 4s ease-in-out infinite;
}

.showcase-chip.is-bottom {
    bottom: 48px;
    left: 0;
    animation: candyChipFloatTwo 4.4s ease-in-out infinite;
}

.showcase-chip-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--candy-primary), var(--candy-pink));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.showcase-chip-icon svg {
    width: 17px;
    height: 17px;
}

.booth-device {
    position: relative;
    z-index: 4;
    border-radius: 38px;
    padding: 16px;
    background: rgba(255, 255, 255, .80);
    border: 1px solid rgba(255, 255, 255, .92);
    box-shadow: 0 30px 90px rgba(16, 24, 40, .16);
    backdrop-filter: blur(20px);
    animation: candySoftFloat 5.5s ease-in-out infinite;
}

.device-topbar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
}

.device-dot {
    width: 11px;
    height: 11px;
    border-radius: var(--candy-pill);
    background: #ef4444;
}

.device-dot:nth-child(2) {
    background: #f59e0b;
}

.device-dot:nth-child(3) {
    background: #22c55e;
}

.booth-screen {
    min-height: 425px;
    border-radius: 28px;
    padding: 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, .34), transparent 32%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, .20), transparent 34%),
        linear-gradient(145deg, #111827, #312e81 52%, #6d28d9);
}

.booth-screen::before {
    content: "";
    position: absolute;
    inset: -45%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .13), transparent 55%);
    animation: candyScreenShine 5.8s ease-in-out infinite;
}

.booth-screen>* {
    position: relative;
    z-index: 2;
}

.screen-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: var(--candy-pill);
    background: rgba(255, 255, 255, .92);
    color: #111827;
    font-size: 12px;
    font-weight: 950;
}

.screen-live-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--candy-pill);
    background: var(--candy-mint);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .45);
    animation: candyLivePulse 1.6s ease-in-out infinite;
}

.camera-preview {
    position: relative;
    min-height: 260px;
    margin-bottom: 16px;
    border-radius: 25px;
    background: rgba(0, 0, 0, .24);
    border: 1px solid rgba(255, 255, 255, .14);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-preview::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 1px dashed rgba(255, 255, 255, .18);
    animation: candyFramePulse 2.8s ease-in-out infinite;
}

.camera-lens {
    width: 118px;
    height: 118px;
    border-radius: var(--candy-pill);
    background:
        radial-gradient(circle, #fff 0 8%, #6d5dfc 9% 34%, #111827 35% 58%, #fff 59% 62%, rgba(255, 255, 255, .12) 63%);
    box-shadow:
        0 0 0 18px rgba(255, 255, 255, .06),
        0 22px 60px rgba(0, 0, 0, .35);
    animation: candyLensPulse 2.4s ease-in-out infinite;
}

.capture-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.capture-box {
    height: 86px;
    border-radius: 18px;
    color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: candyThumbPop 2.6s ease-in-out infinite;
}

.capture-box:nth-child(2) {
    animation-delay: .25s;
}

.capture-box:nth-child(3) {
    animation-delay: .5s;
}

.capture-box svg {
    width: 24px;
    height: 24px;
}

/* =========================================================
   SECTION
========================================================= */

.candy-section {
    position: relative;
    z-index: 3;
    padding: 46px 0;
}

.section-head {
    max-width: 680px;
    text-align: center;
    margin: 0 auto 28px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--candy-primary);
    font-size: 13px;
    font-weight: 950;
}

.section-kicker svg {
    width: 16px;
    height: 16px;
}

.section-title {
    color: var(--candy-dark);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 950;
    letter-spacing: -1.3px;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--candy-muted);
    font-size: 15px;
    line-height: 1.75;
}

/* =========================================================
   FEATURE
========================================================= */

.feature-card,
.event-card {
    height: 100%;
    border-radius: 28px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .78);
    box-shadow: 0 16px 42px rgba(16, 24, 40, .06);
    backdrop-filter: blur(16px);
    transition: .24s ease;
}

.feature-card {
    padding: 24px;
}

.feature-card:hover,
.event-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 58px rgba(16, 24, 40, .11);
}

.feature-icon,
.event-icon {
    width: 54px;
    height: 54px;
    border-radius: 19px;
    color: var(--candy-primary);
    background:
        radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .65), transparent 32%),
        linear-gradient(135deg, rgba(109, 93, 252, .14), rgba(236, 72, 153, .14));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon svg,
.event-icon svg,
.empty-events svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.feature-card h5,
.event-card h5 {
    color: var(--candy-dark);
    font-weight: 950;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--candy-muted);
    font-size: 14px;
    line-height: 1.68;
    margin-bottom: 0;
}

/* =========================================================
   EVENT
========================================================= */

.event-card {
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--candy-primary), var(--candy-pink), var(--candy-blue));
}

.event-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--candy-pill);
    background: rgba(34, 197, 94, .12);
    color: #15803d;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 14px;
}

.event-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: var(--candy-pill);
    background: var(--candy-mint);
}

.event-meta {
    color: var(--candy-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.empty-events {
    padding: 42px 20px;
    text-align: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, .74);
    border: 1px dashed #d0d5dd;
    color: var(--candy-muted);
    backdrop-filter: blur(16px);
}

/* =========================================================
   CTA / FOOTER
========================================================= */

.candy-cta {
    border-radius: 36px;
    padding: 38px;
    color: #fff;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, .28), transparent 32%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, .20), transparent 34%),
        linear-gradient(135deg, #111827, #312e81 52%, #6d28d9);
    box-shadow: 0 26px 70px rgba(49, 46, 129, .28);
}

.candy-cta::before {
    content: "";
    position: absolute;
    inset: -45%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14), transparent 55%);
    animation: candyScreenShine 6s ease-in-out infinite;
}

.candy-cta>* {
    position: relative;
    z-index: 2;
}

.candy-cta h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 950;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.candy-cta p {
    max-width: 620px;
    color: rgba(255, 255, 255, .74);
    margin-bottom: 0;
    line-height: 1.7;
}

.candy-footer {
    position: relative;
    z-index: 3;
    padding: 34px 0;
    color: var(--candy-muted);
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
    .showcase-chip.is-top {
        right: 10px;
    }

    .showcase-chip.is-bottom {
        left: 10px;
    }
}

@media (max-width: 991px) {
    .candy-hero {
        padding-top: 28px;
    }

    .booth-showcase {
        min-height: auto;
        padding: 0;
        margin-top: 28px;
    }

    .showcase-chip {
        display: none;
    }

    .booth-device {
        animation: none;
    }

    .booth-screen {
        min-height: 360px;
    }
}

@media (max-width: 576px) {
    .candy-navbar {
        padding: 14px 0;
    }

    .candy-nav-inner {
        border-radius: 20px;
    }

    .candy-brand span {
        max-width: 150px;
    }

    .candy-nav-actions {
        gap: 8px;
    }

    .candy-nav-actions .candy-btn-light {
        display: none;
    }

    .candy-nav-actions .candy-btn-primary {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 15px;
    }

    .candy-nav-actions .candy-btn-primary span {
        display: none;
    }

    .candy-title {
        letter-spacing: -1.7px;
    }

    .candy-lead {
        font-size: 15px;
    }

    .candy-hero-actions,
    .candy-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .candy-btn,
    .candy-stat {
        width: 100%;
    }

    .booth-device {
        border-radius: 26px;
        padding: 12px;
    }

    .booth-screen {
        border-radius: 21px;
        padding: 14px;
    }

    .camera-preview {
        min-height: 210px;
    }

    .capture-strip {
        gap: 8px;
    }

    .capture-box {
        height: 70px;
    }

    .candy-cta {
        padding: 28px 22px;
        border-radius: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes candyFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes candyFadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes candyFadeLeft {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes candyGradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes candyBlinkCursor {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@keyframes candyOrbFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(22px, -28px, 0) scale(1.08);
    }
}

@keyframes candyOrbFloatSmall {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-18px, 18px, 0);
    }
}

@keyframes candySoftFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes candyChipFloatOne {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes candyChipFloatTwo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@keyframes candyScreenShine {
    0% {
        transform: translateX(-40%);
    }

    55%,
    100% {
        transform: translateX(42%);
    }
}

@keyframes candyLivePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .45);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

@keyframes candyFramePulse {

    0%,
    100% {
        opacity: .55;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(.985);
    }
}

@keyframes candyLensPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 18px rgba(255, 255, 255, .06),
            0 22px 60px rgba(0, 0, 0, .35);
    }

    50% {
        transform: scale(1.045);
        box-shadow:
            0 0 0 24px rgba(255, 255, 255, .08),
            0 26px 70px rgba(0, 0, 0, .42);
    }
}

@keyframes candyThumbPop {

    0%,
    100% {
        transform: translateY(0);
        background: rgba(255, 255, 255, .12);
    }

    50% {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, .18);
    }
}

/* =========================================================
   EVENT DETAIL / PUBLIC GALLERY
========================================================= */

.candy-event-hero {
    position: relative;
    z-index: 4;
    padding: 48px 0 26px;
}

.candy-event-title {
    color: var(--candy-dark);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -2px;
    margin-bottom: 16px;
    animation: candyFadeUp .7s ease .18s both;
}

.candy-event-title .is-gradient {
    background: linear-gradient(135deg, var(--candy-primary), var(--candy-pink), var(--candy-blue));
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: candyGradientMove 4s ease-in-out infinite;
}

.candy-event-desc {
    max-width: 760px;
    color: var(--candy-muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 24px;
    animation: candyFadeUp .7s ease .28s both;
}

.candy-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    animation: candyFadeUp .7s ease .38s both;
}

.candy-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: var(--candy-pill);
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(255, 255, 255, .84);
    color: var(--candy-muted);
    font-weight: 850;
    font-size: 13px;
    box-shadow: var(--candy-shadow-sm);
    backdrop-filter: blur(16px);
}

.candy-meta-chip svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.6;
    color: var(--candy-primary);
}

.candy-stat-card {
    height: 100%;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .80);
    box-shadow: var(--candy-shadow-sm);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: .24s ease;
    animation: candyFadeUp .7s ease both;
}

.candy-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--candy-shadow-pop);
}

.candy-stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: var(--candy-primary);
    background:
        radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .65), transparent 32%),
        linear-gradient(135deg, rgba(109, 93, 252, .14), rgba(236, 72, 153, .14));
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.candy-stat-card-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.candy-stat-card-value {
    color: var(--candy-dark);
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
}

.candy-stat-card-label {
    color: var(--candy-muted);
    font-size: 13px;
    margin-top: 5px;
}

.candy-section-head-between {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.candy-gallery-card {
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .80);
    box-shadow: 0 14px 38px rgba(16, 24, 40, .06);
    transition: .24s ease;
    animation: candyFadeUp .7s ease both;
}

.candy-gallery-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 54px rgba(16, 24, 40, .10);
}

.candy-gallery-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #111827;
    overflow: hidden;
}

.candy-gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111827;
    display: block;
    transition: .28s ease;
}

.candy-gallery-card:hover .candy-gallery-frame img {
    transform: scale(1.035);
}

.candy-gallery-overlay {
    position: absolute;
    inset: 0;
    padding: 12px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent 56%);
    opacity: 0;
    transition: .24s ease;
}

.candy-gallery-card:hover .candy-gallery-overlay {
    opacity: 1;
}

.candy-gallery-actions {
    width: 100%;
    display: flex;
    gap: 8px;
}

.candy-mini-action {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: var(--candy-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.candy-mini-action:hover {
    background: #fff;
    color: var(--candy-primary);
    transform: translateY(-2px);
}

.candy-mini-action svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.6;
}

.candy-gallery-info {
    padding: 14px;
}

.candy-gallery-code {
    color: var(--candy-dark);
    font-weight: 950;
    font-size: 14px;
    margin-bottom: 4px;
}

.candy-gallery-meta {
    color: var(--candy-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.candy-gallery-meta svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.5;
}

.candy-empty-gallery {
    padding: 52px 20px;
    text-align: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, .74);
    border: 1px dashed #d0d5dd;
    color: var(--candy-muted);
    backdrop-filter: blur(16px);
}

.candy-empty-gallery svg {
    width: 44px;
    height: 44px;
    stroke-width: 2.3;
    color: var(--candy-primary);
    margin-bottom: 12px;
}

.candy-preview-modal .modal-content {
    border: 0;
    border-radius: 26px;
    overflow: hidden;
}

.candy-preview-modal .modal-body {
    background: #111827;
    padding: 0;
    text-align: center;
}

.candy-preview-img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.candy-preview-footer {
    padding: 14px;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 991px) {
    .candy-event-hero {
        padding-top: 26px;
    }

    .candy-gallery-overlay {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .candy-event-title {
        letter-spacing: -1.4px;
    }

    .candy-section-head-between {
        align-items: flex-start;
    }

    .candy-gallery-frame {
        aspect-ratio: 3 / 4;
    }
}

/* =========================================================
   BOOTH EVENT PICKER
========================================================= */

.candy-picker-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 28px 0 46px;
}

.candy-picker-navbar {
    padding: 0 0 34px;
    animation: candyFadeDown .7s ease both;
}

.candy-picker-hero {
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
}

.candy-picker-title {
    color: var(--candy-dark);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -2px;
    margin-bottom: 16px;
    animation: candyFadeUp .7s ease .18s both;
}

.candy-picker-title .is-gradient {
    background: linear-gradient(135deg, var(--candy-primary), var(--candy-pink), var(--candy-blue));
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: candyGradientMove 4s ease-in-out infinite;
}

.candy-picker-desc {
    color: var(--candy-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
    animation: candyFadeUp .7s ease .28s both;
}

.candy-booth-event-card {
    height: 100%;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .80);
    box-shadow: var(--candy-shadow-sm);
    backdrop-filter: blur(16px);
    color: var(--candy-dark);
    transition: .24s ease;
    position: relative;
    overflow: hidden;
    animation: candyFadeUp .7s ease both;
}

.candy-booth-event-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--candy-primary), var(--candy-pink), var(--candy-blue));
}

.candy-booth-event-card::after {
    content: "";
    position: absolute;
    inset: -45%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45), transparent 55%);
    opacity: 0;
    pointer-events: none;
}

.candy-booth-event-card:hover::after {
    opacity: 1;
    animation: candyCardShine 1.2s ease;
}

.candy-booth-event-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--candy-shadow-pop);
}

.candy-booth-event-content {
    position: relative;
    z-index: 2;
}

.candy-booth-event-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    color: var(--candy-primary);
    background:
        radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .70), transparent 32%),
        linear-gradient(135deg, rgba(109, 93, 252, .16), rgba(236, 72, 153, .16));
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.candy-booth-event-icon svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.5;
}

.candy-booth-event-title {
    color: var(--candy-dark);
    font-size: 18px;
    font-weight: 950;
    line-height: 1.25;
    margin-bottom: 5px;
}

.candy-booth-event-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--candy-muted);
    font-size: 13px;
    margin-top: 4px;
}

.candy-booth-event-meta svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
    color: var(--candy-primary);
    flex: 0 0 auto;
}

.candy-booth-event-footer {
    margin-top: 18px;
}

.candy-empty-card {
    padding: 46px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .78);
    border: 1px dashed #d0d5dd;
    box-shadow: var(--candy-shadow-sm);
    backdrop-filter: blur(16px);
    text-align: center;
    animation: candyFadeUp .7s ease .35s both;
}

.candy-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    color: var(--candy-primary);
    background:
        radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .70), transparent 32%),
        linear-gradient(135deg, rgba(109, 93, 252, .14), rgba(236, 72, 153, .14));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.candy-empty-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.4;
}

.candy-empty-card h4 {
    color: var(--candy-dark);
    font-weight: 950;
    margin-bottom: 6px;
}

.candy-empty-card p {
    color: var(--candy-muted);
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .candy-picker-page {
        padding-top: 18px;
    }

    .candy-picker-navbar {
        padding-bottom: 26px;
    }

    .candy-picker-title {
        letter-spacing: -1.4px;
    }

    .candy-booth-event-card {
        padding: 18px;
    }
}

@keyframes candyCardShine {
    0% {
        transform: translateX(-35%);
    }

    100% {
        transform: translateX(35%);
    }
}