
    * { margin: 0; padding: 0; box-sizing: border-box; }
    :root {
        --primary: #cf0b29;      /* logo red */
        --primary2: #e6374f;     /* lighter red for gradients */
        --cyan: #ef5b6e;
        --dark: #1d293d;         /* navy card */
        --darker: #0e131b;       /* deep navy */
        --bg: #f3f4f6;
        --text: #1d293d;
        --muted: #64748b;
        --line: #e5e7eb;
    }
    body {
        font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-weight: 500;
        background: var(--bg);
        color: var(--text);
        -webkit-tap-highlight-color: transparent;
    }
    a { text-decoration: none; color: inherit; }
    .ic { display: block; }
    .s-ico, .nav-item .ico, .header-btn, .e-emo { display: inline-flex; align-items: center; justify-content: center; }

    /* ============================================
       MOBILE-FIRST (App UI) — default styles
       ============================================ */
    .app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; padding-bottom: 78px; }

    .desktop-nav, .site-footer { display: none; }

    /* Header (mobile app header) */
    .app-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 13px 16px;
        position: sticky; top: 0; z-index: 20;
        background: rgba(255,255,255,.9);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
    }
    .brand { display: flex; align-items: center; gap: 10px; }
    .brand-link { display: inline-flex; align-items: center; }
    .brand-logo { height: 52px; width: auto; max-width: 250px; display: block; object-fit: contain; }
    .brand .logo {
        width: 40px; height: 40px; border-radius: 12px;
        background: linear-gradient(135deg,var(--primary),var(--primary2));
        color: #fff; font-weight: 700; font-size: 19px;
        display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(207,11,41,.35);
    }
    .brand h1 { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
    .brand span { font-size: 11px; color: var(--muted); display: block; font-weight: 500; }
    .header-btn {
        width: 40px; height: 40px; border-radius: 12px;
        background: #f1f5f9; border: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center; font-size: 18px; position: relative;
    }
    .header-btn .badge-dot {
        position: absolute; top: 9px; right: 10px;
        width: 8px; height: 8px; border-radius: 50%;
        background: #fb2c36; border: 2px solid #fff;
    }

    /* Banner Slider */
    .slider {
        position: relative; overflow: hidden;
        margin: 14px 16px; border-radius: 18px;
        box-shadow: 0 10px 28px rgba(29,41,61,.16);
    }
    .slider::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
        background: linear-gradient(180deg, transparent, rgba(6,10,16,.38)); z-index: 1; pointer-events: none;
    }
    .slides { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
    .slide {
        min-width: 100%; display: block; background-color: var(--darker);
    }
    .slide-img { width: 100%; height: auto; display: block; }

    .slider-arrow {
        position: absolute; top: 50%; transform: translateY(-50%);
        width: 34px; height: 34px; border-radius: 50%; z-index: 3; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        color: #fff; background: rgba(6,10,16,.4); border: 1px solid rgba(255,255,255,.18);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        opacity: 0; transition: opacity .2s, background .2s, transform .2s;
    }
    .slider-arrow.prev { left: 12px; }
    .slider-arrow.next { right: 12px; }
    .slider:hover .slider-arrow { opacity: 1; }
    .slider-arrow:hover { background: var(--primary); border-color: transparent; }
    .slider-arrow.prev:active { transform: translateY(-50%) scale(.9); }
    .slider-arrow.next:active { transform: translateY(-50%) scale(.9); }
    @media (hover: none) { .slider-arrow { opacity: 1; } }

    .dots {
        position: absolute; bottom: 12px; left: 0; right: 0;
        display: flex; justify-content: center; gap: 6px; z-index: 2;
    }
    .dot {
        width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%;
        background: rgba(255,255,255,.55); transition: .3s; cursor: pointer;
    }
    .dot.active { width: 22px; border-radius: 4px; background: #fff; }

    /* Search bar */
    .search-wrap { padding: 4px 16px 0; }
    .search-box {
        position: relative;
        display: flex; align-items: center; gap: 10px;
        background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
        padding: 9px 9px 9px 14px; box-shadow: 0 6px 16px rgba(29,41,61,.05);
        transition: border-color .15s, box-shadow .15s;
    }
    .search-box:focus-within { border-color: var(--primary); box-shadow: 0 8px 20px rgba(207,11,41,.15); }
    .search-box .s-ico { font-size: 16px; color: var(--muted); }
    .search-box input {
        border: none; outline: none; flex: 1; font-size: 14px; font-weight: 500;
        background: transparent; color: var(--text); font-family: inherit;
    }
    .search-box button {
        border: none; cursor: pointer; border-radius: 10px; padding: 9px 18px;
        font-weight: 700; font-size: 13px; color: #fff; font-family: inherit;
        background: var(--primary);
    }
    .search-box button:hover { background: #a90822; }

    /* Live search suggestions */
    .search-suggest {
        position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
        background: #fff; border: 1px solid var(--line); border-radius: 14px;
        box-shadow: 0 18px 44px rgba(29,41,61,.18);
        max-height: 344px; overflow-y: auto; display: none; padding: 6px;
    }
    .search-suggest.open { display: block; }
    .suggest-item {
        display: flex; align-items: center; gap: 12px; padding: 8px 10px;
        border-radius: 10px; cursor: pointer; transition: background .12s;
    }
    .suggest-item:hover, .suggest-item.active { background: #f1f5f9; }
    .suggest-item img, .suggest-item .sg-fallback {
        width: 40px; height: 40px; border-radius: 9px; object-fit: cover;
        flex-shrink: 0; background: #eef1f5;
    }
    .suggest-item .sg-fallback {
        display: flex; align-items: center; justify-content: center;
        font-size: 12px; font-weight: 700; color: var(--muted);
    }
    .suggest-item .sg-name { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
    .suggest-empty { padding: 18px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 500; }

    /* Section */
    .section { padding: 8px 16px; }
    .section-head {
        display: flex; align-items: center; justify-content: space-between; margin: 18px 4px 12px;
    }
    .section-head h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; letter-spacing: -.2px; }
    .section-head h3 .accent {
        width: 4px; height: 17px; border-radius: 4px; display: inline-block;
        background: linear-gradient(180deg,var(--primary),var(--primary2));
    }
    .section-head .see-all { font-size: 12px; color: var(--primary); font-weight: 700; }
    .count-badge {
        font-size: 11px; font-weight: 700; color: var(--primary);
        background: rgba(207,11,41,.12); padding: 2px 9px; border-radius: 20px;
    }
    .page-indicator { font-size: 12px; color: var(--muted); font-weight: 600; }

    /* Search result meta */
    .result-meta {
        display: flex; align-items: center; justify-content: space-between;
        margin: 0 4px 12px; font-size: 13px; color: var(--muted); font-weight: 600;
    }
    .result-meta a { color: var(--primary); font-weight: 700; }
    .empty-state { text-align: center; padding: 46px 20px; color: var(--muted); font-weight: 500; }
    .empty-state .e-emo { display: flex; justify-content: center; margin-bottom: 12px; color: #cbd5e1; }
    .empty-state .e-clear {
        display: inline-block; margin-top: 14px; padding: 10px 22px; border-radius: 12px;
        background: var(--primary); color: #fff; font-weight: 700; font-size: 13px;
    }

    /* Pagination */
    .pagination {
        display: flex; flex-wrap: wrap; justify-content: center;
        align-items: center; gap: 6px; margin: 12px 0 8px;
    }
    .page-link {
        min-width: 38px; height: 38px; padding: 0 8px;
        display: inline-flex; align-items: center; justify-content: center;
        border: 1.5px solid var(--line); border-radius: 11px;
        font-size: 13px; font-weight: 700; color: var(--text); background: #fff; transition: .15s;
    }
    .page-link:hover { border-color: var(--primary); color: var(--primary); }
    .page-link.active { background: var(--primary); border-color: transparent; color: #fff; }
    .page-dots { color: var(--muted); font-weight: 700; padding: 0 2px; }

    /* ---- Responsive grid ---- Mobile: 3/row | Desktop: 6/row */
    .row { display: flex; flex-wrap: wrap; margin: 0 -6px; }
    .row > [class*="col-"] { padding: 0 6px; width: 33.3333%; }
    .mb-30 { margin-bottom: 14px; }

    /* ---- Game card ---- */
    .topup-item {
        background: #fff;
        border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
        cursor: pointer; height: 100%;
        box-shadow: 0 2px 8px rgba(29,41,61,.05);
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .topup-item:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(207,11,41,.18); }
    .topup-item:active { transform: scale(.97); }
    .topup-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #eef1f5; }
    .topup-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .topup-thumb .thumb-fallback {
        position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
        color: #fff; font-weight: 700; font-size: 22px;
        background: linear-gradient(135deg,var(--primary),var(--primary2));
    }
    .topup-thumb .rank {
        position: absolute; top: 6px; left: 6px; z-index: 2;
        min-width: 24px; height: 22px; padding: 0 7px;
        display: flex; align-items: center; justify-content: center;
        font-size: 11px; font-weight: 700; color: #fff;
        background: rgba(14,19,27,.72); border-radius: 8px; backdrop-filter: blur(3px);
    }
    .fade-in { animation: fadeIn .5s ease; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    /* Page loader */
    .page-loader {
        position: fixed; inset: 0; z-index: 9999;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
        background: #fff;
        transition: opacity .5s ease, visibility .5s ease;
    }
    .page-loader.hidden { opacity: 0; visibility: hidden; }
    .page-loader .loader-logo {
        height: 64px; width: auto; max-width: 260px;
        animation: loaderPulse 1.4s ease-in-out infinite;
    }
    .loader-bar {
        width: 140px; height: 4px; border-radius: 4px; overflow: hidden;
        background: rgba(207,11,41,.14); position: relative;
    }
    .loader-bar::after {
        content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 40%;
        border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--primary2));
        animation: loaderSlide 1.1s cubic-bezier(.4,0,.2,1) infinite;
    }
    @keyframes loaderPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .72; transform: scale(.96); } }
    @keyframes loaderSlide { 0% { left: -40%; } 100% { left: 100%; } }

    /* Content reveal after load */
    .app, .desktop-nav, .site-footer { opacity: 1; }
    body.loaded .app { animation: reveal .6s ease both; }
    body.loaded .desktop-nav { animation: reveal .5s ease both; }
    @keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
    @media (prefers-reduced-motion: reduce) {
        .page-loader .loader-logo, .loader-bar::after,
        body.loaded .app, body.loaded .desktop-nav { animation: none; }
    }
    .topup-content { padding: 10px 12px 12px; text-align: center; }
    .topup-content .title {
        font-size: 13px; font-weight: 600; color: var(--text); margin: 0; line-height: 1.3;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* Bottom Nav (mobile only) */
    .bottom-nav {
        position: fixed; bottom: 0; left: 0; right: 0;
        max-width: 480px; margin: 0 auto;
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
        display: flex; justify-content: space-around; padding: 8px 0 10px; z-index: 30;
        box-shadow: 0 -4px 20px rgba(29,41,61,.06);
    }
    .nav-item {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        background: none; border: none; cursor: pointer;
        color: var(--muted); font-size: 10px; font-weight: 600; flex: 1; padding: 4px 0; transition: color .15s;
    }
    .nav-item .ico { font-size: 20px; transition: transform .15s; }
    .nav-item.active { color: var(--primary); }
    .nav-item.active .ico { transform: translateY(-1px) scale(1.08); }

    /* ============================================
       DESKTOP (Website UI) — >= 900px
       ============================================ */
    @media (min-width: 900px) {
        .app { max-width: 100%; background: var(--bg); padding-bottom: 0; }
        .app-header, .bottom-nav { display: none !important; }

        .desktop-nav {
            display: flex; align-items: center; justify-content: space-between; gap: 24px;
            padding: 0 40px; height: 74px;
            background: rgba(255,255,255,.88);
            backdrop-filter: blur(12px);
            position: sticky; top: 0; z-index: 40;
            border-bottom: 1px solid var(--line);
            transition: box-shadow .2s ease, background .2s ease;
        }
        .desktop-nav.scrolled { box-shadow: 0 6px 22px rgba(29,41,61,.09); background: rgba(255,255,255,.96); }
        .nav-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
        .desktop-nav .brand { flex-shrink: 0; }
        .desktop-nav .brand-logo { height: 64px; max-width: 320px; }

        /* Hamburger dropdown */
        .nav-menu-wrap { position: relative; }
        .menu-toggle {
            width: 42px; height: 42px; border-radius: 11px;
            background: #f1f5f9; border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center; color: #334155; transition: .15s;
        }
        .menu-toggle:hover { background: #e8edf3; color: var(--primary); }
        .menu-toggle.active { background: rgba(207,11,41,.12); color: var(--primary); }
        .menu-toggle .ic { transition: transform .2s ease; }
        .menu-toggle.active .ic { transform: rotate(90deg); }
        .dropdown {
            position: absolute; top: calc(100% + 12px); right: 0; z-index: 50;
            min-width: 224px; padding: 8px;
            background: #fff; border: 1px solid var(--line); border-radius: 14px;
            box-shadow: 0 16px 40px rgba(29,41,61,.16);
            display: none; flex-direction: column; gap: 2px;
            opacity: 0; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease;
        }
        .dropdown.open { display: flex; opacity: 1; transform: translateY(0); }
        .dropdown-label {
            font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
            color: #94a3b8; padding: 8px 12px 6px;
        }
        .dropdown a {
            display: flex; align-items: center; gap: 11px;
            padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #475569; transition: .15s;
        }
        .dropdown a .ic { color: #94a3b8; transition: color .15s; flex-shrink: 0; }
        .dropdown a:hover { background: #f1f5f9; color: var(--primary); }
        .dropdown a:hover .ic { color: var(--primary); }
        .dropdown a.active { color: var(--primary); background: rgba(207,11,41,.10); }
        .dropdown a.active .ic { color: var(--primary); }

        /* Centered search inside the nav bar */
        .nav-search {
            position: relative;
            display: flex; align-items: center; gap: 10px;
            flex: 0 1 440px; min-width: 200px; margin: 0 auto;
            background: #f1f5f9; border: 1.5px solid transparent; border-radius: 12px;
            padding: 7px 7px 7px 14px; transition: .15s;
        }
        .nav-search:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 6px 18px rgba(207,11,41,.14); }
        .nav-search .s-ico { color: var(--muted); display: inline-flex; }
        .nav-search input {
            border: none; outline: none; background: transparent; flex: 1; min-width: 0;
            font-size: 14px; font-weight: 500; font-family: inherit; color: var(--text);
        }
        .nav-search button {
            border: none; cursor: pointer; background: var(--primary); color: #fff;
            font-weight: 700; font-size: 13px; font-family: inherit; padding: 8px 16px; border-radius: 9px;
        }
        .nav-search button:hover { background: #a90822; }

        /* In-page search belongs to the mobile layout only */
        .search-wrap { display: none; }

        .desktop-nav .actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
        .desktop-nav .btn-login {
            display: inline-flex; align-items: center; gap: 7px;
            padding: 10px 20px; border-radius: 11px; font-weight: 700; font-size: 14px;
            background: var(--primary); color: #fff; cursor: pointer; border: none;
            box-shadow: 0 6px 16px rgba(207,11,41,.28); transition: background .15s, transform .15s, box-shadow .15s;
        }
        .desktop-nav .btn-login:hover { background: #a90822; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(207,11,41,.34); }
        .desktop-nav .btn-ghost {
            display: inline-flex; align-items: center; gap: 7px;
            padding: 10px 18px; border-radius: 11px; font-weight: 600; font-size: 14px;
            background: #f1f5f9; color: #334155; cursor: pointer; border: none; transition: background .15s, color .15s;
        }
        .desktop-nav .btn-ghost:hover { background: #e8edf3; color: var(--primary); }

        .container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }

        .slider { margin: 32px auto; max-width: 1140px; border-radius: 24px; box-shadow: 0 24px 48px rgba(29,41,61,.2); }
        .slider-arrow { width: 46px; height: 46px; }
        .slider-arrow.prev { left: 20px; }
        .slider-arrow.next { right: 20px; }
        .dots { bottom: 24px; }
        .dot { width: 9px; height: 9px; }
        .dot.active { width: 26px; }

        .search-wrap { max-width: 720px; margin: -60px auto 0; padding: 0 40px; position: relative; z-index: 5; }
        .search-box { padding: 13px 13px 13px 20px; border-radius: 16px; box-shadow: 0 16px 40px rgba(29,41,61,.14); }
        .search-box input { font-size: 15px; }
        .search-box button { padding: 12px 26px; font-size: 14px; border-radius: 12px; }

        .section { padding: 24px 0; }
        .section-head { margin: 8px 0 22px; }
        .section-head h3 { font-size: 24px; }
        .section-head h3 .accent { height: 24px; width: 5px; }
        .section-head .see-all { font-size: 14px; }
        .result-meta { font-size: 14px; margin: 0 0 20px; }

        .row { margin: 0 -12px; }
        .row > [class*="col-"] { padding: 0 12px; width: 16.6667%; }
        .mb-30 { margin-bottom: 30px; }
        .topup-item { border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(29,41,61,.06); border-radius: 18px; }
        .topup-item:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 18px 36px rgba(207,11,41,.18); }
        .topup-content { padding: 14px 12px 16px; }
        .topup-content .title { font-size: 15px; }

        .site-footer {
            display: block; margin-top: 60px; color: #cbd5e1; padding: 56px 40px 26px;
            background:
                radial-gradient(120% 140% at 100% 0%, rgba(207,11,41,.12), transparent 55%),
                linear-gradient(180deg, #0f151f, var(--darker));
            border-top: 1px solid rgba(207,11,41,.22);
        }
        .footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; }
        .footer-inner h5 {
            color: #fff; font-size: 13px; margin-bottom: 18px; font-weight: 700;
            letter-spacing: .06em; text-transform: uppercase; position: relative; padding-bottom: 10px;
        }
        .footer-inner h5::after {
            content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; border-radius: 2px;
            background: linear-gradient(90deg, var(--primary), var(--primary2));
        }
        .footer-inner p, .footer-inner li { font-size: 13px; line-height: 1.9; color: #94a3b8; font-weight: 500; }
        .footer-inner ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
        .footer-inner li a { color: #94a3b8; transition: color .15s, padding-left .15s; }
        .footer-inner li a:hover { color: var(--primary2); padding-left: 4px; }

        .footer-brand { max-width: 340px; }
        .footer-brand p { margin: 14px 0 20px; }
        .footer-logo { height: 60px; max-width: 300px; }
        .footer-socials { display: flex; gap: 10px; }
        .social-btn {
            width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
            color: #cbd5e1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
            transition: transform .15s, background .15s, color .15s, border-color .15s;
        }
        .social-btn:hover {
            transform: translateY(-2px); color: #fff; border-color: transparent;
            background: linear-gradient(135deg, var(--primary), var(--primary2));
            box-shadow: 0 8px 18px rgba(207,11,41,.32);
        }
        .footer-contact li { display: flex; align-items: center; gap: 10px; }
        .footer-contact .c-ico { color: var(--primary2); display: inline-flex; flex-shrink: 0; }
        .footer-legal-links { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
        .footer-legal-links span { color: #3b4a60; }
        .footer-bottom {
            max-width: 1140px; margin: 40px auto 0; padding-top: 22px;
            border-top: 1px solid #1e2a3d; font-size: 12px; color: #64748b; font-weight: 500;
            display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
        }
        .back-to-top {
            display: inline-flex; align-items: center; gap: 5px; color: #94a3b8; font-weight: 600;
            transition: color .15s;
        }
        .back-to-top:hover { color: var(--primary2); }
    }
