/* Hitam/putih, bentuk marketplace. Satu-satunya warna: langit di header, logo produk & logo toko. Arah desain: DESIGN.md */
@font-face { font-family: 'General Sans'; src: url('fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/general-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Putih (bawaan HP/PC terang) */
:root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #F2F2F2;
    --ground: #EBEBEB;
    --ink: #0A0A0A;
    --muted: #5C5C5C;
    --border: #E2E2E2;
    --border-strong: #7A7A7A;   /* garis isian & kontrol: minimal 3:1 */
    --border-soft: #EFEFEF;
    --accent: #0A0A0A;          /* tombol utama = tinta */
    --accent-text: #0A0A0A;
    --on-accent: #FFFFFF;
    --accent-soft: #EBEBEB;
    --focus: #0A0A0A;
    --star: #0A0A0A;
    --discord: #5865F2;
    --danger: #B42318;
    --success: #1F7A4D;
    --float-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.3);

    --radius: 12px;
    --radius-sm: 8px;
    --card-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font-display: 'General Sans', system-ui, sans-serif;
    --font-body: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --topbar-h: 68px;
    --z: 0.85;   /* skala global halaman (body zoom); header tetap 100% */
    color-scheme: light;
}

/* Hitam: dipilih di Pengaturan, atau "Ikuti perangkat" saat HP/PC pakai mode gelap */
:root[data-theme="dark"] {
    --bg: #0A0A0A;
    --surface: #121212;
    --surface-2: #1C1C1C;
    --ground: #262626;
    --ink: #F2F2F2;
    --muted: #A3A3A3;
    --border: #262626;
    --border-strong: #757575;
    --border-soft: #1A1A1A;
    --accent: #F2F2F2;
    --accent-text: #F2F2F2;
    --on-accent: #0A0A0A;
    --accent-soft: #262626;
    --focus: #F2F2F2;
    --star: #F2F2F2;
    --danger: #FF8A80;
    --success: #6FD3A0;
    --float-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0A0A0A;
        --surface: #121212;
        --surface-2: #1C1C1C;
        --ground: #262626;
        --ink: #F2F2F2;
        --muted: #A3A3A3;
        --border: #262626;
        --border-strong: #757575;
        --border-soft: #1A1A1A;
        --accent: #F2F2F2;
        --accent-text: #F2F2F2;
        --on-accent: #0A0A0A;
        --accent-soft: #262626;
        --focus: #F2F2F2;
        --star: #F2F2F2;
        --danger: #FF8A80;
        --success: #6FD3A0;
        --float-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8);
        color-scheme: dark;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar-h) + 64px);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Semua ukuran di file ini px; skala global supaya teks, kotak & jarak mengecil rata (HP diatur ulang di bawah) */
    zoom: var(--z);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.wrap { width: 100%; max-width: 1410px; margin: 0 auto; padding: 0 20px; }   /* 1410 x zoom 0.85 = tetap ±1200px di layar */
.topbar .wrap { max-width: 1200px; }   /* header tidak di-zoom */

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 300;
    background: var(--ink);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Tombol */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s var(--ease), background 0.2s;
}
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, var(--bg)); }
.btn-discord { background: var(--discord); color: #fff; border-color: var(--discord); }
.btn-discord:hover { background: #4752E0; }
.btn-plain { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) { .btn-plain:hover { background: var(--surface-2); } }   /* di HP, hover "nyangkut" setelah tap dan mirip tombol aktif */
.btn-google { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-google:hover { background: var(--surface-2); }
.btn-danger-text { background: transparent; border-color: transparent; color: var(--danger); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.icon-btn {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: background 0.2s;
}
.icon-btn:hover { background: var(--surface-2); }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .only-dark { display: block; }
    :root:not([data-theme="light"]) .only-light { display: none; }
}

/* Topbar: langit malam animasi di kedua tema (satu-satunya bidang berwarna), isinya putih */
.topbar, .page-bar {
    --surface: rgba(0, 0, 0, 0.35);
    --surface-2: rgba(255, 255, 255, 0.12);
    --ink: #FFFFFF;
    --muted: #C9C9D6;
    --border: rgba(255, 255, 255, 0.22);
    --border-strong: #8F8EA6;
    --border-soft: rgba(255, 255, 255, 0.1);
    --accent: #FFFFFF;
    --on-accent: #0A0A0A;
    --accent-soft: rgba(255, 255, 255, 0.16);
    --focus: #FFFFFF;
    color-scheme: dark;
    color: var(--ink);
    background: #110F38 url("header-bg-animated.svg") center / cover no-repeat;
}
.topbar {
    zoom: calc(1 / var(--z));   /* batalkan skala body: header tetap ukuran normal */
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--topbar-h);
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -0.03em;
    text-decoration: none;
}
.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav a, .topnav button {
    padding: 8px 12px;
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
}
.topnav a:hover, .topnav button:hover { color: var(--ink); background: var(--surface-2); }

.search {
    flex: 1;
    max-width: 380px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    cursor: text;
}
.search:focus-within { color: var(--ink); outline: 2px solid var(--focus); outline-offset: 2px; }
.search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-kbd {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 7px;
    color: var(--muted);
}
.search:focus-within .search-kbd { display: none; }

.auth-area { display: flex; align-items: center; }
.avatar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 12px 0 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
}
.avatar-btn:hover { background: var(--surface-2); }

.avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-soft);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.avatar-lg { width: 88px; height: 88px; font-size: 32px; }

/* Beranda gaya marketplace: banner geser, ikon kategori, baris produk, grid kartu produk */
.banners { position: relative; padding-top: 24px; }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.banner-track::-webkit-scrollbar { display: none; }
.banner {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    min-height: 320px;
    padding: 40px 64px;
}
.banner-ink { background: var(--ink); color: var(--bg); --focus: var(--bg); }
.banner-soft { background: var(--surface-2); }
.banner-ground { background: var(--ground); }
.banner h1, .banner h2 { font-size: clamp(26px, 2.9vw, 42px); line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; text-wrap: balance; }
.banner p { margin-top: 12px; max-width: 50ch; }
.banner-ink p { color: color-mix(in srgb, var(--bg) 82%, var(--ink)); }
.banner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-inverse { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-outline-inverse { background: transparent; color: var(--bg); border-color: var(--bg); }
@media (hover: hover) {
    .btn-inverse:hover { background: color-mix(in srgb, var(--bg) 88%, var(--ink)); }
    .btn-outline-inverse:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }
}
.banner-art { display: grid; grid-template-columns: repeat(2, 120px); gap: 14px; justify-content: end; }
/* logo produk selalu di atas kotak putih supaya warnanya terbaca di tema apa pun */
.banner-tile { width: 120px; height: 120px; display: grid; place-items: center; background: #FFFFFF; border-radius: var(--radius); }
.banner-tile img { width: 64%; height: 64%; object-fit: contain; }
.banner-tile-lg { width: 210px; height: 210px; }
.banner-art:has(.banner-tile-lg) { grid-template-columns: auto; }
.banner-figure { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.banner-figure b { font-size: 150px; line-height: 0.8; letter-spacing: -0.06em; }
.banner-figure span { font-size: 24px; font-weight: 600; line-height: 1.15; }
.banner-icons { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.banner-nav {
    position: absolute;
    top: calc(24px + 160px);
    z-index: 2;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--card-shadow); /* taste-skill-ignore: tombol panah melayang di atas banner */
}
.banner-prev { left: 0; }
.banner-next { right: 0; }
.banner-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.banner-dots button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; background: none; }
.banner-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong); transition: width 0.2s var(--ease); }
.banner-dots [aria-selected="true"]::before { width: 22px; background: var(--ink); }

.block { padding-top: 40px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.block-head h2 { display: flex; align-items: center; gap: 8px; font-size: 24px; letter-spacing: -0.02em; }
.block-head .muted { font-size: 15px; }

/* Kategori: satu ikon per sub-kategori */
.cat-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cat-tile { width: 100%; display: grid; justify-items: center; gap: 8px; padding: 10px 6px; border: 0; border-radius: var(--radius-sm); background: none; text-align: center; font-size: 14px; font-weight: 500; line-height: 1.25; }
@media (hover: hover) { .cat-tile:hover { background: var(--surface-2); } }
.cat-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); }
.cat-ic img { width: 66%; height: 66%; object-fit: contain; }
.cat-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Baris produk geser (Flash sale, Paling laku) */
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -4px; padding: 4px 4px 12px; }
.product-row .card { scroll-snap-align: start; }
@media (min-width: 761px) {
    .product-row.is-few { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); overflow: visible; }
    .product-row.is-few .card { flex-direction: row; }
    .product-row.is-few .card-media { width: 132px; flex: none; }
    .product-row.is-few .card-body { justify-content: center; }
}

/* Semua produk */
.catalog { padding-bottom: 8px; }
.chips-bar { position: sticky; top: calc(var(--topbar-h) / var(--z)); z-index: 50; background: var(--bg); padding: 8px 0; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: background 0.2s;
}
@media (hover: hover) { .chip:hover { background: var(--surface-2); } }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-count { font-size: 13px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

/* Kartu produk */
.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-align: left;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14); } } /* taste-skill-ignore: angkat kartu saat hover, bukan saat diam */
.card:active { transform: scale(0.99); }
.card-media { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-2); }
.card-media img { width: 58%; height: 58%; object-fit: contain; }
.card-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.card-title { min-height: 2.6em; font-size: 15px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.card-from { font-size: 12px; color: var(--muted); }
.card-price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card-price.is-muted { font-size: 14px; font-weight: 600; color: var(--muted); }
.card-was { font-size: 12px; color: var(--muted); }
.card-was b { color: var(--danger); }
.flash-price { color: var(--danger); }
.card-meta { margin-top: auto; padding-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.is-off .card-media img { filter: grayscale(1); opacity: 0.5; }
.card-emoji { display: grid; color: var(--muted); }
.more-row { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 16px; }

/* WHY US: strip keunggulan toko */
.why-strip { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.why-strip li { display: flex; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); }
.why-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); }
.why-strip h3 { font-size: 16px; letter-spacing: -0.01em; margin-bottom: 4px; }
.why-strip p { font-size: 14px; color: var(--muted); }
.why-strip a { color: var(--ink); font-weight: 600; }

/* Kosong */
.empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 48px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}
.empty strong { font-family: var(--font-display); font-size: 20px; }
.empty p { color: var(--muted); max-width: 40ch; }
.empty .btn { margin-top: 6px; }

/* Testimoni */
.testi { padding-bottom: 96px; }
.rating-big {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
}
.rating-big b { font-family: var(--font-display); font-size: 20px; }

.testi-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    margin-bottom: 22px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}
.testi-cta p { font-weight: 700; }

.testi-form {
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.testi-form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 700; }
.field-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.testi-form textarea {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}
.testi-form textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.field-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.form-error { color: var(--danger); font-weight: 700; }
.testi-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* Input rating bintang (radio, bisa pakai keyboard) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; border: none; }
.star-input legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label {
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    color: var(--surface-2);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s var(--ease);
}
.star-input label svg { width: 30px; height: 30px; stroke: var(--border-strong); stroke-width: 1.2px; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--star); }
.star-input label:active { transform: scale(0.9); }
.star-input input:focus-visible + label { outline: 2px solid var(--focus); border-radius: var(--radius-sm); }

.testi-list {
    columns: 3 300px;
    column-gap: 18px;
}
.testi-card {
    break-inside: avoid;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.testi-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testi-name { font-weight: 700; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 15px; line-height: 1; }
.stars .off { color: var(--border-strong); }
.testi-msg { overflow-wrap: anywhere; }
.list-note { color: var(--muted); font-weight: 600; }

.skeleton {
    break-inside: avoid;
    height: 140px;
    margin-bottom: 18px;
    background: var(--surface-2);   /* bidang abu-abu rata seukuran isinya, tanpa kilau */
}

/* Footer: grid 3 kolom x 2 baris, semua judul sejajar. Bawah: hak cipta & catatan pembayaran */
.footer { margin-top: 64px; padding: 48px 0 24px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; }
.footer-brand p { margin-top: 12px; max-width: 34ch; color: var(--muted); }
.footer-label { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.admin-hours, .footer-list { list-style: none; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.admin-now { margin-top: 10px; font-size: 15px; color: var(--muted); }
.admin-now b { color: var(--ink); }
.admin-actions { display: grid; gap: 8px; max-width: 300px; }
.footer-list a { color: var(--ink); text-underline-offset: 3px; }
/* logo pembayaran satu warna (tinta) supaya sejajar tanpa kotak */
.pay-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 40px; }
.pay-row img { height: 22px; width: auto; filter: brightness(0); }
:root[data-theme="dark"] .pay-row img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pay-row img { filter: brightness(0) invert(1); } }
.service-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 40px; padding-top: 20px; font-size: 14px; color: var(--muted); }
/* garis pemisah sejajar isi, bukan selebar padding .wrap */
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; border-top: 1px solid var(--border); } /* taste-skill-ignore: pemisah baris hak cipta */

/* Cara order (carousel di dalam sheet) */
.howto-card {
    margin-top: 32px;
    padding: 24px;
    min-height: 210px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.step-num {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-text);
    font-variant-numeric: tabular-nums;
    margin-bottom: 24px;
}
.howto-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.howto-card p { color: var(--muted); }
.howto-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.howto-dots { display: flex; gap: 4px; }
/* Titik kecil, tapi area kliknya 24px */
.howto-dot {
    width: 24px; height: 24px;
    border: 0;
    background: none;
    display: grid;
    place-items: center;
}
.howto-dot::before {
    content: "";
    width: 10px; height: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    transition: width 0.2s var(--ease), background 0.2s;
}
.howto-dot[aria-current="true"]::before { width: 22px; background: var(--ink); border-color: var(--ink); }

/* Sheet / modal */
.sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 6, 24, 0.6);
}
.sheet-overlay.show { display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--float-shadow); /* taste-skill-ignore: hanya yang melayang (sheet, chat, toast, tombol pesanan) */
    animation: pop 0.3s var(--ease);
}
@keyframes pop {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet-grip { display: none; }
.sheet-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-right: 48px;
}
.sheet-thumb {
    width: 80px; height: 80px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    flex-shrink: 0;
}
.sheet-thumb img { width: 70%; height: 70%; object-fit: contain; }
.sheet-hero h3 { font-size: 22px; font-weight: 700; }
.sheet-hero p { color: var(--muted); font-size: 14px; margin-top: 2px; }

.variant-group { border: none; margin-bottom: 18px; }
.variant-group legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.variant input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variant span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s var(--ease);
}
.variant span svg { display: none; }
.variant span:hover { background: var(--surface-2); }
.variant input:checked + span { background: var(--accent); color: var(--on-accent); }
.variant input:checked + span svg { display: block; }
.variant input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.order-preview {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    margin-bottom: 16px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
}
.order-preview-text { flex: 1; font-size: 14px; }
.order-preview-text small { display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 2px; }
.copy-btn {
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.copy-btn:hover { background: var(--surface-2); }
.sheet-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

.profile-head { text-align: center; margin-bottom: 22px; }
.profile-head .avatar { margin: 0 auto 12px; }
.profile-head h3 { font-size: 22px; font-weight: 700; }
.profile-head p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.sheet-actions { display: grid; gap: 10px; }
.auth-form { display: grid; gap: 6px; }
.auth-form .field-label { margin: 6px 0 0; }
.auth-form .btn { margin-top: 12px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
.auth-or { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.status-msg { font-size: 14px; text-align: center; color: var(--muted); min-height: 1.4em; margin-top: 10px; }
.status-msg.error { color: var(--danger); font-weight: 700; }

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 300;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--float-shadow); /* taste-skill-ignore: hanya yang melayang (sheet, chat, toast, tombol pesanan) */
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Detail produk di sheet */
.sheet-price { font-weight: 700; color: var(--ink); }
.faq-title { font-size: 22px; font-weight: 700; padding-right: 48px; }
.faq-list { display: grid; gap: 8px; margin-top: 14px; }
.faq-list .desc { margin-bottom: 0; }
.desc {
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
}
.desc summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: space-between;
}
.desc summary::-webkit-details-marker { display: none; }
.desc summary::after { content: '+'; font-size: 18px; line-height: 1; }
.desc[open] summary::after { content: '–'; }
.desc-body {
    padding: 0 14px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    white-space: pre-line;
    max-height: 260px;
    overflow-y: auto;
}
.desc-body strong { color: var(--ink); }
.variant small { display: block; font-size: 12px; font-weight: 700; opacity: 0.8; }
.variant span { flex-direction: column; gap: 0; }
.variant span svg { position: absolute; top: 6px; left: 6px; }
.variant { position: relative; }
.field-note {
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 15px;
    resize: vertical;
    outline: none;
}
.field-note:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.alt-order { display: flex; gap: 8px; margin-top: 10px; }
.alt-order .btn { flex: 1; min-height: 40px; font-size: 13px; padding: 0 10px; }

/* Rating */
.ratings { padding-bottom: 88px; }
.rating-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.rating-summary {
    position: sticky;
    top: calc(var(--topbar-h) / var(--z) + 16px);
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.rating-avg { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; }
.rating-avg small { font-size: 20px; color: var(--muted); }
.rating-summary .stars { font-size: 20px; margin: 8px 0 4px; display: block; }
.rating-bars { list-style: none; display: grid; gap: 6px; margin: 18px 0; }
.rating-bars li { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--star); }
.source-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rating-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rating-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    display: grid;
    gap: 10px;
}
.rating-card-head { display: flex; align-items: center; gap: 10px; }
.rating-card-head > div { min-width: 0; flex: 1; }
.rating-card .testi-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating-product { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.rating-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

.src {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 1px 8px 1px 6px;
    background: var(--surface);
    white-space: nowrap;
}
.src svg { width: 13px; height: 13px; }
.src-discord svg { color: var(--discord); }
.src-telegram svg { color: #229ed9; }
.src-website svg { color: var(--accent-text); }

/* Testimoni: produk & foto bukti */
.testi-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.testi-product { font-size: 13px; font-weight: 700; color: var(--muted); }
.testi-photo {
    display: block;
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
}
.testi-photo img { width: 100%; max-height: 320px; object-fit: cover; }

/* Chat pesanan */
.order-fab {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 140;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    box-shadow: var(--float-shadow); /* taste-skill-ignore: hanya yang melayang (sheet, chat, toast, tombol pesanan) */
    transition: transform 0.15s var(--ease);
}
.order-fab:active { transform: scale(0.97); }
.fab-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); border: 2px solid var(--on-accent); }

.chat {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 160;
    width: 400px;
    height: min(640px, calc(100dvh - var(--topbar-h) / var(--z) - 40px));
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--float-shadow); /* taste-skill-ignore: hanya yang melayang (sheet, chat, toast, tombol pesanan) */
    overflow: hidden;
    animation: pop 0.3s var(--ease);
}
.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 16px;
    border-bottom: 1px solid var(--border); /* taste-skill-ignore: garis baris tabel/daftar/dialog */
    background: var(--surface-2);
}
.chat-head-info { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head p { font-size: 13px; font-weight: 700; }
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
    overscroll-behavior: contain;
}
.msg { max-width: 82%; display: grid; gap: 3px; }
.msg-meta { font-size: 12px; font-weight: 700; color: var(--muted); }
.msg-bubble {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.msg-buyer { align-self: flex-end; text-align: right; }
.msg-buyer .msg-bubble { background: var(--accent-soft); border-color: transparent; border-bottom-right-radius: 4px; text-align: left; }
.msg-staff { align-self: flex-start; }
.msg-staff .msg-bubble { border-bottom-left-radius: 4px; }
.msg-system { align-self: stretch; max-width: none; }
.msg-system .msg-bubble { background: var(--surface-2); border-style: dashed; font-size: 14px; }
.msg-img { display: block; margin-top: 6px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.msg-img img { max-height: 260px; width: 100%; object-fit: cover; }
.msg.pending { opacity: 0.6; }
.msg-fail { color: var(--danger); font-size: 12px; font-weight: 700; }
.msg-gone { color: var(--muted); font-size: 13px; font-style: italic; }

.chat-foot { border-top: 1px solid var(--border); padding: 12px; background: var(--surface); } /* taste-skill-ignore: garis baris tabel/daftar/dialog */
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.4;
    resize: none;
    outline: none;
}
.composer textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.composer .btn { width: 48px; padding: 0; min-height: 44px; }
.chat-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; }
.link-btn { background: none; border: none; color: var(--muted); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.link-btn:hover { color: var(--danger); }
.rate-box { text-align: center; display: grid; gap: 10px; }
.rate-box p { font-weight: 700; }
.rate-stars { display: flex; justify-content: center; gap: 6px; }
.rate-stars button {
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--surface-2);
    transition: transform 0.15s var(--ease), color 0.15s;
}
.rate-stars button svg { width: 28px; height: 28px; stroke: var(--border-strong); stroke-width: 1.2px; }
.rate-stars button.on, .rate-stars button:hover { color: var(--star); }
.rate-stars button:active { transform: scale(0.92); }

/* Keranjang, wishlist, menu akun, halaman ulasan */
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] .chip-count { color: inherit; opacity: 0.7; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.cart-btn, .tab-cart { position: relative; }
.cart-count {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.tab-cart .cart-count { top: 2px; right: calc(50% - 22px); }

/* Halaman Ulasan: tampil sendiri, bagian halaman utama disembunyikan */
.ulasan-page { display: none; padding-top: 40px; padding-bottom: 96px; }
.view-ulasan .ulasan-page { display: block; }
.view-ulasan main > :not(.ulasan-page) { display: none; }
.review-tabs { margin-bottom: 22px; }
.ulasan-page .ratings, .ulasan-page .testi { padding-bottom: 0; }

/* Detail produk: keranjang + wishlist */
.save-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.save-row .btn { white-space: normal; text-align: center; }
#wishBtn[aria-pressed="true"] svg { color: var(--danger); fill: currentColor; }
.wish-picker { padding: 14px; margin-bottom: 16px; border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.inline-form { display: flex; gap: 8px; margin-bottom: 8px; }
.field-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 15px;
}
.field-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Daftar produk di keranjang & wishlist */
.line-list { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.line { display: flex; align-items: center; gap: 8px; }
.line-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-align: left;
}
.line-main:hover { background: var(--surface-2); }
.line-thumb {
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    overflow: hidden;
}
.line-thumb img { width: 70%; height: 70%; object-fit: contain; }
.line-text { min-width: 0; display: grid; gap: 2px; }
.line-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-text span { font-size: 13px; color: var(--muted); }
.line.is-off .line-main { opacity: 0.6; }
.mini-select { max-width: 120px; height: 44px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; font-weight: 700; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 16px; border-top: 1px solid var(--border); margin-bottom: 4px; } /* taste-skill-ignore: garis baris tabel/daftar/dialog */
.cart-total strong { font-family: var(--font-display); font-size: 22px; }

/* Menu akun & halaman di dalamnya */
.view-head { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0 52px 18px 0; }
.view-head h3 { font-size: 22px; font-weight: 700; }
.view-sub { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 16px; margin: 22px 0 10px; }
.view-body > .view-sub:first-child { margin-top: 0; }
.empty-view { padding: 28px 12px; }
.menu-list { display: grid; margin: 4px 0 12px; border-top: 1px solid var(--border-soft); } /* taste-skill-ignore: garis baris tabel/daftar/dialog */
.menu-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 4px;
    border: none;
    border-bottom: 1px solid var(--border-soft); /* taste-skill-ignore: garis baris tabel/daftar/dialog */
    background: none;
    text-align: left;
    color: inherit;
    text-decoration: none;   /* menu Dashboard admin berupa link */
}
.menu-row:hover { background: var(--surface-2); }
.menu-row > svg { color: var(--muted); }
.menu-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface-2); flex-shrink: 0; }
.menu-text { flex: 1; display: grid; gap: 2px; }
.menu-text span { font-size: 13px; color: var(--muted); }

.record-list { list-style: none; display: grid; gap: 10px; }
.record { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: grid; gap: 6px; }
.record-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.record-meta { font-size: 13px; color: var(--muted); }
.record-meta .stars { font-size: 13px; }
.record-body { white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
.record-items { font-size: 14px; padding-left: 18px; color: var(--muted); }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.record-actions .btn { min-height: 40px; font-size: 14px; }
.record .link-btn { justify-self: start; text-align: left; }
.record .link-btn:hover { color: var(--ink); }
.record .rate-stars { justify-content: flex-start; }
.record .rate-stars button { width: 44px; height: 44px; }
.status { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.status-open { color: var(--accent-text); }
.status-done { color: var(--success); }
.status-closed { color: var(--muted); }
/* Dashboard admin: status garansi */
.status-w-pending { color: var(--accent-text); }
.status-w-active { color: var(--success); }
.status-w-revoked { color: var(--danger); }
.status-w-expired, .status-w-none, .status-w-legacy { color: var(--muted); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; } /* taste-skill-ignore: garis baris tabel/daftar/dialog */
.admin-table thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.admin-table td strong { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.admin-table td span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash .admin-table th, .dash .admin-table td { white-space: nowrap; }   /* tabel transaksi digeser di dalam kotaknya, tidak dipecah per kata */
.admin-total th, .admin-total td { border-bottom: 0; }
.admin-filter { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; margin-bottom: 14px; }
.admin-filter .field-input { margin: 0; min-height: 44px; }
@media (max-width: 760px) { .admin-filter { grid-template-columns: 1fr; } }

.stack-form { display: grid; gap: 4px; margin-bottom: 8px; }
.stack-form .field-input { margin-bottom: 12px; }

.setting { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--border-soft); } /* taste-skill-ignore: garis baris tabel/daftar/dialog */
.setting p { font-size: 14px; margin-bottom: 12px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: grid; place-items: center; min-height: 40px; padding: 0 6px; border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.segmented input:checked + span { background: var(--ink); color: var(--bg); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.account-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.account-info { display: grid; gap: 6px; min-width: 0; font-size: 14px; }
.account-info dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.account-info dd { overflow-wrap: anywhere; font-weight: 700; }
.login-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tab bar (hp) */
.tabbar { display: none; }

/* Responsive */
@media (max-width: 1024px) {
    .topnav { display: none; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .why-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .banner { padding: 32px 40px; }
    .banner-tile { width: 96px; height: 96px; }
    .banner-art { grid-template-columns: repeat(2, 96px); }
}
@media (max-width: 900px) {
}

@media (max-width: 760px) {
    :root { --z: 0.9; }
    /* iPhone otomatis nge-zoom kalau teks kotak isian < 16px di layar: 17.8px x 0.9 = 16px */
    input, textarea, select { font-size: 17.8px !important; }
    .topbar input { font-size: 16px !important; }   /* header tidak di-zoom, jadi cukup 16px */
    :root { --topbar-h: 116px; }
    html { scroll-padding-top: calc(var(--topbar-h) + 64px); }
    .wrap { padding: 0 18px; }   /* 18 x zoom 0.9 = 16px dari tepi layar */

    /* Header 2 baris: logo + akun, lalu pencarian full width */
    .topbar-row { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 12px; min-height: 0; }
    .search { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
    .search-kbd { display: none; }
    .cart-btn { margin-left: auto; }
    .avatar-btn .avatar-name { display: none; }
    .avatar-btn { padding: 0 4px; }
    .auth-area .btn-google { padding: 0 14px; }

    .banners { padding-top: 14px; }
    .banner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 22px 22px 24px; }
    .banner h1, .banner h2 { font-size: 22px; }
    .banner p { font-size: 15px; margin-top: 8px; }
    .banner-actions { margin-top: 16px; }
    .banner-art, .banner-nav { display: none; }
    .block { padding-top: 28px; }
    .block-head h2 { font-size: 20px; }
    .block-head .muted { font-size: 14px; }
    /* kategori: 2 baris, geser ke samping */
    .cat-grid { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 84px; overflow-x: auto; scrollbar-width: none; padding: 10px; }
    .cat-grid::-webkit-scrollbar { display: none; }
    .cat-ic { width: 48px; height: 48px; }
    .cat-tile { font-size: 13px; padding: 8px 2px; }
    .product-row { grid-auto-columns: 44%; gap: 10px; margin: 0 -18px; padding: 4px 18px 12px; scroll-padding: 0 18px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card-body { padding: 8px 10px 10px; }
    .card-title { font-size: 14px; }
    .card-price { font-size: 16px; }
    .chips-bar { margin: 0 -18px 8px; padding: 6px 18px; }
    .why-strip { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .why-strip li { padding: 14px; }
    .footer { margin-top: 40px; padding-top: 32px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
    .footer-grid > :nth-child(-n+4) { grid-column: 1 / -1; }   /* LEGAL & SERVICE berdampingan */
    .footer-bottom::before { left: 18px; right: 18px; }
    .admin-actions { max-width: none; }
    .testi { padding-bottom: 48px; }

    /* Tab bar bawah, gampang dijangkau jempol */
    .tabbar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 150;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        background: var(--surface-2);   /* dipisah dari isi lewat tone, tanpa garis */
    }
    .tabbar a, .tabbar button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 54px;
        border: none;
        border-radius: var(--radius-sm);
        background: transparent;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }
    .tabbar .on { color: var(--ink); background: var(--bg); }
    .tabbar .on svg { color: var(--accent-text); }
    .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

    /* Modal jadi bottom sheet */
    .sheet-overlay { align-items: flex-end; padding: 0; }
    .sheet {
        max-width: none;
        max-height: 88dvh;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        box-shadow: none; /* taste-skill-ignore */
        padding: 12px 18px calc(20px + env(safe-area-inset-bottom));
        animation: slideUp 0.35s var(--ease);
    }
    .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border-soft); margin: 0 auto 14px; }
    .sheet-close { top: 18px; }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
}

@media (max-width: 1024px) {
    .rating-layout { grid-template-columns: 1fr; }
    .rating-summary { position: static; }
}

@media (max-width: 760px) {
    .order-fab { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); }
    .chat {
        inset: 0;
        width: auto;
        height: auto;
        border: none;
        border-radius: 0;
        box-shadow: none; /* taste-skill-ignore */
        z-index: 250;
        animation: slideUp 0.3s var(--ease);
    }
    .chat-head { padding-top: calc(12px + env(safe-area-inset-top)); }
    .chat-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
    .rating-list { grid-template-columns: 1fr; }
    .alt-order { flex-direction: column; }
}

@media (max-width: 360px) {
    .tabbar a, .tabbar button { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Halaman terpisah: dashboard admin (/dashboard) & struk (/struk/<kode>) */

.page-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.dash { display: grid; gap: 18px; padding-top: 28px; padding-bottom: 72px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dash-title { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.dash-month { display: flex; align-items: center; gap: 8px; }
.dash-month strong { min-width: 140px; text-align: center; font-family: var(--font-display); font-size: 18px; }
.dash-next svg { transform: rotate(180deg); }
.dash-month .icon-btn:disabled { opacity: 0.35; cursor: default; }
.dash-kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.dash-kpi { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.dash-kpi span { font-size: 14px; font-weight: 700; color: var(--muted); }
.dash-kpi strong { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); font-variant-numeric: tabular-nums; }
.dash-kpi small { font-size: 13px; color: var(--muted); }
.dash-kpi-main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dash-kpi-main span, .dash-kpi-main small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.dash-kpi-main strong { font-size: clamp(30px, 3.4vw, 40px); }
.dash-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.dash-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.dash-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.dash-bars { list-style: none; display: grid; gap: 14px; }
.dash-bars li { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 4px 12px; font-size: 14px; }
.dash-bars b { font-variant-numeric: tabular-nums; }
.dash-bars small { grid-column: 2 / -1; color: var(--muted); font-size: 12px; }
.dash-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.dash-bar i { display: block; height: 100%; background: var(--star); border-radius: 999px; }
.dash-chart { list-style: none; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; }
.dash-chart li { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; }
.dash-chart button { display: flex; align-items: flex-end; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.dash-chart i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.dash-chart li.is-current i { background: var(--star); }
.dash-chart button:hover i, .dash-chart button:focus-visible i { background: color-mix(in srgb, var(--star) 70%, transparent); }
.dash-chart span { font-size: 11px; color: var(--muted); font-weight: 700; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dash-actions .btn, .page-bar .btn { min-height: 40px; }
.dash-check, .struk-check-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.dash-check .field-input, .struk-check-row .field-input { margin: 0; min-height: 44px; font-family: var(--font-body); letter-spacing: 0.04em; }
.struk-ok { font-weight: 700; color: var(--success); margin-bottom: 10px; }
.struk-bad { font-weight: 700; color: var(--danger); margin-bottom: 8px; }
@media (max-width: 760px) {
    .dash-kpis, .dash-grid { grid-template-columns: 1fr; }
    .dash-chart { height: 120px; gap: 4px; }
    .dash-chart span { font-size: 10px; }
}

.struk-page { display: grid; gap: 24px; justify-items: center; padding-top: 32px; padding-bottom: 72px; }
.struk { width: 100%; max-width: 460px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.struk-head { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--border); } /* taste-skill-ignore: garis baris tabel/daftar/dialog */
.struk-head h1, .struk-title-empty { font-size: 24px; font-weight: 700; }
.struk-code { margin-top: 6px; font-size: 17px; font-weight: 700; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.struk-rows { display: grid; gap: 10px; }
.struk-rows div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 15px; }
.struk-rows dt { color: var(--muted); }
.struk-rows dd { font-weight: 700; overflow-wrap: anywhere; }
.struk-rows dd small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
.struk-rows .status { display: inline-block; }
.struk-total { padding: 10px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); } /* taste-skill-ignore: garis baris tabel/daftar/dialog */
.struk-total dd { font-size: 20px; }
.struk-foot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.struk-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.struk-check { width: 100%; max-width: 460px; }
@media print {
    body { zoom: 1; background: #fff; color: #000; }
    .page-bar, .struk-check, .struk-actions, .toast, .tabbar { display: none !important; }
    .struk-page { padding: 0; }
    .struk { border: 1px solid #000; max-width: none; }
    .struk-rows dt, .struk-foot, .struk-rows dd small { color: #333; }
}

/* Hp: grid tidak melebar + target sentuh 44px di layar */
/* isi grid boleh mengecil: tanpa ini tabel transaksi (nowrap) memaksa seluruh dashboard melebar di HP */
.dash > *, .dash-grid > *, .dash-kpis > * { min-width: 0; }
@media (max-width: 760px) {
    /* body di-zoom 0.9 di HP: 44px di CSS cuma 39.6px di layar, jadi ukuran minimum dibagi --z.
       [class] menaikkan spesifisitas supaya menang atas aturan khusus (mis. .record-actions .btn 40px). */
    :is(.btn, .chip, .field-input, .skip-link)[class] { min-height: calc(44px / var(--z)); }
    .icon-btn[class] { min-width: calc(44px / var(--z)); min-height: calc(44px / var(--z)); }
    .page-bar .logo[class] { min-height: calc(44px / var(--z)); display: flex; align-items: center; }
    /* header tidak di-zoom (lihat .topbar), jadi 44px CSS = 44px layar */
    .topbar :is(.btn, .chip, .icon-btn)[class] { min-height: 44px; min-width: 44px; }
}
@media (max-width: 760px) {
    .topbar .logo[class] { min-height: 44px; display: flex; align-items: center; }
    /* grafik 12 bulan: tiap batang selebar target sentuh, digeser ke samping di dalam kotaknya */
    .dash-chart { grid-template-columns: repeat(12, minmax(calc(44px / var(--z)), 1fr)); overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
    .admin-table a { display: inline-flex; align-items: center; min-height: calc(44px / var(--z)); }   /* link kode struk di tabel */
}
/* HP sangat sempit: tombol akun cukup ikon supaya header tetap 2 baris (teks tetap dibaca pembaca layar) */
@media (max-width: 359px) {
    #loginBtn span, .avatar-btn .avatar-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    #loginBtn { width: 44px; padding: 0; }
}

/* Halaman teks yang isinya ditulis pemilik: /privacy, /terms, /oripa, /request */
.doc-page { padding-top: 64px; padding-bottom: 128px; min-height: 60vh; }
.doc-page h1 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.03em; }
.doc-body { max-width: 68ch; margin-top: 32px; display: grid; gap: 16px; }
.doc-body h2 { font-size: 24px; margin-top: 16px; }
.doc-body ul, .doc-body ol { padding-left: 22px; display: grid; gap: 6px; }

/* /points: saldo & riwayat di atas, daftar item di bawah, cara kerja poin di samping */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.points-page { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 112px; }
.points-title h1 { font-size: 32px; letter-spacing: -0.02em; }
.points-title p { margin-top: 6px; max-width: 64ch; }
.points-top, .points-bottom { display: grid; gap: 24px; align-items: start; }
.points-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.points-bottom { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.panel { background: var(--surface); border: 1px solid var(--border); padding: 24px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-title { font-size: 18px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.points-figure { font-size: 36px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.points-figure span { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.points-figure + p { margin-top: 6px; }
.panel .btn-primary { margin-top: 16px; }
.points-track { height: 8px; margin-top: 18px; background: var(--surface-2); }
.points-track i { display: block; height: 100%; background: var(--ink); }
.points-track-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.loading-bar { display: block; height: 36px; width: 60%; background: var(--surface-2); }
.ledger, .rewards { list-style: none; }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border-soft); } /* taste-skill-ignore: garis baris tabel/daftar/dialog */
.ledger li:first-child { border-top: 0; padding-top: 0; }
.ledger strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.ledger small { font-size: 14px; color: var(--muted); }
.ledger-delta { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger + .link-btn { margin-top: 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.toolbar .field-input { flex: 1 1 240px; min-height: 40px; }
.toolbar .btn { min-height: 40px; }
.toolbar .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.sort-by { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.sort-by select { flex: none; width: auto; min-height: 40px; color: var(--ink); }
.reward { display: grid; grid-template-columns: minmax(0, 1fr) 110px 84px 220px; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border-soft); } /* taste-skill-ignore: garis baris tabel/daftar/dialog */
.rewards li:first-child { border-top: 0; }
.reward-main strong { font-weight: 600; overflow-wrap: anywhere; }
.reward-main p { font-size: 14px; color: var(--muted); }
.reward-cost { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reward-stock { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reward-action { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.reward-action > span { font-size: 14px; }
.reward.is-out .reward-main strong, .reward.is-out .reward-cost { color: var(--muted); }
.list-empty { padding: 16px 0 4px; color: var(--muted); }
.points-how ul { display: grid; gap: 10px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--surface-2); }
.notice.is-error { color: var(--danger); }
@media (max-width: 900px) {
    .points-top, .points-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .points-title h1 { font-size: 26px; }
    .panel { padding: 18px; }
    .reward { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "main main" "cost stock" "action action"; gap: 6px 14px; }
    .reward-main { grid-area: main; }
    .reward-cost { grid-area: cost; text-align: left; }
    .reward-stock { grid-area: stock; text-align: left; }
    .reward-action { grid-area: action; justify-content: flex-start; margin-top: 4px; }
    .sort-by { flex: 1 1 100%; }
    .sort-by select { flex: 1; }
}
