/* Pikaman: hitam pekat dari logo sebagai warna utama, netral abu dingin untuk permukaan.
   Oranye hanya hidup di logo, tidak dipakai di antarmuka. Status memakai warna semantik. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #111315;
  --ink-2: #2A2E33;
  --muted: #555B65;
  --line: #DDE1E6;
  --line-soft: #EBEEF1;
  --bg: #EEF0F2;
  --soft: #F5F6F8;
  --field: #8A9099;
  --ok-bg: #E6F4EA; --ok: #146C2E;
  --warn-bg: #FFF3CD; --warn: #7A4D00;
  --info-bg: #E7EFFA; --info: #1A4D8F;
  --muted-bg: #ECEFF2; --muted-ink: #424851;
  --red: #B42318; --red-bg: #FDECEC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.55; }
h1, h2, h3, .h { font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 17px; margin: 0; }
h3 { font-size: 15px; margin: 0; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--muted); }
img { max-width: 100%; }
code { font-size: 13px; word-break: break-all; }

button:not(:disabled), label, select, summary, input[type=checkbox], input[type=radio] { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.file-btn:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible, .auth-side :focus-visible, .lightbox :focus-visible, .alert.accent :focus-visible, .sb-link[aria-current="page"]:focus-visible { outline-color: #FFFFFF; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sr:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 60; background: #FFFFFF; padding: 10px 14px; border-radius: 10px; }
[hidden] { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cols > * { flex: 1 1 340px; min-width: 0; }
.cols > .wide { flex: 2 1 480px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.grid-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.panel { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; }
.pad { padding: 18px; }
.panel > .head { padding: 16px 18px; }
.divider { border-top: 1px solid var(--line-soft); }
.empty { border: 1px dashed var(--field); border-radius: 12px; padding: 22px 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--field); background: #FFFFFF; color: var(--ink); text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn-pri:hover { background: var(--ink-2); border-color: var(--ink-2); color: #FFFFFF; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { border-color: var(--line); }
.btn-warn { border-color: var(--red); color: var(--red); }
.btn-warn:hover { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.btn-light { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
.btn-on-dark { background: transparent; border-color: #A9AFB8; color: #FFFFFF; }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; border-color: #FFFFFF; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--muted-bg); border-color: var(--line); color: var(--muted-ink); transform: none; }
.icon-btn { width: 44px; padding: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 99px; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--field); background: #FFFFFF; color: var(--ink); text-decoration: none; }
.chip:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }
.chip[aria-current="true"], .chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag.muted { background: var(--muted-bg); color: var(--muted-ink); }
.tag.accent { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tag.dark { background: var(--ink); color: #FFFFFF; }
.tag.red { background: var(--red-bg); color: var(--red); }

.field { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink); background: #FFFFFF; }
.field:hover { border-color: var(--ink-2); }
textarea.field { padding: 10px 12px; resize: vertical; min-height: 88px; }
.field[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.field:disabled { background: var(--muted-bg); }
.lbl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl > span:first-child, .lbl-t { font-weight: 600; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; }
.err { color: var(--red); font-size: 13px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.error { background: var(--red-bg); color: var(--red); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert.note { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.alert.accent { background: var(--ink); color: #FFFFFF; }
.alert.accent a:not(.btn) { color: #FFFFFF; }
.alert.accent .btn-pri { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
.alert.accent .btn-pri:hover { background: var(--soft); }
.alert .btn { flex: none; }

.table-wrap { overflow-x: auto; position: relative; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 10px 12px; background: var(--soft); white-space: nowrap; }
.tbl td { padding: 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr.hl td { background: var(--info-bg); }
.tbl .num { text-align: right; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: hidden; }
.stat { padding: 16px 20px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: -1px; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 2px; font-family: 'Outfit', sans-serif; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 32px; }
.kv > div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; word-break: break-word; }
.kv .k { color: var(--muted); font-size: 13px; }

.list > * { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.list > *:first-child { border-top: 0; }

.bar { height: 8px; background: var(--muted-bg); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .2s; }
.bar.alt > span { background: var(--muted); }

/* ---------- shell aplikasi ---------- */
.shell { padding: 16px; }
.shell-in { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; min-height: calc(100vh - 32px); }
.sb { flex: 0 0 248px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; background: var(--soft); border-radius: 16px 0 0 16px; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); }
.sb-logo { width: 40px; height: 40px; border-radius: 8px; flex: none; object-fit: contain; border: 1px solid var(--line); background: #FFFFFF; }
.sb-ini { width: 40px; height: 40px; border-radius: 8px; flex: none; background: var(--ink); color: #FFFFFF; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sb-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-nav { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.sb-group { display: flex; flex-direction: column; gap: 2px; }
.sb-label { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 10px 4px; }
.sb-link { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.sb-link:hover { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sb-link[aria-current="page"] { background: var(--ink); color: #FFFFFF; font-weight: 600; box-shadow: none; }
.sb-link[aria-current="page"] .tag.dark { background: #FFFFFF; color: var(--ink); }
.sb-link svg { flex: none; }
.sb-link .tag { margin-left: auto; }
.sb-foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 14px 6px 0; }
.sb-toggle { display: none; }
.main { flex: 999 1 560px; min-width: 0; padding: 20px 24px 96px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head .ic { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }

@media (min-width: 900px) {
  .sb { position: sticky; top: 16px; align-self: flex-start; max-height: calc(100vh - 32px); overflow-y: auto; }
}
@media (max-width: 899px) {
  .shell { padding: 0; }
  .shell-in { border-radius: 0; border: 0; min-height: 100vh; }
  .sb { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; position: sticky; top: 0; z-index: 20; padding: 10px 12px; }
  .sb-brand { padding: 0; border-bottom: 0; }
  .sb[data-open="true"] .sb-brand { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .sb[data-open="true"] { max-height: 100vh; overflow-y: auto; }
  .sb-toggle { display: inline-flex; }
  .sb[data-open="false"] .sb-nav, .sb[data-open="false"] .sb-foot { display: none; }
  .main { padding: 16px 16px 80px; }
}

/* ---------- tab detail client ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- galeri studio ---------- */
.step { display: inline-block; min-width: 1.4em; color: var(--muted); font-variant-numeric: tabular-nums; }
.code-box { background: var(--soft); border: 1px solid var(--line-soft); padding: 12px; border-radius: 8px; min-width: 0; }
.msg-box { white-space: pre-wrap; word-break: break-word; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 8px; padding: 12px 14px; font-size: 14px; max-height: 220px; overflow: auto; }
.pick-summary { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--soft); }
.photos-sm { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.sort-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.sort-grid .btn { align-self: flex-start; }
.file-list { columns: 2 220px; margin: 0 0 12px; padding-left: 20px; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; font-size: 14px; }
.how-list li { color: var(--muted); }
.how-list strong { color: var(--ink); display: block; }

/* ---------- halaman publik ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { padding: 10px 12px; text-decoration: none; font-weight: 500; }
.site-toggle { display: none; }
.mark { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.14em; }
@media (max-width: 799px) {
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; }
  .site-head[data-open="true"] .site-nav { display: flex; }
  .site-toggle { display: inline-flex; }
}
.section { padding: 72px 0; }
.dark { background: var(--ink); color: #FFFFFF; }
.dark .muted, .dark .dim { color: #C9CED6; }
.dark .panel .muted, .dark .panel .hint { color: var(--muted); }
.price-big { font-family: 'Outfit', sans-serif; font-size: 44px; font-weight: 700; line-height: 1; }
.price-pick { border: 2px solid var(--ink); }
details summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-weight: 600; font-size: 17px; min-height: 44px; }
details summary::-webkit-details-marker { display: none; }
details { border-top: 1px solid var(--line); }
details.panel { border-top: 1px solid var(--line); }
details[open] .plus { transform: rotate(45deg); }

.auth { min-height: 100vh; padding: 16px; display: flex; }
.auth-in { flex: 1 1 auto; max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; }
.auth-main { flex: 1 1 520px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.auth-side { flex: 1 1 360px; min-width: 0; background: var(--ink); color: #FFFFFF; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.auth-form { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 899px) { .auth-side { display: none; } }

/* ---------- galeri client ---------- */
.gal-body { background: #FFFFFF; }
.gal-head { border-bottom: 1px solid var(--line); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--muted-bg); border: 1px solid var(--line); }
/* Foto terpilih: cincin hitam dengan garis putih di dalamnya, tetap terlihat di foto gelap maupun terang. */
.photo.sel::after { content: ''; position: absolute; inset: 0; border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px #FFFFFF; border-radius: inherit; pointer-events: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.photo .open { position: absolute; inset: 0; border: 0; background: transparent; padding: 0; }
.photo .pick { position: absolute; top: 6px; right: 6px; z-index: 1; min-height: 40px; min-width: 64px; padding: 0 10px; border-radius: 99px; font: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--field); background: #FFFFFF; color: var(--ink); }
.photo .pick:hover { border-color: var(--ink); }
.photo.sel .pick, .photo .pick.is-static { background: var(--ink); border-color: #FFFFFF; color: #FFFFFF; }
.photo .pick.is-static { display: inline-flex; align-items: center; }
.photo .name { pointer-events: none; position: absolute; left: 6px; bottom: 6px; z-index: 1; background: #FFFFFF; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.lightbox { position: fixed; inset: 0; background: rgba(12, 13, 15, 0.96); display: flex; flex-direction: column; z-index: 40; color: #FFFFFF; }
.lightbox .stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox .nav { flex: none; width: 48px; height: 48px; border-radius: 99px; border: 1px solid #A9AFB8; background: transparent; color: #FFFFFF; font-size: 22px; }
.lightbox .nav:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.sticky-bar { position: sticky; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--line); padding: 12px 16px; z-index: 5; }

.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; z-index: 50; pointer-events: none; }
.toast > div { pointer-events: auto; background: var(--ink); color: #FFFFFF; border-radius: 10px; padding: 10px 16px; max-width: 520px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
  .bar > span { transition: none; }
}
