/* =========================================================
   Panel Admin — Undangan Digital
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #f4f5f2; --panel: #ffffff; --ink: #1d2420; --muted: #66706a; --faint: #9aa29d;
  --line: #e2e5e0; --line-strong: #cfd4ce;
  --brand: #1f5c4a; --brand-ink: #ffffff; --brand-soft: #e5efe9; --brand-dark: #164536;
  --danger: #b4423b; --danger-soft: #fbeceb; --warn: #9a6a12; --warn-soft: #fbf2df; --ok: #2b7a52; --ok-soft: #e4f3ea;
  --r-sm: 6px; --r: 10px; --r-lg: 16px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 248px;
}
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
svg { flex: none; }

/* ---------------- Auth ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth__art { display: none; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px 22px; }
.auth__card { width: 100%; max-width: 380px; }
.auth__card h1 { font-size: 1.6rem; margin: 18px 0 6px; }
.auth__card > p { color: var(--muted); margin: 0 0 26px; }
.auth__switch { margin-top: 18px; color: var(--muted); text-align: center; }
@media (min-width: 900px) {
  .auth { grid-template-columns: 1.1fr 1fr; }
  .auth__art {
    display: flex; flex-direction: column; justify-content: space-between; padding: 48px; color: #f1f5f2;
    background: radial-gradient(120% 90% at 10% 0%, #2f7a62 0%, #1f5c4a 45%, #123a2e 100%);
    position: relative; overflow: hidden;
  }
  .auth__art h2 { font-size: 2.4rem; font-weight: 600; max-width: 14ch; letter-spacing: -.01em; }
  .auth__art p { max-width: 38ch; opacity: .85; }
  .auth__cards { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); display: flex; gap: 16px; }
  .auth__cards div { width: 150px; height: 260px; border-radius: 80px 80px 12px 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
  .auth__cards div:nth-child(2) { transform: translateY(40px); background: rgba(201,164,92,.25); }
  .auth__cards div:nth-child(3) { transform: translateY(-30px); border-radius: 12px; }
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; color: inherit; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.auth__art .logo__mark { background: #fff; color: var(--brand); }

/* ---------------- Shell ---------------- */
.shell { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: #fbfbf9; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; transform: translateX(-100%); transition: transform .25s ease;
}
.side.open { transform: none; box-shadow: 20px 0 60px -20px rgba(0,0,0,.25); }
.side .logo { padding: 6px 10px 22px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu__group { font-size: .75rem; color: var(--faint); font-weight: 600; padding: 18px 12px 6px; }
.menu a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.menu a:hover { background: #eff1ed; color: var(--ink); }
.menu a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.menu svg { width: 18px; height: 18px; }
.side__user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.side__user b { display: block; font-size: .88rem; line-height: 1.2; }
.side__user span { font-size: .76rem; color: var(--muted); }
.side__user button { margin-left: auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar--sm { width: 32px; height: 32px; font-size: .8rem; }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 25; display: none; }
.scrim.show { display: block; }

.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  background: rgba(244,245,242,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.top h1 { font-size: 1.1rem; font-weight: 700; }
.top__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.burger { display: inline-grid; }
.content { padding: 22px 18px 60px; max-width: 1240px; }

@media (min-width: 1024px) {
  .side { transform: none; }
  .scrim { display: none !important; }
  .shell { padding-left: var(--side); }
  .top .burger { display: none; }
  .top { padding: 16px 32px; }
  .content { padding: 28px 32px 60px; }
}

/* ---------------- Komponen ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--panel); cursor: pointer;
  font-weight: 600; font-size: .88rem; text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: #f3f4f1; }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--danger { color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); border-color: #eab9b5; }
.btn--danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger-solid:hover { background: #9a3731; }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: #eceee9; }
.btn--sm { height: 32px; padding: 0 12px; font-size: .82rem; }
.btn--icon { width: 36px; padding: 0; }
.btn--block { width: 100%; height: 44px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card__head h2, .card__head h3 { font-size: 1rem; }
.card__head .muted { margin-left: auto; }
.card__body { padding: 20px; }
.card__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbf9; border-radius: 0 0 var(--r) var(--r); }

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mt { margin-top: 18px; }
.mt-sm { margin-top: 10px; }
.mb { margin-bottom: 16px; }
.m-0 { margin: 0; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 200px; }
.intro { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--tight { gap: 8px; }
.row--xs { gap: 4px; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid--tight { gap: 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .label { font-weight: 600; font-size: .84rem; }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,92,74,.14); }
.card__tool { margin-left: auto; max-width: 240px; height: 34px; }
.card__tool--sm { max-width: 180px; }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: #f3f4f1; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.input-group input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 36px; height: 20px; border-radius: 999px; background: #cdd2cc; position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }

.alert { padding: 10px 14px; border-radius: var(--r-sm); font-size: .86rem; margin-bottom: 14px; }
.alert--err { background: var(--danger-soft); color: var(--danger); }
.alert--info { background: var(--brand-soft); color: var(--brand-dark); }

/* Tag / status */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: #eef0ec; color: var(--muted); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--published, .tag--hadir, .tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--draft, .tag--ragu { background: var(--warn-soft); color: var(--warn); }
.tag--archived, .tag--tidak { background: var(--danger-soft); color: var(--danger); }
.tag--plain::before { display: none; }
.tag--brand { background: var(--brand-soft); color: var(--brand-dark); }

/* Statistik */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 18px 20px; }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 500; }
.stat b { display: block; font-size: 1.7rem; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); }

/* Tabel */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 600; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fafbf9; white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; white-space: nowrap; }
.table tr.is-muted { opacity: .55; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* Kartu undangan */
.inv-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.inv { overflow: hidden; display: flex; flex-direction: column; }
.inv__thumb { position: relative; height: 150px; display: flex; align-items: flex-end; padding: 14px 16px; color: #fff; background-size: cover; background-position: center; }
.inv__thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65)); }
.inv__thumb > * { position: relative; }
.inv__thumb .tag { position: absolute; top: 12px; left: 12px; }
.inv__thumb h3 { font-size: 1.05rem; font-weight: 700; }
.inv__tpl { opacity: .85; }
.inv__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.inv__meta { display: flex; gap: 14px; color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.inv__meta span { display: inline-flex; align-items: center; gap: 5px; }
.inv__meta svg { width: 14px; height: 14px; }
.inv__foot { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.inv__foot .btn:first-child { flex: 1; }

/* Pilih template */
.tpl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tpl { position: relative; cursor: pointer; border-radius: var(--r); border: 2px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .15s; text-align: left; padding: 0; }
.tpl:hover { border-color: var(--line-strong); }
.tpl input { position: absolute; opacity: 0; }
.tpl:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,92,74,.14); }
.tpl__swatch { height: 120px; display: grid; place-items: center; position: relative; }
.tpl__swatch i { display: block; width: 58px; height: 84px; border-radius: 30px 30px 6px 6px; border: 2px solid; }
.tpl__dots { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 4px; }
.tpl__dots span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); }
.tpl__info { padding: 12px 14px; }
.tpl__info b { display: flex; align-items: center; gap: 6px; }
.tpl__info p { margin: 4px 0 8px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.tpl-row { display: flex; align-items: center; gap: 12px; }
.tpl-row__palette { display: flex; }
.tpl-row__palette span { display: block; width: 18px; height: 28px; }
.premium { font-size: .66rem; font-weight: 700; color: #8a6414; background: #f6ecd2; padding: 1px 7px; border-radius: 999px; }

/* Editor */
.editor { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1280px) { .editor { grid-template-columns: minmax(0, 1fr) 380px; } }
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: thin; }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tabs button:hover { color: var(--ink); }
.pane[hidden] { display: none; }
.pane h3 { font-size: .95rem; margin: 6px 0 14px; }
.form-title { font-size: 1rem; margin-bottom: 4px; }
.form-lead { margin: 0 0 16px; }
.field-switch { margin: -6px 0 14px; }
.audio-preview { width: 100%; margin-top: 6px; }
.input--xs { height: 32px; width: 140px; }
.section-sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.repeat { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; background: #fcfcfb; }
.repeat__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.repeat__head b { font-size: .88rem; }
.repeat__head .spacer + * { margin-left: auto; }

.uploader { display: flex; gap: 12px; align-items: center; }
.uploader__preview { width: 72px; height: 72px; border-radius: var(--r-sm); background: #eef0ec center / cover no-repeat; border: 1px dashed var(--line-strong); flex: none; display: grid; place-items: center; color: var(--faint); }
.uploader__preview.has-image { border-style: solid; }
.uploader__preview svg { width: 22px; height: 22px; }
.uploader__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.media-item { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: #e9ece7; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .yt { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; font-size: .75rem; padding: 8px; color: var(--muted); }
.media-item__bar { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.media-item__bar button { width: 26px; height: 26px; border-radius: 6px; border: 0; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; }
.media-item__bar svg { width: 14px; height: 14px; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 24px; text-align: center; color: var(--muted); background: #fafbf9; position: relative; transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { color: var(--brand); }
.dropzone__title { margin: 8px 0 0; }
.dropzone__hint { margin: 4px 0 0; }

.preview-col { position: sticky; top: 84px; display: none; }
@media (min-width: 1280px) { .preview-col { display: block; } }
.preview-col__head { justify-content: space-between; margin-bottom: 12px; }
.preview-col__note { text-align: center; }
.phone { width: 340px; height: 690px; margin: 0 auto; border-radius: 42px; border: 10px solid #1d2420; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.phone iframe { width: 100%; height: 100%; border: 0; }

.savebar {
  position: sticky; bottom: 12px; z-index: 15; margin-top: 16px; padding: 10px 12px 10px 18px;
  display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px -18px rgba(0,0,0,.35);
}
.savebar .muted { font-size: .82rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(20,24,22,.45); }
.modal__box[data-wide] { max-width: 720px; }
.modal__box { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.modal__head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 1.05rem; }
.modal__head button { margin-left: auto; }
.modal__body { padding: 20px 22px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbf9; border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Toast */
.toasts { position: fixed; z-index: 80; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1d2420; color: #fff; padding: 11px 16px; border-radius: var(--r-sm); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); font-weight: 500; animation: tin .25s ease; max-width: 340px; }
.toast--err { background: var(--danger); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.loading { padding: 60px; text-align: center; color: var(--muted); }
.spin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-box { display: flex; gap: 6px; }
.link-box input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fafbf9; font-size: .82rem; color: var(--muted); }

.wish-row { max-width: 380px; }
.wish-row p { margin: 0; white-space: pre-line; }
.recent__body { flex: 1; min-width: 0; }
.recent__title { font-weight: 600; color: var(--ink); text-decoration: none; }
.recent li { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li:last-child { border-bottom: 0; }
.recent p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Perbaikan tata letak sempit */
.editor > * { min-width: 0; }
.top h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .top__actions .btn { padding: 0 10px; }
  .top__actions .btn span { display: none; }
  .table td, .table th { padding: 10px 12px; }
}

/* ---------------- Pembayaran & WhatsApp ---------------- */
.menu a { position: relative; }
.menu__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.alert--warn { background: var(--warn-soft); color: var(--warn); }
.alert.row { gap: 12px; }
.row--center { justify-content: center; }

.tag--pending, .tag--queued { background: var(--warn-soft); color: var(--warn); }
.tag--approved, .tag--sent { background: var(--ok-soft); color: var(--ok); }
.tag--rejected, .tag--failed { background: var(--danger-soft); color: var(--danger); }
.tag--unpaid { background: #eef0ec; color: var(--muted); }

.pay-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: #fafbf9; border: 1px dashed var(--line-strong); }
.tpl__price { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--brand-dark); }
.tabs .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .7rem; }
.input-group--sm .addon { height: 32px; padding: 0 8px; font-size: .8rem; }
.input--price { height: 32px; width: 110px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.pay-layout { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .pay-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.pay { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pay { grid-template-columns: 240px 1fr; } }
.pay__qris { text-align: center; }
.pay__qris img { width: 100%; max-width: 240px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.pay__total { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; }
.pay__total b { font-size: 2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--brand-dark); }
.pay__howto { white-space: pre-line; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: #fafbf9; border: 1px solid var(--line); }
.card__body--line { border-top: 1px solid var(--line); }
.uploader__preview--lg { width: 120px; height: 120px; background-size: contain; background-color: #fff; }
.proof-thumb { display: block; width: 48px; height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #eef0ec center / cover no-repeat; }
.ok-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.ok-mark svg { width: 26px; height: 26px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.steps-mini { list-style: none; margin: 0; padding: 0; counter-reset: st; border-top: 1px solid var(--line); padding-top: 14px; }
.steps-mini li { counter-increment: st; display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--faint); font-size: .86rem; }
.steps-mini li::before { content: counter(st); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: .74rem; font-weight: 700; }
.steps-mini li.now { color: var(--ink); font-weight: 600; }
.steps-mini li.now::before { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps-mini li.done { color: var(--ok); }
.steps-mini li.done::before { content: "✓"; background: var(--ok-soft); border-color: var(--ok-soft); }

/* Masa tayang */
.input-group--suffix .addon { border-right: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.input--days { height: 32px; width: 70px; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.text-danger { color: var(--danger); }
.renew { margin: 4px auto 16px; padding: 12px 16px; max-width: 420px; border-radius: var(--r); background: #fafbf9; border: 1px solid var(--line); }
.renew p { margin: 0 0 10px; }
.input-group--suffix input { border-radius: var(--r-sm) 0 0 var(--r-sm) !important; }
