/* ==================================================================
   Mitra Haramain Travel — gaya islami elegan (emas islami)
   ================================================================== */
:root {
  /* Palet "emas islami": cokelat-perunggu gelap (permukaan) + emas (aksen) + ivory (latar).
     Nama variabel memakai --emas-* supaya jelas; 950 = paling gelap, 50 = paling terang. */
  --ink: #241c0c;
  --ink-soft: #453a22;
  --muted: #6d6146;
  --line: rgba(122, 85, 16, 0.14);
  --line-strong: rgba(122, 85, 16, 0.24);

  --emas-950: #1f1606;
  --emas-900: #3a2a0b;
  --emas-800: #6d4d10;
  --emas-700: #8f6716;
  --emas-100: #f5e8c8;
  --emas-50: #fbf5e4;

  --gold: #c9a227;
  --gold-light: #edd394;
  --gold-soft: #fbf3dc;

  --cream: #fdfaf1;
  --white: #ffffff;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  /* Warna "berhasil" dibuat sedikit ke arah zaitun agar tetap terbaca sebagai sukses
     walau seluruh tema emas (bukan hijau). */
  --ok-bg: #f4eed8;
  --ok-line: rgba(120, 106, 40, 0.32);
  --ok-text: #5b4f12;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(74, 52, 12, 0.07);
  --shadow: 0 12px 34px rgba(74, 52, 12, 0.10);
  --shadow-lg: 0 24px 60px rgba(74, 52, 12, 0.16);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(201, 162, 39, 0.13), transparent 65%),
    radial-gradient(820px 420px at 92% 4%, rgba(201, 162, 39, 0.12), transparent 62%),
    radial-gradient(circle at 1px 1px, rgba(107, 77, 16, 0.06) 1px, transparent 0);
  background-size: auto, auto, 24px 24px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--emas-800); text-decoration: none; }
a:hover { color: var(--emas-700); }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 400; line-height: 1.2; letter-spacing: 0.2px; color: var(--ink); }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1rem; }
small { font-size: 0.82rem; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 245, 228, 0.55));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.tiny { font-size: 0.78rem; color: var(--muted); }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.86rem; letter-spacing: 0.3px; }
.inline-form { display: inline; }
.text-ok { color: var(--ok-text); }
.text-danger { color: var(--danger); }
.empty { color: var(--muted); padding: 18px 0; }

.kicker {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emas-700);
  margin-bottom: 8px;
}

/* ---------- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--emas-800), var(--emas-700)); color: #fff; box-shadow: 0 10px 22px rgba(143, 103, 22, 0.26); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 26px rgba(143, 103, 22, 0.32); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #3a2c05; box-shadow: 0 10px 22px rgba(201, 162, 39, 0.3); }
.btn-gold:hover { color: #2f2304; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--emas-900); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.8); border-color: var(--emas-700); }
.btn-outline-light { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.btn-soft { background: var(--emas-50); color: var(--emas-900); border-color: rgba(143, 103, 22, 0.16); }
/* Tombol bergaris (outline) di atas permukaan GELAP harus memakai teks terang —
   sebelumnya memakai warna gelap sehingga nyaris tak terbaca di hero/CTA.
   (Kontras diuji otomatis oleh ui-check-kontras.js.) */
.hero .btn-outline,
.hero-actions .btn-outline,
.cta .btn-outline,
.pemutar .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.10);
}
.hero .btn-outline:hover,
.hero-actions .btn-outline:hover,
.cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-soft:hover { background: var(--emas-100); }
.btn-ghost { background: transparent; color: var(--emas-900); }
.btn-ghost:hover { background: rgba(107, 77, 16, 0.06); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(180, 35, 24, 0.22); }
.btn-disabled { background: #f0e9d8; color: #8c8266; cursor: not-allowed; box-shadow: none; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-xs { padding: 6px 10px; font-size: 0.78rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- Header --------------------------------------------------- */
.topbar {
  background: var(--emas-950);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 7px 24px; }
.topbar a { color: #fff; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.dot-sep { color: var(--gold-light); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--emas-900); }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--emas-900), var(--emas-700));
  color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 400; letter-spacing: 0.4px; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-link:hover { background: rgba(107, 77, 16, 0.06); color: var(--emas-900); }
.nav-auth, .nav-user { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.nav-hello { font-size: 0.84rem; color: var(--muted); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 40px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--emas-900); border-radius: 2px; }

/* ---------- Hero ----------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, var(--emas-950) 0%, var(--emas-900) 46%, #5a400e 100%);
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(226, 197, 105, 0.5) 38px 39px),
    radial-gradient(circle at 50% 118%, rgba(226, 197, 105, 0.32), transparent 58%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding: 74px 24px 82px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  color: #f6ecd0;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--gold-light); }
.hero h1 { color: #fff; margin: 20px 0 18px; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.3rem); }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-copy > p { max-width: 56ch; color: rgba(255, 255, 255, 0.82); font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hero-stats dt { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-light); }
.hero-stats dd { margin: 0; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }

.hero-art { position: relative; }
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow-lg);
}
.hero-card-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.hero-card-title { font-family: var(--font-display); font-size: 1.4rem; }
.hero-card-date { font-size: 0.88rem; color: rgba(255, 255, 255, 0.76); }
.hero-card-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.88rem; }
.hero-card-line span { color: rgba(255, 255, 255, 0.7); }
.hero-glow {
  position: absolute;
  inset: -18% -12% auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(226, 197, 105, 0.34), transparent 66%);
  filter: blur(6px);
  z-index: -1;
}

/* ---------- Section headings ---------------------------------------- */
.section-head { margin-bottom: 34px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }
.section-more { margin-top: 32px; text-align: center; }

/* ---------- Grids ---------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

/* ---------- Package card -------------------------------------------- */
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard-top {
  position: relative;
  padding: 22px 22px 20px;
  color: #fff;
  background: linear-gradient(150deg, var(--emas-950), var(--emas-800));
}
.pcard-top.pattern-haji { background: linear-gradient(150deg, #3c2f08, #6d540f 60%, #8a6c14); }
.pcard-top::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(255, 255, 255, 0.35) 26px 27px),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.4), transparent 42%);
  pointer-events: none;
}
.pcard-top > * { position: relative; }
.pcard-top h3 { color: #fff; margin: 14px 0 4px; font-size: 1.3rem; }
.pcard-top-row { display: flex; align-items: center; gap: 10px; }
.pcard-durasi { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.pcard-maskapai { margin: 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.74); }

.pcard-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.pcard-facts { display: flex; flex-direction: column; gap: 14px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact svg { width: 18px; height: 18px; color: var(--emas-700); flex: none; margin-top: 3px; }
.fact small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fact strong { display: block; font-size: 0.94rem; font-weight: 600; }
.fact-sub { font-style: normal; font-size: 0.76rem; color: var(--gold); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 245, 228, 0.5), rgba(255, 255, 255, 0.9));
}
.price { display: flex; flex-direction: column; line-height: 1.25; }
.price small { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.price strong { font-size: 1.16rem; color: var(--emas-900); }
.price span { font-size: 0.74rem; color: var(--muted); }
.pcard-actions { display: flex; gap: 8px; }

.kuota { display: flex; flex-direction: column; gap: 6px; }
.kuota-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.kuota-head strong { font-weight: 600; }
.bar { height: 7px; border-radius: 999px; background: rgba(107, 77, 16, 0.1); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emas-700), var(--gold)); }
.kuota small { font-size: 0.74rem; color: var(--muted); }

/* ---------- Features, steps ----------------------------------------- */
.feature, .step {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.feature-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--emas-50), var(--emas-100));
  color: var(--emas-800);
  border: 1px solid rgba(143, 103, 22, 0.14);
}
.feature-icon svg { width: 23px; height: 23px; }
.step { position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #3a2c05;
  background: linear-gradient(140deg, var(--gold-light), var(--gold));
}
.step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.card-lite { background: rgba(255, 255, 255, 0.72); }
.steps-vert { align-items: start; }

/* ---------- CTA ------------------------------------------------------ */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--emas-950), var(--emas-800));
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(226, 197, 105, 0.28), transparent 52%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.8); max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page head ----------------------------------------------- */
.page-head {
  padding: 40px 0 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 245, 228, 0.5));
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: 10px 0 8px; }
.page-head p { margin: 0; color: var(--muted); max-width: 78ch; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); }
.crumb a { color: var(--emas-700); }
.crumb strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards ---------------------------------------------------- */
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.24rem; margin-bottom: 12px; }
.card + .card { margin-top: 24px; }
.sticky { position: sticky; top: 104px; }

.list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.list-head h2 { margin-bottom: 4px; }
.list-head p { margin: 0; font-size: 0.9rem; }

/* ---------- Detail page --------------------------------------------- */
.detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 14px; }
.detail-sub { color: var(--muted); margin: 6px 0 0; }
.detail-price { text-align: right; display: flex; flex-direction: column; }
.detail-price small { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.detail-price strong { font-size: 1.7rem; color: var(--emas-900); }
.detail-price span { font-size: 0.82rem; color: var(--gold); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.85fr); gap: 28px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 24px; }
.detail-main .card + .card { margin-top: 0; }
.detail-side { display: flex; flex-direction: column; gap: 20px; }
.booking-card h3 { font-size: 1.5rem; margin-bottom: 2px; }
.booking-card .btn { margin-top: 12px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.info-grid small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.info-grid strong { font-size: 0.96rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; }
.check-list svg { width: 17px; height: 17px; color: var(--emas-700); flex: none; margin-top: 4px; }

.hotel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.hotel { padding: 18px; border-radius: var(--radius); background: var(--emas-50); border: 1px solid rgba(143, 103, 22, 0.14); }
.hotel-tag { display: inline-block; margin-bottom: 8px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emas-700); }
.hotel strong { display: block; font-weight: 600; font-size: 0.95rem; }

.mini-facts { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.mini-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.mini-facts li:last-child { border-bottom: 0; }
.mini-facts span { color: var(--muted); }
.mini-facts strong { font-weight: 600; text-align: right; }

.note-box { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid rgba(201, 162, 39, 0.3); }
.note-box strong { display: block; margin-bottom: 4px; font-size: 0.86rem; letter-spacing: 0.04em; }
.note-box p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

.total-box { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(140deg, var(--emas-950), var(--emas-800)); color: #fff; display: flex; flex-direction: column; }
.total-box small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.total-box strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-light); }
.total-box span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.78); }

/* ---------- Forms ---------------------------------------------------- */
.form-card { max-width: 100%; }
.form-block { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-block:last-of-type { border-bottom: 0; padding-bottom: 4px; margin-bottom: 8px; }
.form-block h2 { font-size: 1.12rem; margin-bottom: 4px; }
.form-block > .muted { margin-bottom: 18px; font-size: 0.9rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.field-label em { color: var(--gold); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.94rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--emas-700);
  box-shadow: 0 0 0 3px rgba(143, 103, 22, 0.14);
}
.field-hint { font-size: 0.78rem; color: var(--muted); }
.field-error input, .field-error select, .field-error textarea { border-color: var(--danger); background: #fffafa; }
.field-msg { font-size: 0.78rem; color: var(--danger); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--emas-700); }
.form-foot { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding-top: 8px; }
.form-foot.center { justify-content: center; }

.search { display: flex; gap: 8px; }
.search input { min-width: 220px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.9rem; background: #fff; }
.search input:focus { outline: none; border-color: var(--emas-700); box-shadow: 0 0 0 3px rgba(143, 103, 22, 0.14); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); border-radius: 12px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-size: 0.87rem; font-weight: 600; color: var(--muted); }
.tab span { font-size: 0.74rem; padding: 1px 7px; border-radius: 999px; background: rgba(107, 77, 16, 0.08); }
.tab:hover { color: var(--emas-900); background: rgba(107, 77, 16, 0.05); }
.tab.active { background: linear-gradient(135deg, var(--emas-800), var(--emas-700)); color: #fff; }
.tab.active span { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* ---------- Badges / pills / alerts --------------------------------- */
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pill-umrah { background: rgba(255, 255, 255, 0.2); color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); }
.pill-haji { background: rgba(255, 255, 255, 0.2); color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); }
.cell-title .pill, .admin .pill { background: var(--emas-50); color: var(--emas-800); border: 1px solid rgba(143, 103, 22, 0.18); }
.cell-title .pill-haji, .admin .pill-haji { background: var(--gold-soft); color: #7a5f0d; border-color: rgba(201, 162, 39, 0.4); }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; }
.badge-menunggu { background: #fff7e6; color: #96590a; border: 1px solid rgba(201, 162, 39, 0.34); }
.badge-dikonfirmasi { background: #efe9dc; color: #5b4a2b; border: 1px solid rgba(43, 76, 155, 0.22); }
.badge-lunas { background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-line); }
.badge-batal { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(180, 35, 24, 0.22); }

.alert { display: flex; align-items: center; gap: 10px; max-width: 1132px; margin: 22px auto 0; padding: 14px 18px; border-radius: var(--radius); font-size: 0.92rem; }
.alert-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.alert-ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-text); }
.alert-ok .alert-dot { background: var(--ok-text); }
.alert-err { background: var(--danger-bg); border: 1px solid rgba(180, 35, 24, 0.2); color: #7a1c14; }
.alert-err .alert-dot { background: var(--danger); }
.card .alert { margin: 0 0 18px; max-width: none; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 44px 24px; background: rgba(255, 255, 255, 0.9); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state h1, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

/* ---------- Tables --------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: rgba(251, 245, 228, 0.55); }
.table td .btn + .btn, .table td form + form { margin-left: 6px; }
.cell-actions { white-space: nowrap; }
.cell-actions .btn { margin-bottom: 4px; }
.stat-row { margin-bottom: 28px; }
.stat-card { background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; }
.stat-card small { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat-card strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--emas-900); }
.stat-card span { font-size: 0.8rem; color: var(--muted); }
.stat-card.accent { background: linear-gradient(140deg, var(--emas-950), var(--emas-800)); border-color: transparent; }
.stat-card.accent small, .stat-card.accent span { color: rgba(255, 255, 255, 0.76); }
.stat-card.accent strong { color: var(--gold-light); }

/* ---------- Order / account ----------------------------------------- */
.order-card { background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; }
.account-main { display: flex; flex-direction: column; gap: 18px; }
.order-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.order-head h3 { margin: 4px 0 2px; font-size: 1.1rem; }
.order-kode { font-family: ui-monospace, monospace; font-size: 0.82rem; letter-spacing: 0.4px; color: var(--emas-700); }
.order-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-total { font-size: 1.06rem; color: var(--emas-900); }
.order-foot { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr); gap: 26px; align-items: start; }
.account-side { display: flex; flex-direction: column; gap: 20px; }

.ringkas { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 20px 0 4px; }
.ringkas small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ringkas strong { font-size: 0.96rem; }

.success-card { text-align: center; }
.success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(140deg, var(--emas-800), var(--emas-700)); color: #fff; box-shadow: 0 14px 30px rgba(143, 103, 22, 0.28); }
.success-icon svg { width: 30px; height: 30px; stroke-width: 2.2; }
.success-card .ringkas { text-align: left; }
.success-card .note-box { text-align: left; }
.kode-box { margin: 26px auto 6px; padding: 20px; max-width: 460px; border-radius: var(--radius); background: linear-gradient(140deg, var(--emas-950), var(--emas-800)); color: #fff; display: flex; flex-direction: column; gap: 4px; }
.kode-box span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.74); }
.kode-box strong { font-family: ui-monospace, monospace; font-size: 1.5rem; letter-spacing: 1px; color: var(--gold-light); }

.hasil-card { margin-top: 26px; }
.hasil-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.hasil-head h2 { margin-bottom: 2px; }
.timeline { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: rgba(107, 77, 16, 0.04); border: 1px solid var(--line); }
.timeline li.done { background: var(--emas-50); border-color: rgba(143, 103, 22, 0.2); }
.tl-dot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: rgba(107, 77, 16, 0.2); flex: none; }
.timeline li.done .tl-dot { background: var(--emas-700); box-shadow: 0 0 0 4px rgba(143, 103, 22, 0.16); }
.timeline strong { display: block; font-size: 0.92rem; }
.timeline small { color: var(--muted); }

/* ---------- Auth ----------------------------------------------------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: stretch; }
.auth-aside {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 42px;
  background: linear-gradient(155deg, var(--emas-950), var(--emas-800));
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}
.auth-aside::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(226, 197, 105, 0.45) 34px 35px),
    radial-gradient(circle at 82% 88%, rgba(226, 197, 105, 0.4), transparent 55%);
}
.auth-aside-inner { position: relative; }
.auth-salam { display: block; font-size: 1.5rem; margin-bottom: 18px; color: var(--gold-light); }
.auth-aside h2 { color: #fff; }
.auth-aside p { color: rgba(255, 255, 255, 0.82); }
.auth-points { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: rgba(255, 255, 255, 0.9); }
.auth-points svg { width: 17px; height: 17px; color: var(--gold-light); flex: none; margin-top: 4px; }
.auth-sub { font-size: 0.84rem; color: rgba(255, 255, 255, 0.68); margin: 0; }
.auth-form .card { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { margin: 6px 0 8px; }
.auth-form .alert { margin-bottom: 18px; }
.auth-switch { margin: 16px 0 0; font-size: 0.88rem; color: var(--muted); text-align: center; }
.auth-switch a { font-weight: 600; }

/* ---------- FAQ / alur ---------------------------------------------- */
.faq-wrap { max-width: 880px; margin: 0 auto; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 0.98rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--emas-700); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Admin ---------------------------------------------------- */
.admin .page-head { padding-bottom: 0; }
.admin-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.admin-head-row h1 { margin: 4px 0 6px; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 22px; }
.admin-tab { padding: 11px 18px; border-radius: 10px 10px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--muted); border: 1px solid transparent; border-bottom: none; }
.admin-tab:hover { color: var(--emas-900); background: rgba(255, 255, 255, 0.7); }
.admin-tab.active { background: var(--cream); color: var(--emas-900); border-color: var(--line); }
.admin-split { align-items: start; }
.admin-split .card { height: 100%; }
.quick-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.status-actions { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.status-actions .inline-form { display: block; }
.badge + .badge { margin-left: 6px; }

/* ---------- Footer --------------------------------------------------- */
.site-footer { margin-top: 72px; background: var(--emas-950); color: rgba(255, 255, 255, 0.76); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 24px 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); }
.footer-brand .brand-text small { color: var(--gold-light); }
.footer-brand p { margin: 18px 0 0; font-size: 0.9rem; max-width: 42ch; }
.footer-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.56); }
.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }
.footer-bismillah { color: var(--gold-light); font-size: 1rem; }

/* ---------- Responsive ---------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; }
  .detail-grid, .account-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 22px;
    background: rgba(251, 249, 244, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-auth, .nav-user { margin-left: 0; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav-hello { width: 100%; }
  .site-header { position: relative; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { padding: 30px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .topbar-inner { justify-content: center; }
  .topbar-right { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .wrap { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; padding: 42px 18px 30px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .pcard-foot { flex-direction: column; align-items: stretch; }
  .pcard-actions { justify-content: space-between; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search input { min-width: 0; flex: 1; }
  .list-head { flex-direction: column; align-items: stretch; }
  .detail-price { text-align: left; }
  .ringkas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==================================================================
   Pembayaran, Panel Jamaah & Panel Travel (tambahan)
   ================================================================== */
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.pay { margin: 14px 0 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--emas-50); border: 1px solid rgba(143, 103, 22, 0.14); }
.pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.pay-head strong { font-size: 1rem; color: var(--emas-800); }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
.pay-grid small { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pay-grid strong { font-size: 1rem; }
.pay-sisa { padding: 10px 12px; margin: -10px -12px; border-radius: 10px; background: #fff; border: 1px dashed rgba(180, 35, 24, 0.3); }
.pay-sisa strong { color: var(--danger); }

.pay-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.pay-tag-due { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(180, 35, 24, 0.24); }
.pay-tag-ok { background: var(--emas-50); color: var(--emas-800); border: 1px solid rgba(143, 103, 22, 0.24); }

.total-box-ok { background: linear-gradient(140deg, var(--emas-800), var(--emas-700)); }

.table tfoot th { padding: 12px 14px; border-top: 2px solid var(--line-strong); border-bottom: 0; font-size: 0.86rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.table tfoot th:first-child { font-size: 0.8rem; color: var(--muted); }

/* Pratinjau panel travel ------------------------------------------- */
.preview-frame { margin-top: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #fff; }
.preview-bar { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; background: var(--emas-950); color: rgba(255, 255, 255, 0.86); font-size: 0.72rem; }
.preview-bar-right { color: var(--gold-light); }
.preview-head { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.preview-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(140deg, var(--emas-900), var(--emas-700)); color: var(--gold-light); font-size: 1rem; }
.preview-brand { display: flex; flex-direction: column; line-height: 1.15; }
.preview-brand strong { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; word-break: break-word; }
.preview-brand small { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.preview-legal { padding: 10px 14px; font-size: 0.74rem; color: var(--emas-800); background: var(--emas-50); border-bottom: 1px solid var(--line); }
.preview-foot { display: flex; flex-direction: column; gap: 3px; padding: 14px; background: var(--emas-950); color: rgba(255, 255, 255, 0.76); font-size: 0.74rem; }
.preview-foot strong { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 0.98rem; word-break: break-word; }
.preview-foot small { color: rgba(255, 255, 255, 0.55); font-size: 0.68rem; }

@media (max-width: 640px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-sisa { padding: 10px; margin: 0; }
}

/* ==================================================================
   Menu login & daftar jamaah (tambahan)
   ================================================================== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line-strong); }

.auth-form-wide { min-width: 0; }
.auth-form-wide .card { justify-content: flex-start; }
.auth-form .checkbox { margin-bottom: 4px; }

.auth-switch + .auth-switch { margin-top: 8px; }

/* Tombol celah pengelola di navigasi dibuat lebih ringan */
.nav-pengelola { font-weight: 500; }

@media (max-width: 1024px) {
  .auth-form-wide { width: 100%; }
}

@media (max-width: 860px) {
  .nav-auth .btn { justify-content: center; }
  .nav-auth { gap: 8px; }
}

@media (max-width: 640px) {
  .auth-aside { padding: 26px 22px; }
  .auth-aside h2 { font-size: 1.4rem; }
  .auth-points { gap: 10px; }
  .auth-divider { margin: 16px 0 12px; }
}

/* ==================================================================
   Panel Travel — kelola harga paket
   ================================================================== */
.panel-toolbar { margin-bottom: 22px; }
.panel-tabs { background: rgba(255, 255, 255, 0.9); }
.panel-tabs .tab { font-size: 0.9rem; padding: 9px 16px; }

.stat-harga { font-size: 1.28rem !important; }

.table-harga th:nth-child(4),
.table-harga th:nth-child(5),
.table-harga th:nth-child(6) { text-align: right; }
.table-harga td:nth-child(4),
.table-harga td:nth-child(5),
.table-harga td:nth-child(6) { text-align: right; }
.harga-lama { color: var(--muted); font-weight: 600; }

.cell-harga { min-width: 190px; }
.field-harga {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field-harga:focus-within { border-color: var(--emas-700); box-shadow: 0 0 0 3px rgba(143, 103, 22, 0.14); }
.field-harga .rp { font-size: 0.84rem; color: var(--muted); }
.field-harga input {
  width: 118px;
  border: 0;
  padding: 2px 0;
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  text-align: right;
}
.field-harga input:focus { outline: none; }
.field-harga input::-webkit-outer-spin-button,
.field-harga input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-harga input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
.field-error.field-harga, .field-harga.field-error { border-color: var(--danger); background: #fffafa; }

.selisih-harga { display: block; margin-top: 5px; }
.selisih-harga.naik { color: var(--ok-text); font-weight: 600; }
.selisih-harga.turun { color: var(--danger); font-weight: 600; }

.penyesuai {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--emas-50);
  border: 1px solid rgba(143, 103, 22, 0.14);
}
.penyesuai-label { font-size: 0.9rem; font-weight: 600; color: var(--emas-900); }
.penyesuai-aksi { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.penyesuai select {
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 0.88rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.penyesuai input {
  width: 82px;
  padding: 9px 11px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}
.penyesuai .persen { font-weight: 600; color: var(--muted); }
.penyesuai .field-hint { flex-basis: 100%; margin: 0; }

.harga-foot { justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; }
.harga-foot .muted { font-size: 0.88rem; }

@media (max-width: 860px) {
  .panel-toolbar { flex-direction: column; align-items: stretch; }
  .penyesuai { flex-direction: column; align-items: stretch; }
  .penyesuai-aksi { justify-content: flex-start; }
  .table-harga { min-width: 720px; }
  .harga-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .harga-foot .btn { width: 100%; }
}

/* ==================================================================
   Ganti sandi (panel admin)
   ================================================================== */
.field-hint.cocok { color: var(--ok-text); font-weight: 600; }
.field-hint.beda { color: var(--danger); font-weight: 600; }
.field-hint.kurang { color: #96590a; font-weight: 600; }

.check-list.satu-kolom { grid-template-columns: 1fr; }
.check-list.satu-kolom li { font-size: 0.9rem; }

/* ==================================================================
   Kelola Beranda (pratinjau + kolom daftar)
   ================================================================== */
.textarea-daftar {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
}
.prev-judul { font-size: 0.98rem; margin: 22px 0 8px; }

.preview-beranda {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--emas-950), var(--emas-800));
  color: #fff;
}
.prev-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  color: #f6ecd0;
}
.preview-beranda h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.24rem;
  color: #fff;
  margin: 0 0 8px;
  word-break: break-word;
}
.preview-beranda h4 em { font-style: normal; color: var(--gold-light); }
.preview-beranda p { margin: 0 0 14px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.82); }
.prev-tombol { display: flex; flex-wrap: wrap; gap: 8px; }
.prev-tombol span {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--emas-800), var(--emas-700));
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.prev-tombol span.ghost { background: rgba(255, 255, 255, 0.1); }

.prev-langkah { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.prev-langkah li { color: var(--ink-soft); }

@media (max-width: 640px) {
  .preview-beranda h4 { font-size: 1.1rem; }
}

/* ==================================================================
   Galeri foto beranda (slider) & panel kelola galeri
   ================================================================== */
.galeri-section { background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(238,247,243,0.4)); }

.galeri-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}
.galeri-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.galeri-chip span {
  font-size: 0.72rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(107, 77, 16, 0.08);
}
.galeri-chip:hover { color: var(--emas-900); border-color: var(--emas-700); }
.galeri-chip.active {
  background: linear-gradient(135deg, var(--emas-800), var(--emas-700));
  color: #fff;
  border-color: transparent;
}
.galeri-chip.active span { background: rgba(255, 255, 255, 0.24); color: #fff; }

.galeri-album { display: none; }
.galeri-album.active { display: block; }

.slider { position: relative; }
.slider-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.slider-track::-webkit-scrollbar { height: 8px; }
.slider-track::-webkit-scrollbar-thumb { background: rgba(107, 77, 16, 0.18); border-radius: 99px; }

.slide {
  position: relative;
  flex: 0 0 clamp(260px, 42%, 460px);
  margin: 0;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--emas-50);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.slide img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.slide:hover img { transform: scale(1.03); }
.slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  font-size: 0.86rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(31, 22, 6, 0.86));
}

.slider-nav {
  position: absolute;
  top: 44%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(31, 22, 6, 0.62);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.18s ease, transform 0.18s ease;
}
.slider-nav:hover { background: var(--emas-800); transform: scale(1.05); }
.slider-nav svg { width: 20px; height: 20px; stroke-width: 2.2; }
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }
.slider-nav[disabled] { opacity: 0.35; cursor: not-allowed; transform: none; }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 77, 16, 0.22);
  cursor: pointer;
  transition: background 0.18s ease, width 0.18s ease;
}
.dot.active { background: var(--emas-700); width: 26px; border-radius: 99px; }

/* --- Panel kelola galeri ------------------------------------------- */
.galeri-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr); gap: 26px; align-items: start; }
.galeri-utama { display: flex; flex-direction: column; gap: 24px; }
.galeri-sisi { display: flex; flex-direction: column; gap: 20px; }

.album-list { display: flex; flex-direction: column; gap: 12px; }
.album-kartu {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}
.album-kartu.active { border-color: var(--emas-700); background: var(--emas-50); }
.album-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.album-nama { font-weight: 700; color: var(--ink); display: flex; flex-direction: column; }
.album-nama small { font-weight: 500; font-size: 0.78rem; color: var(--muted); }
.album-ket { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }
.album-aksi { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.album-aksi .btn[disabled] { opacity: 0.4; }

.unggah-box {
  padding: 20px;
  margin-bottom: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(251, 245, 228, 0.5);
}
.field-unggah {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  cursor: pointer;
}
.field-unggah strong { font-size: 0.96rem; }
.field-unggah small { font-size: 0.8rem; color: var(--muted); }
.field-unggah input[type='file'] { margin-top: 10px; font-size: 0.85rem; }
.unggah-ikon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--emas-50);
  color: var(--emas-800);
}
.unggah-ikon svg { width: 24px; height: 24px; }
.unggah-keterangan { margin-top: 16px; }
.unggah-keterangan .btn { width: 100%; }
.upload-status { margin: 12px 0 0; font-size: 0.88rem; }
.upload-status.ok { color: var(--ok-text); font-weight: 600; }
.upload-status.err { color: var(--danger); font-weight: 600; }
.upload-status.info { color: var(--muted); }

.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.foto-kartu {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.foto-kartu img { width: 100%; height: 140px; object-fit: cover; display: block; }
.foto-ket { display: flex; gap: 6px; padding: 10px; }
.foto-ket input {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  font-family: var(--font);
  font-size: 0.82rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.foto-aksi { display: flex; gap: 6px; padding: 0 10px 12px; }
.foto-aksi .inline-form { display: inline-flex; }

@media (max-width: 1024px) {
  .galeri-admin { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .slide { flex: 0 0 82%; }
  .slide img { height: 220px; }
  .slider-nav { width: 38px; height: 38px; top: 40%; }
  .galeri-chip { font-size: 0.82rem; padding: 8px 13px; }
  .foto-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ==================================================================
   Galeri video beranda (grid kartu + jendela pemutar)
   ================================================================== */
.galeri-video-section { background: linear-gradient(180deg, rgba(238,247,243,0.4), rgba(255,255,255,0.6)); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

.video-kartu { margin: 0; }
.video-tombol {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--emas-950);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  font-family: var(--font);
  text-align: left;
}
.video-tombol:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.video-pratinjau {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #241a08;
  pointer-events: none;
}
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(31, 22, 6, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, background 0.18s ease;
  margin-top: -22px;
}
.video-tombol:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--emas-700); }
.video-play svg { width: 26px; height: 26px; }
.video-nama {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 13px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(31, 22, 6, 0.9));
}

/* Jendela pemutar */
.pemutar { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.pemutar[hidden] { display: none; }
.pemutar-latar { position: absolute; inset: 0; background: rgba(4, 20, 15, 0.82); backdrop-filter: blur(4px); }
.pemutar-kotak {
  position: relative;
  width: 100%;
  max-width: 940px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1c1405;
  box-shadow: var(--shadow-lg);
}
.pemutar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(140deg, var(--emas-950), var(--emas-800));
  color: #fff;
}
.pemutar-head strong { font-family: var(--font-display); font-weight: 400; font-size: 1.06rem; }
.pemutar-tutup {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.pemutar-tutup:hover { background: rgba(255, 255, 255, 0.2); }
.pemutar-tutup svg { width: 18px; height: 18px; stroke-width: 2.2; }
#pemutar-video-el { display: block; width: 100%; max-height: 72vh; background: #000; }

body.pemutar-terbuka { overflow: hidden; }

/* Panel admin video ------------------------------------------------ */
.video-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.foto-video-kartu {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.vf-preview { position: relative; background: #241a08; }
.vf-preview video { display: block; width: 100%; height: 150px; object-fit: cover; }
.vf-nonaktif {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(180, 35, 24, 0.24);
}
.vf-cek { display: flex; align-items: center; gap: 5px; font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.vf-cek input { accent-color: var(--emas-700); }
.vf-ukuran { margin-right: auto; }
.foto-aksi { flex-wrap: wrap; align-items: center; }

.unggah-progres { margin-top: 14px; }
.unggah-progres[hidden] { display: none; }

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; gap: 18px; }
  .video-pratinjau { height: 170px; }
  .pemutar { padding: 12px; }
  .video-admin-grid { grid-template-columns: 1fr; }
}

/* Ubah jenis pembayaran pada riwayat (panel admin) */
.row-jenis { display: inline-flex; gap: 6px; align-items: center; margin-right: 6px; }
.row-jenis select {
  padding: 6px 9px;
  font-family: var(--font);
  font-size: 0.78rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

/* ==================================================================
   Lonceng notifikasi admin (pendaftaran jamaah baru)
   ================================================================== */
.notif { position: relative; display: inline-block; }

.notif-tombol {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--emas-800);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.notif-tombol:hover { background: var(--emas-50); border-color: var(--emas-700); }
.notif-tombol svg { width: 19px; height: 19px; }
.notif-tombol.ada { border-color: var(--emas-700); background: var(--emas-50); }
.notif-tombol.ada svg { animation: notif-goyang 2.6s ease-in-out infinite; transform-origin: 50% 12%; }

@keyframes notif-goyang {
  0%, 84%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-11deg); }
  92% { transform: rotate(9deg); }
  96% { transform: rotate(-5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .notif-tombol.ada svg { animation: none; }
}

.notif-lencana {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a227, #e2c569);
  color: #3a2c05;
  font-size: 0.68rem;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(74, 52, 12, 0.28);
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 330px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.notif-panel[hidden] { display: none; }

.notif-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 13px 16px;
  background: linear-gradient(140deg, var(--emas-950), var(--emas-800));
  color: #fff;
}
.notif-head strong { font-family: var(--font-display); font-weight: 400; font-size: 1rem; }
.notif-jumlah { font-size: 0.76rem; color: var(--gold-light); font-weight: 600; }
.notif-jumlah.kosong { color: rgba(255, 255, 255, 0.66); font-weight: 400; }

.notif-isi { max-height: 300px; overflow-y: auto; }
.notif-kosong { margin: 0; padding: 18px 16px; font-size: 0.86rem; color: var(--muted); }

.notif-item {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.notif-item:hover { background: var(--emas-50); }
.notif-ikon {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--emas-50);
  border: 1px solid rgba(143, 103, 22, 0.2);
  color: var(--emas-800);
}
.notif-ikon svg { width: 17px; height: 17px; }
.notif-teks { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.notif-teks strong { font-size: 0.9rem; }
.notif-teks small { font-size: 0.78rem; color: var(--muted); }
.notif-waktu { font-size: 0.73rem !important; }

.notif-kaki {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--emas-50);
}

/* Grup kanan header: lonceng notifikasi + tombol menu mobile */
.header-kanan { display: flex; align-items: center; gap: 10px; }

@media (max-width: 860px) {
  .notif-panel { right: 0; left: auto; }
}

/* ==================================================================
   Ruang iklan AdSense (hanya di beranda publik)
   ================================================================== */
.iklan-zona { padding: 26px 0; }
.iklan-zona + .iklan-zona { padding-top: 0; }

.iklan-kotak {
  position: relative;
  padding: 34px 18px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  /* Tinggi minimum menjaga tata letak tidak melompat saat iklan termuat (CLS). */
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.iklan-label {
  position: absolute;
  top: 9px;
  left: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--emas-50);
  border: 1px solid rgba(143, 103, 22, 0.22);
  color: var(--emas-800);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.iklan-unit { width: 100%; min-height: 90px; display: block; }
.iklan-catatan { margin-top: 10px; font-size: 0.74rem; color: var(--muted); }

@media (max-width: 640px) {
  .iklan-zona { padding: 20px 0; }
  .iklan-kotak { padding: 30px 12px 14px; min-height: 110px; }
}
@media print { .iklan-zona { display: none !important; } }
