:root {
    --bg: #0e0711;
    --card: #140b18;
    --text: #f6eefc;
    --muted: #bfb0c8;
    --accent-violet: #ff2a2a;
    --accent-red: #c0be00;
    --accent-gold: #000000;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-2: rgba(255, 255, 255, 0.025);
    --radius: 14px;
    --shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
    --blur: 10px;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial;
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background: radial-gradient(
            1200px 600px at 12% 10%,
            rgba(255, 42, 42, 0.1),
            transparent
        ),
        radial-gradient(
            800px 400px at 85% 15%,
            rgba(217, 139, 43, 0.08),
            transparent
        ),
        linear-gradient(180deg, #07020a 0%, #110417 100%);
    color: var(--text);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 56px;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.02'/%3E%3C/svg%3E");
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
    background: #fff;
    color: #000;
    padding: 8px;
    border-radius: 6px;
    z-index: 9999;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(6px);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.01)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}
.logo {
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-family: "Times New Roman", serif;
}
.hamburger {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--glass);
    border: 0;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
    box-shadow: 0 6px 0 0 var(--muted);
}

/* Menu */
.menu {
    display: none;
    gap: 8px;
}
.menu .nav-link {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

/* MAIN */
.main {
    padding: 18px;
    max-width: 980px;
    margin: 0 auto;
}

/* Views container */
.views {
    position: relative;
    overflow: hidden;
}

/* View default */
.view {
    min-height: 60vh;
    padding: 8px;
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.view[hidden] {
    display: none;
}

/* Animasi masuk */
.view.entering {
    opacity: 0;
    transform: translateX(20px);
}

/* Animasi keluar */
.view.leaving {
    opacity: 0;
    transform: translateX(-20px);
}

.logo {
    font-weight: 700;
    letter-spacing: 0.12em;
    background: linear-gradient(180deg, #fff2c6 0%, #d98b2b 45%, #b8741e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow: 0 6px 20px rgba(217, 139, 43, 0.35);
}

/* HERO */
.hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.01)
    );
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.avatar-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: auto;
}

.avatar img {
    width: 100%;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 2;
}

/* Glow neon lingkaran */
.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow:
        0 0 20px #c77cff,
        0 0 40px #c77cff,
        0 0 60px #c77cff;
    animation:
        glow-rotate 6s linear infinite,
        glow-pulse 3s ease-in-out infinite;
    z-index: 1;
}

/* Animasi lingkaran berputar */
@keyframes glow-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animasi cahaya pulse */
@keyframes glow-pulse {
    0%,
    100% {
        box-shadow:
            0 0 15px #ff3030,
            0 0 30px #ff3030,
            0 0 45px #ff3030;
    }
    50% {
        box-shadow:
            0 0 25px #ff3030,
            0 0 50px #ff3030,
            0 0 75px #ff3030;
    }
}

/* Optional: SVG kiri/kanan */
.sil-left,
.sil-right {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 3;
}

.sil-left {
    left: -60px;
}
.sil-right {
    right: -60px;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    margin: 0;
    text-align: center;

    background: linear-gradient(180deg, #fff3c4 0%, #e0a03a 40%, #b86b12 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow: 0 8px 24px rgba(204, 85, 0, 0.45);
}
.hero-desc {
    margin-inline: auto;
    color: var(--muted);
    text-align: center;
    max-width: 86%;
}

/* CTAs */
.hero-cta {
    display: flex;
    gap: 10px;
}
.btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}
.btn.primary {
    background: linear-gradient(90deg, var(--accent-violet), #000000);
    color: #fff;
    box-shadow: 0 8px 30px rgba(139, 62, 255, 0.12);
}
.btn.ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.btn.outline {
    background: transparent;
    border: 1px solid #ffb86b;
    color: #ffb86b;
}
.btn.small {
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 14px;
}

/* PROFILE */
.profile-panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.owner-photo {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.links {
    display: flex;
    gap: 8px;
}
.social {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--glass);
    color: var(--muted);
    text-decoration: none;
}

/* Poster Slider */
.poster-slider {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}
.poster-track {
    display: flex;
    gap: 8px;
    animation: posterSlide 12s linear infinite;
}
.poster-track img {
    width: 240px;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
}
@keyframes posterSlide {
    0% {
        transform: translateX(0);
    }
    33% {
        transform: translateX(-248px);
    }
    66% {
        transform: translateX(-496px);
    }
    100% {
        transform: translateX(0);
    }
}

/* STORE */
.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0;
}

.price-row.column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.search,
.select {
    padding: 10px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.card {
    flex: 0 0 150px;
}

.card[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background: linear-gradient(
        180deg,
        rgba(20, 11, 24, 0.95),
        rgba(10, 5, 14, 0.95)
    );
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
    white-space: pre-line;
    top: -110%;
    left: 0;
    max-width: 200px;
    width: 220px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
    z-index: 20;
}
.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price-pill {
    background: linear-gradient(
        90deg,
        var(--accent-violet),
        var(--accent-gold)
    );
    padding: 8px 10px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.48);
}
.price-sub {
    font-size: 13px;
    color: var(--muted);
}

.badge {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.badge.best {
    background: linear-gradient(90deg, #ffd57a, #ff6b6b);
    color: #1b0610;
}
.badge.pop {
    background: #6bffec10;
    color: #6bf0d9;
    border: 1px solid rgba(107, 255, 236, 0.06);
}
.badge.no-mys {
    background: var(--accent-red);
    color: #fff;
}

.card-actions {
    display: flex;
    gap: 8px;
}
.card .btn {
    flex: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.more-btn:hover {
    opacity: 1;
}

.desc {
    white-space: pre-line;
    margin: 6px 0 10px;
    font-size: 13px;
    color: #fff;
    line-height: 1.4;
    max-height: 120px;
    overflow-y: auto;
}

.hidden {
    display: none;
}

/* PAYMENT */
.payment-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.payment-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pay-card {
    background: var(--glass-2);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}
.qris-wrap img {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.modal-body {
    width: 95%;
    max-width: 500px;
}

#qr-modal-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ==========================
   OVERLAY BASE STYLE
========================== */
.loading-overlay,
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* MODAL SYSTEM */
.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}
.modal[hidden] {
    display: none !important;
}

.modal-body {
    position: relative;
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    width: calc(100% - 36px);
    max-width: 520px;
    box-shadow: var(--shadow);
}

/* CLOSE BUTTON FIX */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
    z-index: 10000;
}

/* TOAST */
.toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    z-index: 99999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: 0.25s ease;
    display: inline-block;
    white-space: nowrap;
}
.toast.show {
    opacity: 1;
}

/* Responsive */
@media (min-width: 760px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-card {
        flex-direction: row;
        gap: 22px;
        padding: 26px;
    }
    .avatar-wrap {
        width: 260px;
        height: 260px;
    }
    .poster-track img {
        width: 320px;
        height: 180px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Reseller */
.join-reseller-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 34px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(6px);

    display: block;
    width: 100%;
    cursor: pointer;

    position: relative;
    z-index: 10000;
    pointer-events: auto;
}

.zoom-qris {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.zoom-content img {
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Form kirim bukti pembayaran */
.payment-form {
    display: none; /* sembunyi dulu */
    background: var(--glass-2);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.payment-form input {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: var(--glass);
    color: var(--text);
}
.payment-form button {
    margin-top: 8px;
}

.wa-box {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* aura berbentuk pulse */
.wa-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 0, 80, 0.25) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    animation: pulseAura 4s infinite ease-in-out;
    z-index: -1;
}

@keyframes pulseAura {
    0%,
    100% {
        opacity: 0.45;
    }
    50% {
        opacity: 0.85;
    }
}

/* tombol WA */
.wa-button {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(90deg, #ff0055, #7a00ff);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 120, 0.5);
}

/* efek hover burst */
.wa-button:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 22px rgba(255, 0, 120, 0.6),
        0 0 35px rgba(120, 0, 255, 0.7);
}

/* ====== GENERAL ====== */
.kc-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column; /* susun vertikal */
    gap: 1rem; /* jarak antar video */
}

.kc-slide {
    width: 100%;
    aspect-ratio: 16 / 9; /* biar 16:9 */
    object-fit: cover;
    border-radius: 10px;
}

/* resseler */
#reseller-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

#reseller-form label.checkbox {
    flex-direction: row;
    align-items: center;
}

#proofForm label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

#proofForm select,
#proofForm input[type="text"],
#proofForm input[type="number"],
#proofForm input[type="file"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #bbb;
}

/* DASARAN */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
}

.site-footer {
    margin-top: auto;
    padding: 16px 0;
    text-align: center;
    opacity: 0.7;
}

/* ==========================
   SCROLL FADE-UP ANIMATION
========================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================
   PAGE SLIDE TRANSITION
========================== */
.view {
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.view.enter {
    opacity: 0;
    transform: translateX(40px);
}

.view.enter-active {
    opacity: 1;
    transform: translateX(0);
}

.view.exit {
    opacity: 1;
    transform: translateX(0);
}

.view.exit-active {
    opacity: 0;
    transform: translateX(-40px);
}
