/* ==========================================================================
   Jokiraps — tema gelap-oranye ala marketplace joki game
   ========================================================================== */

:root {
    --bg: #0a0a0c;
    --bg-soft: #121216;
    --panel: #17171d;
    --panel-2: #1e1e26;
    --line: #2a2a34;
    --text: #f2f2f5;
    --muted: #9a9aa8;
    --orange: #ff6a00;
    --orange-2: #ff9d2e;
    --gold: #ffd54a;
    --red: #e2231a;
    --green: #23c55e;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 12px 30px rgba(0, 0, 0, .45);
    --nav-h: 62px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ---------- Navbar ---------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #101014;
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}

.nav__inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.brand__mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--orange), #ff3d00);
    color: #fff; font-weight: 900; font-size: 19px; line-height: 1;
    box-shadow: 0 0 14px rgba(255, 106, 0, .5);
}

.brand__name {
    font-size: 10px; letter-spacing: .12em; font-weight: 700;
    color: var(--orange-2); text-transform: uppercase;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-block: 0;
}

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #e8e8ee;
    transition: background .18s, color .18s;
}

.nav__link .ico { font-size: 17px; line-height: 1; filter: grayscale(.15); }
.nav__link:hover { background: #1c1c23; color: #fff; }
.nav__link.is-active { color: var(--orange); }
.nav__link.is-active .ico { filter: none; }

/* dropdown Kontak */
.nav__item { position: relative; }
.nav__caret { font-size: 9px; margin-left: 3px; opacity: .8; }

.dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 208px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .18s;
}

.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 9px;
    font-size: 13px; color: #dcdce4;
}
.dropdown a:hover { background: var(--panel-2); color: #fff; }

/* ---------- Hero / carousel ------------------------------------------- */

.hero { padding: 14px 0 18px; background: linear-gradient(180deg, #0d0d11, #0a0a0c); }

.carousel { position: relative; overflow: hidden; border-radius: var(--radius); }

.carousel__track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.slide { min-width: 100%; }

.banner {
    position: relative;
    aspect-ratio: 16 / 7;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.banner::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 15% 20%, rgba(255, 255, 255, .10), transparent 55%),
        linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .72));
}

.banner--olive  { background: linear-gradient(115deg, #3f4a2c, #6b6a3a 45%, #2b3324); }
.banner--violet { background: linear-gradient(115deg, #2b1b4d, #6d3bb5 48%, #1b1330); }
.banner--blue   { background: linear-gradient(115deg, #0f2a4d, #1d6fb8 48%, #0b1c33); }
.banner--red    { background: linear-gradient(115deg, #4b1111, #b3231a 48%, #2a0c0c); }

.banner__tag {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    background: #fff; color: #111;
    font-size: 10px; font-weight: 800; letter-spacing: .04em;
    padding: 4px 12px; border-radius: 999px;
    white-space: nowrap;
}

.banner__body { position: relative; z-index: 2; width: 100%; text-align: center; }

.banner__title {
    margin: 0;
    font-size: clamp(17px, 4.6vw, 34px);
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 2px 0 #7a4a00, 0 6px 18px rgba(0, 0, 0, .7);
}

.banner__sub {
    margin: 6px 0 0;
    font-size: clamp(11px, 2.4vw, 14px);
    color: #e6e6ee;
    opacity: .92;
}

.carousel__dots {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 14px;
}

.dot {
    width: 9px; height: 9px; border-radius: 999px;
    border: 0; background: #3a3a44; padding: 0;
    transition: .2s;
}
.dot.is-active { width: 26px; background: var(--orange); }

.carousel__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3;
    width: 34px; height: 34px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(10, 10, 12, .55);
    color: #fff; font-size: 15px;
    display: none; place-items: center;
    backdrop-filter: blur(4px);
}
.carousel__arrow--prev { left: 10px; }
.carousel__arrow--next { right: 10px; }

/* ---------- Section umum ---------------------------------------------- */

.section { padding: 26px 0; }

.section--glow {
    background:
        radial-gradient(90% 60% at 50% 0%, rgba(255, 106, 0, .18), transparent 65%),
        linear-gradient(180deg, #0a0a0c, #100c09);
}

.section__head { margin-bottom: 16px; text-align: center; }

.section__title {
    margin: 0;
    font-size: clamp(19px, 4.4vw, 27px);
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.section__sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Flashsale -------------------------------------------------- */

.flash {
    border: 1px solid rgba(255, 106, 0, .55);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(28, 20, 14, .95), rgba(16, 16, 20, .95));
    box-shadow: 0 0 34px rgba(255, 106, 0, .12) inset, var(--shadow);
    padding: 20px 14px 22px;
}

.flash__title {
    margin: 0;
    text-align: center;
    font-size: clamp(22px, 6vw, 34px);
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.flash__label {
    text-align: center;
    margin: 14px 0 10px;
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--muted);
    text-transform: uppercase;
}

.countdown { display: flex; justify-content: center; gap: 10px; }

.countdown__box {
    min-width: 62px;
    padding: 12px 6px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #1a1a20;
    text-align: center;
}

.countdown__num {
    display: block;
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown__unit {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: .12em;
    color: var(--muted);
    text-transform: uppercase;
}

/* ---------- Rail (scroll horizontal) ----------------------------------- */

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 18px 2px 8px;
    margin: 0 -2px;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) transparent;
}

.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: #33333d; border-radius: 999px; }
.rail::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ---------- Kartu produk ----------------------------------------------- */

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 0, .6);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .5);
}

.card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.card__thumb::after {
    content: "ACURSIO";
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 34px; font-weight: 900; letter-spacing: .3em;
    color: rgba(255, 255, 255, .07);
    transform: rotate(-18deg);
    pointer-events: none;
}

.card--red     { background: linear-gradient(140deg, #7d1010, #c0261a 55%, #4a0d0d); }
.card--crimson { background: linear-gradient(140deg, #6a0f1f, #a8172f 55%, #3d0a14); }
.card--purple  { background: linear-gradient(140deg, #33165e, #7b32c9 55%, #1e0d38); }
.card--blue    { background: linear-gradient(140deg, #0f2c52, #1f6fb5 55%, #0b1b31); }
.card--teal    { background: linear-gradient(140deg, #0c3f3d, #12857c 55%, #082726); }

.card__row { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 6px; }

.chip {
    font-size: 9px; font-weight: 800; letter-spacing: .04em;
    padding: 4px 8px; border-radius: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.chip--dark   { background: rgba(0, 0, 0, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.chip--blue   { background: #2b4bd8; color: #fff; }
.chip--gold   { background: linear-gradient(90deg, #ffcf3d, #ff9d00); color: #2a1a00; }
.chip--green  { background: rgba(35, 197, 94, .18); color: #7ff0a8; border: 1px solid rgba(35, 197, 94, .45); }

.card__sale {
    position: relative; z-index: 2;
    text-align: center;
    font-size: clamp(15px, 3.6vw, 20px);
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
    letter-spacing: .02em;
}

.card__sale span { color: var(--gold); }

.card__code {
    position: relative; z-index: 2;
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    border-radius: 6px;
    padding: 4px 7px;
    align-self: flex-start;
}

.card__body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card__game { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.card__title { margin: 0; font-size: 14px; font-weight: 800; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price__now { font-size: 18px; font-weight: 900; color: var(--orange-2); }
.price__old { font-size: 12px; color: #7c7c8a; text-decoration: line-through; }
.price__rm {
    font-size: 10px; font-weight: 800;
    background: #2a2a33; color: #ffd54a;
    padding: 3px 7px; border-radius: 6px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    padding: 9px 0;
}

.stats__item { text-align: center; }
.stats__num { display: block; font-size: 13px; font-weight: 800; }
.stats__key { display: block; font-size: 8.5px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.card__stok { font-size: 10.5px; color: var(--muted); }

/* ---------- Tombol ----------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: filter .18s, transform .12s;
}

.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.1); }

.btn--primary { background: linear-gradient(90deg, var(--orange), #ff8a1f); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 0, .3); }
.btn--ghost { background: #20202a; color: #e9e9f1; border: 1px solid var(--line); }
.btn--wa { background: #1f9d55; color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 12px 22px; font-size: 14px; border-radius: 12px; }

/* ---------- Grid layanan joki ------------------------------------------ */

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

.game {
    position: relative;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .18s, border-color .18s;
}

.game:hover { transform: translateY(-3px); border-color: rgba(255, 106, 0, .55); }

.game::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 74px;
    opacity: .55;
}

.game--ml::before   { background: linear-gradient(120deg, #8b1414, transparent); }
.game--pubg::before { background: linear-gradient(120deg, #b47a12, transparent); }
.game--ff::before   { background: linear-gradient(120deg, #b13a0c, transparent); }
.game--gi::before   { background: linear-gradient(120deg, #1d6fb8, transparent); }
.game--val::before  { background: linear-gradient(120deg, #b3233f, transparent); }
.game--hok::before  { background: linear-gradient(120deg, #6d3bb5, transparent); }

.game__icon {
    position: relative;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 21px;
}

.game__name { position: relative; margin: 0; font-size: 14.5px; font-weight: 800; }
.game__desc { position: relative; margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.game__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
    font-size: 9.5px; font-weight: 700;
    padding: 3px 7px; border-radius: 999px;
    background: #23232c; color: #c3c3d0; border: 1px solid var(--line);
}

.game__price { font-size: 12px; color: var(--muted); margin-top: auto; }
.game__price b { color: var(--orange-2); font-size: 15px; }

/* ---------- Keunggulan -------------------------------------------------- */

.feature {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 13px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    border: 1px solid var(--line);
}

.feature__ico {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(255, 106, 0, .14);
    border: 1px solid rgba(255, 106, 0, .35);
    font-size: 17px;
}

.feature h4 { margin: 0 0 3px; font-size: 13px; font-weight: 800; }
.feature p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Review ------------------------------------------------------ */

.review {
    padding: 14px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 9px;
}

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

.avatar {
    width: 36px; height: 36px; border-radius: 999px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--orange), #ff3d00);
    color: #fff; font-weight: 800; font-size: 14px;
}

.review__name { font-size: 13px; font-weight: 800; }
.review__meta { font-size: 10.5px; color: var(--muted); }
.review__stars { color: var(--gold); font-size: 12px; letter-spacing: 2px; }
.review__text { margin: 0; font-size: 12.5px; color: #d5d5df; line-height: 1.6; }

/* ---------- Statistik --------------------------------------------------- */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-strip__item {
    padding: 14px 10px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #1b1b22, #141419);
    border: 1px solid var(--line);
}

.stat-strip__num { font-size: 20px; font-weight: 900; color: var(--orange-2); }
.stat-strip__key { font-size: 10.5px; color: var(--muted); margin-top: 3px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- CTA / Kontak ------------------------------------------------ */

.cta {
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(255, 106, 0, .35), transparent 70%),
        linear-gradient(180deg, #1c1410, #121216);
    border: 1px solid rgba(255, 106, 0, .4);
}

.cta h3 { margin: 0 0 6px; font-size: clamp(17px, 4.4vw, 24px); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.cta p { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Footer ------------------------------------------------------ */

.footer {
    margin-top: 26px;
    padding: 24px 0 40px;
    background: #0d0d11;
    border-top: 1px solid var(--line);
}

.footer__grid { display: grid; gap: 20px; }
.footer h5 { margin: 0 0 9px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-2); }
.footer p, .footer li { font-size: 12px; color: var(--muted); line-height: 1.7; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a:hover { color: var(--orange-2); }

.footer__bottom {
    margin-top: 20px; padding-top: 14px;
    border-top: 1px solid var(--line);
    text-align: center; font-size: 11px; color: #6f6f7d;
}

/* ---------- Tombol CS mengambang --------------------------------------- */

.cs-fab {
    position: fixed;
    right: 14px;
    bottom: 18px;
    z-index: 70;
    width: 62px; height: 62px;
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, .35);
    background: linear-gradient(150deg, #ffc93c, #ff9d2e);
    display: grid; place-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
    animation: fab-bounce 2.6s ease-in-out infinite;
}

.cs-fab__face { font-size: 24px; line-height: 1; }
.cs-fab__label {
    position: absolute; bottom: 4px; right: 6px;
    font-size: 8.5px; font-weight: 900; color: #3a2200; letter-spacing: .06em;
}

@keyframes fab-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ---------- Responsif ---------------------------------------------------- */

/* Di HP menu tetap sejajar seperti desain acuan, hanya diperkecil */
@media (max-width: 860px) {
    :root { --nav-h: 58px; }

    .nav__inner { gap: 4px; }
    .brand__mark { width: 30px; height: 30px; font-size: 17px; }
    .brand__name { font-size: 8px; letter-spacing: .1em; }
    .nav__menu { gap: 0; }
    .nav__link { padding: 4px 6px; font-size: 10.5px; gap: 1px; }
    .nav__link .ico { font-size: 15px; }
    .nav__caret { font-size: 7px; margin-left: 2px; }
    .dropdown { min-width: 186px; }
}

@media (max-width: 380px) {
    .brand__name { display: none; }
    .nav__link { padding: 4px 5px; font-size: 10px; }
}

@media (min-width: 620px) {
    .rail { grid-auto-columns: 46%; }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .stat-strip { grid-template-columns: repeat(4, 1fr); }
    .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 861px) {
    :root { --nav-h: 70px; }
    .container { padding: 0 20px; }
    .section { padding: 40px 0; }
    .flash { padding: 30px 24px 28px; }
    .rail { grid-auto-columns: 260px; }
    .grid--2 { grid-template-columns: repeat(3, 1fr); }
    .carousel__arrow { display: grid; }
    .brand__name { font-size: 12px; }
    .cs-fab { right: 24px; bottom: 24px; }
    .countdown__box { min-width: 78px; }
}

/* ==========================================================================
   Tambahan: logo, kartu bergambar, katalog, detail, form, invoice
   ========================================================================== */

.brand__logo {
    width: 34px; height: 34px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 0 14px rgba(255, 106, 0, .45);
}

.container--narrow { max-width: 760px; }

/* ---------- Kartu produk dengan gambar vertikal ------------------------ */

.card__thumb {
    aspect-ratio: 3 / 4;
    padding: 0;
    display: block;
}

.card__thumb::after { content: none; }

.card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.card__overlay {
    position: absolute; inset: 0;
    z-index: 2;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 35%, rgba(0, 0, 0, .65));
}

.card__disc {
    align-self: flex-start;
    background: linear-gradient(90deg, #ffcf3d, #ff9d00);
    color: #2a1a00;
    font-size: 12px; font-weight: 900;
    padding: 4px 9px; border-radius: 8px;
}

.card__title a { color: inherit; }
.card__title a:hover { color: var(--orange-2); }

/* ---------- Grid katalog ------------------------------------------------ */

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

/* ---------- Form & input ------------------------------------------------ */

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #15151b;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, .16); }
.input::placeholder { color: #6d6d7b; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a8a99 50%), linear-gradient(135deg, #8a8a99 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }

.field { display: block; margin-bottom: 10px; }
.field > span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }

.filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.filter .input:first-child { grid-column: 1 / -1; }

/* ---------- Alert & badge ----------------------------------------------- */

.alert {
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    line-height: 1.6;
}

.alert--ok  { background: rgba(35, 197, 94, .12); border-color: rgba(35, 197, 94, .4); color: #9ff0bd; }
.alert--bad { background: rgba(226, 35, 26, .12); border-color: rgba(226, 35, 26, .45); color: #ffb1ab; }

.badge {
    font-size: 10.5px; font-weight: 800;
    padding: 5px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .04em;
    white-space: nowrap;
}

.badge--ok    { background: rgba(35, 197, 94, .16); color: #7ff0a8; border: 1px solid rgba(35, 197, 94, .45); }
.badge--warn  { background: rgba(255, 193, 7, .16); color: #ffd76a; border: 1px solid rgba(255, 193, 7, .45); }
.badge--info  { background: rgba(59, 130, 246, .16); color: #93c0ff; border: 1px solid rgba(59, 130, 246, .45); }
.badge--bad   { background: rgba(226, 35, 26, .16); color: #ffa79f; border: 1px solid rgba(226, 35, 26, .45); }
.badge--muted { background: #23232c; color: #b6b6c4; border: 1px solid var(--line); }

/* ---------- Breadcrumb, empty state, pagination ------------------------- */

.crumb { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--orange-2); }

.empty {
    text-align: center;
    padding: 40px 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--muted);
}

.pagination { margin-top: 18px; display: flex; justify-content: center; }
.pagination svg { width: 14px; height: 14px; }
.pagination nav > div:first-child { display: none; }
.pagination span[aria-current="page"] span,
.pagination a {
    display: inline-grid; place-items: center;
    min-width: 32px; height: 32px; padding: 0 8px;
    margin: 0 3px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--panel);
    font-size: 12.5px;
    color: #dcdce4;
}
.pagination span[aria-current="page"] span { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 800; }
.pagination a:hover { border-color: var(--orange); color: #fff; }

/* ---------- Detail akun ------------------------------------------------- */

.detail { display: grid; gap: 18px; }

.gallery__main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 3 / 4;
    max-height: 520px;
    display: grid;
    place-items: center;
}

.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__empty { color: var(--muted); font-size: 12px; }

.gallery__thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 76px;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 2px 2px;
}

.thumb {
    padding: 0;
    border: 2px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #101014;
    aspect-ratio: 1 / 1;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--orange); }

.detail__title { margin: 4px 0 0; font-size: clamp(19px, 4.6vw, 26px); font-weight: 900; }
.detail__code { margin: 6px 0 12px; font-size: 12px; color: var(--muted); }
.detail__meta { font-size: 12.5px; color: #cfcfda; margin: 12px 0 0; }

.detail__desc {
    margin-top: 12px;
    padding: 13px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    border: 1px solid var(--line);
    font-size: 12.5px;
    line-height: 1.7;
    color: #d3d3de;
}

.price--lg .price__now { font-size: 26px; }
.stats--lg { margin-top: 14px; }
.stats--lg .stats__num { font-size: 15px; }

.order-form {
    margin-top: 16px;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 106, 0, .4);
    background: linear-gradient(180deg, #1b1410, #131318);
}

.order-form h3 { margin: 0 0 12px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Paket joki --------------------------------------------------- */

.joki-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.game__icon--lg { width: 54px; height: 54px; font-size: 26px; }

.joki-block {
    margin-bottom: 26px;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #15151b, #101014);
}

.joki-block__head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; flex-wrap: wrap; }
.joki-block__head > div:nth-child(2) { flex: 1; min-width: 140px; }
.joki-block__empty { color: var(--muted); font-size: 12.5px; margin: 0; }

.pkg {
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .18s, border-color .18s;
}

.pkg:hover { transform: translateY(-3px); border-color: rgba(255, 106, 0, .5); }

.pkg__head { display: flex; align-items: center; gap: 9px; }

.pkg__no {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--orange), #ff3d00);
    color: #fff; font-size: 12px; font-weight: 900;
}

.pkg__name { margin: 0; font-size: 14px; font-weight: 800; }
.pkg__route { margin: 0; font-size: 12.5px; color: var(--orange-2); font-weight: 700; }
.pkg__meta, .pkg__desc { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.pkg__form summary { list-style: none; margin-top: 4px; }
.pkg__form summary::-webkit-details-marker { display: none; }
.pkg__form[open] summary { background: #20202a; color: #e9e9f1; border: 1px solid var(--line); }
.pkg__form form { margin-top: 12px; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.chip-link {
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    font-size: 12.5px;
    font-weight: 600;
}

.chip-link:hover { border-color: var(--orange); color: var(--orange-2); }

/* ---------- Invoice & pembayaran ---------------------------------------- */

.invoice {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #16161c, #101014);
    box-shadow: var(--shadow);
}

.invoice__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.invoice__table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.invoice__table th, .invoice__table td { padding: 9px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.invoice__table th { width: 38%; color: var(--muted); font-weight: 600; }
.invoice__total th, .invoice__total td { border-bottom: 0; padding-top: 14px; font-size: 15px; font-weight: 900; }
.invoice__total td { color: var(--orange-2); }

.invoice__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.invoice__actions .btn { flex: 1; min-width: 180px; }
.invoice__note { margin: 12px 0 0; font-size: 11px; color: var(--muted); text-align: center; }

.pay { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pay h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }

.pay__qris { text-align: center; margin: 16px 0; }
.pay__qris img {
    max-width: 260px; margin: 0 auto;
    border-radius: 12px; border: 3px solid #fff; background: #fff;
}
.pay__qris p { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.pay__grid { display: grid; gap: 10px; margin-top: 12px; }

.pay__box {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    border: 1px solid var(--line);
}

.pay__box h4 { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; }
.pay__box p { margin: 0; font-size: 12px; color: #cfcfda; line-height: 1.7; }

.pay__upload { margin-top: 14px; }

.pay__proof { margin-top: 16px; }
.pay__proof h4 { font-size: 12.5px; margin: 0 0 8px; }
.pay__proof img { max-width: 280px; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Footer tombol admin ------------------------------------------ */

.footer__admin { display: flex; justify-content: center; }

/* ---------- Responsif tambahan ------------------------------------------- */

@media (min-width: 620px) {
    .grid--cards { grid-template-columns: repeat(3, 1fr); }
    .grid--pkg { grid-template-columns: repeat(2, 1fr); }
    .filter { grid-template-columns: 2fr 1fr 1fr auto; }
    .filter .input:first-child { grid-column: auto; }
    .pay__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 861px) {
    .grid--cards { grid-template-columns: repeat(4, 1fr); }
    .grid--pkg { grid-template-columns: repeat(4, 1fr); }
    .detail { grid-template-columns: 380px 1fr; align-items: start; gap: 26px; }
    .invoice { padding: 26px; }
    .brand__logo { width: 40px; height: 40px; }
}

/* Gambar tambahan tampil utuh sesuai rasio aslinya */
.gallery__main.is-contain { background: #0e0e12; aspect-ratio: auto; min-height: 260px; }
.gallery__main.is-contain img { object-fit: contain; height: auto; max-height: 520px; }

/* ---------- Ajakan jual akun (untuk customer yang mau menjual) ---------- */

.sell {
    position: relative;
    border-radius: 18px;
    padding: 22px 16px 20px;
    background:
        radial-gradient(90% 130% at 12% 0%, rgba(35, 197, 94, .28), transparent 62%),
        linear-gradient(160deg, #14251b, #121216 55%, #1b1410);
    border: 1px solid rgba(35, 197, 94, .45);
    box-shadow: 0 0 34px rgba(35, 197, 94, .10) inset, var(--shadow);
    overflow: hidden;
}

.sell::after {
    content: "💰";
    position: absolute;
    right: -14px; bottom: -22px;
    font-size: 108px;
    opacity: .09;
    pointer-events: none;
}

.sell__ribbon {
    display: inline-block;
    background: linear-gradient(90deg, #23c55e, #16a34a);
    color: #04180c;
    font-size: 10.5px; font-weight: 900;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px;
    margin-bottom: 12px;
}

.sell__title {
    margin: 0 0 8px;
    font-size: clamp(19px, 5vw, 27px);
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #eaffef;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .55);
}

.sell__text { margin: 0; font-size: 12.5px; line-height: 1.7; color: #cfe6d7; max-width: 620px; }

.sell__list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.sell__list li { font-size: 12px; color: #d7eadf; }

.sell__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.btn--sell {
    background: linear-gradient(90deg, #23c55e, #14a34a);
    color: #04180c;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(35, 197, 94, .32);
}

.sell__phone { font-size: 12.5px; font-weight: 700; color: #9ff0bd; }

/* Tombol jual akun kecil di halaman katalog */
.jubel-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px dashed rgba(35, 197, 94, .45);
    background: linear-gradient(120deg, rgba(35, 197, 94, .12), transparent 70%);
}

.jubel-bar p { margin: 0; font-size: 12.5px; color: #cfe6d7; }
.jubel-bar b { color: #9ff0bd; }

@media (min-width: 620px) {
    .sell { padding: 28px 26px 26px; }
    .sell__list { grid-template-columns: repeat(3, 1fr); }
}
