/* ==========================================================
   Undangan Live: tampilan login, dashboard, dan checkout.
   Ganti warna cukup dengan mengubah variabel di bawah ini.
   ========================================================== */
.inv-scope {
  --inv-accent: #8a6b52;
  --inv-accent-dark: #6f5540;
  --inv-accent-soft: #f3ede6;
  --inv-ink: #2b2623;
  --inv-muted: #8a8078;
  --inv-line: #e8e1d9;
  --inv-bg: #fbf9f6;
  --inv-ok: #4d7c5f;
  --inv-warn: #a3763f;
  --inv-bad: #a34c4c;
  --inv-radius: 4px;
  --inv-shadow: 0 1px 2px rgba(43, 38, 35, .03), 0 10px 30px rgba(43, 38, 35, .05);
  --inv-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --inv-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  box-sizing: border-box;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  color: var(--inv-ink);
  font-family: var(--inv-sans);
  line-height: 1.6;
  letter-spacing: .01em;
}
.inv-scope *, .inv-scope *::before, .inv-scope *::after { box-sizing: border-box; }
.inv-scope [hidden] { display: none !important; }

/* ---------- Teks ---------- */
.inv-scope .inv-h  {
  margin: 0 0 6px;
  font-family: var(--inv-serif);
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--inv-ink);
}
.inv-scope .inv-h3 {
  margin: 40px 0 16px;
  font-family: var(--inv-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--inv-ink);
}
.inv-scope .inv-sub { margin: 0 0 16px; color: var(--inv-muted); font-size: .95rem; }
.inv-scope .inv-note { margin: 8px 0 16px; font-size: .85rem; color: var(--inv-muted); }
.inv-scope a { color: var(--inv-accent-dark); text-underline-offset: 2px; }
.inv-scope a:hover { color: var(--inv-ink); }

/* ---------- Tombol ---------- */
.inv-scope .inv-btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--inv-ink);
  border-radius: var(--inv-radius);
  background: var(--inv-ink);
  color: #fff;
  font: 500 .82rem/1.2 var(--inv-sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.inv-scope .inv-btn:hover { background: var(--inv-accent-dark); border-color: var(--inv-accent-dark); color: #fff; }
.inv-scope .inv-btn:disabled { opacity: .5; cursor: default; }

.inv-scope .inv-btn-primary { background: var(--inv-accent-dark); border-color: var(--inv-accent-dark); }
.inv-scope .inv-btn-primary:hover { background: var(--inv-ink); border-color: var(--inv-ink); }

.inv-scope .inv-btn-ghost { background: transparent; color: var(--inv-ink); border-color: var(--inv-line); }
.inv-scope .inv-btn-ghost:hover { background: var(--inv-accent-soft); border-color: var(--inv-line); color: var(--inv-ink); }

.inv-scope .inv-link {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--inv-accent-dark);
  font: 500 .85rem/1.2 var(--inv-sans);
  letter-spacing: .02em;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.inv-scope .inv-link:hover { background: none; color: var(--inv-ink); }
.inv-scope .inv-link:disabled { color: var(--inv-muted); text-decoration: none; cursor: default; }

/* ---------- Form ---------- */
.inv-scope label { display: block; margin: 0 0 7px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--inv-muted); }
.inv-scope input[type="text"],
.inv-scope input[type="email"],
.inv-scope input[type="file"],
.inv-scope select,
.inv-scope textarea {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--inv-line);
  border-radius: var(--inv-radius);
  background: #fff;
  color: var(--inv-ink);
  font: 1rem/1.4 var(--inv-sans);
  transition: border-color .15s;
}
.inv-scope input:focus,
.inv-scope textarea:focus {
  outline: none;
  border-color: var(--inv-ink);
}
.inv-scope select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8078' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ---------- Kirim ke Tamu ---------- */
.inv-scope .inv-guest-table td .inv-actions { margin: 0; }
.inv-scope .inv-guest-table td .inv-btn,
.inv-scope .inv-guest-table td .inv-link { padding: 7px 14px; font-size: .74rem; }

.inv-scope .inv-otp {
  font: 500 1.6rem/1.2 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .5em;
  text-align: center;
}

.inv-scope .inv-msg { min-height: 1.4em; margin: 10px 0 0; font-size: .85rem; color: var(--inv-ok); }
.inv-scope .inv-msg-err { color: var(--inv-bad); }

/* ---------- Login ---------- */
.inv-scope.inv-auth { max-width: 420px; padding-top: 88px; }
.inv-scope .inv-auth-card {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--inv-line);
  border-radius: var(--inv-radius);
  box-shadow: var(--inv-shadow);
}
.inv-scope .inv-auth-card .inv-h { text-align: center; font-size: 1.5rem; }
.inv-scope .inv-auth-card .inv-sub { text-align: center; }
.inv-scope .inv-auth-card .inv-btn { width: 100%; }
.inv-scope .inv-auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }

.inv-scope .inv-chan-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 4px;
  background: var(--inv-bg-soft, #f3f4f6);
  border-radius: 999px;
}
.inv-scope .inv-chan-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--inv-muted, #6b7280);
}
.inv-scope .inv-chan-tab.is-active {
  background: #fff;
  color: var(--inv-ink, #111827);
  box-shadow: var(--inv-shadow);
}

/* ---------- Dashboard: akun & nomor WA ---------- */
.inv-scope .inv-account-wa { max-width: 420px; }
.inv-scope .inv-account-wa .inv-wa-current { font-weight: 600; }

/* ---------- Dashboard ---------- */
.inv-scope .inv-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--inv-line);
}
.inv-scope .inv-top-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.inv-scope .inv-card,
.inv-scope .inv-panel {
  margin: 0 0 20px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--inv-line);
  border-radius: var(--inv-radius);
  box-shadow: var(--inv-shadow);
}
.inv-scope .inv-empty { text-align: center; padding: 48px 30px; }

.inv-scope .inv-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.inv-scope .inv-card-title { margin: 0; font-family: var(--inv-serif); font-size: 1.4rem; font-weight: 500; }
.inv-scope .inv-url { margin: 8px 0 4px; font-size: .8rem; color: var(--inv-muted); word-break: break-all; }
.inv-scope .inv-exp { margin: 0 0 18px; font-size: .88rem; color: var(--inv-muted); }
.inv-scope .inv-exp-bad { color: var(--inv-bad); font-weight: 600; }

.inv-scope .inv-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.inv-scope .inv-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--inv-accent-soft);
  color: var(--inv-accent-dark);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.inv-scope .inv-badge-ok, .inv-scope .inv-st-paid { background: #e7efe9; color: var(--inv-ok); }
.inv-scope .inv-badge-warn, .inv-scope .inv-st-unpaid, .inv-scope .inv-st-review { background: #f4ece0; color: var(--inv-warn); }
.inv-scope .inv-badge-bad, .inv-scope .inv-st-rejected { background: #f3e5e5; color: var(--inv-bad); }
.inv-scope .inv-st-cancelled { background: #f0eeec; color: var(--inv-muted); }

.inv-scope .inv-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--inv-line); }
.inv-scope .inv-box summary {
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--inv-muted);
}
.inv-scope .inv-box summary:hover { color: var(--inv-ink); }
.inv-scope .inv-box small { display: block; margin-top: 8px; color: var(--inv-muted); font-size: .8rem; }
.inv-scope .inv-row { display: flex; gap: 10px; margin-top: 14px; }
.inv-scope .inv-row input { flex: 1; min-width: 0; margin: 0; }
.inv-scope .inv-guests { margin-top: 14px; }

.inv-scope .inv-links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.inv-scope .inv-links li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--inv-bg);
  border-radius: var(--inv-radius);
  font-size: .9rem;
}
.inv-scope .inv-links li span { flex: 1 1 140px; min-width: 0; word-break: break-word; }

/* ---------- Pilih desain ---------- */
.inv-scope .inv-tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.inv-scope .inv-tpl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--inv-line);
  border-radius: var(--inv-radius);
  cursor: pointer;
  font: 500 .85rem/1.3 var(--inv-sans);
  letter-spacing: .01em;
  color: var(--inv-ink);
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.inv-scope .inv-tpl-item:hover { border-color: var(--inv-accent-dark); }
.inv-scope .inv-tpl-item.is-selected { border-color: var(--inv-ink); box-shadow: inset 0 0 0 1px var(--inv-ink); }
.inv-scope .inv-tpl-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  background: var(--inv-bg);
}
.inv-scope .inv-tpl-ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--inv-accent-soft);
  color: var(--inv-accent-dark);
  font: 500 1.8rem/1 var(--inv-serif);
}

/* ---------- Tabel ---------- */
.inv-scope .inv-table-wrap { overflow-x: auto; }
.inv-scope .inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.inv-scope .inv-table th,
.inv-scope .inv-table td {
  padding: 14px 4px;
  border-bottom: 1px solid var(--inv-line);
  text-align: left;
  vertical-align: middle;
}
.inv-scope .inv-table thead th {
  color: var(--inv-muted);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--inv-ink);
}
.inv-scope .inv-table tr:last-child td { border-bottom: 0; }
.inv-scope .inv-table-plain th { width: 42%; color: var(--inv-muted); font-weight: 400; }
.inv-scope .inv-table-plain td { font-weight: 500; }
.inv-scope .inv-total { font-family: var(--inv-serif); font-size: 1.3rem; color: var(--inv-accent-dark); }

/* ---------- Checkout / invoice ---------- */
.inv-scope .inv-bank {
  margin: 0 0 10px;
  padding: 18px 20px;
  background: var(--inv-bg);
  border: 1px solid var(--inv-line);
  border-radius: var(--inv-radius);
  font-family: var(--inv-serif);
  font-size: 1.15rem;
}
.inv-scope .inv-notice {
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--inv-bg);
  border-left: 2px solid var(--inv-ink);
  font-size: .92rem;
}
.inv-scope .inv-notice-ok   { border-left-color: var(--inv-ok); }
.inv-scope .inv-notice-bad  { border-left-color: var(--inv-bad); }
.inv-scope .inv-notice-info { border-left-color: var(--inv-warn); }

/* ---------- HP ---------- */
@media (max-width: 560px) {
  .inv-scope { padding: 28px 16px 48px; }
  .inv-scope.inv-auth { padding-top: 40px; }
  .inv-scope .inv-card, .inv-scope .inv-panel, .inv-scope .inv-auth-card { padding: 22px; }
  .inv-scope .inv-row { flex-direction: column; }
  .inv-scope .inv-row input { width: 100%; }
  .inv-scope .inv-h { font-size: 1.7rem; }
  .inv-scope .inv-top { align-items: flex-start; flex-direction: column; }
}
