/* Identity Indonesia — design system (Minimal/Swiss, brand pink + navy, Inter). One file for every page. */
:root {
  /* brand */
  --navy-900: #171849;
  --navy: #242565;
  --navy-50: #eef0fb;
  --pink: #d10a68;          /* text/buttons: 5.3:1 on white */
  --pink-600: #b00857;
  --pink-bright: #f5167e;   /* decorative only (3.96:1) */
  --pink-50: #fff0f6;
  --pink-100: #ffd9ea;
  /* neutrals */
  --ink: #0f1029;
  --text: #2b2c45;
  --muted: #5b5d78;         /* 6.1:1 on white */
  --line: #e6e7ef;
  --line-strong: #cfd1de;
  --bg: #f7f7fb;
  --card: #fff;
  /* status */
  --ok: #0f7a45; --ok-50: #e7f6ee;
  --warn: #8a5a00; --warn-50: #fff5dc;
  --bad: #b42318; --bad-50: #fdecea;
  --info: #1d4ed8; --info-50: #e8efff;
  /* shape & depth */
  --r-sm: 8px; --r: 12px; --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 16, 41, .06);
  --shadow: 0 1px 2px rgba(15, 16, 41, .05), 0 8px 24px rgba(15, 16, 41, .06);
  --shadow-lg: 0 24px 64px rgba(15, 16, 41, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: 180ms;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules must not un-hide slides / filtered rows */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.6; font-size: 15px; }
img, video { max-width: 100%; display: block; }
form { margin: 0; }
a { color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(209, 10, 104, .4); outline-offset: 2px; }
::selection { background: var(--pink-100); }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.xs { font-size: .78rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .5rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 300px)), 1fr)); }
.split { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 8px; color: #fff; }
.richtext { overflow-wrap: anywhere; }
.richtext img { height: auto; border-radius: var(--r-sm); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { -webkit-line-clamp: 3; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .6rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--pink);
  background: var(--pink); color: #fff; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer;
  text-decoration: none; transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn:hover { background: var(--pink-600); border-color: var(--pink-600); color: #fff; }
.btn.secondary { background: var(--navy); border-color: var(--navy); }
.btn.secondary:hover { background: var(--navy-900); border-color: var(--navy-900); }
.btn.ghost { background: transparent; color: var(--pink); }
.btn.ghost:hover { background: var(--pink-50); color: var(--pink-600); }
.btn.quiet { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn.quiet:hover { border-color: var(--muted); color: var(--ink); }
.btn.danger { background: #fff; border-color: #f1b8b2; color: var(--bad); }
.btn.danger:hover { background: var(--bad-50); color: var(--bad); }
.btn.sm { min-height: 36px; padding: .35rem .85rem; font-size: .86rem; }
.btn.icon-only { padding: 0; width: 44px; }
.btn.sm.icon-only { width: 36px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn .spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--pink); cursor: pointer; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label, .label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.hint { font-size: .8rem; color: var(--muted); }
.field-error { font-size: .82rem; color: var(--bad); font-weight: 500; display: flex; gap: .3rem; align-items: center; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, .editor {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); padding: .6rem .8rem; width: 100%; min-height: 44px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .editor:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(209, 10, 104, .14); }
.field [aria-invalid='true'] { border-color: var(--bad) !important; }
.field textarea { min-height: 120px; resize: vertical; }
.field input[type=file] { font: inherit; font-size: .88rem; }
.editor { min-height: 200px; overflow: auto; }
.req::after { content: ' *'; color: var(--pink); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; color: var(--ink); margin-bottom: .75rem; padding: 0; }
.check { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 .75rem; background: var(--bg); border: 1.5px solid var(--line-strong); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); color: var(--muted); font-weight: 600; }
.input-prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.error-summary { border: 2px solid var(--bad); background: var(--bad-50); border-radius: var(--r); padding: 1rem 1.25rem; }
.error-summary:focus { outline: 3px solid rgba(180, 35, 24, .35); }
.error-summary h2 { font-size: 1rem; color: var(--bad); margin: 0 0 .4rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: var(--bad); font-weight: 600; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-body { padding: 1.25rem; }
.card-media { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: var(--r) var(--r) 0 0; background: var(--pink-50); }
a.card { color: inherit; text-decoration: none; display: block; transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
a.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 2.5vw, 1.75rem); box-shadow: var(--shadow-sm); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.panel-title h2, .panel-title h3 { margin: 0; font-size: 1.05rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--pink-50); color: var(--pink-600); white-space: nowrap; }
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.bad { background: var(--bad-50); color: var(--bad); }
.badge.warn { background: var(--warn-50); color: var(--warn); }
.badge.info { background: var(--info-50); color: var(--info); }
.badge.gray { background: #eef0f6; color: var(--muted); }
.badge.navy { background: var(--navy-50); color: var(--navy); }
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--r-sm); border: 1px solid; font-size: .92rem; }
.alert .icon { margin-top: .15rem; }
.alert.ok { background: var(--ok-50); border-color: #b7e3cb; color: #0b5c34; }
.alert.bad { background: var(--bad-50); border-color: #f3c0ba; color: #8f1d14; }
.alert.info { background: var(--warn-50); border-color: #f0dc9e; color: #6b4600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--pink-50); border: 2px solid #fff; flex: none; }
.avatar.sm { width: 32px; height: 32px; }
.avatar.lg { width: 96px; height: 96px; }
.avatar.ring-ok { box-shadow: 0 0 0 2px var(--ok); }
.avatar.ring-bad { box-shadow: 0 0 0 2px var(--line-strong); opacity: .7; }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -10px; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem .45rem; align-items: center; color: var(--muted); font-size: .86rem; }
.empty { text-align: center; padding: 3rem 1.25rem; color: var(--muted); }
.empty > .icon { color: var(--line-strong); margin: 0 auto .75rem; display: block; }
.empty h3 { color: var(--ink); margin-bottom: .25rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- data table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: #fafafe; color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.table tbody tr:hover { background: #fbfbfe; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.actions { white-space: nowrap; text-align: right; }
.table .thumb-sm { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; background: var(--pink-50); }
.table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--pink); }
.table a.rowlink { color: var(--ink); font-weight: 600; text-decoration: none; }
.table a.rowlink:hover { color: var(--pink); text-decoration: underline; }
.bulkbar { position: sticky; bottom: 16px; z-index: 5; margin-top: 1rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; background: var(--navy); color: #fff; padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-lg); }
.bulkbar select { font: inherit; border-radius: 999px; border: 0; padding: .45rem .8rem; min-height: 36px; }
.pager { display: flex; gap: .5rem; align-items: center; justify-content: space-between; margin-top: 1rem; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }

/* ---------- tabs / filters ---------- */
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a { display: inline-flex; gap: .4rem; align-items: center; padding: .65rem .9rem; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current='page'] { color: var(--pink); border-color: var(--pink); }
.tabs .count { background: #eef0f6; color: var(--muted); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; font-variant-numeric: tabular-nums; }
.tabs a[aria-current='page'] .count { background: var(--pink-50); color: var(--pink); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .4rem .95rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip[aria-pressed='true'], .chip[aria-current='page'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.search { position: relative; min-width: min(280px, 100%); }
.search .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 2.4rem !important; border-radius: 999px !important; }
.toolbar select.input, .toolbar input.input { width: auto; border-radius: 999px; }

/* ---------- stats ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); display: flex; gap: .9rem; align-items: center; color: inherit; text-decoration: none; }
a.stat:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: inherit; }
.stat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-50); color: var(--pink); flex: none; }
.stat .ico.navy { background: var(--navy-50); color: var(--navy); }
.stat .ico.ok { background: var(--ok-50); color: var(--ok); }
.stat .ico.warn { background: var(--warn-50); color: var(--warn); }
.stat .value { font-size: 1.45rem; font-weight: 800; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .label { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* ---------- public site ---------- */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.site-header nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-header nav a:not(.btn) { color: var(--ink); font-weight: 500; text-decoration: none; padding: .5rem .75rem; border-radius: 999px; }
.site-header nav a:not(.btn):hover { background: var(--bg); }
.site-header nav a[aria-current='page']:not(.btn) { color: var(--pink); }
.header-actions { display: flex; gap: .5rem; align-items: center; }
.brand img { height: 42px; width: auto; }
.cart-btn { position: relative; }
.cart-btn .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.menu-toggle { display: none !important; }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex !important; }
  .site-header nav { display: none; position: absolute; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: .75rem 16px 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.open nav { display: flex; }
}
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); background: radial-gradient(900px 420px at 85% -10%, var(--pink-100) 0%, transparent 60%), radial-gradient(700px 380px at -10% 110%, var(--navy-50) 0%, transparent 60%), #fff; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 18ch; }
.hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 52ch; color: var(--muted); }
.eyebrow { display: inline-flex; gap: .4rem; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pink); margin-bottom: .75rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { padding: 1.25rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-50); color: var(--pink); margin-bottom: .75rem; }
.feature h3 { margin-bottom: .25rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.cta { background: var(--navy); background-image: radial-gradient(600px 300px at 100% 0%, rgba(245, 22, 126, .35), transparent 60%); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.25rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { color: #fff; margin: 0; }
.cta p { color: #d4d5f2; margin: .4rem 0 0; max-width: 56ch; }
.logos { display: flex; flex-wrap: wrap; gap: 2.25rem; justify-content: center; align-items: center; }
.logos img { height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter var(--t), opacity var(--t); }
.logos img:hover { filter: none; opacity: 1; }
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .88rem; background: #fff; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 0; background: radial-gradient(900px 420px at 10% 0%, var(--pink-100) 0%, transparent 60%), radial-gradient(800px 400px at 100% 100%, var(--navy-50) 0%, transparent 60%), var(--bg); }
.auth-logo { display: block; margin: 0 auto 1.25rem; height: 52px; width: auto; }
.date-pill { display: inline-flex; gap: .4rem; align-items: center; font-size: .84rem; font-weight: 600; color: var(--navy); background: var(--navy-50); border-radius: 999px; padding: .25rem .7rem; }
.date-pill.bad { color: var(--bad); background: var(--bad-50); }

/* ---------- product / shop ---------- */
.product { display: flex; flex-direction: column; height: 100%; }
.product .card-media { aspect-ratio: 4 / 3; }
.product .card-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.price.free { color: var(--ok); }
.product .actions { margin-top: auto; padding-top: .6rem; }
.media-wrap { position: relative; }
.media-badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.media-badges .badge { box-shadow: var(--shadow-sm); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; }
.qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--ink); display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: var(--bg); }
.qty output { min-width: 2.4ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .3rem 0; }
.summary-row.total { font-size: 1.1rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; }
.cart-line { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; background: var(--pink-50); flex: none; }
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .5rem; }
.sticky-side { position: sticky; top: 88px; }
.steps { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.steps .on { color: var(--ink); font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.75rem; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ok); }
.timeline li.now { color: var(--ink); font-weight: 600; }
.timeline li.now::before { background: var(--pink); box-shadow: 0 0 0 4px var(--pink-100); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .9rem; z-index: 60; display: flex; gap: .5rem; align-items: center; }
.donasi-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.donasi-hero .visual { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: url('/donasi/img/15.jpg') center / cover no-repeat; box-shadow: var(--shadow); }
@media (max-width: 860px) { .donasi-hero { grid-template-columns: 1fr; } }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 2.5rem; width: max-content; animation: scroll 36s linear infinite; }
.marquee img { height: 48px; width: auto; object-fit: contain; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- app shell (admin & juri) ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 1.1rem .85rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem; text-decoration: none; }
.sidebar .logo img { height: 36px; width: auto; }
.sidebar .group { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 .65rem; margin: .6rem 0 .2rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { display: flex; gap: .65rem; align-items: center; color: var(--text); padding: .5rem .65rem; border-radius: var(--r-sm); font-weight: 500; font-size: .93rem; text-decoration: none; min-height: 40px; }
.sidebar nav a:hover { background: var(--bg); color: var(--ink); }
.sidebar nav a[aria-current='page'] { background: var(--pink-50); color: var(--pink); font-weight: 600; }
.sidebar nav a .badge { margin-left: auto; }
.sidebar .me { margin-top: auto; display: flex; gap: .65rem; align-items: center; font-size: .85rem; padding: .85rem .5rem 0; border-top: 1px solid var(--line); }
.sidebar .me .name { font-weight: 600; color: var(--ink); line-height: 1.25; }
.main { padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2.25rem) 4rem; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.page-head .sub { color: var(--muted); margin-top: .3rem; }
.crumbs { display: flex; gap: .35rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pink); }
.mobilebar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform 220ms var(--ease); box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(15, 16, 41, .45); z-index: 40; }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .mobilebar img { height: 30px; }
}

/* ---------- picker / upload ---------- */
.pick { position: relative; display: block; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick .card { display: flex; gap: .75rem; align-items: center; padding: .7rem .8rem; cursor: pointer; box-shadow: none; transition: border-color var(--t), background var(--t); }
.pick .card .tick { margin-left: auto; color: var(--pink); opacity: 0; }
.pick input:checked + .card { border-color: var(--pink); background: var(--pink-50); }
.pick input:checked + .card .tick { opacity: 1; }
.pick input:focus-visible + .card { outline: 3px solid rgba(209, 10, 104, .35); outline-offset: 2px; }
.dropzone { display: block; border: 2px dashed var(--line-strong); border-radius: var(--r); padding: 1rem; text-align: center; cursor: pointer; background: #fff; transition: border-color var(--t), background var(--t); }
.dropzone:hover, .dropzone:focus-within { border-color: var(--pink); background: var(--pink-50); }
.dropzone img { margin: 0 auto .6rem; max-height: 220px; border-radius: var(--r-sm); object-fit: cover; }

/* ---------- jury scoring ---------- */
.scorepad { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.scorepad button { font: inherit; font-weight: 700; min-height: 44px; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; color: var(--ink); font-variant-numeric: tabular-nums; transition: background var(--t), border-color var(--t); }
.scorepad button:hover { border-color: var(--pink); }
.scorepad button[aria-pressed='true'] { background: var(--pink); border-color: var(--pink); color: #fff; }
.slide { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 900px) { .slide { grid-template-columns: 1fr; } }
.work .media { background: #0f1029; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 1rem; overflow: hidden; }
.work .media img, .work .media video { max-height: 62vh; object-fit: contain; }
.work .text { max-height: 60vh; overflow: auto; white-space: pre-wrap; line-height: 1.75; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--pink); border-radius: 999px; transition: width var(--t) var(--ease); }
.stepper { display: inline-flex; align-items: center; gap: .4rem; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { border-color: var(--pink); }
.stepper output { min-width: 3.2ch; text-align: center; font-weight: 800; color: #fff; background: var(--pink); border-radius: 999px; padding: .3rem .6rem; font-variant-numeric: tabular-nums; }
.list-item { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.list-item + .list-item { margin-top: .6rem; }
.list-item .thumb { width: 88px; height: 64px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--pink-50); }
@media (max-width: 600px) { .list-item { flex-wrap: wrap; } }
.rank { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #eef0f6; color: var(--navy); font-variant-numeric: tabular-nums; }
.rank.r1 { background: #ffe08a; color: #6b4a00; } .rank.r2 { background: #e3e6ee; } .rank.r3 { background: #f6c9a3; color: #6b3500; }
dialog { border: 0; border-radius: var(--r-lg); padding: 1.75rem; max-width: 440px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(15, 16, 41, .5); }

/* ---------- small-screen fixes ---------- */
.marquee img { max-width: 140px; }
.page-head form.toolbar { flex-wrap: nowrap; }
.page-head .search input { min-width: 260px; }
.amounts { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
@media (max-width: 900px) { .shell { grid-template-rows: auto 1fr; align-content: start; } }
@media (max-width: 600px) {
  .cart-line { flex-wrap: wrap; }
  .cart-line .grow { flex-basis: calc(100% - 80px); }
  .cart-line .qty { margin-left: 0; }
  .cart-line > b.num { margin-left: auto; }
  .cart-line > .qty + b.num { margin-left: auto; min-width: 0 !important; }
  .page-head form.toolbar { flex-wrap: wrap; }
  .page-head .search { flex: 1; }
}

/* ---------- filter bar (admin lists) ---------- */
.page-head .toolbar { flex-wrap: nowrap; }
.filterbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .75rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.filterbar .search { min-width: min(260px, 100%); }
.filterbar .search input, .filterbar select.input, .filterbar input[type=date] { border-radius: var(--r-sm) !important; min-height: 42px; }
.filterbar .search input { padding-left: 2.3rem !important; }
.filterbar select.input { width: auto; max-width: 220px; }
.filterbar .daterange { display: flex; align-items: center; gap: .4rem; }
.filterbar .daterange input { width: auto; padding: .45rem .6rem; }
.filterbar .btn { min-height: 42px; border-radius: var(--r-sm); }
.filterbar .presets { flex-basis: 100%; gap: .35rem; }
.chip.sm { min-height: 32px; padding: .2rem .75rem; font-size: .8rem; }
.row-actions { display: inline-flex; gap: .4rem; justify-content: flex-end; flex-wrap: nowrap; }
.card-actions { display: flex; gap: .5rem; align-items: center; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line); }
.card-actions .end { margin-left: auto; }
@media (max-width: 600px) {
  .page-head .toolbar { flex-wrap: wrap; }
  .filterbar .daterange { flex-basis: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); }
  .filterbar .daterange input { flex: 1; min-width: 0; width: 100%; }
  .filterbar .filter-select, .filterbar select.input { flex: 1; max-width: none; }
}

/* ---------- custom selects & dates (Safari ignores height/padding on native controls) ---------- */
select.input, .field select, .bulkbar select {
  -webkit-appearance: none; appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b5d78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px;
  padding-right: 2.4rem !important; cursor: pointer; line-height: 1.3;
}
.bulkbar select { background-color: #fff; color: var(--ink); }
input.input[type=date], .field input[type=date] { -webkit-appearance: none; appearance: none; min-height: 42px; line-height: 1.3; background: #fff; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
input[type=date]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

/* ---------- filter bar layout ---------- */
.filterbar { gap: .5rem; padding: .6rem; }
.filterbar .search { flex: 1 1 280px; max-width: 460px; }
.filterbar .filter-select select.input { width: auto; min-width: 170px; max-width: 240px; font-weight: 500; color: var(--ink); }
.filterbar .filter-select select.input:hover, .filterbar .daterange input:hover { border-color: var(--muted); }
.filterbar .daterange input { min-width: 150px; }
.filterbar > .btn.secondary { margin-left: auto; }
.filterbar .search input, .filterbar select.input, .filterbar input[type=date], .filterbar .btn { min-height: 42px; height: 42px; }
.filterbar select.input[data-on], .filterbar input[type=date][data-on] { border-color: var(--navy); background-color: var(--navy-50); }
@media (max-width: 600px) {
  .filterbar .search { max-width: none; flex-basis: 100%; }
  .filterbar .filter-select { flex: 1 1 calc(50% - .25rem); }
  .filterbar .filter-select select.input { min-width: 0; max-width: none; width: 100%; }
  .filterbar .daterange input { min-width: 0; }
  .filterbar > .btn.secondary { margin-left: 0; flex: 1; }
}

/* ---------- date presets + custom range (no empty native date boxes on screen) ---------- */
.filterbar .presets { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding-top: .15rem; }
.custom-range { display: contents; }
.custom-range > summary { list-style: none; }
.custom-range > summary::-webkit-details-marker { display: none; }
.custom-range[open] > summary { background: var(--navy-50); border-color: var(--navy); color: var(--navy); }
.custom-range[open] > summary[aria-current='page'] { background: var(--navy); color: #fff; }
.custom-range .daterange { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .35rem; padding: .6rem; background: var(--bg); border-radius: var(--r-sm); }
.custom-range .daterange input { width: auto; min-width: 160px; height: 38px; min-height: 38px; }
.custom-range .daterange .btn { height: 38px; min-height: 38px; }
@media (max-width: 600px) {
  .custom-range .daterange input { flex: 1; min-width: 0; }
  .custom-range .daterange .btn { flex-basis: 100%; }
}

/* ---------- competition form ---------- */
.sec-title { font-size: 1rem; margin: 0; }
.choice-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer; transition: border-color var(--t), background var(--t); }
.choice:hover span { border-color: var(--muted); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid rgba(209, 10, 104, .35); outline-offset: 2px; }
.new-cat { margin-top: .5rem; max-width: 420px; }
.editor:empty::before { content: attr(data-placeholder); color: var(--muted); }
.tick-circle { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; margin-left: auto; transition: background var(--t), border-color var(--t); }
.pick input:checked + .card .tick-circle { background: var(--pink); border-color: var(--pink); color: #fff; }
.pick .card .grow { display: flex; flex-direction: column; min-width: 0; }
.jury-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); max-height: 420px; overflow-y: auto; padding: 2px; }
.pick.is-disabled .card { opacity: .45; cursor: not-allowed; }
.pick.is-disabled input { cursor: not-allowed; }

/* ---------- filter bar v2: inline search button, quiet reset ---------- */
.filterbar { align-items: center; }
.filterbar .search { position: relative; }
.filterbar .search input { padding-right: 4.6rem !important; }
.search-go { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: calc(100% - 8px); padding: 0 .9rem; border: 0; border-radius: 6px; background: var(--navy); color: #fff; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.search-go:hover { background: var(--navy-900); }
.reset-link { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: .4rem .5rem; border-radius: var(--r-sm); }
.reset-link:hover { color: var(--bad); background: var(--bad-50); }
.filterbar .presets { border-top: 1px dashed var(--line); padding-top: .55rem; margin-top: .1rem; }

/* product card: small add-to-cart icon button on the left, "Lihat detail" fills the rest */
.product-actions { display: flex; gap: .5rem; align-items: stretch; }
.product-actions .grow { flex: 1; min-width: 0; }
.product-actions .btn.icon-only { width: 48px; min-height: 44px; }

/* tabs: horizontal swipe on small screens, never a visible scrollbar (no vertical overflow from the underline) */
.tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { margin-bottom: 0; border-bottom: 0; box-shadow: inset 0 -2px 0 transparent; }
.tabs a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--pink); }

/* ---------- account dropdown (public header) ---------- */
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu .caret { transform: rotate(90deg); transition: transform var(--t) var(--ease); }
.account-menu[open] .caret { transform: rotate(-90deg); }
.account-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 30; display: flex; flex-direction: column; }
.account-pop a, .account-pop button { display: flex; gap: .6rem; align-items: center; padding: .6rem .7rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; min-height: 40px; }
.account-pop a:hover, .account-pop button:hover { background: var(--bg); color: var(--ink); }
.account-pop a[aria-current='page'] { color: var(--pink); background: var(--pink-50); }
.account-pop form { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.account-pop button { color: var(--bad); }
/* account button sits right of the cart; on phones it collapses to an icon */
@media (max-width: 760px) {
  .header-actions .lbl, .account-menu .caret { display: none; }
  .account-menu > summary, .login-btn { width: 44px; min-height: 44px; padding: 0; }
}
dl.kv.kv-fixed { grid-template-columns: minmax(130px, 200px) 1fr; }
@media (max-width: 480px) { dl.kv.kv-fixed { grid-template-columns: 1fr; gap: .1rem; } dl.kv.kv-fixed dd { margin-bottom: .5rem; } }
.timeline li.bad { color: var(--bad); }
.timeline li.bad::before { background: var(--bad); }
.timeline li b { color: var(--ink); font-weight: 600; }
.timeline li.bad b { color: var(--bad); }
