/* Tambahan khusus dashboard klien (dasar dari admin.css) */
.side-brand { color: inherit; }
.alert-info { background: #f5ecdc; color: #7a5a22; font-weight: 400; }

/* ---------- bar undangan + tab ---------- */
.inv-bar { position: sticky; top: 67px; z-index: 15; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 28px 0; }
.inv-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; margin-bottom: 8px; }
.inv-meta a { color: var(--gold); font-weight: 600; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 14px; font-weight: 600; font-size: .86rem; color: var(--ink-soft); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--gold); }

/* ---------- daftar undangan ---------- */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.inv-card { overflow: hidden; display: flex; flex-direction: column; }
.inv-thumb { height: 150px; background: linear-gradient(160deg, #fde8ea, #f6d3d8) center / cover; display: grid; place-items: center; font-family: var(--serif); font-size: 1.7rem; color: #7d4a57; text-align: center; padding: 10px; }
.inv-body { padding: 16px 18px; display: grid; gap: 6px; flex: 1; }
.inv-body h3 { font-size: 1.05rem; }
.inv-body .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--ink-soft); }
.inv-actions { display: flex; gap: 8px; padding: 0 18px 16px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .big { font-size: 3rem; }
.empty-state h2 { font-family: var(--serif); font-size: 1.8rem; margin: 8px 0 6px; }

/* ---------- pilih jenis acara / tema ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice .box { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: .15s; height: 100%; }
.choice .box .emo { font-size: 1.8rem; }
.choice .box b { font-size: .92rem; }
.choice .box small { color: var(--ink-soft); font-size: .76rem; }
.choice input:checked + .box { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 74, .18); background: #fffcf6; }
.choice input:focus-visible + .box { outline: 2px solid var(--gold); }
.theme-thumb { width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; background: linear-gradient(160deg, #fde8ea, #efc6cc) center / cover; margin-bottom: 6px; display: grid; place-items: center; font-family: var(--serif); color: #7d4a57; font-size: 1.1rem; }
.slug-field { display: flex; align-items: stretch; }
.slug-field span { display: flex; align-items: center; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.slug-field .input { border-radius: 0 10px 10px 0; }

/* ---------- tokoh ---------- */
.person-card .card-head .badge { margin-left: auto; }

/* ---------- galeri ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); cursor: grab; }
.photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo form { position: absolute; top: 6px; right: 6px; }
.photo button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.photo .no { position: absolute; left: 6px; bottom: 6px; font-size: .7rem; font-weight: 700; background: rgba(255, 255, 255, .9); padding: 1px 7px; border-radius: 99px; }
.drop { display: grid; place-items: center; gap: 6px; padding: 26px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; cursor: pointer; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--gold); background: #fffcf6; }
.drop input { display: none; }

/* ---------- tamu ---------- */
.guest-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.guest-tools .input { max-width: 260px; }
td .sent { color: var(--ok); font-size: .78rem; font-weight: 600; }
td small { color: var(--ink-soft); }

/* ---------- ucapan ---------- */
.wish-row { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.wish-row:last-child { border-bottom: 0; }
.wish-row.hidden-wish { opacity: .5; }
.wish-row .grow { flex: 1; min-width: 0; }
.wish-row p { margin-top: 2px; white-space: pre-line; }

.share-box { display: flex; gap: 8px; }
.share-box .input { font-size: .85rem; }

@media (max-width: 960px) {
  .inv-bar { top: 63px; padding: 8px 16px 0; }
}

/* ---------- pesanan ---------- */
.order-wrap { display: grid; gap: 18px; max-width: 640px; }
.order-status { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.order-status b { font-size: 1.1rem; }
.order-status p { color: var(--ink-soft); margin-top: 2px; }
.order-icon { font-size: 1.8rem; line-height: 1; }
.status-paid { background: var(--ok-soft); }
.status-pending { background: #fdf6e9; }
.order-detail { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; padding: 18px 22px; }
.order-detail dt { color: var(--ink-soft); }
.order-detail dd { text-align: right; }
.order-detail .total { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 22px 20px; }
.order-card > .muted { padding: 0 22px 18px; }
.big-amount { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-family: var(--serif); font-size: 2.1rem; font-weight: 700; }
.big-amount mark { background: #fbe7a6; color: inherit; border-radius: 6px; padding: 0 3px; }
.acc-list { display: grid; gap: 8px; }
.acc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.acc div { display: grid; }
.acc span { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; }
.acc small { color: var(--ink-soft); }
.proof { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.proof-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.proof-form input { font-size: .82rem; max-width: 100%; }

/* ---------- reseller ---------- */
.reseller-cards { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; margin-bottom: 18px; }
.r-card { padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.r-card > b { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.r-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; }
.r-balance { background: linear-gradient(135deg, #2b2622, #4a3f37); color: #fff; border: 0; }
.r-balance .r-label { color: #d9b877; }
.r-balance .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.r-balance .btn-primary { background: #d9b877; border-color: #d9b877; color: #2b2622; }
.r-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.meter { height: 8px; border-radius: 9px; background: var(--bg); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #d9b877); }
@media (max-width: 760px) { .reseller-cards { grid-template-columns: 1fr; } }

/* ---------- kelengkapan data ---------- */
.complete-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.complete-box.has-required { border-color: #f0c5c0; }
.complete-box summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.complete-box summary::-webkit-details-marker { display: none; }
.complete-box summary small { display: block; color: var(--ink-soft); font-size: .82rem; }
.complete-box.has-required summary { background: var(--danger-soft); }
.complete-ring {
  --p: 0; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--bg) 0);
}
.complete-ring b { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .72rem; }
.complete-box ul { list-style: none; padding: 6px 18px 14px; display: grid; gap: 6px; }
.complete-box li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: .88rem; }
.complete-box li.req { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.complete-box li.rec { background: #fdf6e9; color: #7a5a22; }
.complete-box li a { font-weight: 700; white-space: nowrap; }

/* ---------- kirim WA ---------- */
.wa-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 18px; }
.wa-top .hint { margin-top: 6px; }
.wa-qr { display: grid; justify-items: center; gap: 8px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.wa-qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.wa-guests { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; max-height: 280px; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
@media (max-width: 760px) { .wa-top { grid-template-columns: 1fr; } }
.wa-qr[hidden], .wa-guests[hidden] { display: none; }
#wa-state > b { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }

/* pilihan tema: gambar pratinjau, label premium, tautan contoh */
.theme-thumb { position: relative; overflow: hidden; }
.theme-badge { position: absolute; top: 6px; right: 6px; font: 700 .62rem/1 "Plus Jakarta Sans", sans-serif; font-style: normal; padding: 4px 7px; border-radius: 99px; background: #2b2622; color: #f3d58f; }
.theme-demo { font-size: .74rem; font-weight: 600; color: var(--gold); text-decoration: none; margin-top: 2px; }
.theme-demo:hover { text-decoration: underline; }

/* pilihan warna tema */
.variant-pick { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.variant-pick[hidden] { display: none; }
.variant-row { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt { cursor: pointer; }
.variant-opt input { position: absolute; opacity: 0; }
.variant-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 99px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; background: #fff; }
.variant-opt i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.variant-opt input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 74, .18); }
/* warna dresscode */
.dc-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.dc-slot { display: flex; gap: 6px; align-items: center; }
.dc-slot input[type=color] { width: 42px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex: none; }

/* tab musik */
.music-modes { display: grid; gap: 10px; }
.music-mode { cursor: pointer; position: relative; }
.music-mode input { position: absolute; opacity: 0; }
.music-mode > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.music-mode > span small { grid-column: 1; color: var(--ink-soft); font-size: .8rem; }
.music-mode > span .play-btn { grid-column: 2; grid-row: 1 / span 2; }
.music-mode input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 74, .18); background: #fffcf6; }
.music-panel { display: grid; gap: 6px; padding: 4px 4px 10px 18px; }
.music-panel[hidden] { display: none; }
.music-cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.song-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.song-opt span { flex: 1; display: grid; }
.song-opt small { color: var(--ink-soft); font-size: .78rem; }
.song-opt:has(input:checked) { border-color: var(--gold); background: #fffcf6; }
.play-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink, #2b2622); color: #fff; cursor: pointer; font-size: .75rem; flex: none; }
