/* =============================================
   J-TRIP Landing Page CSS
   File: public/css/landing.css
   ============================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a6b4a;
    --primary-dark: #145239;
    --primary-light: #2e9e6e;
    --accent: #e8f5ef;
    --teal: #0d9488;
    --text-dark: #1a1a2e;
    --text-body: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --bg-light: #f8fffe;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar.scrolled .btn-login {
    color: #1a1a2e;
    border: 1px solid #1a1a2e;
}

.navbar.scrolled .btn-register {
    background: #10b981;
    color: white;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar.scrolled .btn-login {
    color: #1a1a2e;
    border: 1px solid #1a1a2e;
}

.navbar.scrolled .btn-register {
    background: #10b981;
    color: white;
}
.navbar.scrolled .nav-link,
.navbar.scrolled .nav-logo {
    color: var(--text-dark);
}
.navbar.scrolled .nav-link,
.navbar.scrolled .nav-logo {
    color: var(--text-dark);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 800;
    font-size: 22px;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.2s;
}

.btn-login:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.btn-register {
    background: #10b981;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 20px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-register:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    z-index: -1;

    transition: opacity 0.8s ease, transform 0.3s ease;
    will-change: transform, opacity;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 60, 35, 0.82) 0%,
        rgba(10, 60, 35, 0.65) 45%,
        rgba(10, 60, 35, 0.15) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,107,74,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===== FEATURES ===== */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 48px;
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
}

/* ===== DESTINASI ===== */
.destinasi {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
}

.section-title-left {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}

.lihat-semua {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.lihat-semua:hover {
    color: var(--primary-dark);
    gap: 8px;
}

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

.dest-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dest-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.dest-img-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.dest-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dest-card:hover .dest-img-wrap img {
    transform: scale(1.08);
}

.dest-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1a6b4a;  /* warna utama (sama kayak destinasi populer) */
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.dest-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.dest-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.dest-info p {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 48px;
}

.dest-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dest-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.btn-dest {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-dest:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== TENTANG ===== */
.tentang {
    padding: 80px 0;
    background: var(--white);
}

.tentang-wrap {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: center;
}

.logo-circle {
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, #1a3a2a 0%, #0f2d1c 60%, #1a3a2a 100%);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,200,100,0.08) 0%, transparent 60%);
}

.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.logo-text-big {
    font-size: 42px;
    font-weight: 700;
    color: #d4a843;
    font-style: italic;
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    letter-spacing: 4px;
    text-transform: lowercase;
    font-style: italic;
}

.logo-sub2 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.visi-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.tentang-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.tentang-desc {
    font-size: 14.5px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 14px;
}

.tentang-stats {
    display: flex;
    gap: 48px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

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

.footer-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s;
}

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 4px;
}

.btn-playstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: var(--white);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-playstore:hover {
    background: #111;
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.btn-playstore i {
    font-size: 22px;
    color: #a4c639;
}

.btn-playstore span {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.btn-playstore strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

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

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tentang-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .logo-circle {
        margin: 0 auto;
    }
    .tentang-stats {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .destinasi-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMASI MUNCUL SAAT SCROLL ===== */
.hidden-anim {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.7s ease;
}

.hidden-anim.show {
    opacity: 1;
    transform: translateY(0);
}   
/* =========================================================
   GLOBAL USER RESPONSIVE FIX - FINAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
}

/* ===== USER NAVBAR GLOBAL ===== */

.user-navbar,
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.mobile-menu-btn {
    display: none !important;
    border: none;
    background: transparent;
    color: #1a7a5e;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
}

.nav-logout-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* =========================================================
   DESKTOP NAVBAR
   ========================================================= */

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 24px !important;
    }

    .nav-logo {
        flex-shrink: 0 !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center !important;
        list-style: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 28px !important;
    }

    .nav-menu li {
        width: auto !important;
    }

    .nav-link {
        width: auto !important;
        padding: 0 !important;
        background: transparent !important;
        text-decoration: none !important;
    }

    .nav-auth {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-left: 0 !important;
        white-space: nowrap !important;
    }
}

/* =========================================================
   MOBILE NAVBAR
   Logo + hamburger berdampingan
   ========================================================= */

@media (max-width: 768px) {
    body {
        padding-top: 76px;
    }

    .navbar,
    .user-navbar,
    #navbar {
        background: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid #e5e7eb !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
        backdrop-filter: blur(12px);
        padding: 0 !important;
    }

    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px 16px !important;
        position: relative !important;
    }

    .nav-logo {
        flex-shrink: 0 !important;
        font-size: 21px !important;
        color: #1a7a5e !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
        flex-shrink: 0 !important;
        margin-left: 2px !important;
        padding: 4px 6px !important;
        border: none !important;
        background: transparent !important;
        color: #1a7a5e !important;
        font-size: 22px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    .nav-auth {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }

    .btn-login,
    .btn-register,
    .nav-logout-btn {
        font-size: 11px !important;
        padding: 7px 10px !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
    }

    .nav-menu {
        position: absolute !important;
        top: 100% !important;
        left: 12px !important;
        right: 12px !important;
        display: none !important;
        flex-direction: column !important;
        gap: 0 !important;
        list-style: none !important;
        padding: 10px !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14) !important;
        z-index: 99999 !important;
    }

    .nav-menu.show {
        display: flex !important;
    }

    .nav-menu li {
        width: 100% !important;
    }

    .nav-link {
        display: block !important;
        width: 100% !important;
        padding: 11px 12px !important;
        font-size: 14px !important;
        color: #374151 !important;
        border-radius: 12px !important;
        text-decoration: none !important;
        background: transparent !important;
    }

    .nav-link.active,
    .nav-link:hover {
        background: #e6f4ef !important;
        color: #1a7a5e !important;
    }

    /* ===== PAGE WRAPPER CONSISTENCY ===== */

    .container,
    .ph,
    .sf-bar,
    .ww,
    .riwayat-page,
    .barcode-page {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .ph {
        padding-top: 38px !important;
    }

    .riwayat-page,
    .barcode-page {
        padding-top: 38px !important;
    }

    h1,
    .page-title,
    .hero-title,
    .summary-title {
        font-size: 25px !important;
        line-height: 1.25 !important;
    }

    .page-subtitle,
    .hero-desc,
    .ph p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* ===== HERO MOBILE ===== */

    .hero {
        min-height: 620px !important;
        height: auto !important;
        padding-top: 40px !important;
    }

    .hero-content {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .hero-title {
        max-width: 100% !important;
    }

    .hero-desc br,
    .hero-title br {
        display: none !important;
    }

    .hero-buttons {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .hero-buttons a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* ===== GRID CONSISTENCY ===== */

    .features-grid,
    .destinasi-grid,
    .wg,
    .riwayat-grid,
    .summary-grid,
    .qr-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .card,
    .dest-card,
    .feature-card,
    .riwayat-card,
    .summary-card,
    .qr-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    img {
        max-width: 100%;
    }

    /* ===== WISATA PAGE ===== */

    .sf-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .sw {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ftabs {
        width: 100%;
        display: flex !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .ftabs::-webkit-scrollbar {
        display: none;
    }

    .ft {
        flex-shrink: 0;
    }

    .ci,
    .dest-img-wrap {
        height: 190px !important;
    }

    /* ===== DETAIL SLIDE MOBILE FIX ===== */

    #detailSlide {
        z-index: 10000 !important;
        overflow-x: hidden !important;
    }

    #detailSlide > div {
        padding: 14px 14px 70px !important;
    }

    #detailCard {
        border-radius: 16px !important;
        max-width: 100% !important;
    }

    #detailCard > div:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        padding: 12px 14px 24px !important;
        gap: 0 !important;
    }

    #detailCard div[style*="flex:0 0 500px"] {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #detailCard div[style*="height:230px"] {
        height: 210px !important;
    }

    #detailCard div[style*="padding-left:28px"] {
        padding-left: 0 !important;
        padding-top: 18px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    #detailTitle {
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    #detailDesc {
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    /* ===== PAYMENT MODAL MOBILE FIX ===== */

    #paymentModal {
        width: 94% !important;
        max-width: 94% !important;
        max-height: 92vh !important;
        overflow-y: auto !important;
        border-radius: 16px !important;
    }

    #paymentModal > div:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #paymentModal > div:nth-child(2) > div {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
    }

    #paymentModal div[style*="width:340px"] {
        width: 100% !important;
        min-height: 260px !important;
        order: -1 !important;
    }

    #stepsModal {
        width: 94% !important;
        max-width: 94% !important;
        max-height: 88vh !important;
    }

    #galleryBig {
        max-width: 92vw !important;
        max-height: 64vh !important;
    }

    #galleryBigImg {
        max-height: 64vh !important;
    }

    /* ===== RIWAYAT / BARCODE ===== */

    .riwayat-card {
        padding: 18px !important;
    }

    .summary-card {
        padding: 18px !important;
    }

    .qr-box svg {
        max-width: 170px !important;
        height: auto !important;
    }

    .back-link {
        margin-bottom: 16px !important;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .nav-container {
        padding: 10px 12px !important;
        gap: 6px !important;
    }

    .nav-logo {
        font-size: 19px !important;
    }

    .mobile-menu-btn {
        font-size: 20px !important;
        padding: 4px !important;
    }

    .btn-login,
    .btn-register,
    .nav-logout-btn {
        font-size: 10px !important;
        padding: 6px 9px !important;
    }

    h1,
    .page-title,
    .hero-title,
    .summary-title {
        font-size: 22px !important;
    }

    .container,
    .ph,
    .sf-bar,
    .ww,
    .riwayat-page,
    .barcode-page {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .ci,
    .dest-img-wrap {
        height: 170px !important;
    }
}

/* =========================================================
   FIX HOSTING CLICK ISSUE
   ========================================================= */

#galleryModal[style*="display:none"],
#paymentOverlay[style*="display:none"],
#paymentModal[style*="display:none"],
#stepsOverlay[style*="display:none"],
#stepsModal[style*="display:none"] {
    pointer-events: none !important;
}

#galleryModal,
#paymentOverlay,
#paymentModal,
#stepsOverlay,
#stepsModal {
    pointer-events: auto;
}

#detailSlide {
    pointer-events: none;
}

#detailSlide[style*="translateX(0)"] {
    pointer-events: auto;
}



