/* Layer brand (SITE_NAME) di atas Bootstrap 5.3 (parity legacy: biru #2563eb). */
:root {
  --primary: #2563eb;
  --neutral: #1f2937;
  --accent: #b45309;
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #1d4ed8;
  --bs-link-hover-color: #1e40af;
}
html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif; color: var(--neutral); }
.brand { font-weight: 700; color: var(--neutral); }
.btn, .btn-primary, button, input[type="submit"] { min-height: 44px; }
.hero { max-width: 720px; margin: 32px auto; padding: 0 16px; }
.status { background: #f3f4f6; padding: 16px; border-radius: 8px; }
.err { background: #fef2f2; color: #b91c1c; padding: 12px 16px; border-radius: 8px; }
.ok { background: #f0fdf4; color: #15803d; padding: 12px 16px; border-radius: 8px; }
.wrap { max-width: 960px; margin: 32px auto; padding: 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.xcard { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; background: #fff; }
.xcard img { width: 100%; height: auto; border-radius: 8px; }
.price { font-weight: 700; color: var(--accent); }
.carousel { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.slide { flex: 0 0 220px; margin: 0; }
.slide img { width: 100%; height: auto; border-radius: 8px; }
.slide figcaption { text-align: center; font-size: .9rem; color: #6b7280; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; background: #f3f4f6; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.bad { background: #fee2e2; color: #991b1b; }
.foot { text-align: center; padding: 24px; color: #6b7280; }
.pager { display: flex; gap: 8px; list-style: none; padding: 0; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; border-radius: 8px; text-decoration: none; }
.pager .cur { background: var(--primary); color: #fff; border-color: var(--primary); }
form.stack { max-width: 480px; }
/* Kartu auth terpusat ala legacy (parity C). */
.authwrap { max-width: 460px; margin: 40px auto; padding: 0 16px; }
.authwrap > h1 { font-size: 1.6rem; font-weight: 700; }
.authcard .form-label { display: block; }
.authcard { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.08); padding: 28px 24px; }
.ordiv { display: flex; align-items: center; gap: 12px; color: #6b7280; margin: 16px 0; }
.ordiv::before, .ordiv::after { content: ""; flex: 1; border-top: 1px solid #e5e7eb; }
.gmark { display: inline-block; font-weight: 700; color: #4285f4; margin-right: 8px; }
/* Phone-frame halaman tamu (P5). */
.phone-frame { max-width: 430px; margin: 0 auto; }
@media (min-width: 768px) {
  .phone-frame { border: 1px solid #e5e7eb; border-radius: 24px; overflow: hidden; }
}
/* Carousel ala template legacy (phoneshot 360px, B3). */
.phoneshot { max-width: 360px; border: 6px solid #212529; overflow: hidden; }
.phoneframe { position: relative; height: 560px; background: #f8f9fa; }
.phoneslide { display: none; height: 100%; }
.phoneslide.active { display: block; }
.phoneslide img { width: 100%; height: 100%; object-fit: cover; }
.phonecap { position: absolute; bottom: 12px; left: 12px; right: 12px; background: rgba(0,0,0,.5); color: #fff; border-radius: 4px; padding: 4px 12px; text-align: center; font-size: .9rem; margin: 0; }
.phonebtn { position: absolute; top: 50%; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 1.2rem; padding: 4px 12px; }
.phonebtn.left { left: 8px; }
.phonebtn.right { right: 8px; }
/* Form informasi undangan (parity 04): kartu + kotak hint + kontrol tabel. */
.fhint { background: #f8f9fa; color: #6b7280; border-radius: 6px; padding: 8px 12px; font-size: .875rem; }
.btn-sm { min-height: 34px; }
.map-open { min-width: 48px; font-size: 1.15rem; line-height: 1; }
.bank-row .form-control, .bank-row .form-select { min-height: 34px; }
/* Modal share halaman undang-tamu (parity 05). */
.share-overlay { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.5); }
.share-box { width: 100%; max-width: 440px; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
/* Admin dashboard (parity 07–14). */
.tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabbtn { display: inline-block; padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #374151; font-size: .875rem; line-height: 1.3; text-decoration: none; }
.tabbtn:hover { border-color: #9ca3af; color: #111827; }
.tabbtn.active { border-color: #2563eb; background: #2563eb; color: #fff; font-weight: 600; }
.abadge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem; line-height: 1.35; color: #fff; }
.abadge.gray { background: #6b7280; }
.abadge.purple { background: #a21caf; }
.abadge.green { background: #16a34a; }
.abadge.yellow { background: #eab308; color: #111827; }
.abadge.blue { background: #2563eb; }
.abadge.cyan { background: #cffafe; color: #155e75; }
.abadge.lblue { background: #dbeafe; color: #1d4ed8; }
.abadge.red { background: #fee2e2; color: #b91c1c; }
.abadge.graylight { background: #f3f4f6; color: #4b5563; }
.acard { border: 1px solid #dee2e6; border-radius: 6px; padding: 12px; background: #fff; margin-bottom: 8px; }
.acard > summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: #111827; }
.acard[open] > summary { margin-bottom: 8px; }
.pager { justify-content: center; }
/* Opsi pilih-kategori full-width (parity screenshot). */
.kopt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; margin-bottom: 10px; cursor: pointer; }
.kopt input { margin-top: 4px; }
.kopt .kbody { flex: 1; }
.kopt .khead { display: block; }
.kopt img { max-width: 64px; border-radius: 6px; margin-top: 8px; }
