/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:        #0e0e11;
    --surface:   #16161a;
    --surface-2: #1e1e24;
    --border:    rgba(255,255,255,0.07);
    --border-hov:rgba(255,255,255,0.14);

    --accent:    #a78bfa;      /* soft violet */
    --accent-2:  #f472b6;      /* rose pink */
    --accent-3:  #34d399;      /* emerald */
    --warm:      #fb923c;      /* warm orange */

    --text:      #e2e2e8;
    --text-muted:#8b8b9a;
    --text-dim:  #52525e;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow:    0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);

    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   MESH GRADIENT BACKGROUND
   ============================================ */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mesh-1, .mesh-2, .mesh-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.12;
    animation: meshDrift 20s ease-in-out infinite alternate;
}

.mesh-1 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, #a78bfa, transparent 70%);
    top: -15vw; left: -10vw;
    animation-delay: 0s;
}

.mesh-2 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, #f472b6, transparent 70%);
    bottom: -15vw; right: -10vw;
    animation-delay: -7s;
}

.mesh-3 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, #34d399, transparent 70%);
    top: 40%; left: 50%;
    animation-delay: -14s;
}

@keyframes meshDrift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(3vw, -4vw) scale(1.08); }
    100% { transform: translate(-2vw, 3vw) scale(0.95); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    padding: 72px 24px 56px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1 1 400px;
}

.hero-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeUp 0.6s ease both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #f9a8d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    animation: fadeUp 0.6s 0.1s ease both;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 32px;
    animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeUp 0.6s 0.3s ease both;
}

/* Avatar Card */
.avatar-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeUp 0.7s 0.15s ease both;
}

.hero-avatar {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 0 8px rgba(167, 139, 250, 0.08), var(--shadow-lg);
    animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
}

.sub-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.sub-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sub-count {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--border-hov);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--border-hov);
    color: var(--text);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   SOCIAL SECTION
   ============================================ */
.socials-section {
    position: relative;
    z-index: 1;
    padding: 0 24px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
}

.section-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.social-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hov);
    box-shadow: var(--shadow);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.social-emoji {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.social-name {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.social-arrow {
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.social-card:hover .social-arrow { color: var(--accent); }

.social-card.youtube:hover  { border-color: rgba(255,0,0,0.3); }
.social-card.tiktok:hover   { border-color: rgba(255,255,255,0.2); }
.social-card.support:hover  { border-color: rgba(244,114,182,0.35); }
.social-card.persmedia:hover { border-color: rgba(167,139,250,0.35); }

/* ============================================
   ACTION BAR (MENU)
   ============================================ */
.action-bar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 24px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: all var(--transition);
}

.pill-btn:hover,
.pill-btn.active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}

/* ============================================
   CONTAINER & CARDS
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.category {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-16px);
    transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease;
}

.category.open {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.cat-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-card:hover {
    border-color: rgba(167,139,250,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.item-card-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(251,146,60,0.12);
    border: 1px solid rgba(251,146,60,0.25);
    color: var(--warm);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.item-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.item-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
}

.item-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.item-card .btn {
    margin-top: auto;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Centering */
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border-hov);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 600px;
    position: relative;
    animation: modalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
    text-align: center;
    /* Agar tidak terlalu tinggi di layar kecil */
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    padding-top: 8px;
}

.modal-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 16px 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    margin-top: 0;
    white-space: nowrap;
}

.modal-close:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-hov);
}

/* Tombol Kembali: posisi kiri */
.modal-back {
    right: auto;
    left: 16px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* QR IMAGE */
.qr-image {
    width: 70%;
    max-width: 280px;
    border-radius: var(--radius);
    margin: 16px auto;
    display: block;
    border: 1px solid var(--border);
}

/* ============================================
   SLIDER
   ============================================ */
.slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.slider img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(14, 14, 17, 0.75);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2;
    font-family: var(--font-body);
    margin-top: 0;
    backdrop-filter: blur(4px);
}

.prev:hover, .next:hover {
    background: rgba(124, 58, 237, 0.5);
    border-color: rgba(167,139,250,0.4);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Fullscreen button on slider */
.btn-fullscreen {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(14, 14, 17, 0.75);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.btn-fullscreen:hover {
    background: rgba(124, 58, 237, 0.5);
    border-color: rgba(167,139,250,0.4);
}

/* Slider image clickable cursor */
.slider img { cursor: zoom-in; }

/* ============================================
   FULLSCREEN LIGHTBOX
   ============================================ */
.fs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    animation: fsFadeIn 0.22s ease;
}
.fs-overlay.open {
    display: flex;
}

@keyframes fsFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fs-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
    animation: fsImgIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    user-select: none;
}

@keyframes fsImgIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.fs-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(30, 30, 36, 0.85);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    font-size: 1.1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    z-index: 10000;
}
.fs-close:hover {
    background: rgba(124, 58, 237, 0.6);
    border-color: rgba(167,139,250,0.4);
    transform: rotate(90deg);
}

.fs-prev, .fs-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(30, 30, 36, 0.85);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    z-index: 10000;
}
.fs-prev { left: 20px; }
.fs-next { right: 20px; }

.fs-prev:hover, .fs-next:hover {
    background: rgba(124, 58, 237, 0.6);
    border-color: rgba(167,139,250,0.4);
    transform: translateY(-50%) scale(1.1);
}

.fs-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 36, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    z-index: 10000;
    letter-spacing: 0.06em;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px 20px 36px;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
    .hero { padding: 48px 20px 40px; }

    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero-left { flex: 1 1 auto; width: 100%; }

    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }

    .hero-desc { max-width: 100%; }

    .hero-actions { justify-content: center; }

    .hero-avatar { width: 160px; height: 160px; }

    .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .hero { padding: 36px 16px 28px; }

    .hero-title { font-size: clamp(2rem, 12vw, 3rem); }

    .section-inner { padding: 20px; }

    .social-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

    .social-card { padding: 12px; gap: 8px; }

    .social-name { font-size: 0.82rem; }

    .action-bar { padding: 0 16px 24px; flex-direction: column; gap: 10px; }

    .pill-btn { width: 100%; justify-content: center; }

    .container { padding: 0 16px 36px; }

    .modal-content { padding: 24px 18px; }

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

    .btn { width: 100%; justify-content: center; }

    .hero-actions { flex-direction: column; width: 100%; gap: 10px; }

    .cards-grid { grid-template-columns: 1fr; }

    .footer { padding: 20px 16px 28px; }
}

@media (max-width: 380px) {
    .social-grid { grid-template-columns: 1fr; }
}