/* =========================================================
   Ikrar — dashboard pengguna & admin
   ========================================================= */
:root {
  --night: #0C0D12; --night-2: #13151C; --night-3: #1B1E28; --night-line: color-mix(in srgb, var(--ivory) 8%, transparent);
  --bg: #F6F4EF; --card: #FFFFFF; --line: #E7E2D8; --line-2: #F0ECE4;
  --ink: #15161C; --mute: #6E6B64; --mute-2: #9A968D;
  --sindur: #FF5B35; --sindur-soft: #FFE7DF; --emas: #C99A3E; --emas-soft: #F7EEDB;
  --ok: #2F7D4A; --ok-soft: #E3F1E6; --warn: #A86B00; --warn-soft: #FBF0D9; --bad: #B93A2A; --bad-soft: #FBE5E1;
  --f-display: 'Fraunces', Georgia, serif; --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px; --r-lg: 20px; --side: 252px;
  --shadow: 0 1px 2px rgba(21,22,28,.04), 0 8px 24px -16px rgba(21,22,28,.18);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--sindur); outline-offset: 2px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.hide-sm { display: inline; }
.muted { color: var(--mute); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.nowrap { white-space: nowrap; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.4rem; padding: 1.3rem 1rem; background: var(--night); color: #F4EFE6; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; padding: 0 .5rem; }
.brand i { color: var(--sindur); font-style: normal; }
.brand__mark { width: 24px; height: 24px; border-radius: 7px; background: radial-gradient(circle at 70% 70%, var(--sindur) 0 26%, transparent 27%), linear-gradient(#F4EFE6, #F4EFE6) 30% 50% / 3px 62% no-repeat, var(--night-3); box-shadow: inset 0 0 0 1px var(--night-line); }
.side__badge { align-self: flex-start; margin: -.8rem 0 0 .5rem; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--emas); }
.side__nav { display: grid; gap: .15rem; }
.side__nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 10px; color: #A7A5AE; font-weight: 600; font-size: .9rem; transition: background .2s, color .2s; }
.side__nav a:hover { background: color-mix(in srgb, var(--ivory) 5%, transparent); color: #F4EFE6; }
.side__nav a.is-on { background: color-mix(in srgb, var(--ivory) 9%, transparent); color: #fff; }
.side__nav a.is-on .ico { color: var(--sindur); }
.side__nav em { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--sindur); color: #fff; }
.side__foot { margin-top: auto; display: grid; gap: .6rem; }
.side__switch { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--ivory) 15%, transparent); color: #A7A5AE; font-size: .82rem; font-weight: 600; }
.side__switch:hover { color: #fff; border-color: color-mix(in srgb, var(--ivory) 30%, transparent); }
.side__user { display: flex; align-items: center; gap: .65rem; padding: .7rem; border-radius: 12px; background: var(--night-2); }
.side__av { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--sindur); font-weight: 800; color: #fff; }
.side__who { min-width: 0; flex: 1; }
.side__who b { display: block; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__who small { display: block; font-size: .72rem; color: #8B8995; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__out { border: 0; background: transparent; color: #8B8995; padding: .35rem; border-radius: 8px; cursor: pointer; }
.side__out:hover { color: #fff; background: rgba(255,255,255,.06); }
.side__scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem); background: rgba(246,244,239,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__menu { display: none; border: 1px solid var(--line); background: var(--card); width: 38px; height: 38px; border-radius: 10px; place-items: center; cursor: pointer; }
.top__title { min-width: 0; flex: 1; }
.top__title h1 { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs { display: flex; gap: .4rem; font-size: .76rem; color: var(--mute); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; }
.top__right { display: flex; align-items: center; gap: .6rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--ok-soft); color: var(--ok); }
.status--off { background: var(--sindur-soft); color: #B23A1B; }
.page { padding: clamp(1rem, 3vw, 2rem); display: grid; gap: 1.4rem; align-content: start; max-width: 1280px; width: 100%; }

/* ---------- komponen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .68em 1.1em; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: .86rem; line-height: 1.1; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sindur); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--sindur) 88%, black); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--card); border-color: var(--line); }
.btn--light:hover { border-color: #CFC8BA; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--line-2); }
.btn--danger { background: var(--bad-soft); color: var(--bad); }
.btn--danger:hover { background: #F6D3CC; }
.btn--ok { background: var(--ok); color: #fff; }
.btn--sm { padding: .5em .8em; font-size: .8rem; border-radius: 9px; }
.btn--xs { padding: .35em .6em; font-size: .74rem; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line-2); }
.card__head h2 { font-size: 1rem; font-weight: 800; }
.card__head p { font-size: .82rem; color: var(--mute); }
.card__body { padding: 1.3rem; }
.card__foot { padding: 1rem 1.3rem; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }

.alert { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border-radius: 12px; font-weight: 600; font-size: .88rem; animation: drop .4s cubic-bezier(.2,.9,.3,1.2); }
.alert .ico { margin-top: .1em; }
.alert span { flex: 1; }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }
.alert--success { background: var(--ok-soft); color: var(--ok); }
.alert--error { background: var(--bad-soft); color: var(--bad); }
.alert--info { background: var(--emas-soft); color: #7A5A17; }
.alert__x { border: 0; background: transparent; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: .6; padding: 0 .2rem; }

.badge { display: inline-flex; align-items: center; gap: .35em; padding: .25em .65em; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--mute { background: var(--line-2); color: var(--mute); }
.badge--accent { background: var(--sindur-soft); color: #B23A1B; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.1rem 1.2rem; display: grid; gap: .25rem; }
.stat__label { font-size: .78rem; font-weight: 700; color: var(--mute); display: flex; align-items: center; gap: .4rem; }
.stat__label .ico { color: var(--sindur); }
.stat__value { font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat__note { font-size: .76rem; color: var(--mute-2); }

/* tabel */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th { text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: #FBFAF7; white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FCFBF8; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
.cell-user b { display: block; font-weight: 700; }
.cell-user small { color: var(--mute); }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--mute); display: grid; justify-items: center; gap: .7rem; }
.empty .ico { width: 40px; height: 40px; color: var(--mute-2); }
.empty h3 { color: var(--ink); font-size: 1.05rem; }

/* form */
.form { display: grid; gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > label, .field > span, .label { font-size: .8rem; font-weight: 700; color: #3D3B36; }
.field small, .hint { font-size: .76rem; color: var(--mute-2); }
.input, .select, .textarea { width: 100%; padding: .68rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: #FDFCFA; transition: border-color .2s, box-shadow .2s, background .2s; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--sindur); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sindur) 14%, transparent); }
.textarea { resize: vertical; min-height: 92px; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #FDFCFA; overflow: hidden; }
.input-group:focus-within { border-color: var(--sindur); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sindur) 14%, transparent); }
.input-group span { display: grid; place-items: center; padding: 0 .7rem; background: var(--line-2); color: var(--mute); font-size: .8rem; white-space: nowrap; }
.input-group .input { border: 0; box-shadow: none !important; border-radius: 0; }
.error { color: var(--bad); font-size: .76rem; font-weight: 600; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .88rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--sindur); }
.switch { position: relative; display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-size: .88rem; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 38px; height: 22px; border-radius: 999px; background: #D8D2C6; position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.3,.9,.3,1.2); }
.switch input:checked + i { background: var(--sindur); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--sindur); outline-offset: 2px; }
.file-drop { display: flex; align-items: center; gap: 1rem; padding: .8rem; border: 1px dashed #D3CCBE; border-radius: 12px; background: #FDFCFA; }
.file-drop img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.file-drop__ph { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; background: var(--line-2); color: var(--mute-2); flex: none; }
.file-drop__body { flex: 1; min-width: 0; display: grid; gap: .3rem; }
.file-drop input[type=file] { font-size: .8rem; width: 100%; min-width: 0; }

/* tabs */
.tabs { display: flex; gap: .2rem; padding: .3rem; border-radius: 12px; background: #EDE9E1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { flex: none; display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; padding: .55rem .9rem; border-radius: 9px; font-weight: 700; font-size: .84rem; color: var(--mute); cursor: pointer; }
.tabs .is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tabs .ico { width: 1em; height: 1em; }
[data-panel][hidden] { display: none; }

/* ---------- ringkasan pengguna ---------- */
.welcome { position: relative; overflow: hidden; padding: 1.6rem; border-radius: var(--r-lg); background: var(--night); color: #F4EFE6; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.welcome::after { content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sindur) 35%, transparent), transparent 65%); pointer-events: none; }
.welcome h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; letter-spacing: -.02em; }
.welcome h2 em { color: var(--emas); }
.welcome p { color: #A7A5AE; margin-top: .3rem; max-width: 52ch; }
.welcome .btn { position: relative; z-index: 1; }
.welcome__steps { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.welcome__steps span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--ivory) 7%, transparent); font-size: .76rem; font-weight: 700; color: #C9C6CF; }
.welcome__steps span.is-done { color: #A9C3A0; }
.welcome__steps span.is-done .ico { color: #A9C3A0; }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.inv { display: flex; flex-direction: column; overflow: hidden; }
.inv__cover { position: relative; height: 170px; overflow: hidden; border-bottom: 1px solid var(--line); }
.inv__cover .tcover { position: absolute; inset: -20% 18%; aspect-ratio: auto; height: auto; }
.inv__cover .tcover::after { display: none; }
.inv__status { position: absolute; top: .8rem; left: .8rem; z-index: 2; }
.inv__body { padding: 1.1rem 1.2rem; display: grid; gap: .25rem; }
.inv__body h3 { font-size: 1.05rem; font-weight: 800; }
.inv__url { font-size: .78rem; color: var(--mute); display: flex; align-items: center; gap: .3rem; word-break: break-all; }
.inv__meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); margin-top: .8rem; }
.inv__meta div { padding: .7rem 0; text-align: center; }
.inv__meta div + div { border-left: 1px solid var(--line-2); }
.inv__meta b { display: block; font-size: 1.1rem; font-family: var(--f-display); font-weight: 500; }
.inv__meta small { font-size: .7rem; color: var(--mute); font-weight: 600; }
.inv__actions { display: flex; gap: .4rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line-2); margin-top: auto; flex-wrap: wrap; }
.inv-new { display: grid; place-items: center; align-content: center; gap: .6rem; min-height: 320px; border: 2px dashed #D9D2C4; border-radius: var(--r-lg); color: var(--mute); font-weight: 700; transition: border-color .2s, color .2s, background .2s; text-align: center; padding: 1rem; }
.inv-new:hover { border-color: var(--sindur); color: var(--sindur); background: #FFF8F5; }
.inv-new .ico { width: 34px; height: 34px; }

/* ---------- pemilih tema ---------- */
.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.theme-opt { position: relative; cursor: pointer; display: grid; gap: .45rem; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt__frame { border-radius: 16px; padding: 4px; background: var(--line); transition: background .2s, transform .3s; }
.theme-opt__frame .tcover { border-radius: 12px; }
.theme-opt:hover .theme-opt__frame { transform: translateY(-3px); }
.theme-opt input:checked + .theme-opt__frame { background: var(--sindur); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--sindur) 70%, transparent); }
.theme-opt input:focus-visible + .theme-opt__frame { outline: 2px solid var(--sindur); outline-offset: 3px; }
.theme-opt b { font-size: .84rem; }
.theme-opt small { display: block; font-size: .72rem; color: var(--mute); }
.theme-opt__meta { display: flex; justify-content: space-between; gap: .4rem; align-items: start; }
.theme-opt__demo { font-size: .72rem; font-weight: 700; color: var(--sindur); white-space: nowrap; }
.theme-opt.is-current .theme-opt__frame { background: var(--ink); }
.theme-opt[hidden] { display: none; }
.filterbar { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: .4em; padding: .45em .85em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .8rem; font-weight: 700; color: var(--mute); cursor: pointer; }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill small { opacity: .6; }

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.4rem; align-items: start; }
.editor__form { display: grid; gap: 1rem; min-width: 0; }
.editor__preview { position: sticky; top: 90px; display: grid; gap: .7rem; justify-items: center; }
.device { width: 360px; height: min(720px, calc(100vh - 180px)); border-radius: 38px; padding: 9px; background: #0C0D12; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--night) 60%, transparent), 0 0 0 1px #2a2c35; }
.device iframe { width: 100%; height: 100%; border: 0; border-radius: 30px; background: #fff; }
.device__bar { display: flex; gap: .5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.repeat { display: grid; gap: .8rem; }
.repeat__item { position: relative; padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: #FDFCFA; display: grid; gap: .8rem; }
.repeat__head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.repeat__head b { font-size: .84rem; }
.savebar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--night); color: #F4EFE6; box-shadow: 0 -10px 30px -20px rgba(0,0,0,.5); }
.savebar span { font-size: .82rem; color: #A7A5AE; }
.savebar.is-dirty span { color: var(--emas); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.gallery-grid figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid form { position: absolute; top: 6px; right: 6px; }
.gallery-grid button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: color-mix(in srgb, var(--night) 75%, transparent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.section-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.section-toggles .switch { padding: .8rem; border-radius: 12px; border: 1px solid var(--line); background: #FDFCFA; }

/* ---------- pembayaran ---------- */
.plan { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; }
.plan__hero { padding: 1.8rem; border-radius: var(--r-lg); background: var(--night); color: #F4EFE6; position: relative; overflow: hidden; display: grid; gap: 1rem; align-content: start; }
.plan__hero::after { content: ''; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--emas) 30%, transparent), transparent 65%); }
.plan__price { font-family: var(--f-display); font-size: 3.2rem; font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.plan__price small { font-size: 1rem; color: #A7A5AE; letter-spacing: 0; font-family: var(--f-body); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .88rem; color: #D7D4DB; }
.plan__list li { display: flex; gap: .55rem; }
.plan__list .ico { color: #A9C3A0; margin-top: .15em; }
.plan__state { position: relative; z-index: 1; padding: .9rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--ivory) 6%, transparent); border: 1px solid var(--night-line); font-size: .86rem; }
.plan__state b { color: #fff; }
.methods { display: grid; gap: 1.1rem; }
.methods h3 { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: .6rem; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; }
.method span { display: grid; justify-items: center; gap: .5rem; padding: .9rem .6rem .7rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); text-align: center; font-size: .74rem; font-weight: 700; color: var(--mute); transition: border-color .2s, box-shadow .2s, transform .2s; }
.method:hover span { border-color: #CFC8BA; }
.method input:checked + span { border-color: var(--sindur); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sindur) 14%, transparent); color: var(--ink); }
.method input:focus-visible + span { outline: 2px solid var(--sindur); outline-offset: 2px; }
.paylogo { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 60px; padding: 4px 8px; border-radius: 8px; background: #fff; flex: none; }
.paylogo img { max-height: 100%; max-width: 86px; width: auto; height: auto; object-fit: contain; }
.paylogo b { font-weight: 800; font-size: .82rem; color: var(--brand); white-space: nowrap; }
.paylogo--lg { height: 44px; min-width: 100px; padding: 8px 12px; }
.paylogo--lg img { max-width: 120px; }

.invoice { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem; align-items: start; }
.amount { padding: 1.4rem; border-radius: 16px; background: var(--emas-soft); border: 1px solid #EBDDBB; display: grid; gap: .4rem; }
.amount__value { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-family: var(--f-display); font-size: 2.3rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.amount__value mark { background: var(--sindur); color: #fff; padding: 0 .2em; border-radius: 6px; }
.acct { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: #FDFCFA; }
.acct__body { flex: 1; min-width: 0; }
.acct__no { font-family: ui-monospace, Menlo, monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; }
.steps-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: #3D3B36; font-size: .88rem; }
.timeline-mini { display: grid; gap: 0; }
.timeline-mini div { display: flex; gap: .8rem; padding-bottom: 1rem; position: relative; }
.timeline-mini div::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline-mini div:last-child::before { display: none; }
.timeline-mini i { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--line-2); color: var(--mute-2); position: relative; z-index: 1; }
.timeline-mini i .ico { width: 14px; height: 14px; }
.timeline-mini .is-done i { background: var(--ok); color: #fff; }
.timeline-mini .is-now i { background: var(--sindur); color: #fff; box-shadow: 0 0 0 4px var(--sindur-soft); }
.timeline-mini b { display: block; font-size: .86rem; }
.timeline-mini small { color: var(--mute); font-size: .78rem; }

/* ---------- tamu ---------- */
.guest-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.guest-row td:first-child b { display: block; }
.guest-row .chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.wa-btn { background: #1F8A4C; color: #fff; }
.wa-btn:hover { background: #17733e; }
.wish-item { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line-2); align-items: start; }
.wish-item:last-child { border-bottom: 0; }
.wish-item.is-hidden { opacity: .55; }
.wish-item p { margin-top: .2rem; font-size: .88rem; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--emas-soft); color: #7A5A17; font-weight: 800; font-size: .82rem; }

/* ---------- admin ---------- */
.chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; align-items: end; height: 200px; padding-top: 1rem; }
.chart__col { display: grid; gap: .4rem; justify-items: center; height: 100%; grid-template-rows: auto 1fr auto; }
.chart__val { font-size: .7rem; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.chart__bar { width: 100%; max-width: 46px; align-self: end; border-radius: 4px 4px 0 0; background: var(--sindur); min-height: 2px; transition: height .8s cubic-bezier(.2,.8,.2,1); }
.chart__col:hover .chart__bar { background: #E04A26; }
.chart__col { position: relative; cursor: default; }
.chart__col:hover .chart__tip { opacity: 1; transform: translate(-50%, 0); }
.chart__tip { position: absolute; left: 50%; top: -6px; transform: translate(-50%, 4px); opacity: 0; pointer-events: none; padding: .35rem .55rem; border-radius: 8px; background: var(--ink); color: #fff; font-size: .72rem; white-space: nowrap; transition: .15s; z-index: 2; }
.chart__lbl { font-size: .74rem; font-weight: 700; color: var(--mute); }
.list { display: grid; }
.list__row { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.3rem; border-bottom: 1px solid var(--line-2); }
.list__row:last-child { border-bottom: 0; }
.list__row > div { flex: 1; min-width: 0; }
.list__row b { display: block; font-size: .88rem; }
.list__row small { color: var(--mute); font-size: .76rem; }
.cols-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; align-items: start; }
.proof { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--line-2); display: grid; place-items: center; overflow: hidden; }
.proof img { width: 100%; height: 100%; object-fit: cover; }
.seg-links { display: flex; gap: .3rem; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: .5rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-width: 260px; }
.search input { border: 0; outline: 0; padding: .6rem 0; background: transparent; flex: 1; min-width: 0; }
.search .ico { color: var(--mute-2); }
.acc-row { display: grid; grid-template-columns: 150px 1fr 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.acc-row:last-child { border-bottom: 0; }
.acc-row__logo { display: flex; align-items: center; gap: .6rem; }
.acc-row__logo small { color: var(--mute); font-size: .72rem; }
.theme-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.theme-admin__item { display: grid; gap: .5rem; }
.theme-admin__item.is-off .tcover { filter: grayscale(1); opacity: .45; }
.theme-admin__item .tcover { border-radius: 14px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth__art { position: relative; overflow: hidden; background: var(--night); color: #F4EFE6; padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth__art .brand { position: relative; z-index: 2; }
.auth__quote { position: relative; z-index: 2; max-width: 30ch; }
.auth__quote p { font-family: var(--f-display); font-size: 2.1rem; font-weight: 300; line-height: 1.15; letter-spacing: -.02em; }
.auth__quote p em { color: var(--emas); }
.auth__quote small { display: block; margin-top: 1rem; color: #A7A5AE; }
.auth__covers { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px; transform: rotate(-8deg) scale(1.25); opacity: .38; pointer-events: none; }
.auth__covers .tcover { border-radius: 14px; }
.auth__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--night) 92%, transparent) 0%, color-mix(in srgb, var(--night) 55%, transparent) 45%, color-mix(in srgb, var(--night) 95%, transparent) 100%); }
.auth__panel { display: grid; place-items: center; padding: 2rem 1rem; }
.auth__box { width: 100%; max-width: 400px; display: grid; gap: 1.4rem; }
.auth__box h1 { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; letter-spacing: -.03em; line-height: 1.1; }
.auth__box > p { color: var(--mute); }
.auth__alt { text-align: center; font-size: .88rem; color: var(--mute); }
.auth__alt a { color: var(--sindur); font-weight: 700; }
.auth__price { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-radius: 12px; background: var(--emas-soft); font-size: .84rem; color: #6B5320; }
.auth__price .ico { color: var(--emas); }

/* ---------- responsif ---------- */
@media (max-width: 1200px) {
  .editor { grid-template-columns: 1fr; }
  .editor__preview { position: static; order: -1; display: none; }
  .editor__preview.is-open { display: grid; }
}
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plan, .invoice, .cols-2, .guest-tools { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-102%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .side.is-open { transform: none; }
  .side__scrim { position: fixed; inset: 0; background: color-mix(in srgb, var(--night) 50%, transparent); z-index: 25; }
  .side.is-open + .side__scrim { display: block; }
  .top__menu { display: grid; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .acc-row { grid-template-columns: 1fr 1fr; }
  .acc-row__logo { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .welcome { grid-template-columns: 1fr; }
  .status { padding: .4rem .6rem; font-size: .7rem; }
  .top__title h1 { font-size: 1.15rem; }
  .device { width: 300px; }
  .search { min-width: 0; width: 100%; }
  .table th, .table td { padding: .7rem .7rem; }
}

/* ---------- pustaka musik ---------- */
.tracks { display: grid; gap: .45rem; }
.track { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.track:hover { border-color: #CFC8BA; }
.track:has(input:checked) { border-color: var(--sindur); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sindur) 14%, transparent); }
.track input { position: absolute; opacity: 0; pointer-events: none; }
.track__play { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--line-2); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.track__play:hover { background: var(--ink); color: #fff; }
.track__play.is-playing { background: var(--sindur); color: #fff; }
.track__play--off { cursor: default; color: var(--mute-2); }
.track__play--off:hover { background: var(--line-2); color: var(--mute-2); }
.track__play .ico { width: 15px; height: 15px; }
.track__body { flex: 1; min-width: 0; }
.track__body b { display: block; font-size: .88rem; }
.track__body small { display: block; font-size: .74rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.method b { display: block; font-size: .84rem; margin-bottom: .1rem; }
.palette-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.palette-sw { display: flex; margin-bottom: .2rem; }
.palette-sw i { width: 26px; height: 26px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.palette-sw i:first-child { margin-left: 0; }

/* ---------- perbaikan responsif: kolom grid tidak boleh melebar mengikuti isi ---------- */
.page { grid-template-columns: minmax(0, 1fr); }
.page > * { min-width: 0; }
.card__head { flex-wrap: wrap; }
.card__head > div:first-child { min-width: 0; flex: 1 1 220px; }
.chart__col:first-child .chart__tip { left: 0; transform: translate(0, 4px); }
.chart__col:first-child:hover .chart__tip { transform: none; }
.chart__col:nth-last-child(-n + 2) .chart__tip { left: auto; right: 0; transform: translate(0, 4px); }
.chart__col:nth-last-child(-n + 2):hover .chart__tip { transform: none; }
@media (max-width: 1200px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .top { padding: .75rem 1rem; gap: .6rem; }
  .top__right .btn--light { padding: .5em .6em; }
  .page { padding: 1rem .8rem 2rem; gap: 1rem; }
  .card__head, .card__body, .card__foot { padding-left: 1rem; padding-right: 1rem; }
  .stats { gap: .6rem; }
  .stat { padding: .9rem; }
  .stat__value { font-size: 1.5rem; }
  .toolbar > * { flex: 1 1 100%; }
  .welcome { padding: 1.3rem; }
  .welcome h2 { font-size: 1.35rem; }
  .welcome .btn { justify-self: start; }
  .inv-grid { grid-template-columns: minmax(0, 1fr); }
  .theme-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .savebar { flex-wrap: wrap; border-radius: 12px; }
  .savebar span { flex: 1 1 100%; }
  .savebar .btn { flex: 1; }
  .tabs { margin: 0 -.8rem; border-radius: 0; padding: .3rem .8rem; }
  .acc-row { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .file-drop { flex-wrap: wrap; }
  .file-drop__body { flex: 1 1 180px; }
  .wish-item { grid-template-columns: auto minmax(0, 1fr); }
  .wish-item .actions { grid-column: 2; }
  .amount__value { font-size: 1.7rem; }
  .acct { flex-wrap: wrap; }
  .acct__no { font-size: 1.05rem; word-break: break-all; }
  .table { font-size: .8rem; }
  .device { width: min(320px, 100%); height: 600px; }
  .plan__price { font-size: 2.5rem; }
  .crumbs { display: none; }
}

/* ---------- tabel menjadi kartu bertumpuk di layar kecil ---------- */
@media (max-width: 700px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody { display: block; }
  .table--stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line-2); }
  .table--stack tr:hover td { background: none; }
  .table--stack td { display: block; padding: 0; border: 0; min-width: 0; text-align: left !important; }
  .table--stack td:first-child { grid-column: 1; }
  .table--stack td.num { justify-self: start; }
  .table--stack td:last-child { grid-column: 1 / -1; }
  .table--stack .actions { justify-content: flex-start; }
  .table--stack .proof { width: 44px; height: 44px; }
}
.editor__form { grid-template-columns: minmax(0, 1fr); }
.editor__form > * { min-width: 0; }
html { overflow-x: clip; }
.form, .tracks, .repeat, .methods, .repeat__item { grid-template-columns: minmax(0, 1fr); }
.track { min-width: 0; }

/* aset ilustrasi tema adat */
.art-assets { margin-top: .4rem; border: 1px solid var(--line); border-radius: 12px; background: #FDFCFA; }
.art-assets summary { display: flex; align-items: center; gap: .4rem; padding: .55rem .7rem; cursor: pointer; font-size: .78rem; font-weight: 700; list-style: none; }
.art-assets summary::-webkit-details-marker { display: none; }
.art-assets summary .badge { margin-left: auto; }
.art-assets > .hint { padding: 0 .7rem .5rem; display: block; }
.art-assets__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .5rem .7rem; border-top: 1px solid var(--line-2); }
.art-assets__row form:first-of-type { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem; align-items: center; }
.art-assets__row form:first-of-type label { grid-column: 1 / -1; }
.art-assets__row input[type=file] { font-size: .7rem; min-width: 0; }
.art-assets__thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; overflow: hidden; color: var(--mute-2); }
.art-assets__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* WijayaPay */
.method__gw { height: 22px; width: auto; max-width: 74px; object-fit: contain; }
.method__gw--lg { height: 38px; max-width: 96px; }
.qris { display: grid; justify-items: center; gap: .6rem; padding: 1rem; border: 1px solid var(--line, #e7dfd8); border-radius: 16px; background: #fff; }
.qris img { width: min(260px, 100%); height: auto; image-rendering: pixelated; }
.method__txt { display: inline-grid; place-items: center; height: 22px; padding: 0 .5em; border-radius: 6px; background: var(--ink, #2a1418); color: #fff; font-size: .7rem; letter-spacing: .04em; }
.method__txt--lg { height: 38px; font-size: .9rem; }
