/* ==========================================================
   GLOBAL HOME THEME - SINKRON DARI site_settings
   ========================================================== */

.home-theme {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--theme-accent) 18%, transparent), transparent 34%),
        linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
    color: var(--theme-text) !important;
}

.home-theme {
    color: var(--theme-text) !important;
}

.home-theme h1,
.home-theme h2,
.home-theme h3,
.home-theme h4,
.home-theme h5,
.home-theme h6,
.home-theme p,
.home-theme span,
.home-theme div,
.home-theme a,
.home-theme button,
.home-theme label,
.home-theme small,
.home-theme li {
    color: var(--theme-text) !important;
}

/* ==========================================================
   TEXT COLOR OVERRIDE
   Semua text slate/white/cyan/yellow ikut text_color / accent
   ========================================================== */

.home-theme .text-white,
.home-theme .text-slate-50,
.home-theme .text-slate-100,
.home-theme .text-slate-200,
.home-theme .text-slate-300,
.home-theme .text-slate-400,
.home-theme .text-slate-500,
.home-theme .text-cyan-100,
.home-theme .text-cyan-200,
.home-theme .text-cyan-300,
.home-theme .text-yellow-300,
.home-theme .text-yellow-400 {
    color: var(--theme-text) !important;
}

.home-theme .theme-accent-text,
.home-theme .font-black.text-cyan-300,
.home-theme .font-black.text-yellow-300 {
    color: var(--theme-accent) !important;
}

/* ==========================================================
   BACKGROUND THEME
   ========================================================== */

.home-theme .bg-cyan-400,
.home-theme .bg-cyan-300,
.home-theme .bg-yellow-400,
.home-theme .bg-cyan-500\/10,
.home-theme .bg-cyan-400\/10,
.home-theme .bg-cyan-300\/10,
.home-theme .bg-cyan-300\/15,
.home-theme .bg-cyan-300\/20,
.home-theme .bg-yellow-500\/15,
.home-theme .bg-orange-500\/10 {
    background: var(--theme-accent) !important;
    color: var(--theme-on-accent) !important;
}

.home-theme .bg-white\/5,
.home-theme .bg-white\/10,
.home-theme .bg-white\/15,
.home-theme .bg-white\/\[\.06\],
.home-theme .bg-black\/30 {
    background: color-mix(in srgb, var(--theme-primary) 65%, transparent) !important;
    color: var(--theme-text) !important;
}

/* ==========================================================
   BUTTON & LINK
   ========================================================== */

.home-theme a,
.home-theme button {
    color: var(--theme-text) !important;
}

.home-theme .bg-cyan-400,
.home-theme .bg-cyan-300,
.home-theme .bg-yellow-400,
.home-theme button.bg-cyan-400,
.home-theme a.bg-cyan-400 {
    background: var(--theme-accent) !important;
    color: var(--theme-on-accent) !important;
}

.home-theme .hover\:bg-cyan-300:hover,
.home-theme .hover\:bg-cyan-300\/10:hover,
.home-theme .hover\:bg-cyan-300\/20:hover,
.home-theme .hover\:bg-white\/10:hover,
.home-theme .hover\:bg-white\/15:hover {
    background: color-mix(in srgb, var(--theme-accent) 22%, var(--theme-primary)) !important;
    color: var(--theme-text) !important;
}

/* ==========================================================
   BORDER THEME
   ========================================================== */

.home-theme .border-white\/10,
.home-theme .border-white\/15,
.home-theme .border-cyan-300,
.home-theme .border-cyan-300\/30,
.home-theme .border-cyan-300\/40,
.home-theme .border-cyan-300\/50,
.home-theme .border-cyan-400\/20,
.home-theme .border-cyan-400\/30 {
    border-color: color-mix(in srgb, var(--theme-accent) 45%, transparent) !important;
}

.home-theme .hover\:border-cyan-300\/40:hover,
.home-theme .hover\:border-cyan-300\/50:hover {
    border-color: var(--theme-accent) !important;
}

/* ==========================================================
   CARD
   ========================================================== */

.home-theme .home-main-card {
    background: color-mix(in srgb, var(--theme-primary) 85%, white) !important;
    border-color: color-mix(in srgb, var(--theme-accent) 35%, transparent) !important;
    color: var(--theme-text) !important;
}

.home-theme .home-side-card,
.home-theme .home-dark-card,
.home-theme .game-card,
.home-theme .game-search-item {
    background: color-mix(in srgb, var(--theme-primary) 72%, var(--theme-secondary)) !important;
    border-color: color-mix(in srgb, var(--theme-accent) 35%, transparent) !important;
    color: var(--theme-text) !important;
}

.home-theme .home-gradient-sale {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-accent) 22%, var(--theme-primary)),
            color-mix(in srgb, var(--theme-primary) 70%, var(--theme-secondary)),
            color-mix(in srgb, var(--theme-secondary) 88%, white)
        ) !important;
    color: var(--theme-text) !important;
}

/* ==========================================================
   IMAGE OVERLAY
   Jangan bikin teks putih permanen.
   ========================================================== */

.home-theme .bg-gradient-to-t {
    background:
        linear-gradient(
            to top,
            color-mix(in srgb, var(--theme-secondary) 78%, transparent),
            transparent
        ) !important;
}

/* ==========================================================
   BADGE / TIMER / PROGRESS
   ========================================================== */

.home-theme .countdown-hours,
.home-theme .countdown-minutes,
.home-theme .countdown-seconds,
.home-theme .rounded-full.bg-cyan-300\/15,
.home-theme .rounded-full.bg-black\/55,
.home-theme .inline-flex.bg-white\/10 {
    background: var(--theme-accent) !important;
    color: var(--theme-on-accent) !important;
}

.home-theme .h-full.rounded-full.bg-yellow-400,
.home-theme .h-1.w-16.rounded-full.bg-cyan-300 {
    background: var(--theme-accent) !important;
}

/* ==========================================================
   SEARCH RESULT
   ========================================================== */

.resultsearch,
.resultsearch * {
    color: var(--theme-text) !important;
}

.resultsearch a {
    background: color-mix(in srgb, var(--theme-primary) 76%, var(--theme-secondary)) !important;
    border-color: color-mix(in srgb, var(--theme-accent) 35%, transparent) !important;
}

.resultsearch a:hover {
    background: color-mix(in srgb, var(--theme-accent) 18%, var(--theme-primary)) !important;
}

/* ==========================================================
   LINE CLAMP
   ========================================================== */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================
   NXP HOME PREMIUM LOADER + MOTION
   Prefix unik nxp-home-* agar tidak bentrok dengan komponen lain.
   ========================================================== */

html {
    scroll-behavior: smooth;
}

.nxp-home-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 84px 16px 32px;
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--theme-accent) 15%, transparent), transparent 30%),
        radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--theme-secondary) 34%, transparent), transparent 28%),
        linear-gradient(145deg,
            color-mix(in srgb, var(--theme-primary) 94%, var(--theme-secondary)),
            color-mix(in srgb, var(--theme-secondary) 90%, var(--theme-primary))
        );
    opacity: 1;
    visibility: visible;
    transition:
        opacity .42s cubic-bezier(.22,1,.36,1),
        visibility .42s step-end,
        transform .42s cubic-bezier(.22,1,.36,1);
    transform: translateZ(0);
    contain: strict;
}

.nxp-home-loader::before,
.nxp-home-loader::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
    pointer-events: none;
    animation: nxpHomeAmbient 7s ease-in-out infinite alternate;
}

.nxp-home-loader::before {
    left: -170px;
    top: -190px;
    background: var(--theme-accent);
}

.nxp-home-loader::after {
    right: -210px;
    bottom: -210px;
    background: var(--theme-secondary);
    animation-delay: -3.5s;
}

.nxp-home-loader.nxp-home-loader-leave {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.008);
    pointer-events: none;
}

.nxp-home-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
}

.nxp-home-progress::after {
    content: "";
    display: block;
    width: 34%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--theme-accent), transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--theme-accent) 44%, transparent);
    animation: nxpHomeProgress 1.35s cubic-bezier(.4,0,.2,1) infinite;
}

.nxp-home-loader-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 1240px);
}

.nxp-home-loader-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    gap: 22px;
    margin-bottom: 26px;
}

.nxp-home-skeleton {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, transparent);
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--theme-primary) 78%, var(--theme-secondary)),
            color-mix(in srgb, var(--theme-secondary) 74%, var(--theme-primary))
        );
    box-shadow:
        0 18px 50px rgba(0,0,0,.08),
        inset 0 1px 0 color-mix(in srgb, white 34%, transparent);
}

.nxp-home-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-115%);
    background: linear-gradient(
        105deg,
        transparent 24%,
        color-mix(in srgb, white 26%, transparent) 42%,
        color-mix(in srgb, var(--theme-accent) 14%, transparent) 50%,
        color-mix(in srgb, white 20%, transparent) 58%,
        transparent 76%
    );
    animation: nxpHomeShimmer 1.7s cubic-bezier(.4,0,.2,1) infinite;
    will-change: transform;
}

.nxp-home-skeleton-hero {
    min-height: 264px;
    border-radius: 28px;
}

.nxp-home-skeleton-side {
    min-height: 264px;
    border-radius: 28px;
    padding: 26px;
}

.nxp-home-skeleton-pill,
.nxp-home-skeleton-line {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-text) 11%, transparent);
}

.nxp-home-skeleton-pill {
    width: 126px;
    height: 25px;
}

.nxp-home-skeleton-line {
    height: 13px;
    margin-top: 14px;
}

.nxp-home-skeleton-line.is-title {
    width: 88%;
    height: 30px;
    margin-top: 28px;
}

.nxp-home-skeleton-line.is-medium { width: 72%; }
.nxp-home-skeleton-line.is-short { width: 48%; }

.nxp-home-skeleton-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.nxp-home-skeleton-action {
    height: 68px;
    border-radius: 18px;
}

.nxp-home-skeleton-heading {
    width: 190px;
    height: 21px;
    margin-bottom: 15px;
    border-radius: 999px;
}

.nxp-home-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.nxp-home-skeleton-card {
    height: 84px;
    border-radius: 18px;
}

.nxp-home-skeleton-game-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 13px;
    margin-top: 30px;
}

.nxp-home-skeleton-game {
    aspect-ratio: .83;
    min-height: 136px;
    border-radius: 19px;
}

/* Konten nyata muncul lembut setelah skeleton selesai. */
.home-theme > .mx-auto {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
    transition:
        opacity .48s cubic-bezier(.22,1,.36,1),
        transform .58s cubic-bezier(.22,1,.36,1),
        filter .42s ease;
}

.home-theme.nxp-home-ready > .mx-auto {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Gambar seperti aplikasi modern: decode dahulu lalu fade tanpa kedipan. */
.home-theme img.nxp-home-image-pending {
    opacity: 0;
    filter: blur(7px) saturate(.9);
    transform: scale(1.012);
}

.home-theme img.nxp-home-image-ready {
    opacity: 1;
    filter: none;
    transform: none;
    transition:
        opacity .46s cubic-bezier(.22,1,.36,1),
        filter .56s ease,
        transform .56s cubic-bezier(.22,1,.36,1);
}

/* Interaksi kartu lebih lembut dan tidak membebani layout. */
.home-theme .game-search-item,
.home-theme .home-dark-card,
.home-theme article,
.home-theme section a,
.home-theme section button {
    -webkit-tap-highlight-color: transparent;
}

.home-theme .game-search-item,
.home-theme .home-dark-card {
    transition:
        transform .32s cubic-bezier(.22,1,.36,1),
        border-color .28s ease,
        box-shadow .32s ease,
        background-color .28s ease !important;
}

.home-theme .game-search-item:active,
.home-theme .home-dark-card:active {
    transform: scale(.985) !important;
    transition-duration: .1s !important;
}

@keyframes nxpHomeShimmer {
    0% { transform: translateX(-115%); }
    100% { transform: translateX(115%); }
}

@keyframes nxpHomeProgress {
    0% { transform: translateX(-130%); }
    100% { transform: translateX(390%); }
}

@keyframes nxpHomeAmbient {
    from { transform: translate3d(0,0,0) scale(.96); }
    to { transform: translate3d(30px,18px,0) scale(1.06); }
}

@media (max-width: 1023px) {
    .nxp-home-loader-top {
        grid-template-columns: 1fr;
    }

    .nxp-home-skeleton-side {
        display: none;
    }

    .nxp-home-skeleton-actions {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .nxp-home-skeleton-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .nxp-home-skeleton-game-grid {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .nxp-home-loader {
        padding: 78px 14px 24px;
    }

    .nxp-home-skeleton-hero {
        min-height: 152px;
        border-radius: 22px;
    }

    .nxp-home-skeleton-actions {
        gap: 9px;
        margin-bottom: 24px;
    }

    .nxp-home-skeleton-action {
        height: 58px;
        border-radius: 16px;
    }

    .nxp-home-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 10px;
    }

    .nxp-home-skeleton-card {
        height: 76px;
        border-radius: 16px;
    }

    .nxp-home-skeleton-game-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 10px;
        margin-top: 24px;
    }

    .nxp-home-skeleton-game {
        min-height: 116px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .nxp-home-loader,
    .home-theme > .mx-auto,
    .home-theme img,
    .home-theme .game-search-item,
    .home-theme .home-dark-card {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    .nxp-home-skeleton::after,
    .nxp-home-progress::after,
    .nxp-home-loader::before,
    .nxp-home-loader::after {
        animation: none !important;
    }
}

/* ==========================================================
   ANIMASI
   ========================================================== */

.czy-reveal {
    opacity: 0;
    transform: translateY(64px) scale(.96);
    will-change: transform, opacity;
}

.czy-reveal.czy-show {
    animation: czyRiseIn .68s cubic-bezier(.16, .85, .32, 1) forwards;
}

@keyframes czyRiseIn {
    0% {
        opacity: 0;
        transform: translateY(64px) scale(.96);
    }

    75% {
        opacity: 1;
        transform: translateY(-5px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.czy-game-rise {
    opacity: 0;
    transform: translateY(42px) scale(.98);
    will-change: transform, opacity;
}

.czy-game-rise.czy-game-show {
    animation: czyGameRiseIn .58s cubic-bezier(.16, .85, .32, 1) forwards;
}

@keyframes czyGameRiseIn {
    0% {
        opacity: 0;
        transform: translateY(42px) scale(.98);
    }

    70% {
        opacity: 1;
        transform: translateY(-4px) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================
   POPUP GUEST IKUT THEME
   ========================================================== */

.czy-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
}

.czy-popup-backdrop.show {
    display: flex;
}

.czy-popup-card {
    width: 100%;
    max-width: 430px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--theme-primary);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 35%, transparent);
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
    transform: translateY(18px) scale(.96);
    opacity: 0;
    animation: czyPopupIn .32s ease forwards;
    color: var(--theme-text) !important;
}

@keyframes czyPopupIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.czy-popup-image {
    width: 100%;
    display: block;
    max-height: 70vh;
    object-fit: contain;
    background: var(--theme-secondary);
}

.czy-popup-body {
    padding: 14px;
}

.czy-popup-text {
    color: var(--theme-text) !important;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.czy-popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.czy-popup-btn {
    border: 0;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.czy-popup-btn.primary {
    background: var(--theme-accent);
    color: var(--theme-on-accent) !important;
}

.czy-popup-btn.ghost {
    background: color-mix(in srgb, var(--theme-secondary) 70%, white);
    color: var(--theme-text) !important;
}

/* ==========================================================
   PWA INSTALL BOX IKUT THEME
   ========================================================== */

#pwaInstallBox {
    background: color-mix(in srgb, var(--theme-primary) 92%, white) !important;
    border-color: color-mix(in srgb, var(--theme-accent) 40%, transparent) !important;
    color: var(--theme-text) !important;
}

#pwaInstallBox * {
    color: var(--theme-text) !important;
}

#btnInstallPwa {
    background: var(--theme-accent) !important;
    color: var(--theme-on-accent) !important;
}

#btnClosePwa,
#pwaIosGuide {
    background: color-mix(in srgb, var(--theme-secondary) 65%, white) !important;
    color: var(--theme-text) !important;
}

@media (max-width: 480px) {
    .czy-page-loader {
        padding-top: 84px;
    }

    .czy-loader-hero {
        height: 145px;
        border-radius: 22px;
    }

    .czy-loader-card {
        height: 84px;
    }

    .czy-popup-card {
        border-radius: 24px;
    }
}
.home-theme .home-tab-active {
    background: var(--theme-accent) !important;
    color: var(--theme-on-accent) !important;
    border-color: var(--theme-accent) !important;
}

.home-theme .home-tab-inactive {
    background: color-mix(in srgb, var(--theme-primary) 70%, transparent) !important;
    color: var(--theme-text) !important;
    border-color: color-mix(in srgb, var(--theme-accent) 30%, transparent) !important;
}

/* ==========================================================
   GAME CARD IMAGE OVERLAY - IKUT SECONDARY COLOR
   ========================================================== */

.home-theme .game-card-image {
    position: relative;
}

.home-theme .game-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            color-mix(in srgb, var(--theme-secondary) 88%, transparent) 0%,
            color-mix(in srgb, var(--theme-secondary) 42%, transparent) 48%,
            transparent 100%
        ) !important;
    pointer-events: none;
}

.home-theme .game-card-title-wrap {
    background:
        linear-gradient(
            to top,
            color-mix(in srgb, var(--theme-secondary) 72%, transparent),
            transparent
        ) !important;
}

.home-theme .game-card-title,
.home-theme .game-card-subtitle {
    color: var(--theme-text) !important;
}

.home-theme .game-card-subtitle {
    opacity: .78;
}
/* ==========================================================
   GAME FAVORIT 3D CARD + LOGO POP UP
   ========================================================== */

.home-theme #sectionGameFavorit .game-card {
    position: relative;
    isolation: isolate;
    overflow: visible !important;
    border-radius: 24px !important;
    transform-style: preserve-3d;
    background:
        radial-gradient(
            circle at 22% 8%,
            color-mix(in srgb, white 32%, transparent),
            transparent 34%
        ),
        radial-gradient(
            circle at 80% 0%,
            color-mix(in srgb, var(--theme-accent) 28%, transparent),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--theme-primary) 74%, white),
            color-mix(in srgb, var(--theme-secondary) 92%, var(--theme-accent))
        ) !important;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 42%, transparent) !important;
    box-shadow:
        0 18px 30px rgba(0,0,0,.16),
        0 8px 14px rgba(0,0,0,.10),
        inset 0 1px 0 color-mix(in srgb, white 54%, transparent),
        inset 0 -18px 30px color-mix(in srgb, var(--theme-secondary) 35%, transparent);
    transition:
        transform .22s cubic-bezier(.2,.8,.2,1),
        box-shadow .22s ease,
        border-color .22s ease,
        filter .22s ease;
    will-change: transform;
}

.home-theme #sectionGameFavorit .game-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, white 56%, transparent),
            color-mix(in srgb, var(--theme-accent) 44%, transparent),
            color-mix(in srgb, var(--theme-secondary) 56%, transparent)
        );
    opacity: .58;
    filter: blur(.2px);
}

.home-theme #sectionGameFavorit .game-card::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -12px;
    height: 22px;
    z-index: -2;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-accent) 35%, transparent);
    filter: blur(14px);
    opacity: .65;
    transition: .22s ease;
}

.home-theme #sectionGameFavorit .game-card:hover,
.home-theme #sectionGameFavorit .game-card:focus-visible {
    transform: translateY(-9px) rotateX(7deg) rotateY(-4deg) scale(1.035);
    border-color: color-mix(in srgb, var(--theme-accent) 72%, transparent) !important;
    box-shadow:
        0 28px 46px rgba(0,0,0,.20),
        0 14px 22px rgba(0,0,0,.12),
        0 0 0 4px color-mix(in srgb, var(--theme-accent) 16%, transparent),
        inset 0 1px 0 color-mix(in srgb, white 68%, transparent);
    filter: saturate(1.08);
}

.home-theme #sectionGameFavorit .game-card:active {
    transform: translateY(-3px) scale(.98);
}

.home-theme #sectionGameFavorit .game-card:hover::after,
.home-theme #sectionGameFavorit .game-card:focus-visible::after {
    bottom: -18px;
    opacity: .9;
    filter: blur(18px);
}

/* area gambar dibuat punya depth */
.home-theme #sectionGameFavorit .game-card-image {
    overflow: hidden;
    border-radius: 22px;
    transform: translateZ(0);
    background: var(--theme-secondary) !important;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, white 50%, transparent),
        inset 0 -28px 42px color-mix(in srgb, var(--theme-secondary) 52%, transparent);
}

/* gambar utama */
.home-theme #sectionGameFavorit .game-card-main-img {
    transform: scale(1.02);
    transition:
        transform .28s cubic-bezier(.2,.8,.2,1),
        filter .28s ease;
    filter: saturate(1.04) contrast(1.02);
}

.home-theme #sectionGameFavorit .game-card:hover .game-card-main-img,
.home-theme #sectionGameFavorit .game-card:focus-visible .game-card-main-img {
    transform: scale(1.13) translateY(-4px);
    filter: saturate(1.14) contrast(1.05);
}

/* overlay mengikuti secondary, lebih 3D */
.home-theme #sectionGameFavorit .game-card-overlay {
    background:
        radial-gradient(
            circle at 50% 22%,
            color-mix(in srgb, white 20%, transparent),
            transparent 30%
        ),
        linear-gradient(
            to top,
            color-mix(in srgb, var(--theme-secondary) 92%, transparent) 0%,
            color-mix(in srgb, var(--theme-secondary) 64%, transparent) 38%,
            color-mix(in srgb, var(--theme-accent) 18%, transparent) 68%,
            transparent 100%
        ) !important;
}

/* logo kecil yang muncul ke atas */
.home-theme #sectionGameFavorit .game-card-pop-logo {
    position: absolute;
    left: 50%;
    top: 32%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    padding: 4px;
    object-fit: cover;
    background: color-mix(in srgb, var(--theme-primary) 88%, white) !important;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 48%, transparent);
    box-shadow:
        0 12px 24px rgba(0,0,0,.18),
        0 0 0 5px color-mix(in srgb, var(--theme-secondary) 40%, transparent);
    opacity: 0;
    transform: translate(-50%, 14px) scale(.65) rotate(-8deg);
    transition:
        opacity .24s ease,
        transform .28s cubic-bezier(.2,.9,.25,1.35);
    pointer-events: none;
}

.home-theme #sectionGameFavorit .game-card:hover .game-card-pop-logo,
.home-theme #sectionGameFavorit .game-card:focus-visible .game-card-pop-logo,
.home-theme #sectionGameFavorit .game-card.is-pressed .game-card-pop-logo {
    opacity: 1;
    transform: translate(-50%, -18px) scale(1) rotate(0deg);
}

@media (hover: none) {
    .home-theme #sectionGameFavorit .game-card:active .game-card-pop-logo {
        opacity: 1;
        transform: translate(-50%, -18px) scale(1) rotate(0deg);
    }
}

/* title ikut naik sedikit */
.home-theme #sectionGameFavorit .game-card-title-wrap {
    border-radius: 0 0 22px 22px;
    background:
        linear-gradient(
            to top,
            color-mix(in srgb, var(--theme-secondary) 90%, transparent),
            color-mix(in srgb, var(--theme-secondary) 52%, transparent),
            transparent
        ) !important;
    transform: translateZ(20px);
    transition: transform .22s ease;
}

.home-theme #sectionGameFavorit .game-card:hover .game-card-title-wrap,
.home-theme #sectionGameFavorit .game-card:focus-visible .game-card-title-wrap {
    transform: translateY(-2px) translateZ(28px);
}

.home-theme #sectionGameFavorit .game-card-title {
    text-shadow: 0 1px 0 color-mix(in srgb, white 28%, transparent);
}

.home-theme #sectionGameFavorit .game-card-subtitle {
    opacity: .82;
}

/* HP: efek muncul saat disentuh */
@media (hover: none) {
    .home-theme #sectionGameFavorit .game-card:active .game-card-pop-logo {
        opacity: 1;
        transform: translate(-50%, -26px) scale(1) rotate(0deg);
    }

    .home-theme #sectionGameFavorit .game-card:active .game-card-main-img {
        transform: scale(1.12) translateY(-4px);
    }
}


/* ==========================================================
   FIX: HILANGKAN OVERLAY DI GAMBAR + PWA iPHONE CLOSE
   ========================================================== */
.home-theme .game-card-overlay,
.home-theme #sectionGameFavorit .game-card-overlay,
.home-theme .bg-gradient-to-t {
    display: none !important;
    background: transparent !important;
}

.home-theme #sectionGameFavorit .game-card-title-wrap {
    position: static !important;
    background: transparent !important;
    border-radius: 0 !important;
    transform: none !important;
    padding: 6px 8px 8px !important;
}

.home-theme #sectionGameFavorit .game-card-image {
    overflow: hidden !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: none !important;
}

.home-theme #sectionGameFavorit .game-card-title {
    text-shadow: none !important;
}

/* Card game dibuat lebih pendek setelah overlay gambar dihapus */
.home-theme #sectionGameFavorit .game-card {
    border-radius: 18px !important;
}

.home-theme #sectionGameFavorit .game-card-title-wrap {
    min-height: 42px !important;
}

.home-theme #sectionGameFavorit .game-card-subtitle {
    line-height: 1.15 !important;
}


/* ==========================================================
   NXP HOME CALM REVEAL OVERRIDE
   Mengganti efek memantul menjadi transisi halus ala aplikasi modern.
   ========================================================== */
.czy-reveal,
.czy-game-rise {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.992);
    filter: blur(2px);
    transition:
        opacity .55s cubic-bezier(.22,1,.36,1),
        transform .65s cubic-bezier(.22,1,.36,1),
        filter .45s ease;
    animation: none !important;
    will-change: opacity, transform;
}

.czy-reveal.czy-show,
.czy-game-rise.czy-game-show {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
}

.home-tab-pane:not(.hidden) {
    animation: nxpHomePaneIn .34s cubic-bezier(.22,1,.36,1) both;
}

@keyframes nxpHomePaneIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

#pwaAndroidAction.hidden,
#pwaIosGuide.hidden,
#pwaInstallBox.hidden {
    display: none !important;
}


/* ==========================================================
   NXP19 PREMIUM CARD MOTION
   Prefix unik nxp19-* supaya tidak bertabrakan dengan komponen lama.
   ========================================================== */

/* Reveal satu per satu seperti streaming UI modern. */
.nxp19-stagger-card {
    opacity: 0 !important;
    transform: translate3d(0, 22px, 0) scale(.986) !important;
    filter: blur(4px) saturate(.94) !important;
    transition:
        opacity .72s cubic-bezier(.22, 1, .36, 1),
        transform .86s cubic-bezier(.16, 1, .3, 1),
        filter .62s ease !important;
    transition-delay: var(--nxp19-delay, 0ms) !important;
    will-change: opacity, transform, filter;
}

.nxp19-stagger-card.nxp19-visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
    filter: none !important;
}

/* Produk populer/favorit: gambar tetap hitam-putih sampai benar-benar diklik. */
.nxp19-popular-card {
    position: relative;
    isolation: isolate;
    overflow: visible;
    border-radius: 16px;
}

.nxp19-popular-card > * {
    position: relative;
    z-index: 1;
}

.nxp19-popular-card img {
    filter: grayscale(1) saturate(.06) contrast(.96) brightness(.88);
    transition:
        filter .58s cubic-bezier(.22, 1, .36, 1),
        transform .62s cubic-bezier(.22, 1, .36, 1),
        opacity .35s ease !important;
}

/* Hover hanya memberi depth; warna tetap grayscale. */
.nxp19-popular-card:hover img,
.nxp19-popular-card:focus-visible img {
    filter: grayscale(1) saturate(.06) contrast(.98) brightness(.92);
    transform: scale(1.025);
}

/*
 * Border motion berupa aliran cahaya di sepanjang garis,
 * bukan elemen conic-gradient yang memutar seluruh border.
 */
.nxp19-popular-card::before {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: 3;
    pointer-events: none;
    border-radius: 19px;
    padding: 2px;
    opacity: 0;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            color-mix(in srgb, var(--theme-accent) 18%, transparent) 18%,
            var(--theme-accent) 42%,
            color-mix(in srgb, white 90%, var(--theme-accent)) 50%,
            var(--theme-accent) 58%,
            color-mix(in srgb, var(--theme-accent) 18%, transparent) 82%,
            transparent 100%
        );
    background-size: 320% 100%;
    background-position: 140% 0;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity .2s ease;
}

/* Pulse pendek yang mengikuti perimeter rounded card. */
.nxp19-popular-card::after {
    content: "";
    position: absolute;
    left: -3px;
    top: -3px;
    z-index: 4;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--theme-accent), white, var(--theme-accent), transparent);
    box-shadow:
        0 0 8px color-mix(in srgb, var(--theme-accent) 78%, transparent),
        0 0 18px color-mix(in srgb, var(--theme-accent) 48%, transparent);
    offset-path: inset(-3px round 19px);
    offset-distance: 0%;
    offset-rotate: auto;
}

.nxp19-popular-card.nxp19-popular-launching {
    transform: translateY(-3px) scale(1.012) !important;
    box-shadow:
        0 22px 50px rgba(0,0,0,.20),
        0 0 0 4px color-mix(in srgb, var(--theme-accent) 15%, transparent) !important;
}

.nxp19-popular-card.nxp19-popular-launching::before {
    opacity: 1;
    animation: nxp19BorderFlow 1.25s linear infinite;
}

.nxp19-popular-card.nxp19-popular-launching::after {
    opacity: 1;
    animation: nxp19BorderTrace 1.25s linear infinite;
}

.nxp19-popular-card.nxp19-popular-launching img {
    filter: grayscale(0) saturate(1.08) contrast(1.03) brightness(1) !important;
    transform: scale(1.055);
}

@keyframes nxp19BorderFlow {
    0%   { background-position: 140% 0; }
    100% { background-position: -140% 0; }
}

@keyframes nxp19BorderTrace {
    0%   { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

/* Card game bagian bawah tetap berwarna. Saat diklik gambar blur dan logo web muncul. */
.nxp19-bottom-card .game-card-main-img {
    filter: saturate(1.04) contrast(1.02);
    transition:
        filter .34s ease,
        transform .48s cubic-bezier(.22, 1, .36, 1),
        opacity .28s ease !important;
}

.nxp19-launch-logo {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: scale(.86);
    transition:
        opacity .28s ease,
        transform .42s cubic-bezier(.16, 1, .3, 1);
}

.nxp19-launch-logo::before {
    content: "";
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 28px;
    background: color-mix(in srgb, var(--theme-primary) 78%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 44%, transparent);
    box-shadow:
        0 18px 46px rgba(0,0,0,.22),
        0 0 0 7px color-mix(in srgb, var(--theme-accent) 13%, transparent),
        inset 0 1px 0 color-mix(in srgb, white 48%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nxp19-launch-logo img {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 18px;
    filter: none !important;
    transform: none !important;
}

.nxp19-bottom-card.nxp19-game-launching .game-card-main-img {
    filter: blur(7px) brightness(.58) saturate(.72) !important;
    transform: scale(1.12) !important;
}

.nxp19-bottom-card.nxp19-game-launching .nxp19-launch-logo {
    opacity: 1;
    transform: scale(1);
}

.nxp19-bottom-card.nxp19-game-launching {
    box-shadow:
        0 24px 54px rgba(0,0,0,.20),
        0 0 0 3px color-mix(in srgb, var(--theme-accent) 17%, transparent) !important;
}

@media (hover: hover) {
    .nxp19-bottom-card:not(.nxp19-game-launching):hover .game-card-main-img {
        filter: saturate(1.10) contrast(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nxp19-stagger-card,
    .nxp19-popular-card,
    .nxp19-popular-card img,
    .nxp19-bottom-card .game-card-main-img,
    .nxp19-launch-logo {
        transition-duration: .01ms !important;
        animation: none !important;
    }
}

/* ==========================================================
   HOME CARD SEASON THEME V22
   Prefix hct22-* dan scope .home-card-theme-* agar tidak
   memengaruhi header, body, modal, loader, maupun checkout.
   ========================================================== */

.home-theme[class*="home-card-theme-"] {
    --hct22-border: color-mix(in srgb, var(--theme-accent) 38%, transparent);
    --hct22-glow: color-mix(in srgb, var(--theme-accent) 24%, transparent);
    --hct22-surface-a: color-mix(in srgb, var(--theme-primary) 76%, var(--theme-secondary));
    --hct22-surface-b: color-mix(in srgb, var(--theme-secondary) 82%, var(--theme-primary));
    --hct22-pattern: none;
}

/* Hanya daftar kartu di halaman depan yang menerima tema musiman. */
.home-theme[class*="home-card-theme-"] :is(
    .home-main-card,
    .home-side-card,
    .home-dark-card,
    .game-search-item,
    #sectionGameFavorit .game-card,
    a[href*="/id/artikel.php"]
) {
    border-color: var(--hct22-border) !important;
    background-image: var(--hct22-pattern),
        linear-gradient(145deg, var(--hct22-surface-a), var(--hct22-surface-b)) !important;
    background-color: var(--hct22-surface-a) !important;
    box-shadow:
        0 18px 38px rgba(0,0,0,.14),
        0 0 0 1px color-mix(in srgb, white 10%, transparent),
        0 0 28px var(--hct22-glow),
        inset 0 1px 0 color-mix(in srgb, white 34%, transparent) !important;
}

.home-theme[class*="home-card-theme-"] :is(
    .home-main-card,
    .home-side-card,
    .home-dark-card,
    .game-search-item,
    #sectionGameFavorit .game-card,
    a[href*="/id/artikel.php"]
):hover {
    border-color: color-mix(in srgb, var(--hct22-border) 78%, white) !important;
    box-shadow:
        0 24px 48px rgba(0,0,0,.18),
        0 0 0 1px color-mix(in srgb, white 18%, transparent),
        0 0 34px var(--hct22-glow),
        inset 0 1px 0 color-mix(in srgb, white 46%, transparent) !important;
}

/* NORMAL — tidak memberi ornamen tambahan. */
.home-card-theme-normal {
    --hct22-pattern: none;
}

/* SALJU — warna es, butiran salju kecil, dan highlight dingin. */
.home-card-theme-snow {
    --hct22-border: rgba(186,230,253,.70);
    --hct22-glow: rgba(125,211,252,.20);
    --hct22-surface-a: color-mix(in srgb, var(--theme-primary) 78%, #e0f2fe);
    --hct22-surface-b: color-mix(in srgb, var(--theme-secondary) 76%, #f0f9ff);
    --hct22-pattern:
        radial-gradient(circle at 12% 16%, rgba(255,255,255,.90) 0 1.6px, transparent 1.9px),
        radial-gradient(circle at 48% 8%, rgba(255,255,255,.72) 0 1.2px, transparent 1.5px),
        radial-gradient(circle at 82% 22%, rgba(224,242,254,.88) 0 1.5px, transparent 1.9px),
        linear-gradient(180deg, rgba(255,255,255,.24), transparent 32%);
}

.home-card-theme-snow :is(.game-search-item, .home-dark-card, #sectionGameFavorit .game-card) {
    background-size: 92px 72px, 118px 86px, 104px 78px, 100% 100%, 100% 100% !important;
}

/* KEMERDEKAAN INDONESIA — merah putih, tetap bersih dan premium. */
.home-card-theme-independence {
    --hct22-border: rgba(239,68,68,.72);
    --hct22-glow: rgba(239,68,68,.20);
    --hct22-surface-a: color-mix(in srgb, var(--theme-primary) 82%, #fff1f2);
    --hct22-surface-b: color-mix(in srgb, var(--theme-secondary) 80%, #fee2e2);
    --hct22-pattern:
        linear-gradient(135deg, rgba(220,38,38,.16) 0 12%, transparent 12% 84%, rgba(255,255,255,.18) 84% 100%),
        linear-gradient(180deg, rgba(255,255,255,.12), transparent 42%);
}

.home-card-theme-independence :is(.game-search-item, .home-dark-card, #sectionGameFavorit .game-card) {
    box-shadow:
        0 18px 38px rgba(0,0,0,.14),
        inset 3px 0 0 rgba(220,38,38,.82),
        inset -3px 0 0 rgba(255,255,255,.62),
        0 0 30px rgba(239,68,68,.14) !important;
}

/* HALLOWEEN — gelap, jingga, ungu, dengan pola jaring lembut. */
.home-card-theme-halloween {
    --hct22-border: rgba(249,115,22,.72);
    --hct22-glow: rgba(168,85,247,.24);
    --hct22-surface-a: color-mix(in srgb, var(--theme-primary) 58%, #1f1028);
    --hct22-surface-b: color-mix(in srgb, var(--theme-secondary) 54%, #09090b);
    --hct22-pattern:
        repeating-radial-gradient(circle at 100% 0%, transparent 0 14px, rgba(249,115,22,.09) 15px 16px, transparent 17px 28px),
        linear-gradient(135deg, rgba(168,85,247,.14), transparent 42%, rgba(249,115,22,.12));
}

.home-card-theme-halloween :is(.game-search-item, .home-dark-card, #sectionGameFavorit .game-card) {
    box-shadow:
        0 20px 44px rgba(0,0,0,.26),
        0 0 0 1px rgba(249,115,22,.24),
        0 0 34px rgba(168,85,247,.18),
        inset 0 1px 0 rgba(255,255,255,.12) !important;
}

/* HOLIDAY — hijau, merah, emas dan lampu kecil di permukaan kartu. */
.home-card-theme-holiday {
    --hct22-border: rgba(250,204,21,.64);
    --hct22-glow: rgba(34,197,94,.20);
    --hct22-surface-a: color-mix(in srgb, var(--theme-primary) 74%, #ecfdf5);
    --hct22-surface-b: color-mix(in srgb, var(--theme-secondary) 74%, #fef2f2);
    --hct22-pattern:
        radial-gradient(circle at 12px 10px, rgba(250,204,21,.92) 0 2px, transparent 2.6px),
        radial-gradient(circle at 34px 10px, rgba(239,68,68,.88) 0 2px, transparent 2.6px),
        radial-gradient(circle at 56px 10px, rgba(34,197,94,.88) 0 2px, transparent 2.6px),
        linear-gradient(135deg, rgba(34,197,94,.10), transparent 45%, rgba(239,68,68,.10));
}

.home-card-theme-holiday :is(.game-search-item, .home-dark-card, #sectionGameFavorit .game-card) {
    background-size: 66px 34px, 66px 34px, 66px 34px, 100% 100%, 100% 100% !important;
}


/* ==========================================================
   SNOW VISUAL LAYER V23
   Layer nyata di atas isi kartu supaya salju tetap terlihat meski
   kartu didominasi gambar. Tidak memakai ::before/::after agar
   tidak bentrok dengan border motion Produk Populer.
   ========================================================== */
.home-card-theme-snow :is(
    .home-main-card,
    .home-side-card,
    .home-dark-card,
    .game-search-item,
    #sectionGameFavorit .game-card,
    a[href*="/id/artikel.php"]
) {
    position: relative !important;
    isolation: isolate;
}

.hct23-snow-layer {
    position: absolute;
    inset: 1px;
    z-index: 6;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    opacity: .92;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.98) 0 1.7px, transparent 2.1px),
        radial-gradient(circle, rgba(224,242,254,.92) 0 1.25px, transparent 1.7px),
        radial-gradient(circle, rgba(255,255,255,.72) 0 2.2px, transparent 2.7px),
        linear-gradient(180deg, rgba(255,255,255,.30), transparent 24%);
    background-size:
        54px 64px,
        76px 92px,
        108px 124px,
        100% 100%;
    background-position:
        4px -8px,
        26px -22px,
        52px -48px,
        0 0;
    filter: drop-shadow(0 1px 2px rgba(56,189,248,.28));
    animation: hct23SnowFall 7.5s linear infinite;
    transform: translateZ(0);
}

/* Lapisan salju di bibir atas kartu agar tema langsung terbaca. */
.hct23-snow-layer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 10px;
    background:
        radial-gradient(ellipse at 8px -1px, rgba(255,255,255,.98) 0 8px, transparent 8.8px) 0 0 / 30px 12px repeat-x,
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(224,242,254,.72));
    box-shadow: 0 3px 10px rgba(125,211,252,.20);
    opacity: .95;
}

/* Isi tetap dapat dibaca dan berada di bawah butiran transparan. */
.home-card-theme-snow .hct23-snow-layer ~ * {
    position: relative;
    z-index: 2;
}

@keyframes hct23SnowFall {
    0% {
        background-position: 4px -68px, 26px -114px, 52px -172px, 0 0;
    }
    100% {
        background-position: 18px 122px, 8px 162px, 74px 202px, 0 0;
    }
}

@media (max-width: 640px) {
    .hct23-snow-layer {
        opacity: .86;
        background-size: 48px 58px, 70px 86px, 96px 116px, 100% 100%;
        animation-duration: 8.5s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hct23-snow-layer {
        animation: none !important;
        background-position: 4px 6px, 26px 18px, 52px 30px, 0 0;
    }
}

/* Pertahankan perilaku grayscale dan animasi klik Produk Populer V20. */
.home-theme[class*="home-card-theme-"] .nxp19-popular-card img {
    filter: grayscale(1) saturate(.06) contrast(.96) brightness(.88);
}

.home-theme[class*="home-card-theme-"] .nxp19-popular-card.nxp19-popular-launching img {
    filter: grayscale(0) saturate(1.08) contrast(1.03) brightness(1) !important;
}

/* Card bawah tetap berwarna; tema hanya membingkai kartu. */
.home-theme[class*="home-card-theme-"] #sectionGameFavorit .game-card-main-img {
    filter: saturate(1.04) contrast(1.02);
}

@media (max-width: 640px) {
    .home-theme[class*="home-card-theme-"] :is(
        .home-main-card,
        .home-side-card,
        .home-dark-card,
        .game-search-item,
        #sectionGameFavorit .game-card,
        a[href*="/id/artikel.php"]
    ) {
        box-shadow:
            0 12px 26px rgba(0,0,0,.13),
            0 0 20px var(--hct22-glow),
            inset 0 1px 0 color-mix(in srgb, white 26%, transparent) !important;
    }
}


/* ==========================================================
   PRODUK POPULER — SECTION TERPISAH SEPERTI sistem.php
   Banner berakhir, lalu area populer dimulai sebagai section penuh
   dengan background sendiri. Bukan kotak, bukan divider dekoratif.
   ========================================================== */
.popular-section-band {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin-top: 8px;
    padding: 32px 0 46px;
    overflow: hidden;
    border-top: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
    border-bottom: 0;
    background:
        radial-gradient(
            circle at 8% 0%,
            color-mix(in srgb, var(--theme-accent) 18%, transparent),
            transparent 34%
        ),
        radial-gradient(
            circle at 92% 100%,
            color-mix(in srgb, var(--secondary-color, var(--theme-secondary)) 32%, transparent),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--theme-secondary) 82%, var(--theme-primary)),
            color-mix(in srgb, var(--theme-primary) 76%, var(--theme-secondary))
        );
    box-shadow:
        inset 0 18px 34px color-mix(in srgb, var(--theme-accent) 7%, transparent);
}

/* Bayangan transisi tepat di batas banner -> populer. */
.popular-section-band::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -34px;
    width: min(92%, 1080px);
    height: 68px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: color-mix(in srgb, var(--theme-accent) 18%, transparent);
    filter: blur(28px);
    opacity: .55;
    pointer-events: none;
}

.popular-section-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, white 8%, transparent),
            transparent 22%,
            transparent 100%
        );
}

.popular-section-shell {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.popular-section-shell .popular-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 0;
    border: 0;
}

/* Label Pilihan Eksklusif mengambil warna langsung dari Text Accent tema. */
.home-theme .popular-section-shell .popular-section-kicker.theme-accent-text {
    position: relative;
    z-index: 3;
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    width: fit-content;
    min-height: 34px;
    padding: 8px 13px 8px 10px;
    border: 1px solid var(--theme-accent) !important;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--theme-secondary) 92%, black),
            color-mix(in srgb, var(--theme-primary) 84%, var(--theme-secondary))
        ) !important;
    color: var(--theme-accent) !important;
    -webkit-text-fill-color: var(--theme-accent) !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--theme-accent) 14%, transparent),
        0 8px 20px rgba(0,0,0,.16),
        inset 0 1px 0 color-mix(in srgb, white 22%, transparent);
    font-size: 12px;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: .13em;
    text-transform: uppercase;
    text-shadow: 0 0 12px color-mix(in srgb, var(--theme-accent) 38%, transparent);
}

.home-theme .popular-section-shell .popular-section-kicker.theme-accent-text::before {
    content: "✦";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    border-radius: 6px;
    background: var(--theme-accent) !important;
    color: var(--theme-on-accent) !important;
    -webkit-text-fill-color: var(--theme-on-accent) !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-accent) 34%, transparent);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
}

.home-theme .popular-section-shell .popular-section-kicker.theme-accent-text::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -5px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--theme-accent), transparent) !important;
    box-shadow: 0 0 10px color-mix(in srgb, var(--theme-accent) 45%, transparent);
}

@media (max-width: 640px) {
    .popular-section-band {
        margin-top: 4px;
        padding: 26px 0 36px;
    }

    .popular-section-band::before {
        top: -26px;
        height: 52px;
        filter: blur(22px);
    }

    .popular-section-shell .popular-section-heading {
        margin-bottom: 16px;
    }
}

/* ==========================================================
   PROMO POPUP + TRUST PURCHASE FEED
   ========================================================== */
.czy-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.48);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}

.czy-popup-backdrop.show { display: flex; }

.czy-popup-card {
    width: min(100%, 430px);
    overflow: hidden;
    border-radius: 28px;
    background: color-mix(in srgb, var(--theme-primary) 92%, var(--theme-secondary));
    border: 1px solid color-mix(in srgb, var(--theme-accent) 36%, transparent);
    box-shadow: 0 28px 80px rgba(0,0,0,.30);
    color: var(--theme-text) !important;
    opacity: 0;
    transform: translateY(24px) scale(.955);
    animation: czyPopupOpen .42s cubic-bezier(.16,1,.3,1) forwards;
}

.czy-popup-media { position: relative; background: var(--theme-secondary); }
.czy-popup-image { display: block; width: 100%; max-height: min(62vh, 520px); object-fit: contain; }

.czy-popup-close-icon {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 13px;
    background: rgba(0,0,0,.56);
    color: #fff !important;
    font-size: 18px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.czy-popup-body { padding: 16px; }
.czy-popup-text { color: var(--theme-text) !important; font-size: 13px; line-height: 1.65; }
.czy-popup-text > :first-child { margin-top: 0; }
.czy-popup-text > :last-child { margin-bottom: 0; }

.czy-popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.czy-popup-btn {
    border: 0;
    border-radius: 15px;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.czy-popup-btn.primary { background: var(--theme-accent); color: var(--theme-on-accent) !important; }
.czy-popup-btn.ghost {
    border: 1px solid color-mix(in srgb, var(--theme-accent) 22%, transparent);
    background: color-mix(in srgb, var(--theme-secondary) 72%, var(--theme-primary));
    color: var(--theme-text) !important;
}

@keyframes czyPopupOpen { to { opacity: 1; transform: translateY(0) scale(1); } }

.czy-trust-feed {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9994;
    width: min(370px, calc(100vw - 36px));
    pointer-events: none;
}

.czy-trust-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 30px;
    gap: 11px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--theme-accent) 13%, transparent), transparent 42%),
        color-mix(in srgb, var(--theme-primary) 94%, var(--theme-secondary));
    box-shadow: 0 20px 52px rgba(0,0,0,.20), inset 0 1px 0 color-mix(in srgb, white 46%, transparent);
    color: var(--theme-text) !important;
    opacity: 0;
    transform: translate3d(-30px, 18px, 0) scale(.94);
    filter: blur(5px);
    transition: opacity .46s ease, transform .58s cubic-bezier(.16,1,.3,1), filter .42s ease;
    pointer-events: auto;
}

.czy-trust-card.is-visible { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
.czy-trust-card.is-leaving { opacity: 0; transform: translate3d(-18px,8px,0) scale(.975); filter: blur(3px); }

.czy-trust-logo-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: color-mix(in srgb, var(--theme-secondary) 72%, var(--theme-primary));
    border: 1px solid color-mix(in srgb, var(--theme-accent) 24%, transparent);
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.czy-trust-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 11px; }

.czy-trust-check {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22c55e;
    color: #fff !important;
    border: 2px solid color-mix(in srgb, var(--theme-primary) 94%, var(--theme-secondary));
    font-size: 10px;
    font-weight: 1000;
    box-shadow: 0 4px 10px rgba(34,197,94,.28);
}

.czy-trust-copy { min-width: 0; }
.czy-trust-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #15803d !important;
}

.czy-trust-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.11);
}

.czy-trust-message {
    margin-top: 4px;
    overflow: hidden;
    color: var(--theme-text) !important;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.czy-trust-message strong { color: var(--theme-text) !important; font-weight: 950; }
.czy-trust-verified { margin-top: 5px; font-size: 10px; font-weight: 800; color: var(--theme-text) !important; opacity: .62; }

.czy-trust-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: color-mix(in srgb, var(--theme-text) 7%, transparent);
    color: var(--theme-text) !important;
    cursor: pointer;
    opacity: .62;
}

.czy-trust-close:hover { opacity: 1; background: color-mix(in srgb, var(--theme-accent) 13%, transparent); }

.czy-trust-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
}

.czy-trust-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #22c55e, var(--theme-accent));
}

.czy-trust-card.is-visible .czy-trust-progress > span { animation: czyTrustProgress 4.7s linear forwards; }
@keyframes czyTrustProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 640px) {
    .czy-popup-actions { grid-template-columns: 1fr; }

    /* Notifikasi trust tidak memenuhi lebar layar di mobile. */
    .czy-trust-feed {
        left: 12px;
        right: auto;
        bottom: 12px;
        width: min(310px, calc(100vw - 24px));
        max-width: 82vw;
    }

    .czy-trust-card {
        grid-template-columns: 42px minmax(0,1fr) 26px;
        gap: 9px;
        padding: 10px;
        border-radius: 17px;
    }

    .czy-trust-logo-wrap {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .czy-trust-logo {
        width: 29px;
        height: 29px;
    }

    .czy-trust-message {
        font-size: 11px;
        line-height: 1.4;
    }

    .czy-trust-verified {
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    .czy-trust-feed {
        width: min(285px, calc(100vw - 20px));
        max-width: 84vw;
        left: 10px;
        bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .czy-popup-card, .czy-trust-card, .czy-trust-progress > span { animation: none !important; transition-duration: .01ms !important; }
}

