/* ============================================
   LANDING TOPUP - VocaGame Style
   Game Top-Up Landing Page Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --topup-primary: #22C55E;
    --topup-primary-dark: #16A34A;
    --topup-primary-light: #86EFAC;
    --topup-primary-50: #F0FDF4;
    --topup-primary-100: #DCFCE7;
    --topup-bg: #F8FAFC;
    --topup-card: #FFFFFF;
    --topup-text: #1E293B;
    --topup-text-muted: #64748B;
    --topup-border: #E2E8F0;
    --topup-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --topup-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --topup-shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --topup-radius: 16px;
    --topup-radius-sm: 12px;
    --topup-radius-full: 9999px;
    --topup-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode support */
[data-pc-theme="dark"] {
    --topup-bg: #0F172A;
    --topup-card: #1E293B;
    --topup-text: #F1F5F9;
    --topup-text-muted: #94A3B8;
    --topup-border: #334155;
    --topup-shadow: 0 1px 3px rgba(0,0,0,0.2);
    --topup-shadow-md: 0 4px 6px rgba(0,0,0,0.25);
    --topup-shadow-lg: 0 10px 25px rgba(0,0,0,0.3);
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
.topup-landing {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--topup-bg);
    color: var(--topup-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.topup-landing * {
    box-sizing: border-box;
}

/* ============================================
   NAVBAR
   ============================================ */
.topup-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--topup-card);
    border-bottom: 1px solid var(--topup-border);
    padding: 0 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease,
        -webkit-backdrop-filter 0.35s ease;
}

/* Landing: navbar overlay di atas hero (seperti uniplay.id/reseller) */
body.topup-landing .topup-navbar {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

body.topup-landing .topup-navbar:not(.topup-navbar--at-top) {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

body.topup-landing .topup-navbar .navbar-inner {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
}

/* Layout utama tema topup (bukan landing): navbar tetap di atas konten */
body.topup-app .topup-navbar {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

body.topup-app .topup-navbar .navbar-inner {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
}

/* Di atas / awal scroll: transparan, teks putih, hamburger bulat gelap */
.topup-navbar.topup-navbar--at-top {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.topup-navbar.topup-navbar--at-top .nav-logo-text {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.topup-navbar.topup-navbar--at-top .nav-logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.topup-navbar.topup-navbar--at-top .nav-search input {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.topup-navbar.topup-navbar--at-top .nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.topup-navbar.topup-navbar--at-top .nav-search input:focus {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.topup-navbar.topup-navbar--at-top .nav-search-icon {
    color: rgba(255, 255, 255, 0.8);
}

.topup-navbar.topup-navbar--at-top .nav-link-text {
    color: rgba(255, 255, 255, 0.96);
}

.topup-navbar.topup-navbar--at-top .nav-link-text:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.topup-navbar.topup-navbar--at-top .nav-btn-register {
    border-color: rgba(255, 255, 255, 0.92);
    color: #fff !important;
    background: transparent;
}

.topup-navbar.topup-navbar--at-top .nav-btn-register:hover {
    background: rgba(255, 255, 255, 0.16);
}

.topup-navbar.topup-navbar--at-top .nav-btn-login {
    background: #fff;
    color: var(--topup-primary) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.topup-navbar.topup-navbar--at-top .nav-btn-login:hover {
    background: rgba(255, 255, 255, 0.94);
    color: var(--topup-primary-dark) !important;
}

.topup-navbar.topup-navbar--at-top .nav-mobile-toggle {
    color: #fff;
}

.topup-navbar .navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.topup-navbar .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.topup-navbar .nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.topup-navbar .nav-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--topup-primary);
    letter-spacing: -0.5px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topup-navbar .nav-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.topup-navbar .nav-search input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 2px solid var(--topup-border);
    border-radius: var(--topup-radius-full);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--topup-bg);
    color: var(--topup-text);
    transition: var(--topup-transition);
    outline: none;
}

.topup-navbar .nav-search input:focus {
    border-color: var(--topup-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.topup-navbar .nav-search input::placeholder {
    color: var(--topup-text-muted);
}

.topup-navbar .nav-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--topup-text-muted);
    font-size: 16px;
}

.topup-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topup-navbar .nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--topup-radius-sm);
    transition: var(--topup-transition);
    white-space: nowrap;
}

.topup-navbar .nav-link-text {
    color: var(--topup-text);
}

.topup-navbar .nav-link-text:hover {
    color: var(--topup-primary);
    background: var(--topup-primary-50);
}

.topup-navbar .nav-btn-login {
    background: var(--topup-primary);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--topup-radius-sm);
    padding: 8px 20px !important;
}

.topup-navbar .nav-btn-login:hover {
    background: var(--topup-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.topup-navbar .nav-btn-register {
    border: 2px solid var(--topup-primary);
    color: var(--topup-primary) !important;
    font-weight: 600;
    border-radius: var(--topup-radius-sm);
    padding: 6px 18px !important;
}

.topup-navbar .nav-btn-register:hover {
    background: var(--topup-primary-50);
}

/* Mobile hamburger */
.topup-navbar .nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--topup-text);
    font-size: 24px;
}

/* ========== NAV DRAWER (mobile — panel kiri + overlay) ========== */
.nav-drawer {
    display: none;
}

@media (max-width: 768px) {
    .nav-drawer {
        display: block;
        position: fixed;
        inset: 0;
        /* Di atas bottom-nav (9999); drawer di luar #topup-navbar agar tidak ter-clip backdrop-filter */
        z-index: 10050;
        pointer-events: none;
        visibility: hidden;
    }

    .nav-drawer.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .nav-drawer-overlay {
        position: absolute;
        inset: 0;
        border: none;
        padding: 0;
        margin: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.5);
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-drawer.is-open .nav-drawer-overlay {
        opacity: 1;
    }

    .nav-drawer-panel {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(82vw, 300px);
        max-width: 100%;
        background: #fff;
        box-shadow: 8px 0 36px rgba(0, 0, 0, 0.14);
        transform: translateX(-105%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        z-index: 1;
    }

    .nav-drawer.is-open .nav-drawer-panel {
        transform: translateX(0);
    }

    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: max(14px, env(safe-area-inset-top, 0px)) 16px 14px;
        border-bottom: 1px solid var(--topup-border);
        flex-shrink: 0;
    }

    .nav-drawer-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        min-width: 0;
    }

    .nav-drawer-brand img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        object-fit: contain;
    }

    .nav-drawer-brand-text {
        font-size: 17px;
        font-weight: 800;
        color: var(--topup-text);
        letter-spacing: -0.3px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-drawer-close {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        border: none;
        background: transparent;
        border-radius: 12px;
        color: var(--topup-text-muted);
        font-size: 22px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-drawer-close:hover {
        background: var(--topup-bg);
        color: var(--topup-text);
    }

    .nav-drawer-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px 12px max(24px, env(safe-area-inset-bottom, 0px));
        -webkit-overflow-scrolling: touch;
    }

    .nav-drawer-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 13px 12px;
        border-radius: 12px;
        text-decoration: none;
        color: #1e293b;
        font-size: 15px;
        font-weight: 600;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-drawer-link:hover,
    .nav-drawer-link:focus-visible {
        background: var(--topup-primary-50);
        color: var(--topup-primary-dark);
    }

    .nav-drawer-link-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(34, 197, 94, 0.12);
        color: #15803d;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }

    .nav-drawer-link-text {
        flex: 1;
        min-width: 0;
    }

    .nav-drawer-divider {
        height: 1px;
        background: var(--topup-border);
        margin: 14px 8px;
    }

    .nav-drawer-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 4px;
    }

    .nav-drawer-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 18px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        text-align: center;
    }

    .nav-drawer-btn--outline {
        border: 2px solid var(--topup-primary);
        color: var(--topup-primary);
        background: transparent;
    }

    .nav-drawer-btn--primary {
        background: var(--topup-primary);
        color: #fff !important;
    }

    body.nav-drawer-open {
        overflow: hidden;
        touch-action: none;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .nav-drawer-overlay,
    .nav-drawer-panel {
        transition-duration: 0.01ms;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.topup-hero {
    position: relative;
    background: linear-gradient(135deg, var(--topup-primary) 0%, #15803D 100%);
    padding: 48px 0 80px;
    overflow: hidden;
}

/* Ruang untuk navbar fixed overlay di landing */
.topup-landing .topup-hero {
    padding-top: max(104px, calc(56px + env(safe-area-inset-top, 0px) + 40px));
}

.topup-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--topup-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.topup-hero .hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    position: relative;
    z-index: 2;
}

/* Desktop: [ judul+sub | banner ] / [ CTA+stats | banner ] */
.topup-hero .hero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, min(440px, 100%));
    grid-template-rows: auto auto;
    gap: clamp(20px, 3vw, 28px) clamp(28px, 4vw, 48px);
    align-items: start;
}

.topup-hero .hero-copy-block {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.topup-hero .hero-cta-stats {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Mencegah overflow horizontal pada grid (teks panjang / gambar) */
.topup-hero .hero-grid > * {
    min-width: 0;
}

.topup-hero .hero-banner-col {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    max-width: 440px;
    justify-self: end;
    align-self: center;
    min-height: 0;
}

.topup-hero .hero-banner-showcase {
    width: 100%;
}

.topup-hero .hero-banner-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.12);
}

.topup-hero .hero-banner-viewport {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.08);
}

.topup-hero .hero-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.topup-hero .hero-banner-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.topup-hero .hero-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.topup-hero .hero-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.topup-hero .hero-banner-viewport--single {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.topup-hero .hero-banner-img--fallback {
    max-width: 78%;
    max-height: 78%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
    animation: floatShape 4s ease-in-out infinite;
}

.topup-hero .hero-banner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}

.topup-hero .hero-banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

.topup-hero .hero-banner-dot:hover {
    background: rgba(255, 255, 255, 0.55);
}

.topup-hero .hero-banner-dot.is-active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .topup-hero .hero-banner-slide {
        transition: opacity 0.2s ease;
    }
}

/* Floating shapes */
.topup-hero .hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.topup-hero .hero-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 8s ease-in-out infinite;
}

.topup-hero .hero-shape:nth-child(1) {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    border: 4px solid #fff;
    border-radius: 20px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.topup-hero .hero-shape:nth-child(2) {
    top: 60%;
    right: 8%;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    animation-delay: -3s;
}

.topup-hero .hero-shape:nth-child(3) {
    bottom: 25%;
    left: 15%;
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-radius: 50%;
    animation-delay: -5s;
}

.topup-hero .hero-shape:nth-child(4) {
    top: 20%;
    right: 20%;
    width: 100px;
    height: 100px;
    border: 4px solid #fff;
    border-radius: 24px;
    transform: rotate(30deg);
    animation-delay: -2s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Hero stats */
.topup-hero .hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.topup-hero .hero-stat {
    text-align: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 18px 22px;
    min-width: 120px;
    flex: 1;
    transition: var(--topup-transition);
}

.topup-hero .hero-stat:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.topup-hero .hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
    color: #fff;
}

.topup-hero .hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.topup-hero .hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.topup-hero .hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.topup-hero .hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
    max-width: min(500px, 100%);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.topup-hero .hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.topup-hero .hero-cta .btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    color: var(--topup-primary);
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--topup-radius-sm);
    text-decoration: none;
    transition: var(--topup-transition);
    border: none;
}

.topup-hero .hero-cta .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.topup-hero .hero-cta .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--topup-radius-sm);
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    transition: var(--topup-transition);
}

.topup-hero .hero-cta .btn-hero-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ============================================
   CATEGORY PILLS
   ============================================ */
.topup-categories {
    max-width: 1280px;
    margin: -30px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.topup-categories .category-wrapper {
    background: var(--topup-card);
    border-radius: var(--topup-radius);
    padding: 16px 20px;
    box-shadow: var(--topup-shadow-lg);
    border: 1px solid var(--topup-border);
}

.topup-categories .category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.topup-categories .category-pills::-webkit-scrollbar {
    display: none;
}

.topup-categories .category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--topup-radius-full);
    border: 2px solid var(--topup-border);
    background: transparent;
    color: var(--topup-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--topup-transition);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.topup-categories .category-pill:hover,
.topup-categories .category-pill.active {
    background: var(--topup-primary);
    border-color: var(--topup-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.topup-categories .category-pill i {
    font-size: 16px;
}

.topup-categories .category-pill .pill-count {
    background: rgba(255,255,255,0.2);
    padding: 1px 8px;
    border-radius: var(--topup-radius-full);
    font-size: 11px;
    font-weight: 700;
}

.topup-categories .category-pill.active .pill-count {
    background: rgba(255,255,255,0.25);
}

/* ============================================
   SERVICE CARDS GRID
   ============================================ */
.topup-services {
    max-width: 1280px;
    margin: 32px auto;
    padding: 0 24px;
}

.topup-services .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.topup-services .section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--topup-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.topup-services .section-title i {
    color: var(--topup-primary);
}

.topup-services .section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--topup-primary);
    text-decoration: none;
    transition: var(--topup-transition);
}

.topup-services .section-link:hover {
    color: var(--topup-primary-dark);
}

.topup-services .services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.topup-services .service-card {
    background: var(--topup-card);
    border-radius: var(--topup-radius);
    overflow: hidden;
    border: 1px solid var(--topup-border);
    transition: var(--topup-transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.topup-services .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--topup-shadow-lg);
    border-color: var(--topup-primary-light);
}

.topup-services .service-card-img {
    position: relative;
    width: 100%;
    padding-top: 130%;
    background: linear-gradient(135deg, var(--topup-primary-50), var(--topup-primary-100));
    overflow: hidden;
}

.topup-services .service-card-img .card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: var(--topup-primary);
    opacity: 0.6;
}

.topup-services .service-card-img .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.topup-services .service-card-img .card-overlay-text {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.topup-services .service-card-body {
    padding: 12px;
}

.topup-services .service-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--topup-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topup-services .service-card-count {
    font-size: 11px;
    color: var(--topup-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.topup-services .service-card-count .count-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--topup-primary-50);
    color: var(--topup-primary);
    border-radius: var(--topup-radius-full);
    font-size: 11px;
    font-weight: 600;
}

[data-pc-theme="dark"] .topup-services .service-card-count .count-badge {
    background: rgba(34, 197, 94, 0.15);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.topup-features {
    max-width: 1280px;
    margin: 64px auto;
    padding: 0 24px;
}

.topup-features .features-header {
    text-align: center;
    margin-bottom: 40px;
}

.topup-features .features-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--topup-text);
    margin-bottom: 8px;
}

.topup-features .features-header p {
    font-size: 15px;
    color: var(--topup-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.topup-features .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.topup-features .feature-card {
    background: var(--topup-card);
    border: 1px solid var(--topup-border);
    border-radius: var(--topup-radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--topup-transition);
}

.topup-features .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--topup-shadow-lg);
    border-color: var(--topup-primary-light);
}

.topup-features .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--topup-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--topup-primary);
    transition: var(--topup-transition);
}

[data-pc-theme="dark"] .topup-features .feature-icon {
    background: rgba(34, 197, 94, 0.15);
}

.topup-features .feature-card:hover .feature-icon {
    background: var(--topup-primary);
    color: #fff;
    transform: scale(1.1);
}

.topup-features .feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--topup-text);
    margin-bottom: 8px;
}

.topup-features .feature-desc {
    font-size: 13px;
    color: var(--topup-text-muted);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS SECTION - Pure CSS Scroll
   ============================================ */
.topup-testimonials {
    background: var(--topup-primary-50);
    padding: 64px 0;
    overflow: hidden;
}

[data-pc-theme="dark"] .topup-testimonials {
    background: #1A2332;
}

.topup-testimonials .testi-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.topup-testimonials .testi-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 24px;
}

.topup-testimonials .testi-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--topup-text);
    margin-bottom: 8px;
}

.topup-testimonials .testi-header p {
    font-size: 15px;
    color: var(--topup-text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* Scroll container */
.topup-testimonials .testi-scroll {
    overflow: hidden;
    padding: 6px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.topup-testimonials .testi-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.topup-testimonials .testi-scroll[data-direction="left"] .testi-track {
    animation: testiScrollLeft 45s linear infinite;
}

.topup-testimonials .testi-scroll[data-direction="right"] .testi-track {
    animation: testiScrollRight 45s linear infinite;
}

.topup-testimonials .testi-scroll:hover .testi-track {
    animation-play-state: paused;
}

@keyframes testiScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes testiScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Card */
.topup-testimonials .testi-card {
    background: var(--topup-card);
    border-radius: 20px;
    padding: 24px 24px 20px;
    width: 340px;
    min-width: 340px;
    flex-shrink: 0;
    position: relative;
    border: 1px solid var(--topup-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topup-testimonials .testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

[data-pc-theme="dark"] .topup-testimonials .testi-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.topup-testimonials .testi-card::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 64px;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    color: var(--topup-primary);
    opacity: 0.08;
    pointer-events: none;
}

/* Stars */
.topup-testimonials .testi-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
}

.topup-testimonials .testi-stars i {
    font-size: 13px;
    color: #FBBF24;
    filter: drop-shadow(0 1px 1px rgba(251,191,36,0.3));
}

/* Content */
.topup-testimonials .testi-content {
    font-size: 14px;
    color: var(--topup-text);
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 68px;
}

/* Footer */
.topup-testimonials .testi-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--topup-border);
}

.topup-testimonials .testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--topup-primary-light);
    flex-shrink: 0;
}

.topup-testimonials .testi-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--topup-text);
    line-height: 1.3;
}

.topup-testimonials .testi-role {
    font-size: 12px;
    color: var(--topup-text-muted);
    line-height: 1.3;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .topup-testimonials .testi-track {
        animation: none !important;
    }
    .topup-testimonials .testi-scroll {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .topup-testimonials .testi-scroll::-webkit-scrollbar { display: none; }
    .topup-testimonials .testi-card {
        scroll-snap-align: start;
    }
}

/* ============================================
   TESTIMONIALS V2 (halaman Testimoni + referensi UI)
   ============================================ */
.testi-v2-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 32px;
}

.testi-v2-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--topup-text);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-pc-theme="dark"] .testi-v2-stats {
    background: var(--topup-card);
    border-color: var(--topup-border);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.testi-v2-stats__item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.testi-v2-stats__divider {
    width: 1px;
    align-self: stretch;
    min-height: 28px;
    background: var(--topup-border);
    flex-shrink: 0;
}

.testi-v2-stats__icon {
    color: var(--topup-primary);
    font-size: 15px;
    flex-shrink: 0;
}

.testi-v2-stats__icon--star {
    color: #fbbf24;
}

.testi-v2-stats__orders {
    color: var(--topup-primary);
    font-weight: 800;
}

.testi-v2-hero {
    text-align: center;
    margin-bottom: 22px;
}

.testi-v2-hero__star-wrap {
    text-align: center;
    margin-bottom: 8px;
}

.testi-v2-hero__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--topup-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.testi-v2-hero__star {
    color: #fbbf24;
    font-size: 26px;
    line-height: 1;
    display: inline-block;
}

.testi-v2-hero__sub {
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.65;
    color: var(--topup-text-muted);
    max-width: 36em;
    text-align: center;
}

.testi-v2-section {
    margin-bottom: 8px;
}

.testi-v2-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 4px 16px 8px;
}

.testi-v2-carousel::-webkit-scrollbar {
    display: none;
}

.testi-v2-carousel__track {
    display: flex;
    gap: 12px;
    width: max-content;
    padding-bottom: 4px;
}

.testi-v2-card--snap {
    flex: 0 0 min(300px, calc(100vw - 56px));
    max-width: 300px;
    scroll-snap-align: center;
}

.testi-v2-section--list {
    margin-top: 28px;
}

.testi-v2-section__h {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--topup-text);
    padding: 0 4px;
}

.testi-v2-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

[data-pc-theme="dark"] .testi-v2-card {
    background: var(--topup-card);
    border-color: var(--topup-border);
}

.testi-v2-card__badge-top {
    font-size: 11px;
    font-weight: 700;
    color: var(--topup-text);
    padding: 10px 14px 0;
}

.testi-v2-card__badge-top .text-warning,
.testi-v2-card__badge-top .fa-star {
    color: #fbbf24 !important;
}

.testi-v2-card__ribbon {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.testi-v2-card--c-standard {
    position: relative;
}

.testi-v2-card__badge-float {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    color: var(--topup-text);
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 5px 8px;
    max-width: calc(100% - 20px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.testi-v2-card__badge-float .fa-star {
    color: #fbbf24;
    font-size: 9px;
}

.testi-v2-card--c-featured {
    border: 2px solid #22c55e;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}

[data-pc-theme="dark"] .testi-v2-card--c-featured {
    border-color: #4ade80;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.testi-v2-card--c-standard .testi-v2-card__body {
    padding-top: 42px;
}

.testi-v2-card--c-featured .testi-v2-card__body {
    padding-bottom: 40px;
}

.testi-v2-card__body {
    padding: 12px 14px 14px;
}

.testi-v2-card__user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.testi-v2-card__avatar-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testi-v2-card__avatar-wrap--a {
    background: #dbeafe;
}

.testi-v2-card__avatar-wrap--b {
    background: #fce7f3;
}

[data-pc-theme="dark"] .testi-v2-card__avatar-wrap--a {
    background: rgba(59, 130, 246, 0.2);
}

[data-pc-theme="dark"] .testi-v2-card__avatar-wrap--b {
    background: rgba(236, 72, 153, 0.18);
}

.testi-v2-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(34, 197, 94, 0.35);
    flex-shrink: 0;
}

.testi-v2-card__avatar--sq {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
    object-fit: cover;
}

.testi-v2-card__avatar--round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(34, 197, 94, 0.35);
}

.testi-v2-card__avatar--lg {
    width: 52px;
    height: 52px;
}

.testi-v2-card__avatar--round.testi-v2-card__avatar--lg {
    width: 52px;
    height: 52px;
}

.testi-v2-card__avatar-wrap .testi-v2-card__avatar--lg {
    width: 100%;
    height: 100%;
}

.testi-v2-card__who {
    min-width: 0;
    flex: 1;
}

.testi-v2-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--topup-text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.testi-v2-verified {
    color: #22c55e;
    font-size: 14px;
    line-height: 1;
}

.testi-v2-card__role {
    font-size: 12px;
    color: var(--topup-text-muted);
    margin-top: 2px;
}

.testi-v2-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.testi-v2-stars i {
    font-size: 12px;
    color: #fbbf24;
}

.testi-v2-stars--navy i {
    color: #1e3a8a;
}

[data-pc-theme="dark"] .testi-v2-stars--navy i {
    color: #93c5fd;
}

.testi-v2-stars--lg i {
    font-size: 14px;
}

.testi-v2-quote--bold {
    font-weight: 700;
}

.testi-v2-tags--carousel {
    margin-top: 10px;
}

.testi-v2-quote {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--topup-text);
    padding: 0;
    border: none;
    font-style: normal;
}

.testi-v2-quote--list {
    font-size: 14px;
    margin: 10px 0 14px;
}

.testi-v2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.testi-v2-tags--row {
    align-items: center;
}

.testi-v2-card__meta {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.testi-v2-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.testi-v2-rating-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--topup-text);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.testi-v2-rating-pill .fa-star {
    color: #fbbf24;
    font-size: 10px;
}

[data-pc-theme="dark"] .testi-v2-rating-pill {
    background: rgba(255, 255, 255, 0.08);
}

.testi-v2-tag {
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.testi-v2-tag i {
    color: #22c55e;
    font-size: 10px;
}

[data-pc-theme="dark"] .testi-v2-tag {
    color: #86efac;
}

.testi-v2-safe {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.testi-v2-card--c-featured .testi-v2-safe {
    bottom: 12px;
}

.testi-v2-safe--inline {
    position: static;
    font-size: 11px;
    font-weight: 700;
}

.testi-v2-safe i {
    font-size: 12px;
    color: #22c55e;
}

.testi-v2-card--list {
    padding: 16px 16px 14px;
    margin-bottom: 12px;
}

.testi-v2-card--list__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.testi-v2-card__user--list {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.testi-v2-tags-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--topup-border);
    position: relative;
}

.testi-v2-tags-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 12px;
    bottom: 8px;
    width: 1px;
    background: var(--topup-border);
    transform: translateX(-50%);
}

.testi-v2-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.testi-v2-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}

.testi-v2-dot.is-active {
    background: #22c55e;
    width: 18px;
}

[data-pc-theme="dark"] .testi-v2-dot {
    background: rgba(255, 255, 255, 0.2);
}

/* Marquee cards di landing (reuse komponen v2) */
.topup-testimonials .testi-card.testi-v2-card--marquee {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topup-testimonials .testi-card.testi-v2-card--marquee::before {
    display: none;
}

.topup-testimonials .testi-v2-card--marquee .testi-v2-card__body {
    padding: 14px 18px 16px;
}

.topup-testimonials .testi-v2-card--marquee.testi-v2-card--c-standard .testi-v2-card__body {
    padding-top: 42px;
}

.topup-testimonials .testi-v2-card--marquee.testi-v2-card--c-featured .testi-v2-card__body {
    padding-bottom: 40px;
}

.topup-testimonials .testi-v2-quote--marquee {
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

/* ============================================
   FOOTER
   ============================================ */
.topup-footer {
    background: linear-gradient(135deg, var(--topup-primary) 0%, #15803D 100%);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.topup-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--topup-bg);
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 1;
}

.topup-footer .footer-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.topup-footer .footer-shape {
    position: absolute;
    opacity: 0.08;
}

.topup-footer .footer-shape:nth-child(1) {
    bottom: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    border: 5px solid #fff;
    border-radius: 28px;
    transform: rotate(20deg);
}

.topup-footer .footer-shape:nth-child(2) {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
}

.topup-footer .footer-shape:nth-child(3) {
    bottom: 30%;
    right: 30%;
    width: 60px;
    height: 60px;
    border: 4px solid #fff;
    border-radius: 16px;
    transform: rotate(45deg);
}

.topup-footer .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.topup-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.topup-footer .footer-brand img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.topup-footer .footer-brand-name {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.topup-footer .footer-brand-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 300px;
}

.topup-footer .footer-col-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topup-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topup-footer .footer-links li {
    margin-bottom: 10px;
}

.topup-footer .footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    transition: var(--topup-transition);
}

.topup-footer .footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.topup-footer .footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.topup-footer .footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: var(--topup-transition);
    text-decoration: none;
}

.topup-footer .footer-social a:hover {
    background: #fff;
    color: var(--topup-primary);
    transform: translateY(-2px);
}

.topup-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    text-align: center;
}

.topup-footer .footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0;
}

/* ============================================
   PRELOADER
   ============================================ */
.topup-loader {
    position: fixed;
    inset: 0;
    background: var(--topup-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.topup-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.topup-loader .loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--topup-border);
    border-top-color: var(--topup-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE -- Cross-Platform
   ============================================ */

/* --- Tablet landscape / small desktop --- */
@media (max-width: 1024px) {
    .topup-hero .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: clamp(18px, 4vw, 24px);
    }

    .topup-hero .hero-copy-block {
        grid-column: 1;
        grid-row: 1;
    }

    .topup-hero .hero-banner-col {
        grid-column: 1;
        grid-row: 2;
        max-width: none;
        justify-self: stretch;
        width: 100%;
        align-self: stretch;
    }

    .topup-hero .hero-cta-stats {
        grid-column: 1;
        grid-row: 3;
    }

    .topup-hero .hero-banner-frame {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .topup-hero .hero-copy-block {
        text-align: center;
    }

    .topup-hero .hero-copy-block .hero-subtitle {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .topup-hero .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .topup-hero .hero-cta a {
        width: 100%;
        justify-content: center;
    }

    .topup-services .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .topup-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Tablet portrait / large phone landscape --- */
@media (max-width: 768px) {
    .topup-navbar .navbar-inner {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 12px;
    }

    .topup-navbar .nav-logo-text {
        max-width: 160px;
        font-size: 17px;
    }

    .topup-navbar .nav-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 4px;
    }

    .topup-navbar .nav-links--desktop {
        display: none !important;
    }

    .topup-navbar .nav-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .topup-navbar.topup-navbar--at-top .nav-mobile-toggle {
        width: 44px;
        height: 44px;
        padding: 0;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 50%;
        color: #fff;
    }

    .topup-navbar:not(.topup-navbar--at-top) .nav-mobile-toggle {
        width: auto;
        height: auto;
        padding: 8px;
        background: transparent;
        border: none;
        border-radius: 0;
        color: var(--topup-text);
    }

    .topup-hero {
        padding: 28px 0 56px;
    }

    .topup-landing .topup-hero {
        padding-top: max(92px, calc(52px + env(safe-area-inset-top, 0px) + 28px));
    }

    .topup-hero .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .topup-hero .hero-copy-block {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
    }

    .topup-hero .hero-banner-col {
        grid-column: 1;
        grid-row: 2;
        max-width: none;
        justify-self: stretch;
        width: 100%;
    }

    .topup-hero .hero-cta-stats {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
    }

    .topup-hero .hero-banner-frame {
        border-radius: 18px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .topup-hero .hero-banner-viewport {
        min-height: 180px;
        aspect-ratio: 16 / 9;
    }

    .topup-hero .hero-inner {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .topup-hero .hero-title {
        font-size: 26px;
    }

    .topup-hero .hero-subtitle {
        font-size: 15px;
        margin-bottom: 0;
    }

    /* Statistik gaya referensi: label atas, angka besar, grid 2 kolom */
    .topup-hero .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        margin-top: 20px;
        width: 100%;
    }

    .topup-hero .hero-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 14px 10px;
        min-width: 0;
        border-radius: 14px;
        flex: initial;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .topup-hero .hero-stat:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 240px;
        margin-left: auto;
        margin-right: auto;
    }

    .topup-hero .hero-stat-icon {
        display: none;
    }

    .topup-hero .hero-stat-label {
        order: 1;
        margin-top: 0;
        margin-bottom: 6px;
        font-size: 11px;
        letter-spacing: 0.02em;
    }

    .topup-hero .hero-stat-value {
        order: 2;
        font-size: clamp(17px, 4.5vw, 22px);
    }

    .topup-hero::after {
        height: 50px;
    }

    .topup-categories {
        margin-top: -20px;
        padding: 0 12px;
    }

    .topup-categories .category-wrapper {
        padding: 12px 14px;
    }

    .topup-services {
        padding: 0 12px;
        margin: 24px auto;
    }

    .topup-services .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .topup-services .section-header {
        margin-bottom: 16px;
    }

    .topup-services .section-title {
        font-size: 18px;
    }

    .topup-services .service-card-img {
        padding-top: 110%;
    }

    .topup-services .service-card-img .card-icon {
        font-size: 36px;
    }

    .topup-services .service-card-body {
        padding: 10px;
    }

    .topup-services .service-card-name {
        font-size: 12px;
    }

    .topup-features {
        margin: 40px auto;
        padding: 0 16px;
    }

    .topup-features .features-header h2 {
        font-size: 22px;
    }

    .topup-features .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .topup-features .feature-card {
        padding: 24px 20px;
    }

    .topup-testimonials {
        padding: 40px 0;
    }

    .topup-testimonials .testi-header {
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .topup-testimonials .testi-header h2 {
        font-size: 22px;
    }

    .topup-testimonials .testi-track {
        gap: 14px;
    }

    .topup-testimonials .testi-card {
        width: 290px;
        min-width: 290px;
        padding: 20px;
        border-radius: 16px;
    }

    .topup-testimonials .testi-card::before {
        font-size: 48px;
    }

    .topup-testimonials .testi-stars i {
        font-size: 12px;
    }

    .topup-testimonials .testi-avatar {
        width: 36px;
        height: 36px;
    }

    .topup-testimonials .testi-name {
        font-size: 13px;
    }

    .topup-testimonials .testi-content {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .topup-testimonials .testi-card-footer {
        padding-top: 12px;
        gap: 10px;
    }

    .topup-testimonials .testi-scroll[data-direction="left"] .testi-track,
    .topup-testimonials .testi-scroll[data-direction="right"] .testi-track {
        animation-duration: 35s;
    }

    .topup-footer {
        padding: 48px 0 0;
        /* padding-bottom nav: di topup_theme.css (hindari strip putih bawah footer) */
    }

    .topup-footer .footer-inner {
        padding: 0 16px;
    }

    .topup-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .topup-footer .footer-brand-name {
        font-size: 20px;
    }
}

/* --- Phone portrait --- */
@media (max-width: 480px) {
    .topup-navbar .navbar-inner {
        padding: 8px 12px;
        gap: 8px;
    }

    .topup-navbar .nav-logo img {
        width: 32px;
        height: 32px;
    }

    .topup-navbar .nav-logo-text {
        max-width: 130px;
        font-size: 15px;
    }

    .topup-navbar .nav-search input {
        padding: 8px 12px 8px 36px;
        font-size: 13px;
    }

    .topup-navbar .nav-search-icon {
        left: 12px;
        font-size: 14px;
    }

    .topup-hero {
        padding: 24px 0 48px;
    }

    .topup-landing .topup-hero {
        padding-top: max(86px, calc(46px + env(safe-area-inset-top, 0px) + 22px));
    }

    .topup-hero .hero-inner {
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }

    .topup-hero .hero-banner-frame {
        border-radius: 14px;
        max-width: 100%;
    }

    .topup-hero .hero-banner-viewport {
        min-height: 160px;
        aspect-ratio: 16 / 10;
    }

    .topup-hero .hero-banner-dots {
        padding: 10px 8px 12px;
        gap: 6px;
    }

    .topup-hero .hero-banner-dot {
        width: 8px;
        height: 8px;
    }

    .topup-hero .hero-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .topup-hero .hero-subtitle {
        font-size: 13px;
        margin-bottom: 0;
        line-height: 1.5;
    }

    .topup-hero .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .topup-hero .hero-cta a {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 14px;
    }

    .topup-hero .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
        margin-top: 18px;
    }

    .topup-hero .hero-stat {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .topup-hero .hero-stat-icon {
        display: none;
    }

    .topup-hero .hero-stat-value {
        font-size: clamp(16px, 4.2vw, 20px);
    }

    .topup-hero .hero-stat-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .topup-hero::after {
        height: 40px;
    }

    .topup-categories {
        margin-top: -16px;
        padding: 0 10px;
    }

    .topup-categories .category-wrapper {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .topup-categories .category-pill {
        padding: 6px 14px;
        font-size: 12px;
    }

    .topup-services {
        padding: 0 10px;
        margin: 20px auto;
    }

    .topup-services .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .topup-services .section-title {
        font-size: 16px;
        gap: 8px;
    }

    .topup-services .section-link {
        font-size: 12px;
    }

    .topup-services .service-card {
        border-radius: 12px;
    }

    .topup-services .service-card-img {
        padding-top: 100%;
    }

    .topup-services .service-card-img .card-icon {
        font-size: 32px;
    }

    .topup-services .service-card-body {
        padding: 8px 10px;
    }

    .topup-services .service-card-name {
        font-size: 11px;
    }

    .topup-services .service-card-count .count-badge {
        font-size: 10px;
        padding: 1px 6px;
    }

    .topup-features {
        margin: 32px auto;
        padding: 0 12px;
    }

    .topup-features .features-header {
        margin-bottom: 24px;
    }

    .topup-features .features-header h2 {
        font-size: 20px;
    }

    .topup-features .features-header p {
        font-size: 13px;
    }

    .topup-features .feature-card {
        padding: 20px 16px;
    }

    .topup-features .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        margin-bottom: 14px;
    }

    .topup-features .feature-title {
        font-size: 15px;
    }

    .topup-features .feature-desc {
        font-size: 12px;
    }

    .topup-testimonials {
        padding: 32px 0;
    }

    .topup-testimonials .testi-header h2 {
        font-size: 20px;
    }

    .topup-testimonials .testi-header p {
        font-size: 13px;
    }

    .topup-testimonials .testi-track {
        gap: 12px;
    }

    .topup-testimonials .testi-card {
        width: 260px;
        min-width: 260px;
        padding: 18px;
        border-radius: 14px;
    }

    .topup-testimonials .testi-card::before {
        font-size: 40px;
    }

    .topup-testimonials .testi-stars {
        margin-bottom: 10px;
    }

    .topup-testimonials .testi-stars i {
        font-size: 11px;
    }

    .topup-testimonials .testi-avatar {
        width: 32px;
        height: 32px;
    }

    .topup-testimonials .testi-name {
        font-size: 12px;
    }

    .topup-testimonials .testi-role {
        font-size: 10px;
    }

    .topup-testimonials .testi-content {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 12px;
        min-height: 54px;
    }

    .topup-testimonials .testi-card-footer {
        padding-top: 10px;
        gap: 8px;
    }

    .topup-testimonials .testi-scroll[data-direction="left"] .testi-track,
    .topup-testimonials .testi-scroll[data-direction="right"] .testi-track {
        animation-duration: 28s;
    }

    .topup-footer {
        padding-top: 40px;
        padding-left: 0;
        padding-right: 0;
        /* padding-bottom: di topup_theme @768 untuk area bottom nav */
    }

    .topup-footer::before {
        height: 28px;
    }

    .topup-footer .footer-inner {
        padding: 0 14px;
    }

    .topup-footer .footer-grid {
        gap: 24px;
        padding-bottom: 24px;
    }

    .topup-footer .footer-brand img {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .topup-footer .footer-brand-name {
        font-size: 18px;
    }

    .topup-footer .footer-brand-desc {
        font-size: 13px;
    }

    .topup-footer .footer-col-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .topup-footer .footer-links a {
        font-size: 13px;
    }

    .topup-footer .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .topup-footer .footer-bottom {
        padding: 16px 0;
    }

    .topup-footer .footer-bottom p {
        font-size: 11px;
    }
}

/* --- Very small phone (320-360px) --- */
@media (max-width: 360px) {
    .topup-navbar .nav-logo-text {
        max-width: 100px;
        font-size: 14px;
    }

    .topup-navbar .nav-logo img {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .topup-hero .hero-title {
        font-size: 19px;
    }

    .topup-hero .hero-subtitle {
        font-size: 12px;
    }

    .topup-hero .hero-cta a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .topup-hero .hero-inner {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .topup-hero .hero-banner-viewport {
        min-height: 140px;
    }

    .topup-hero .hero-banner-frame {
        border-radius: 12px;
    }

    .topup-hero .hero-banner-img--fallback {
        max-width: 85%;
        max-height: 70%;
    }

    .topup-hero .hero-stats {
        gap: 6px;
    }

    .topup-hero .hero-stat {
        padding: 10px 8px;
    }

    .topup-hero .hero-stat-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
        margin-bottom: 5px;
    }

    .topup-hero .hero-stat-value {
        font-size: 16px;
    }

    .topup-hero .hero-stat-label {
        font-size: 9px;
    }

    .topup-categories .category-wrapper {
        padding: 8px 10px;
    }

    .topup-categories .category-pill {
        padding: 5px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .topup-services .services-grid {
        gap: 6px;
    }

    .topup-services .service-card-img {
        padding-top: 90%;
    }

    .topup-services .service-card-img .card-icon {
        font-size: 26px;
    }

    .topup-services .service-card-body {
        padding: 6px 8px;
    }

    .topup-services .service-card-name {
        font-size: 10px;
    }

    .topup-testimonials .testi-card {
        width: 230px;
        min-width: 230px;
        padding: 12px;
    }

    .topup-testimonials .testi-content {
        font-size: 11px;
    }

    .topup-features .features-header h2 {
        font-size: 18px;
    }
}

/* ============================================
   SEARCH FILTER (JS driven)
   ============================================ */
.topup-services .service-card.hidden {
    display: none;
}

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

.topup-animate {
    animation: fadeInUp 0.6s ease forwards;
}

.topup-animate-delay-1 { animation-delay: 0.1s; }
.topup-animate-delay-2 { animation-delay: 0.2s; }
.topup-animate-delay-3 { animation-delay: 0.3s; }

/* Category Image in Card */
.card-cat-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
