/* Sandingan 2.0 — tambahan komponen di atas brand.css + portal.css */

/* status dengan titik warna */
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--paper-2); color: var(--ink-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.status-ok { background: var(--ok-tint); color: var(--ok); }
.status-warn { background: var(--warn-tint); color: var(--warn); }
.status-off { background: var(--bad-tint); color: var(--bad); }
.tier-badge.tier-free { background: var(--paper-3); color: var(--ink-2); }

/* jebakan bot: tidak terlihat manusia, tetap ada di DOM untuk bot */
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* skor risiko */
.risk { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 600; }
.risk-bar { position: relative; width: 54px; height: 6px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.risk-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--ok); }
.risk-mid .risk-bar i { background: var(--warn); }
.risk-high .risk-bar i { background: var(--bad); }
.signals { display: flex; flex-wrap: wrap; gap: 4px; }
.signals span { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.signals span.hard { background: var(--bad-tint); color: var(--bad); }

/* pasangan kunci-nilai */
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 20px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* paginasi Laravel */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.pager .row { gap: 6px; }

/* halaman modul yang belum rilis */
.soon { max-width: 560px; margin: 8vh auto; text-align: center; }
.soon h1 { font: 500 clamp(30px, 4vw, 40px)/1.1 var(--serif); letter-spacing: -.02em; margin-top: 10px; }
.soon p { color: var(--muted); margin-top: 10px; }

/* kartu wedding di sidebar client */
.wd-card { display: grid; gap: 4px; margin: 0 0 12px; padding: 14px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); text-decoration: none; }
.wd-card b { font: 500 20px/1.15 var(--serif); letter-spacing: -.01em; }
.wd-card span { font-size: 12.5px; color: var(--muted); }
.wd-switch { margin-top: 6px; }
.wd-switch select { width: 100%; min-height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--white); font: inherit; font-size: 13px; padding: 0 8px; }

/* langkah onboarding */
.next-steps { display: grid; gap: 10px; }
.next-steps > a, .next-steps > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.next-steps .ic { width: 22px; height: 22px; color: var(--janur-ink); flex: none; }
.next-steps > * > div { display: grid; gap: 2px; min-width: 0; }
.next-steps b { display: block; font-size: 14.5px; }
.next-steps > a:hover { border-color: var(--line-2); background: #FDFDFA; }
.next-steps small { color: var(--muted); font-size: 13px; }
.next-steps .done { opacity: .6; }

.qr-box { display: grid; place-items: center; width: 196px; height: 196px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.qr-box canvas, .qr-box img, .qr-box svg { width: 100%; height: 100%; image-rendering: pixelated; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.codes span { padding: 10px; border-radius: 10px; background: var(--paper-2); text-align: center; letter-spacing: .06em; }

details.inline-form > summary { cursor: pointer; list-style: none; }
details.inline-form > summary::-webkit-details-marker { display: none; }
details.inline-form[open] > summary { margin-bottom: 12px; }

/* situs: 4 paket */
.px.px-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.px.px-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .px.px-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .px.px-4 { grid-template-columns: 1fr; } }

/* office: template */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.tpl-card { display: grid; gap: 6px; padding: 12px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.tpl-card:hover { border-color: var(--line-2); }
.tpl-img { display: block; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: 999px 999px 12px 12px; background: var(--paper-2); }
.tpl-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sec-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sec-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--paper-2); }
.pal-row { margin-top: 8px; }
.pal-row input[type=color] { width: 38px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; }
.mb-3 { margin-bottom: 24px; }

/* situs: blog & perbandingan */
.blog-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.blog-item a { text-decoration: none; display: grid; gap: 6px; }
.blog-item h2 { font: 500 28px/1.15 var(--serif); letter-spacing: -.015em; }
.blog-item a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; }
.table.cmp td .ic { color: var(--ok); width: 18px; height: 18px; }
.table.cmp th[scope=row] { font-weight: 500; color: var(--ink-2); }

/* client: pilih template */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.pick { position: relative; display: grid; gap: 6px; padding: 12px; border-radius: 18px; background: var(--white); border: 1.5px solid var(--line); cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--janur-tint); }
.pick-img { display: block; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: 999px 999px 12px 12px; background: var(--paper-2); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.action-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 0; background: linear-gradient(transparent, var(--paper-2) 30%); }
.seg.seg-4 label span { padding: 0 12px; }
.ed-music-pane { margin-top: 10px; }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { flex: 1; min-width: 0; }

/* input file & select kecil (tamu, bukti transfer) */
input[type=file] { font: inherit; font-size: 13.5px; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--white); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 8px 16px; margin-right: 12px; cursor: pointer; transition: border-color .15s; }
input[type=file]::file-selector-button:hover { border-color: var(--ink); }
select.input-sm { padding-right: 34px; }
.choice-card:has(input:disabled) { opacity: .62; cursor: default; box-shadow: none; }
.proof-img { display: block; }

/* utilitas: isi melebar di baris flex (task, timeline) */
.grow { flex: 1; min-width: 0; }

/* status netral yang tetap terbaca di atas latar kertas */
.badge-muted { background: var(--white); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
/* fieldset dipakai untuk mengunci form (disabled), bukan untuk bingkai */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset[disabled] .input { background: var(--paper-2); color: var(--ink-2); }
.doc-missing { display: grid; place-items: center; height: 120px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 13px; }
/* utilitas jarak harus menang atas ".card + .card { margin-top: 0 }" di portal.css */
.card.mt-1 { margin-top: 8px; } .card.mt-2 { margin-top: 16px; } .card.mt-3 { margin-top: 24px; } .card.mt-4 { margin-top: 36px; }

/* ---------- marketplace vendor ---------- */
.vendor-cover { position: relative; aspect-ratio: 16 / 7; border-radius: 16px; background: linear-gradient(135deg, var(--janur-tint), var(--paper-2)) center / cover no-repeat; }
.vendor-logo { position: absolute; left: 18px; bottom: -26px; width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: var(--white); box-shadow: 0 0 0 4px var(--white), 0 8px 24px rgba(30,42,33,.12); font: 500 26px/1 var(--serif); color: var(--ink); }
.vendor-logo img { width: 100%; height: 100%; object-fit: cover; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pf-item { margin: 0; padding: 12px; }
.pf-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.vd-card { display: block; overflow: hidden; border-radius: 20px; background: var(--white); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.vd-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30,42,33,.10); }
.vd-card .vd-img { aspect-ratio: 4 / 3; background: var(--paper-2) center / cover no-repeat; }
.vd-card .vd-body { padding: 14px 16px 16px; }
.vd-card h3 { font: 500 20px/1.2 var(--serif); margin: 4px 0 6px; }
.vd-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.vd-price { margin-top: 10px; font-weight: 600; }
.vd-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--janur-ink); font-weight: 600; }
.vd-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vd-filters .input { width: auto; min-width: 160px; }
.vd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); text-decoration: none; background: var(--white); }
.vd-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vd-hero { position: relative; aspect-ratio: 21 / 8; border-radius: 24px; background: linear-gradient(135deg, var(--janur-tint), var(--paper-2)) center / cover no-repeat; }
.vd-hero .vendor-logo { width: 88px; height: 88px; border-radius: 24px; left: 28px; bottom: -36px; font-size: 34px; }
.vd-head { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.vd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.vd-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.vd-service { padding: 18px 0; border-top: 1px solid var(--line); }
.vd-service:first-child { border-top: 0; padding-top: 0; }
.vd-service ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.vd-review { padding: 16px 0; border-top: 1px solid var(--line); }
.stars { color: var(--janur); letter-spacing: 1px; }
label.is-loading { opacity: .6; pointer-events: none; }
@media (max-width: 640px) { .vd-hero { aspect-ratio: 16 / 9; border-radius: 18px; } .vd-hero .vendor-logo { width: 68px; height: 68px; left: 16px; bottom: -28px; } }
.vd-name { font: 500 clamp(30px, 4vw, 44px)/1.1 var(--serif); margin: 8px 0 4px; letter-spacing: -.01em; }
.vd-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.vd-layout .card + .card { margin-top: 0; }
.vd-review:first-of-type { border-top: 0; }
@media (max-width: 900px) { .vd-layout { grid-template-columns: 1fr; } .vd-filters .input { flex: 1 1 140px; min-width: 0; } }
@media (max-width: 640px) { .vd-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } .vd-head > div:last-child { width: 100%; } .vd-head > div:last-child .btn { width: 100%; } .vd-head > div:last-child p { text-align: left !important; } }
/* Marketplace 5d: percakapan, quotation, booking */
.text-warn { color: var(--warn); }
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-panel.sheet-wide { width: min(720px, 100%); }
.thread { display: flex; flex-direction: column; gap: 14px; max-height: 560px; overflow-y: auto; padding: 4px 2px; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg-me { align-self: flex-end; align-items: flex-end; }
.msg-them { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.msg-me .msg-bubble { background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg-them .msg-bubble { background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.msg-sys { align-self: center; text-align: center; max-width: 90%; font-size: 12.5px; color: var(--ink-2); background: var(--janur-tint); padding: 8px 14px; border-radius: 12px; display: flex; flex-direction: column; }
.msg-sys .msg-meta { margin-top: 2px; }
.msg-form { display: flex; gap: 10px; align-items: flex-end; }
.msg-form textarea { flex: 1; resize: vertical; min-height: 46px; }
.quote-card { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--white); }
.quote-card.is-old { opacity: .62; }
.quote-card .quote-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.quote-items td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.quote-items td.num { text-align: right; white-space: nowrap; padding-left: 12px; }
.quote-items .quote-total td { font-weight: 700; font-size: 16px; border-bottom: 0; padding-top: 12px; }
.q-rows { display: grid; gap: 8px; }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 180px); gap: 8px; }
.q-total { text-align: right; font-size: 15px; } .q-total b { font-size: 20px; margin-left: 8px; }
.inq-row { text-decoration: none; color: inherit; align-items: flex-start; }
.inq-row:hover { background: var(--paper); }
.inq-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: none; background: transparent; }
.inq-dot.is-on { background: var(--janur); }
.bk-card { display: flex; gap: 18px; align-items: flex-start; }
.bk-card + .bk-card { margin-top: 0; }
.bk-date { flex: none; width: 64px; text-align: center; border-radius: 16px; background: var(--paper-2); padding: 10px 4px; }
.bk-date b { display: block; font: 500 28px/1 var(--serif); }
.bk-date span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.bk-name { font: 500 20px/1.25 var(--serif); margin: 0; }
.bk-cancel summary { list-style: none; } .bk-cancel summary::-webkit-details-marker { display: none; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { font-size: 30px; line-height: 1; color: var(--line-2); cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--janur-ink); }
.rating-input input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 640px) { .q-row { grid-template-columns: 1fr 70px; } .q-row .input-group { grid-column: 1 / -1; } .msg { max-width: 92%; } .bk-date { width: 54px; } }
.vendor-logo.vendor-logo-sm, .vendor-logo.vendor-logo-md { position: static; flex: none; width: 44px; height: 44px; border-radius: 14px; font-size: 18px; box-shadow: none; border: 1px solid var(--line); }
.vendor-logo.vendor-logo-md { width: 60px; height: 60px; border-radius: 18px; font-size: 24px; }
/* Dashboard Office: antrean & funnel */
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.todo-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--warn-tint); color: var(--ink); text-decoration: none; }
.todo-item b { font: 500 26px/1 var(--serif); color: var(--warn); }
.todo-item span { font-size: 13px; line-height: 1.35; }
.todo-item:hover { box-shadow: 0 0 0 2px var(--warn) inset; }
.funnels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.funnel { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.funnel-name { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.funnel-step { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.funnel-step:first-of-type { border-top: 0; }
.funnel-step b { font-size: 15px; }
.funnel-step em { font-style: normal; font-size: 12px; color: var(--ok); min-width: 44px; text-align: right; }
