:root {
    /* Default: Gold Amber & Clean Slate */
    --bg-main: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg3: #F1F5F9;
    --primary: #D97706;       /* Premium Warm Golden Amber */
    --primary-hover: #B45309; /* Deep Amber Hover */
    --text-main: #0F172A;     /* Slate-900 */
    --text-muted: #64748B;    /* Slate-500 */
    --nav-blur: rgba(255, 255, 255, 0.96);
    --border: #E2E8F0; /* Soft border tint */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    --hero-info-bg: #F8FAFC;
    --hero-gradient: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 60%, transparent 100%);
    --hero-line: rgba(0, 0, 0, 0.06);
    --text-active-tab: #D97706;
    --transition-speed: 0.3s;
    --price-pill-bg: rgba(217, 119, 6, 0.08);
    --price-pill-border: rgba(217, 119, 6, 0.15);
    --item-card-active-bg: rgba(217, 119, 6, 0.03);
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg3) 50%, var(--bg-secondary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    background: var(--bg3);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 1.5s infinite linear;
}

.skeleton-text.title {
    width: 80%;
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-text.desc {
    width: 50%;
    height: 10px;
}

.game-card.skeleton-card {
    pointer-events: none;
    border-color: var(--border) !important;
}

.game-card.skeleton-card .card-info {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background: transparent !important;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    background-image: none;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Ticker / Running Text */
.ticker-container {
    background: linear-gradient(90deg, #D97706 0%, #D97706 100%);
    color: #fff;
    padding: 7px 0;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
}

@keyframes ticker {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Adjust Navbar when ticker is present */
.has-ticker .navbar {
    top: 34px; /* Exact height of ticker bar */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background-color: rgba(11, 12, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    top: 0;
}

.has-ticker .navbar.scrolled {
    top: 34px !important;
}

/* Main Content Padding Adjustment */
.has-ticker .main-content {
    padding-top: calc(5rem + 34px);
}

.main-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.navbar.scrolled {
    background-color: rgba(11, 12, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    display: none;
    /* Sembunyikan teks bawaan agar logo gambar bisa lebih menonjol */
}

.logo img {
    height: 48px;
    width: auto;
    border-radius: 10px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: 12px !important;
    /* Dibuat kotak tumpul agar lebih profesional */
    padding: 0.42rem 1.25rem !important;
    /* Ukuran disesuaikan agar sama tinggi dengan tombol tema */
    border: 2px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.search-bar:focus-within {
    border-color: #D97706;
    background-color: rgba(26, 29, 36, 0.95);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.search-icon {
    font-size: 1rem;
    margin-right: 0.75rem;
    color: var(--text-muted);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 100%;
    /* Lebar penuh mengikuti container */
    font-family: inherit;
    font-size: 0.95rem;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    overflow: hidden;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: #D97706;
}

.lang-btn.active {
    opacity: 1;
    border: 2px solid var(--primary);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

/* Search Dropdown */
.search-container {
    position: relative;
    flex-grow: 1;
    /* Melebarkan pencarian mengisi ruang kosong */
    max-width: 550px;
    /* Batas lebar agar tidak terlalu raksasa di layar lebar */
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    /* Mengikuti lebar search bar yang baru */
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    z-index: 200;
}

.search-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-result-item img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-text {
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.search-result-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* margin-left dihapus agar jaraknya pas */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid transparent;
    padding-top: 0.4rem;
}

.nav-item:hover {
    color: #D97706;
}

.nav-item.active {
    color: #D97706;
    border-bottom-color: #D97706;
}

.nav-icon {
    opacity: 0.8;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
    /* Memberikan kemampuan mekar pada sisi kanan */
    justify-content: flex-end;
    /* Memastikan item lain tetap di ujung kanan */
}



/* Dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid transparent;
    padding-top: 0.4rem;
}

.has-dropdown:hover .nav-link {
    color: #D97706;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    /* Dikurangi sedikit agar lebih dekat */
    left: -20px;
    background: #111318;
    border-radius: 20px;
    width: 340px;
    padding: 0.75rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    z-index: 200;
    backdrop-filter: blur(10px);
}

/* Jembatan tak terlihat untuk mencegah dropdown tertutup saat mouse bergerak ke bawah */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    width: 100%;
    height: 1rem;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
    animation: slideUpFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: rgba(167, 139, 250, 0.05);
    border-color: rgba(167, 139, 250, 0.2);
    transform: translateX(5px);
}

.dropdown-text {
    display: flex;
    flex-direction: column;
}

.dropdown-title {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
}

.dropdown-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Berita Section */
.berita-section {
    margin-top: 2rem;
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.berita-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.berita-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary, #D97706), transparent);
    opacity: 0.7;
    z-index: 2;
}

.berita-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.berita-card .berita-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    /* Diubah agar lebih ringkas (mendatar) */
    overflow: hidden;
    position: relative;
}

.berita-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.berita-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.berita-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.berita-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.berita-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* Main Content */
.main-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Banner */
.banner-section {
    margin-bottom: 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-secondary);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 28 / 8;
    max-height: 260px;
    border-radius: 20px;
}

/* Best Seller */
.best-seller {
    margin-bottom: 2.5rem;
}

.section-header {
    margin-bottom: 1.2rem;
}

.section-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

/* Order Page Styles Base */
.order-hero {
    background-color: #1A1C23;
    background-size: cover;
    background-position: center;
    padding: 0;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
}

.order-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: var(--hero-info-bg);
    z-index: 1;
}

.order-hero-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    padding-top: 12.5rem;
    padding-bottom: 30px;
    position: relative;
    z-index: 2;
}

.hero-game-img {
    width: 160px;
    height: 220px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
}

.hero-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-game-info {
    flex: 1;
    padding: 0;
    background: transparent;
}

.hero-game-info h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.hero-game-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.hero-badges .badge svg {
    width: 16px;
    height: 16px;
}

.hero-badges .badge.official svg {
    color: #D97706;
}

.hero-badges .badge.warning svg {
    color: #D97706;
}

.hero-badges .badge.success svg {
    color: #10b981;
}

.order-grid-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

.order-main,
.step-content {
    min-width: 0;
}

.order-main {
    width: 100%;
}

#sub-category-tabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

#sub-category-tabs::-webkit-scrollbar {
    display: none;
}

.sub-cat-tab {
    min-width: 108px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.sub-cat-tab img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.items-category p#active-category-name {
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.9rem;
}

.item-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-card:hover {
    border-color: rgba(167, 139, 250, 0.45);
    transform: translateY(-2px);
}

.item-card.active {
    border-color: #D97706;
    box-shadow: 0 0 0 1px var(--primary);
}

.item-card-inner {
    padding: 0.9rem 0.75rem 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    min-height: 1.1rem;
}

.item-center-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.item-center-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.item-price-box {
    padding: 0.7rem 0.75rem;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.price-final {
    font-size: 0.86rem;
    font-weight: 700;
    color: #D97706;
    text-align: center;
    line-height: 1.2;
}

.game-card {
    background-color: var(--bg-secondary);
    border-radius: 20px;
    /* Sedikit dikecilkan agar pas di 3 kolom */
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-speed);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    /* CRITICAL: Ensure card-info stays inside */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.6);
    z-index: 10;
}

.card-img-wrapper {
    width: 100%;
    padding-top: 140%;
    /* Menyesuaikan agar lebih proporsional */
    position: relative;
    overflow: hidden;
    background-color: #000;
    border-radius: 20px 20px 0 0;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0.75rem 0.75rem;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.game-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.card-info h3 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff !important;
}

.card-info p {
    font-size: 0.72rem;
    color: #e2e8f0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-all-container {
    text-align: center;
    margin-top: 2.5rem;
}

.view-all-link {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #D97706;
}

/* Footer */
.footer {
    background-color: rgba(11, 12, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 0;
    /* Dikurangi dari 3.5rem agar jarak atas & bawah lebih pendek */
    color: var(--text-main);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
}

.footer-logo {
    height: 55px;
    width: auto;
    margin-bottom: 0;
    border-radius: 8px;
    object-fit: contain;
}

.footer-contact {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    flex-wrap: wrap;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact .contact-item:hover {
    color: #D97706;
}

.footer-links-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-links-container a {
    color: #D97706;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-links-container a:hover {
    opacity: 0.8;
}

.footer-links-container .sep {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .footer-contact .contact-item {
        font-size: 0.8rem;
    }
    .footer-contact .contact-item svg {
        width: 15px !important;
        height: 15px !important;
    }

    .footer-links-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .footer-links-container a {
        font-size: 0.8rem;
    }

    .footer-links-container .sep {
        display: inline;
        font-size: 0.8rem;
    }
}

.footer p {
    font-size: 0.9rem;
    /* Diperkecil */
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.footer-links {
    margin-top: 0.25rem;
    /* Dikurangi jaraknya */
    font-weight: normal;
    color: #D97706;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    white-space: nowrap;
}

.footer-links a {
    color: #D97706;
    transition: color 0.3s;
    text-decoration: none;
    font-size: 0.85rem;
    /* Diperkecil */
    font-weight: normal;
}

.footer-links a+a::before {
    content: "|";
    margin-right: 0.55rem;
    color: #D97706;
    opacity: 0.9;
}

.footer-links a:hover {
    color: #D97706;
}

.footer-bottom {
    display: none;
}

/* ===== HAMBURGER MENU BUTTON ===== */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 201;
    flex-shrink: 0;
}

.hamburger-btn svg {
    width: 24px;
    height: 24px;
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    /* Prevent blocking clicks when closed */
    transition: opacity 0.3s;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
    /* Allow clicks when open */
}

.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 200;
    padding: 1.5rem;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-panel.open {
    display: block;
    right: 0;
}

.mobile-nav-panel .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-panel .mobile-nav-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-nav-close:hover {
    background: #EF4444;
    color: #fff;
}

.mobile-nav-close svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-links .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-nav-links .mobile-nav-link:hover,
.mobile-nav-links .mobile-nav-link.active {
    background: rgba(167, 139, 250, 0.08);
    color: #D97706;
}

.mobile-nav-links .mobile-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

.mobile-nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem 0.25rem;
}

/* Mobile search inside panel */
.mobile-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}

.mobile-search-bar:focus-within {
    border-color: #D97706;
}

.mobile-search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
}

.mobile-search-bar input::placeholder {
    color: var(--text-muted);
}

.mobile-search-bar .search-icon {
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Article Page */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.3;
}

.article-cover {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.article-cover img {
    width: 100%;
    display: block;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.meta-badge {
    background: var(--primary);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-badge.outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: #D97706;
}

.article-content {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content strong {
    color: var(--text-main);
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.15rem;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-content ol,
.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content li::marker {
    color: #888;
}

.article-author {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.article-shares {
    display: flex;
    gap: 0.8rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Moved styles up - End of Order Page Styles section placeholder */

/* Sidebar Styles */
.order-sidebar {
    position: sticky;
    top: 80px;
    /* Navbar height + some padding */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.sidebar-box.compact {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-box.compact:hover {
    background: #1A1C23;
}

.sidebar-box.support-box {
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-box.support-box:hover {
    background: rgba(167, 139, 250, 0.2);
}

.support-box svg {
    color: #D97706;
    width: 32px;
    height: 32px;
}

.support-text h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.support-text p {
    color: #D1D5DB;
    font-size: 0.85rem;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.box-header.no-margin {
    margin-bottom: 0;
    justify-content: flex-start;
    gap: 0.8rem;
}

.box-header h3 {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.box-header svg {
    color: #6B7280;
    width: 18px;
    height: 18px;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-label-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.input-label-row label {
    margin-bottom: 0;
}

.nickname-display {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-height: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nickname-display.is-loading {
    color: #D97706;
}

.nickname-display.is-loading::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid rgba(217, 119, 6, 0.35);
    border-top-color: #D97706;
    border-radius: 50%;
    animation: nickname-spin 0.7s linear infinite;
}

.nickname-display.is-success {
    color: #10b981;
}

.nickname-display.is-error {
    color: #ef4444;
    font-weight: 700;
}

@keyframes nickname-spin {
    to {
        transform: rotate(360deg);
    }
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.account-inputs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reduced from 1.25rem to be tighter */
}

.account-inputs-wrapper.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


.input-with-icon input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    outline: none;
}

/* Menghapus panah ( spinners) pada input type number */
.input-with-icon input::-webkit-outer-spin-button,
.input-with-icon input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-with-icon input[type=number] {
    -moz-appearance: textfield;
}

.input-with-icon input:focus {
    border-color: #D97706;
}

.input-with-icon svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.input-with-icon.full svg.icon-start {
    left: 1rem;
    right: auto;
}

.input-with-icon.full input {
    padding-left: 2.8rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    accent-color: #D97706;
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: #D1D5DB;
}

.checkbox-group label a {
    color: #D97706;
    text-decoration: underline;
}

.help-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: inherit !important;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.help-banner:hover {
    background: #1A1C23;
    border-color: rgba(255, 255, 255, 0.08);
}

.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.help-content p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-muted);
}

/* Purchase guide accordion (sidebar) */
.purchase-guide-accordion {
    padding: 0;
    overflow: hidden;
}

.purchase-guide-accordion .purchase-guide-summary {
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    font-size: 1rem;
}

.purchase-guide-accordion .purchase-guide-summary::-webkit-details-marker {
    display: none;
}

.purchase-guide-accordion .purchase-guide-summary::after {
    content: "▾";
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.purchase-guide-accordion[open] .purchase-guide-summary::after {
    transform: rotate(180deg);
}

.purchase-guide-accordion .purchase-guide-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Order Main Content */
.order-tabs {
    display: flex;
    background: #111318;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.order-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.order-tab:hover {
    background: rgba(255, 255, 255, 0.02);
}

.order-tab.active {
    color: #D97706;
    border-bottom-color: #D97706;
}

.order-tab svg {
    width: 18px;
    height: 18px;
}

.order-step-box {
    background-color: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    position: relative;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-indicator {
    width: 32px;
    height: 32px;
    background: #D97706;
    /* Orange tone */
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    /* Diamond shape */
    transform: rotate(0deg);
    /* Diamond indicator */
}

.purchase-action {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    /* Centered per user request */
}

.btn-pesan {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.8rem 1.8rem;
    /* Reduced padding */
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    /* Reduced font size */
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.btn-pesan:hover {
    transform: translateY(-3px);
    box-shadow: none;
    background: var(--primary-hover);
}

.btn-pesan:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-pesan svg {
    width: 20px;
    height: 20px;
}

.step-title {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 600;
}

.sub-category-tabs p,
.items-category p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}


/* ===== PAYMENT TABS ===== */
.payment-tabs-scroll {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.payment-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.pay-tab {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: inherit;
}

.pay-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.pay-tab.active {
    background: var(--primary);
    color: #000000;
    border-color: #D97706;
}

/* ===== PAYMENT METHOD CARDS ===== */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pay-method-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pay-method-card:hover {
    border-color: rgba(167, 139, 250, 0.35);
}

.pay-method-card.active {
    border-color: #D97706;
    box-shadow: 0 0 0 1px var(--primary);
}

.pay-method-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 1rem;
}

.pay-method-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.pay-method-logo {
    flex-shrink: 0;
}

.pay-method-logo img {
    height: 36px;
    max-width: 80px;
    object-fit: contain;
    border-radius: 6px;
}

.pay-method-bottom {
    padding: 0.6rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
}

/* ===== INFO ALERT ===== */
.info-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.info-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.info-alert p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Light mode overrides for payment & info-alert */
body.light-mode .pay-method-card {
    background-color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .pay-method-card.active {
    border-color: #D97706;
    box-shadow: 0 0 0 1px var(--primary);
}

body.light-mode .pay-method-bottom {
    background: #F8FAFC;
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .info-alert {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.08);
}


/* ===== RESPONSIVE CONSTRAINTS ===== */

/* 1024px: Tablet landscape */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .order-grid-layout {
        grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
        gap: 1rem;
    }

    .order-step-box {
        padding: 1.5rem;
    }

    .order-tab {
        font-size: 0.92rem;
        padding: 0.9rem 0.75rem;
    }

    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 768px: Tablet portrait */
@media (max-width: 768px) {

    /* Hide desktop nav elements */
    .nav-links {
        display: none !important;
    }

    /* Show search bar in the middle on mobile */
    .search-bar {
        display: flex !important;
        padding: 0.35rem 0.8rem !important;
        border-radius: 10px !important;
    }

    .search-container {
        display: block !important;
        flex-grow: 1;
        max-width: none;
        margin-left: 15px !important;
    }

    .search-icon {
        margin-right: 0.4rem;
        font-size: 0.85rem;
    }

    .search-bar input {
        font-size: 0.85rem;
    }

    .theme-toggle {
        display: none !important;
    }

    /* Show hamburger */
    .hamburger-btn {
        display: flex;
        align-items: center;
    }

    /* Hapus display: block otomatis di sini agar tidak memblock klik sebelum dibuka */
    .mobile-nav-overlay,
    .mobile-nav-panel {
        display: none;
    }

    .nav-left {
        gap: 0.5rem;
    }

    .logo span {
        display: none;
    }

    .logo img {
        height: 42px;
    }

    .nav-right {
        gap: 0.75rem;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Grid */
    /* Grid 3 Kolom sesuai request */
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    /* Berita grid */
    .berita-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 1rem;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .berita-grid::-webkit-scrollbar {
        display: none;
    }

    .berita-grid .berita-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    /* Show card info always on touch (no hover) */
    .card-info {
        opacity: 1;
        transform: translateY(0);
        padding: 1.2rem 0.4rem 0.4rem !important;
        /* Padding lebih kecil untuk 3 kolom */
    }

    /* Banner */
    .banner-section {
        border-radius: 14px;
        margin-bottom: 1.5rem;
    }

    .banner-img {
        border-radius: 14px;
        aspect-ratio: auto;
        height: auto;
        object-fit: contain;
    }

    /* Section header */
    .section-header {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
        margin-bottom: 1rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    .section-header .btn {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Order Hero (Fix Overlap at ~768px) */
    .order-hero-wrapper {
        padding-top: 5rem;
        padding-bottom: 2.5rem;
        /* Ditingkatkan dari 1.5rem agar garis turun */
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .hero-game-img {
        width: 120px;
        height: 165px;
        border-radius: 18px;
    }

    .hero-game-info {
        text-align: center;
    }

    .hero-game-info h1 {
        font-size: 1.35rem;
    }

    .hero-game-info p {
        font-size: 0.85rem;
    }

    .hero-badges {
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-badges .badge {
        font-size: 0.75rem;
    }

    .order-hero::after {
        height: 210px;
        /* Ditingkatkan dari 180px agar mengikuti padding baru */
    }

    /* Order Grid → stack vertically */
    .order-grid-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .order-sidebar {
        position: static;
        order: -1;
        margin-bottom: 1rem;
    }

    /* Items Grid */
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Order Step Boxes */
    .order-step-box {
        padding: 1.25rem;
        border-radius: 14px;
    }

    /* Payment Grid */
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    /* Order tabs */
    .order-tab {
        font-size: 0.85rem;
        padding: 0.8rem 0.5rem;
        gap: 0.5rem;
    }

    /* Footer */
    .footer-links {
        gap: 0.55rem;
    }

    /* Main content padding */
    .main-content {
        padding-top: 4.5rem;
        padding-bottom: 3rem;
    }

    /* Navbar padding */
    .navbar {
        padding: 0.85rem 0;
    }

    .navbar.scrolled {
        padding: 0.7rem 0;
    }

    .purchase-guide-outer {
        margin-top: 0;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nav-left {
        gap: 1rem;
    }
}

@media (min-width: 769px) {
    .nav-right {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 1.25rem;
        flex-grow: 1;
        padding: 0 1.25rem;
    }

    .search-container {
        max-width: none;
        width: 100%;
        margin: 0;
    }
}

/* 640px: Large phones */
@media (max-width: 640px) {
    .account-inputs-wrapper.two-cols {
        grid-template-columns: 1fr;
    }
}


/* 480px: Small phones */
@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .card-img-wrapper {
        padding-top: 130%;
    }

    .card-info {
        padding: 1.2rem 0.5rem 0.5rem;
    }

    .card-info h3 {
        font-size: 0.7rem;
        margin-bottom: 0;
    }

    .card-info p {
        font-size: 0.6rem;
    }



    /* Items grid → 2 columns */
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .item-card {
        min-height: 140px;
        /* Diperpendek agar lebih proposional di HP */
    }

    .item-card-inner {
        padding: 0.8rem 0.4rem;
        gap: 0.3rem;
    }

    .item-name {
        font-size: 0.85rem;
    }

    .item-desc {
        font-size: 0.75rem;
    }

    .item-center-icon img {
        width: 30px;
        height: 30px;
    }

    .price-final {
        font-size: 0.78rem;
    }

    .item-price-box {
        padding: 0.6rem 0.4rem;
    }

    /* Hero Mobile */
    .order-hero-wrapper {
        padding-top: 4.5rem;
        padding-bottom: 2.5rem;
        /* Ditingkatkan dari 1.5rem */
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

    .hero-game-img {
        width: 100px;
        height: 140px;
        border-radius: 16px;
    }

    .hero-game-info {
        text-align: center;
    }

    .hero-game-info h1 {
        font-size: 1.15rem;
    }

    .hero-badges {
        justify-content: center;
        gap: 0.8rem 1rem;
        /* Gap horizontal sedikit lebih lebar agar proporsional */
    }

    .hero-badges .badge.success {
        flex-basis: 100%;
        justify-content: center;
    }

    .order-hero::after {
        height: 240px;
        /* Ditingkatkan dari 200px */
    }

    /* Step headers */
    .step-header {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-indicator {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    /* Tabs */
    .tabs-grid {
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .cat-tab {
        min-width: 80px;
        padding: 0.75rem;
    }

    /* Payment tabs scroll */
    .payment-tabs-scroll {
        gap: 1rem;
    }

    .pay-tab {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn-pesan {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        gap: 0.5rem;
    }

    .footer-logo {
        height: 40px;
    }

    .footer p {
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    /* Logo */
    .logo img {
        height: 38px;
    }

    /* Container smaller padding */
    .container {
        padding: 0 0.75rem;
    }

    /* Modal */
    .modal {
        margin: 1rem;
        padding: 1.25rem;
        border-radius: 16px;
    }

    /* Order step box */
    .order-step-box {
        padding: 1rem;
    }

    /* Banner */
    .banner-section {
        border-radius: 10px;
    }

    .banner-img {
        border-radius: 10px;
        aspect-ratio: auto;
        height: auto;
        object-fit: contain;
    }
}

/* 360px: Extra small phones */
@media (max-width: 360px) {
    .grid-container {
        gap: 0.5rem;
    }

    .card-info h3 {
        font-size: 0.72rem;
    }

    .hero-game-info h1 {
        font-size: 1.05rem;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .item-name {
        font-size: 0.8rem;
        /* Sedikit diperbesar dari 0.75 agar terbaca */
    }

    .item-card {
        min-height: 130px;
    }
}

@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .hero-badges {
        flex-wrap: nowrap;
        gap: 1.25rem;
    }
}





/* Mobile Language Switcher */
@media (max-width: 768px) {
    .lang-switcher {
        gap: 6px;
    }
    .lang-btn {
        width: 22px;
        height: 15px;
    }
}

/* ===== LIGHT MODE: ROYAL AMETHYST & SOFT ROSE ===== */
body.light-mode {
    background-image: none !important;
    background-color: #F8FAFC !important; /* Soft premium slate-white */
    --bg-main: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg3: #F1F5F9;
    --primary: #D97706;       /* Premium Warm Golden Amber */
    --primary-hover: #B45309; /* Deep Amber Hover */
    --text-main: #0F172A;     /* Slate-900 */
    --text-muted: #64748B;    /* Slate-500 */
    --nav-blur: rgba(255, 255, 255, 0.96);
    --border: #E2E8F0; /* Soft border tint */
    --card-shadow: none;
    --hero-info-bg: #F8FAFC;
    --text-active-tab: #D97706;
    --price-pill-bg: rgba(217, 119, 6, 0.08);
    --price-pill-border: rgba(217, 119, 6, 0.15);
    --item-card-active-bg: rgba(217, 119, 6, 0.03);
}

body.light-mode .navbar,
body.light-mode .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(217, 119, 6, 0.06) !important;
    box-shadow: none !important;
}

/* Light mode language switcher styles */
body.light-mode .lang-active-btn {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}
body.light-mode .lang-code,
body.light-mode .lang-chevron {
    color: #0f172a !important;
}
body.light-mode .lang-active-btn:hover {
    background: rgba(217, 119, 6, 0.12) !important;
    border-color: rgba(217, 119, 6, 0.4) !important;
    color: #D97706 !important;
}

body.light-mode .nav-item {
    color: #475569 !important;
}

body.light-mode .nav-item:hover,
body.light-mode .nav-item.active {
    color: #D97706 !important;
}

body.light-mode .logo span {
    color: #0F172A !important;
}

body.light-mode .logo {
    color: #0F172A !important;
}

body.light-mode .dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(217, 119, 6, 0.08) !important;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.03) !important;
}

body.light-mode .dropdown-title {
    color: #0F172A !important;
}

body.light-mode .dropdown-desc {
    color: #64748B !important;
}

body.light-mode .dropdown-item:hover {
    background: rgba(217, 119, 6, 0.04) !important;
    border-color: rgba(217, 119, 6, 0.08) !important;
}

body.light-mode .game-card {
    background-color: #FFFFFF !important;
    border-color: rgba(217, 119, 6, 0.06) !important;
    box-shadow: none !important;
}

body.light-mode .game-card:hover {
    border-color: rgba(217, 119, 6, 0.3) !important;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.04) !important;
}

body.light-mode .card-info h3 {
    color: #FFFFFF !important;
}

body.light-mode .footer {
    background-color: #FFFFFF !important;
    border-top: 1px solid rgba(217, 119, 6, 0.06) !important;
}

body.light-mode .footer-content p {
    color: #475569 !important;
}

body.light-mode .footer-contact .contact-item {
    color: #475569 !important;
}

body.light-mode .footer-contact .contact-item:hover {
    color: #D97706 !important;
}

body.light-mode .footer-links-container a {
    color: #D97706 !important;
}

body.light-mode .footer-links-container .sep {
    color: #94A3B8 !important;
}

/* Banner Section Overrides */
body.light-mode .banner-section {
    box-shadow: none !important;
    border: 1px solid rgba(217, 119, 6, 0.08) !important;
}

/* Tab Bar Overrides */
body.light-mode .order-tabs {
    background: #FFFFFF !important;
    border: 1px solid rgba(217, 119, 6, 0.08) !important;
    box-shadow: none !important;
}

body.light-mode .order-tab {
    color: #475569 !important;
}

body.light-mode .order-tab.active {
    color: #D97706 !important;
    background: rgba(217, 119, 6, 0.03) !important;
}

body.light-mode .step-indicator {
    background: #D97706 !important;
    color: #FFFFFF !important;
}

body.light-mode .step-title {
    color: #0F172A !important;
}

body.light-mode .input-with-icon input {
    background: #F8FAFC !important;
    border-color: rgba(217, 119, 6, 0.12) !important;
    color: #0F172A !important;
}

body.light-mode .input-with-icon input:focus {
    border-color: #D97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1) !important;
}

body.light-mode .input-with-icon svg {
    color: #64748B !important;
}

/* Hero Card Overrides */
body.light-mode .order-hero-card {
    box-shadow: none !important;
}

/* Sidebar Box Overrides */
body.light-mode .sidebar-box {
    box-shadow: none !important;
}

/* Order Step Box Overrides */
body.light-mode .order-step-box {
    box-shadow: none !important;
}

/* Item Card Overrides (Overriding inline styles for Horizontal layout) */
body.light-mode .item-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(217, 119, 6, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.light-mode .item-card:hover {
    border-color: rgba(217, 119, 6, 0.3) !important;
    transform: translateY(-3px) !important;
}

body.light-mode .item-card.active {
    background: rgba(217, 119, 6, 0.02) !important;
    border-color: #D97706 !important;
    box-shadow: none !important;
}

body.light-mode .item-card > div:nth-child(2) > div:first-child {
    color: #0F172A !important;
}

body.light-mode .item-card > div:nth-child(2) > div:last-child {
    color: #64748B !important;
}

body.light-mode .item-card > div:nth-child(3) {
    background: rgba(217, 119, 6, 0.04) !important;
    border: 1px solid rgba(217, 119, 6, 0.08) !important;
}

body.light-mode .item-card > div:nth-child(3) > div {
    color: #D97706 !important;
}

body.light-mode .item-card.active > div:nth-child(3) {
    background: #D97706 !important;
    border-color: #D97706 !important;
}

body.light-mode .item-card.active > div:nth-child(3) > div {
    color: #FFFFFF !important;
}

/* Sub Kategori Overrides */
body.light-mode #sub-category-section p {
    color: #64748B !important;
}

body.light-mode .sub-cat-tab span {
    color: #64748B !important;
}

body.light-mode .sub-cat-tab.active span {
    color: #D97706 !important;
}

/* Game Description Panel Overrides */
body.light-mode #panel-deskripsi p {
    color: #334155 !important;
}

body.light-mode .pay-tab {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px solid rgba(217, 119, 6, 0.06) !important;
}

body.light-mode .pay-tab.active {
    background: #D97706 !important;
    color: #FFFFFF !important;
    border-color: #D97706 !important;
}

body.light-mode .pay-method-name {
    color: #0F172A !important;
}

body.light-mode .pay-method-card {
    box-shadow: none !important;
}

body.light-mode .btn-pesan {
    background: #D97706 !important;
    color: #FFFFFF !important;
}

body.light-mode .btn-pesan:hover {
    background: #D97706 !important; /* Soft Rose on Hover */
}

body.light-mode .checkbox-group label {
    color: #475569 !important;
}

body.light-mode .checkbox-group a {
    color: #D97706 !important;
}

body.light-mode .purchase-guide-summary {
    color: #0F172A !important;
}

body.light-mode .purchase-guide-content {
    color: #475569 !important;
}

body.light-mode .help-content h3 {
    color: #0F172A !important;
}

body.light-mode .help-content p {
    color: #64748B !important;
}

body.light-mode .sidebar-box h3 {
    color: #0F172A !important;
}

body.light-mode .sidebar-box svg {
    color: #64748B !important;
}

body.light-mode .sidebar-box:hover svg {
    color: #D97706 !important;
}

/* ===== LIGHT MODE: INVOICE PAGE OVERRIDES ===== */
body.light-mode .invoice-header h1 {
    color: #0F172A !important;
}

body.light-mode .invoice-summary {
    background: #FFFFFF !important;
    border-color: rgba(217, 119, 6, 0.08) !important;
    box-shadow: none !important;
}

body.light-mode .invoice-summary h3 {
    color: #0F172A !important;
    border-bottom-color: rgba(217, 119, 6, 0.08) !important;
}

body.light-mode .summary-row {
    border-bottom-color: rgba(217, 119, 6, 0.06) !important;
}

body.light-mode .summary-label {
    color: #64748B !important;
}

body.light-mode .summary-value {
    color: #0F172A !important;
}

body.light-mode .step-card {
    background: #FFFFFF !important;
    border-color: rgba(217, 119, 6, 0.08) !important;
    box-shadow: none !important;
}

body.light-mode .step-card.active {
    border-color: #D97706 !important;
}

body.light-mode .step-number-circle {
    background: #D97706 !important;
    color: #FFFFFF !important;
}

body.light-mode .step-card-header h3 {
    color: #0F172A !important;
}

body.light-mode .payment-total-amount {
    color: #D97706 !important;
}

body.light-mode .bank-transfer-box {
    background: #F8FAFC !important;
    border-color: rgba(217, 119, 6, 0.08) !important;
}

body.light-mode .account-number-large {
    color: #D97706 !important;
}

body.light-mode .recipient-name {
    color: #0F172A !important;
}

body.light-mode .invoice-accordion {
    background: #FFFFFF !important;
    border-color: rgba(217, 119, 6, 0.08) !important;
    box-shadow: none !important;
}

body.light-mode .accordion-header h3 {
    color: #0F172A !important;
}

body.light-mode .guide-text {
    color: #334155 !important;
}

body.light-mode .step-card-header div div {
    color: #64748B !important;
}

body.light-mode .timer-badge {
    background: rgba(244, 63, 94, 0.08) !important; /* Soft Rose transparency */
    border-color: rgba(244, 63, 94, 0.15) !important;
    color: #D97706 !important; /* Soft Rose */
}

body.light-mode .btn-copy {
    background: #F1F5F9 !important;
    border-color: rgba(217, 119, 6, 0.08) !important;
    color: #475569 !important;
}

body.light-mode .btn-copy:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

body.light-mode .review-template-btn {
    background: #F1F5F9 !important;
    border-color: rgba(217, 119, 6, 0.08) !important;
    color: #475569 !important;
}

body.light-mode .review-template-btn:hover {
    background: rgba(217, 119, 6, 0.06) !important;
    border-color: #D97706 !important;
    color: #D97706 !important;
}

body.light-mode #review-form textarea {
    background: #F8FAFC !important;
    border-color: rgba(217, 119, 6, 0.12) !important;
    color: #0F172A !important;
}

body.light-mode #review-form textarea:focus {
    border-color: #D97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.08) !important;
}

body.light-mode .star-btn {
    fill: rgba(217, 119, 6, 0.06) !important;
}

body.light-mode #review-form div div {
    color: #64748B !important;
}

/* ===== LIGHT MODE: CUSTOM SELECT DROPDOWN OVERRIDES ===== */
body.light-mode .wiian-select-trigger {
    background: #F8FAFC !important;
    border-color: rgba(217, 119, 6, 0.12) !important;
    color: #0F172A !important;
}

body.light-mode .wiian-select-trigger:after {
    border-top-color: #D97706 !important;
}

body.light-mode .wiian-select-container.active .wiian-select-trigger {
    border-color: #D97706 !important;
    box-shadow: none !important;
}

body.light-mode .wiian-options-wrapper {
    background: #FFFFFF !important;
    border-color: rgba(217, 119, 6, 0.08) !important;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.05) !important;
}

body.light-mode .wiian-option {
    color: #334155 !important;
    border-bottom-color: rgba(217, 119, 6, 0.04) !important;
}

body.light-mode .wiian-option:hover {
    background: rgba(217, 119, 6, 0.04) !important;
    color: #D97706 !important;
}

body.light-mode .wiian-option.selected {
    background: rgba(217, 119, 6, 0.08) !important;
    color: #D97706 !important;
}

/* ===== PREMIUM HORIZONTAL PILL LAYOUT FOR ITEM CARDS (BOTH MODES) ===== */
.items-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 0.85rem !important;
}

.item-card {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: unset !important;
    height: auto !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 16px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.item-card:hover {
    transform: translateY(-3px) !important;
}

/* Hide the top horizontal absolute line in pill layout */
.item-card > div:first-child {
    display: none !important;
}

/* Text wrapper styling */
.item-card > div:nth-child(2) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.15rem !important;
    margin-bottom: 0 !important;
    width: auto !important;
    text-align: left !important;
}

.item-card > div:nth-child(2) > div:first-child {
    text-align: left !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
}

.item-card > div:nth-child(2) > div:last-child {
    text-align: left !important;
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
}

/* Price Box styling */
.item-card > div:nth-child(3) {
    width: auto !important;
    min-width: 100px !important;
    border-radius: 50px !important; /* Perfect Pill */
    padding: 0.45rem 0.85rem !important;
    background: var(--price-pill-bg) !important;
    border: 1px solid var(--price-pill-border) !important;
    margin-left: 1rem !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.item-card > div:nth-child(3) > div {
    color: #D97706 !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    text-align: center !important;
}

/* Active State Dark Mode */
.item-card.active {
    background: var(--item-card-active-bg) !important;
    border-color: #D97706 !important;
}

.item-card.active > div:nth-child(3) {
    background: var(--primary) !important;
    border-color: #D97706 !important;
}

.item-card.active > div:nth-child(3) > div {
    color: #000000 !important;
}

/* Responsive constraints for Horizontal layout */
@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr !important; /* Single column stack on mobile */
        gap: 0.5rem !important;
    }
    .item-card {
        padding: 0.75rem 1rem !important;
    }
}