/* ==========================================================================
   Neo — gaya neobrutalism biru cerah. Tanpa build: edit file ini langsung.
   ========================================================================== */

:root {
    --ink: #0b0b0f;
    --paper: #f1f6ff;
    --white: #ffffff;

    --blue: #2f6bff; /* warna utama; dapat diganti admin (di-override lewat <style> di layout) */
    --blue-dark: color-mix(in srgb, var(--blue) 72%, #000);
    --blue-soft: color-mix(in srgb, var(--blue) 22%, #fff);
    --yellow: #ffe14d;
    --pink: #ff8fc7;
    --green: #5ee9a3;
    --red: #ff5d5d;
    --orange: #ffb04d;

    --bw: 3px;
    --radius: 10px;
    --shadow: 5px 5px 0 var(--ink);
    --shadow-sm: 3px 3px 0 var(--ink);
    --shadow-lg: 8px 8px 0 var(--ink);

    --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--paper);
    background-image: radial-gradient(var(--blue-soft) 1.4px, transparent 1.4px);
    background-size: 22px 22px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-dark); font-weight: 600; }
a:hover { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
main { flex: 1; }
.section { padding-block: clamp(24px, 4vw, 44px); }
.hero + .section, .section + .section { padding-top: 12px; } /* jarak antarbagian tidak dobel */
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* Dashboard: 4 kolom sama tinggi; kartu berisi tombol di dasar. */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-4 > .neo-card { display: flex; flex-direction: column; }
.grid-4 .stat { font-size: 1.7rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.grid-stat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-stat > .neo-card { display: flex; flex-direction: column; }
.grid-stat .stat { font-size: 2rem; }
@media (max-width: 820px) { .grid-stat { grid-template-columns: minmax(0, 1fr); } }
.oline { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr) minmax(90px, .8fr) minmax(90px, .7fr) auto; gap: 8px 18px; align-items: center; padding: .7rem .5rem; margin: 0 -.5rem; color: var(--ink); text-decoration: none; border-bottom: 2px dashed var(--ink); border-radius: 6px; }
.oline:last-of-type { border-bottom: 0; }
.oline:hover { background: var(--yellow); color: var(--ink); }
.oline__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.oline__name small { display: block; font-weight: 400; font-size: .8rem; color: #3b4256; overflow: hidden; text-overflow: ellipsis; }
.oline__total { font-weight: 700; }
.oline__time { font-size: .85rem; color: #3b4256; }
.oline__status { justify-self: end; }
@media (max-width: 720px) {
    .oline { grid-template-columns: minmax(0, 1fr) auto; }
    .oline__name { grid-column: 1 / -1; order: 3; }
    .oline__total { order: 4; }
    .oline__time { order: 5; justify-self: end; }
    .oline__status { order: 2; }
}
.text-center { text-align: center; }
.muted { color: #3b4256; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Highlight ---------- */
.mark {
    background: var(--yellow);
    padding: 0 .25em;
    border: var(--bw) solid var(--ink);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    transform: rotate(-1.5deg);
}

/* ---------- Button ---------- */
.neo-btn {
    --btn-bg: var(--blue);
    --btn-fg: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .7rem 1.2rem;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: var(--bw) solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .08s ease;
}
.neo-btn:hover { background: var(--btn-bg); color: var(--btn-fg); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.neo-btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.neo-btn:focus-visible { outline: var(--bw) solid var(--ink); outline-offset: 3px; }
.neo-btn[disabled], .neo-btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }
.neo-btn--accent { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.neo-btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.neo-btn--pink { --btn-bg: var(--pink); --btn-fg: var(--ink); }
.neo-btn--danger { --btn-bg: var(--red); --btn-fg: var(--ink); }
.neo-btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.neo-btn--sm { padding: .4rem .8rem; font-size: .9rem; box-shadow: var(--shadow-sm); }
.neo-btn--lg { padding: .95rem 1.6rem; font-size: 1.1rem; }
.neo-btn--block { display: flex; width: 100%; }

/* ---------- Card ---------- */
.neo-card {
    --card-bg: var(--white);
    background: var(--card-bg);
    border: var(--bw) solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.neo-card--blue { --card-bg: var(--blue-soft); }
.neo-card--yellow { --card-bg: var(--yellow); }
.neo-card--pink { --card-bg: var(--pink); }
.neo-card--green { --card-bg: var(--green); }
.neo-card__title { margin: 0 0 .75rem; font-size: 1.2rem; }
.neo-card--lift { transition: transform .1s ease, box-shadow .1s ease; }
.neo-card--lift:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }

/* ---------- Form ---------- */
.neo-field { margin-bottom: 1rem; }
.neo-label { display: block; font-weight: 700; margin-bottom: .35rem; }
.neo-req { color: var(--red); margin-left: .15em; }
.neo-input {
    width: 100%;
    padding: .7rem .9rem;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: var(--bw) solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.neo-input::placeholder { color: #8a92a6; }
.neo-input:focus { outline: none; box-shadow: 4px 4px 0 var(--blue); border-color: var(--ink); background: #fbfdff; }
.neo-input.is-invalid { background: #fff0f0; box-shadow: 4px 4px 0 var(--red); }
.neo-pass { position: relative; }
.neo-pass .neo-input { padding-right: 5.6rem; }
.neo-pass__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: .25rem .6rem;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 8px;
    cursor: pointer;
}
.neo-pass__toggle:hover { background: var(--pink); }
.neo-pass__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.neo-hint { margin: .35rem 0 0; font-size: .875rem; color: #3b4256; }
.neo-error { margin: .35rem 0 0; font-size: .875rem; font-weight: 700; color: #b00020; }
.neo-check { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.neo-check input { width: 22px; height: 22px; accent-color: var(--blue); border: var(--bw) solid var(--ink); }

/* ---------- Alert ---------- */
.neo-alert {
    --alert-bg: var(--blue-soft);
    padding: 14px 16px;
    margin-bottom: 1rem;
    background: var(--alert-bg);
    border: var(--bw) solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}
.neo-alert--success { --alert-bg: var(--green); }
.neo-alert--danger { --alert-bg: #ffc9c9; }
.neo-alert--warning { --alert-bg: var(--yellow); }
.neo-alert ul { margin: .25rem 0 0; padding-left: 1.2rem; }

/* ---------- Badge ---------- */
.neo-badge {
    --badge-bg: var(--blue-soft);
    display: inline-block;
    padding: .1rem .6rem;
    font-size: .8rem;
    font-weight: 700;
    background: var(--badge-bg);
    border: 2px solid var(--ink);
    border-radius: 999px;
    white-space: nowrap;
}
.neo-badge--green { --badge-bg: var(--green); }
.neo-badge--red { --badge-bg: var(--red); }
.neo-badge--yellow { --badge-bg: var(--yellow); }
.neo-badge--pink { --badge-bg: var(--pink); }
.neo-badge--blue { --badge-bg: var(--blue); color: var(--white); }

/* ---------- Table ---------- */
.neo-table-wrap { overflow-x: auto; border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.neo-table { width: 100%; border-collapse: collapse; }
.neo-table th, .neo-table td { padding: .7rem .9rem; text-align: left; border-bottom: 2px solid var(--ink); }
.neo-table th { background: var(--yellow); font-weight: 700; }
.neo-table tr:last-child td { border-bottom: 0; }

/* ---------- Navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: var(--bw) solid var(--ink); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.nav__brand:hover { background: transparent; color: var(--ink); }
.nav__logo { height: 38px; width: auto; border: 2px solid var(--ink); border-radius: 8px; }
.nav__mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--blue); color: var(--white); border: var(--bw) solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); }
.nav__links { display: flex; align-items: center; gap: 10px; }
.nav__link { padding: .4rem .7rem; color: var(--ink); text-decoration: none; border-radius: 8px; border: 2px solid transparent; }
.nav__link:hover, .nav__link.is-active { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.nav__toggle { display: none; }
.nav__form { margin: 0; }

@media (max-width: 760px) {
    .nav__toggle { display: inline-flex; }
    .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 14px 16px 18px; background: var(--white); border-bottom: var(--bw) solid var(--ink); }
    .nav__links.is-open { display: flex; }
    .nav__link { text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 56px) clamp(12px, 2vw, 24px); }
.hero__grid { display: grid; gap: 32px; align-items: center; grid-template-columns: 1.15fr .85fr; }
.hero__grid--solo { grid-template-columns: 1fr; }
.hero__lead { font-size: 1.15rem; max-width: 36rem; }
.hero__art { position: relative; min-height: 220px; }
.hero__art .neo-card { position: absolute; }
.hero__art .a1 { inset: 0 20% 38% 0; transform: rotate(-3deg); }
.hero__art .a2 { inset: 30% 0 8% 22%; transform: rotate(2.5deg); }
@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art { min-height: 220px; }
}

/* ---------- Footer ---------- */
.footer { margin-top: 24px; padding-block: 24px; background: var(--ink); color: var(--white); border-top: var(--bw) solid var(--ink); }
.footer a { color: var(--yellow); }
.footer a:hover { background: transparent; color: var(--white); }
.footer__contact { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }

/* ---------- Installer ---------- */
.install { width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; }
.install__head { text-align: center; margin-bottom: 24px; }
.install__req { list-style: none; margin: 0; padding: 0; }
.install__req li { display: flex; justify-content: space-between; gap: 12px; padding: .45rem 0; border-bottom: 2px dashed var(--ink); }
.install__req li:last-child { border-bottom: 0; }
.install__section + .install__section { margin-top: 28px; }
.install__cols { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .install__cols { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth { width: 100%; max-width: 440px; margin: 0 auto; padding: 40px 16px; }

[x-cloak] { display: none !important; }

/* ---------- Admin ---------- */
.admin { padding-block: 24px 40px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; padding: 8px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.subnav__link { padding: .4rem .9rem; color: var(--ink); text-decoration: none; border: 2px solid transparent; border-radius: 8px; }
.subnav__link:hover { background: var(--blue-soft); color: var(--ink); border-color: var(--ink); }
.subnav__link.is-active { background: var(--blue); color: var(--white); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; white-space: nowrap; }
.actions form { margin: 0; }
/* Sel aksi di tabel: tetap sel tabel (bukan flex) dan semua tombol sebaris dalam satu baris horizontal. */
td.actions { display: table-cell; vertical-align: middle; white-space: nowrap; }
td.actions > a, td.actions > form, td.actions > button { display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }
td.actions > :last-child { margin-right: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters .neo-input { width: auto; flex: 1 1 200px; }
.cat-form { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: start; }
.cat-form .neo-field { margin-bottom: .75rem; }
@media (max-width: 640px) {
    .cat-form { grid-template-columns: 1fr; }
    .cat-form .neo-label[aria-hidden] { display: none; }
}
select.neo-input { appearance: auto; }
input[type="file"].neo-input { padding: .55rem .7rem; background: var(--white); }
.thumb { width: 56px; height: 56px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; background: var(--blue-soft); }
.thumb--lg { width: 120px; height: 120px; }
.thumb--empty { display: grid; place-items: center; font-weight: 700; color: var(--blue-dark); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.pager__gap { align-self: center; font-weight: 700; }

/* ---------- Rich text (konten dari editor) ---------- */
.neo-editor { background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.neo-editor .ql-toolbar.ql-snow { border: 0; border-bottom: var(--bw) solid var(--ink); background: var(--blue-soft); font-family: var(--font); }
.neo-editor .ql-container.ql-snow { border: 0; font-family: var(--font); font-size: 1rem; }
.neo-editor .ql-toolbar .ql-source { width: auto; padding: 3px 8px; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: .85rem; color: var(--ink); }
.neo-editor .ql-toolbar .ql-source:hover, .neo-editor .ql-toolbar .ql-source.is-on { background: var(--yellow); border-radius: 6px; }
.neo-editor.is-source .ql-toolbar button:not(.ql-source), .neo-editor.is-source .ql-toolbar .ql-picker { opacity: .35; pointer-events: none; }
.neo-editor__source { display: block; width: 100%; min-height: 260px; padding: 14px; border: 0; background: #0b0b0f; color: #e8f0ff; font: 13px/1.6 ui-monospace, Consolas, monospace; resize: vertical; tab-size: 2; }
.neo-editor__source:focus { outline: none; }
.richtext { font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.richtext img { height: auto; margin: 1rem 0; border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.richtext h1, .richtext h2, .richtext h3, .richtext h4 { margin-top: 1.4em; }
.richtext ul, .richtext ol { padding-left: 1.4rem; }
.richtext blockquote { margin: 1rem 0; padding: .6rem 1rem; background: var(--blue-soft); border-left: 6px solid var(--blue); border-radius: 6px; }
.richtext pre { padding: 1rem; overflow-x: auto; color: var(--white); background: var(--ink); border-radius: var(--radius); }
.richtext .ql-indent-1 { margin-left: 1.5rem; }
.richtext .ql-indent-2 { margin-left: 3rem; }
.richtext .ql-indent-3 { margin-left: 4.5rem; }
.richtext .ql-align-center { text-align: center; }
.richtext .ql-align-right { text-align: right; }
.richtext .ql-align-justify { text-align: justify; }

/* ---------- Katalog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { padding: .35rem .9rem; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); }
.chip:hover { background: var(--yellow); color: var(--ink); }
.chip.is-active { background: var(--blue); color: var(--white); }
.pgrid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
.pcard { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .1s ease, box-shadow .1s ease; }
.pcard:hover { background: var(--white); color: var(--ink); transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.pcard__media { position: relative; aspect-ratio: 16 / 10; padding: 14px; background: var(--white); border-bottom: var(--bw) solid var(--ink); }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.pcard__ph { border-radius: 8px; display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.4rem; font-weight: 700; color: var(--blue-dark); background: repeating-linear-gradient(45deg, var(--blue-soft), var(--blue-soft) 14px, #e3edff 14px, #e3edff 28px); }
.pcard__ribbon { position: absolute; top: 10px; right: 10px; padding: .1rem .7rem; font-weight: 700; font-size: .85rem; background: var(--red); border: 2px solid var(--ink); border-radius: 999px; }
.pcard__body { display: flex; flex-direction: column; flex: 1; gap: .4rem; padding: 14px 16px 16px; }
.pcard__title { margin: .2rem 0 0; font-size: 1.15rem; }
.pcard__summary { margin: 0; color: #3b4256; font-size: .95rem; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: .6rem; }
.pcard__price { font-size: 1.15rem; }

.pdetail { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.pdetail__img { width: 100%; max-height: 480px; padding: 22px; object-fit: contain; background: var(--white); margin-bottom: 1.2rem; border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 560px) { .pdetail__img { padding: 12px; } .pcard__media { padding: 10px; } }
.pdetail__side { position: sticky; top: 90px; }
.pdetail__price { margin: .6rem 0; font-size: 2rem; font-weight: 700; }
.pdetail__facts { margin: 0 0 1.2rem; padding-left: 1.1rem; }
@media (max-width: 860px) {
    .pdetail { grid-template-columns: 1fr; }
    .pdetail__side { position: static; }
}

/* ---------- Checkout & pesanan ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.checkout__side { position: sticky; top: 90px; }

/* ---------- Landing page satu halaman (/lp/{slug}) ---------- */
.lp { max-width: 760px; }
.lp__hero { text-align: left; }
.lp__img { display: block; width: 100%; height: auto; border: var(--bw) solid var(--ink); box-shadow: var(--shadow); margin-bottom: 24px; background: var(--white); }
.lp__info { margin-bottom: 28px; }
.lp__price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 18px 0 8px; }
.lp__price strong { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.lp__jump { margin-top: 6px; }
.lp__section { margin-top: 40px; }
.lp__buy { margin-top: 48px; scroll-margin-top: 20px; }
.lp__login { margin: 0 0 16px; }
.checkout--single { grid-template-columns: minmax(0, 1fr); }
.checkout--single .checkout__side { position: static; }
.lp-brand { cursor: default; }
.lp-footer { text-align: center; justify-content: center; }
.coupon { display: flex; gap: 10px; }
.coupon .neo-input { flex: 1; }
.neo-hint.is-ok { color: #05652f; font-weight: 700; }
.neo-hint.is-bad { color: #b00020; font-weight: 700; }
.sum-item { display: flex; gap: 12px; align-items: center; margin-bottom: 1rem; }
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: .4rem 0; border-bottom: 2px dashed var(--ink); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.kv__total { font-size: 1.2rem; font-weight: 700; }
.order__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; margin-top: 24px; }
.order__total { margin: .2rem 0 .8rem; font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; }
.acct { padding: 14px 0; border-bottom: 2px dashed var(--ink); }
.acct:last-child { border-bottom: 0; padding-bottom: 0; }
.acct:first-child { padding-top: 0; }
.acct__no { margin: .4rem 0 .2rem; font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acct__qris { width: 220px; max-width: 100%; margin-top: .6rem; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--white); }
.proof { max-width: 100%; max-height: 520px; border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sep { border: 0; border-top: 3px dashed var(--ink); margin: 1rem 0; }
.stat { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
textarea.neo-input { resize: vertical; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.swatch { width: 42px; height: 42px; padding: 0; background: var(--c); border: var(--bw) solid var(--ink); border-radius: 10px; box-shadow: var(--shadow-sm); cursor: pointer; }
.swatch.is-on { outline: 3px solid var(--ink); outline-offset: 3px; }
.swatch-input { width: 52px; height: 42px; padding: 2px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 10px; cursor: pointer; }
.errbox { max-width: 520px; margin: 12vh auto; text-align: center; }
.errbox__code { margin: 0; font-size: clamp(4rem, 14vw, 7rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
/* Tab utama Pengaturan: selalu satu baris selebar kontainer penuh, walau halamannya memakai kolom sempit;
   di layar sempit baris tab bisa digeser ke samping (tidak turun ke baris kedua). */
.chips--tabs { flex-wrap: nowrap; overflow-x: auto; width: min(calc(var(--container) - 32px), calc(100vw - 32px)); max-width: none; margin-bottom: 14px; padding: 2px 8px 10px 2px; scrollbar-width: thin; }
.chips--tabs .chip { flex: none; white-space: nowrap; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -.4rem 0 1.2rem; padding-bottom: 10px; border-bottom: 3px dashed var(--ink); }
.subtabs a { padding: .25rem .8rem; font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none; border: 2px solid transparent; border-radius: 8px; }
.subtabs a:hover { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.subtabs a.is-active { background: var(--ink); color: var(--white); }
/* Dua kartu berdampingan: lebar sama, tinggi sama, isi ditata dari atas, tombol di dasar. */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.duo > * { display: flex; flex-direction: column; min-width: 0; }
.duo > * > .neo-card { flex: 1; display: flex; flex-direction: column; }
.duo .neo-card > .neo-card__title { flex: none; }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.toc { margin: 0; padding-left: 1.3rem; }
.toc li { margin: .35rem 0; }
.toc li.is-current a { background: var(--yellow); color: var(--ink); padding: 0 .3rem; border-radius: 4px; }
.mailframe { width: 100%; height: 420px; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--white); }
.mailframe--tall { height: 620px; }
code { padding: .05rem .35rem; font-size: .85em; background: var(--blue-soft); border: 2px solid var(--ink); border-radius: 6px; }
@media (max-width: 900px) {
    .checkout, .order__grid { grid-template-columns: 1fr; }
    .checkout__side { position: static; }
}

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 40px 20px; border: var(--bw) dashed var(--ink); border-radius: var(--radius); background: var(--white); }
.empty__icon { font-size: 2.4rem; }

/* Kartu produk di checkout */
.prod-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; }
.prod-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; }
.prod-card__img { width: 104px; height: 104px; object-fit: cover; border: 3px solid var(--ink); border-radius: 10px; background: var(--blue-soft); box-shadow: 3px 3px 0 var(--ink); }
.prod-card__img--empty { display: grid; place-items: center; font-weight: 700; font-size: 2rem; color: var(--blue-dark); }
.prod-card__name { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.prod-card__desc { margin: .6rem 0 0; font-size: .95rem; line-height: 1.6; color: var(--ink); opacity: .78; }
@media (max-width: 560px) {
    .prod-card { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
    .prod-card__img { width: 76px; height: 76px; box-shadow: 2px 2px 0 var(--ink); }
    .prod-card__name { font-size: 1.05rem; }
}

/* Riwayat pembayaran (admin: detail pesanan) */
.paylog { list-style: none; margin: 0; padding: 0; }
.paylog__row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: .6rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.paylog__row:last-child { border-bottom: 0; }
.paylog__time { color: color-mix(in srgb, var(--ink) 60%, transparent); font-size: .9rem; white-space: nowrap; }
.paylog__text { line-height: 1.5; }
.paylog__src { color: color-mix(in srgb, var(--ink) 55%, transparent); font-size: .85rem; }
.paylog__row--ok .paylog__text { font-weight: 700; }
.paylog__row--bad .paylog__text { color: #b00020; }
.paylog__row--warn .paylog__text { color: #8a5a00; }
@media (max-width: 560px) { .paylog__row { grid-template-columns: 1fr; gap: 2px; } }

/* Pratinjau pesan Telegram */
.tgbubble { background: #fff; border: 3px solid var(--ink); border-radius: 14px 14px 14px 4px; padding: .8rem 1rem; white-space: pre-wrap; word-break: break-word; font-size: .92rem; line-height: 1.5; box-shadow: 3px 3px 0 var(--ink); }
.tgbubble pre { background: var(--blue-soft); border: 2px solid var(--ink); border-radius: 8px; padding: .5rem .7rem; margin: .4rem 0; white-space: pre-wrap; font-size: .85rem; }
.tgbubble code { background: var(--blue-soft); padding: 0 .3em; border-radius: 4px; }
.tgraw { white-space: pre-wrap; word-break: break-word; font-size: .8rem; background: #f4f6ff; border: 2px solid var(--ink); border-radius: 8px; padding: .6rem .8rem; }

/* QR QRIS di halaman pesanan */
.qrbox { background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: .8rem; max-width: 340px; margin: 0 auto; box-shadow: 4px 4px 0 var(--ink); }
.qrbox svg { display: block; width: 100%; height: auto; }

/* Pop-up (mis. kode kupon di checkout) */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 15, .55); }
.modal__dialog { position: relative; width: min(440px, 100%); margin: 0; box-shadow: 6px 6px 0 var(--ink); }
.coupon-chip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; padding: .7rem 1rem; border: 3px solid var(--ink); border-radius: 12px; background: var(--green); box-shadow: 3px 3px 0 var(--ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--ink); }
.rincian__kupon { margin-top: 1rem; padding-top: 1rem; border-top: 2px dashed var(--ink); }

/* ---------- Penawaran tambahan (order bump) di checkout ---------- */
.bump { border: var(--bw) dashed var(--ink); background: #fffbe6; padding: 18px; margin-bottom: 22px; }
.bump__tag { margin: 0 0 10px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: #b45309; }
.bump__row { display: flex; gap: 16px; align-items: flex-start; }
.bump__img { width: 84px; height: 84px; object-fit: cover; flex: none; border: var(--bw) solid var(--ink); background: var(--white); }
.bump__body { min-width: 0; }
.bump__name { margin: 0 0 .3em; font-size: 1.1rem; }
.bump__desc { margin: 0 0 .6em; color: var(--muted, #4a4f5c); }
.bump__price { margin: 0 0 .4em; font-size: 1.1rem; }
.bump__price s { color: #7a7f8c; margin-right: .5em; }
.bump__save { margin: 0 0 .3em; font-size: .9rem; color: #b45309; }
.bump__check { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink); align-items: flex-start; font-weight: 600; }