/* =============================================================================
   Reuni Akbar 30 Tahun Ar-Rohmah Putra Malang
   Design system - palet dikunci pada tiga warna: biru, kuning, putih.
   ========================================================================== */

/* --- 1. Design tokens ----------------------------------------------------- */
:root {
  /* Biru (warna utama lambang pesantren) */
  --blue-900: #042744;
  --blue-800: #063c6b;
  --blue-700: #085494;   /* brand */
  --blue-600: #0d6ab8;
  --blue-500: #2b84d8;
  --blue-200: #b9d4f0;
  --blue-100: #dbe9f9;
  --blue-50:  #f1f7fd;

  /* Kuning (warna sekunder lambang pesantren) */
  --yellow-700: #8a6100;  /* aman untuk teks di atas putih / kuning muda */
  --yellow-600: #b07c00;
  --yellow-500: #fdb102;  /* brand */
  --yellow-300: #ffd75e;
  --yellow-100: #fff4d6;
  --yellow-50:  #fffaec;

  /* Putih & netral bernuansa biru */
  --white: #ffffff;
  --ink: #0c2743;         /* teks utama */
  --ink-soft: #48688a;    /* teks sekunder, kontras >= 4.5:1 di atas putih */
  --line: #d9e6f4;
  --placeholder: #7f9ab5;

  /* Tipografi */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Skala jarak */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radius & elevasi */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(8, 84, 148, .06), 0 1px 3px rgba(8, 84, 148, .08);
  --shadow-md: 0 4px 12px rgba(8, 84, 148, .08);
  --shadow-lg: 0 12px 32px rgba(8, 84, 148, .12);

  --header-h: 76px;
  --bottom-nav-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Reset & dasar ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* Atribut hidden harus selalu menang atas display pada kelas komponen. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img,
svg { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}

p { margin: 0; }
ul,
ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

button,
input,
select { font: inherit; color: inherit; }

button { cursor: pointer; border: 0; background: none; }

::selection { background: var(--yellow-300); color: var(--blue-900); }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--blue-50); }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-500); }

/* --- 3. Layout primitives ------------------------------------------------- */
.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
}

.section { padding: var(--space-8) 0; }
.section--tight { padding: var(--space-7) 0; }
.section--blue { background: var(--blue-50); }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--space-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--blue-700);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 12px; }

/* Ornamen bintang delapan (Rub el Hizb) sebagai latar sangat halus */
.bg-ornament {
  background-color: var(--blue-50);
  background-image: url("../images/ornament-star.svg");
  background-size: 132px 132px;
}

/* --- 4. Tipografi --------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: var(--r-full);
}

.eyebrow--yellow { color: var(--yellow-700); background: var(--yellow-100); }

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  margin: var(--space-3) 0;
}

.section-head p { color: var(--ink-soft); font-size: .975rem; }

.lead { color: var(--ink-soft); font-size: 1.05rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .8125rem; }
.tiny { font-size: .75rem; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* --- 5. Tombol ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 24px;
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue-700); color: var(--white); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--blue-800); }

.btn--accent { background: var(--yellow-500); color: var(--blue-900); box-shadow: var(--shadow-md); }
.btn--accent:hover { background: var(--yellow-300); }

.btn--outline { background: var(--white); color: var(--blue-700); border-color: var(--blue-200); }
.btn--outline:hover { border-color: var(--blue-700); background: var(--blue-50); }

.btn--quiet { background: var(--blue-50); color: var(--blue-700); }
.btn--quiet:hover { background: var(--blue-100); }

.btn--ghost { color: var(--ink-soft); }
.btn--ghost:hover { color: var(--blue-700); background: var(--blue-50); }

.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .8125rem; }
.btn--block { width: 100%; }

/* --- 6. Kartu ------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}

.card--hover:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  font-size: 1.15rem;
  background: var(--blue-100);
  color: var(--blue-700);
}

.card__icon--yellow { background: var(--yellow-100); color: var(--yellow-700); }

.card__label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card__title { font-size: 1.05rem; margin: 2px 0 4px; }

/* --- 7. Header & navigasi ------------------------------------------------- */
.topbar {
  background: var(--blue-700);
  color: var(--white);
  font-size: .8125rem;
  padding: 8px 0;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
}

.topbar__text { line-height: 1.45; }

.topbar__cta {
  color: var(--yellow-300);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.topbar__cta:hover { color: var(--white); }

/* Di layar sempit bilah ini diringkas agar tetap satu baris:
   ajakan dibuang (sudah ada di header dan bilah bawah), nama kampus disingkat. */
@media (max-width: 860px) {
  .topbar { font-size: .75rem; padding: 7px 0; }
  .topbar__inner { gap: var(--space-2); }
  .topbar__lead,
  .topbar__cta { display: none; }
}

@media (max-width: 560px) {
  .topbar { font-size: .6875rem; }
  .topbar__campus { display: none; }
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-500);
  flex: 0 0 8px;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand:hover { text-decoration: none; }
.brand__logo { height: 42px; width: auto; }
.brand__divider { width: 1px; align-self: stretch; background: var(--line); margin: 14px 0; }

.brand__tag {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
  line-height: 1.35;
}

.brand__tag span { display: block; color: var(--yellow-700); }

.nav { display: flex; align-items: center; gap: var(--space-5); }

.nav__link {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--yellow-500);
  transition: right .25s var(--ease);
}

.nav__link:hover { color: var(--blue-700); text-decoration: none; }
.nav__link:hover::after { right: 0; }

/* Seksi yang sedang dibaca ditandai garis kuning penuh. */
.nav__link.is-current { color: var(--blue-700); }
.nav__link.is-current::after { right: 0; }

/* Aksi tunggal di header ponsel; sisa navigasi pindah ke bilah bawah. */
.header-cta { display: none; }

@media (max-width: 1024px) {
  .nav,
  .brand__divider,
  .brand__tag { display: none; }

  .header-cta { display: inline-flex; }
}

/* --- 7b. Navigasi bawah (ponsel) ------------------------------------------ */
.bottom-nav { display: none; }

@media (max-width: 1024px) {
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(8, 84, 148, .08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Beri ruang agar konten terakhir tidak tertutup bilah bawah. */
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }

  .toast { bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px)); }
}

.bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* Kurangi 1px border-top bilah agar token = tinggi total bilah. */
  min-height: calc(var(--bottom-nav-h) - 1px);
  padding: 6px 2px;
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}

.bottom-nav__item i { font-size: 1.1rem; }

.bottom-nav__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 var(--r-full) var(--r-full);
  background: var(--blue-700);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}

.bottom-nav__item.is-current { color: var(--blue-700); }
.bottom-nav__item.is-current::before { transform: scaleX(1); }

/* Aksi utama: ikon berlatar kuning agar terbaca sebagai tombol ajakan. */
.bottom-nav__item--cta { color: var(--yellow-700); }

.bottom-nav__item--cta i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--yellow-500);
  color: var(--blue-900);
  font-size: .9375rem;
  box-shadow: 0 3px 10px rgba(253, 177, 2, .4);
}

.bottom-nav__item--cta::before { background: var(--yellow-500); }
.bottom-nav__item--cta.is-current { color: var(--yellow-700); }

/* --- 8. Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 460px at 12% -10%, var(--yellow-50), transparent 62%),
    linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--space-8);
  align-items: center;
}

.hero__title {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
  line-height: 1.08;
  margin: var(--space-4) 0;
}

.hero__title em { font-style: normal; color: var(--blue-700); }

.hero__title .underline-accent {
  background: linear-gradient(transparent 62%, var(--yellow-300) 62%);
  padding: 0 2px;
  /* Jaga sorotan tetap satu baris agar tidak terpotong saat teks membungkus. */
  white-space: nowrap;
}

.hero__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, .95rem + .6vw, 1.3rem);
  color: var(--blue-800);
  line-height: 1.55;
  border-left: 4px solid var(--yellow-500);
  padding: 4px 0 4px var(--space-4);
  margin-bottom: var(--space-5);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.hero__meta-item { display: flex; align-items: center; gap: var(--space-3); }
.hero__meta-item i { color: var(--blue-700); font-size: 1.05rem; }

.hero__aside { display: grid; gap: var(--space-4); justify-items: center; }

/* Logo resmi reuni: bingkai birunya sudah menyatu, jadi cukup radius + bayangan. */
.emblem {
  width: min(330px, 74vw);
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: 0 14px 36px rgba(8, 84, 148, .16);
}

@media (max-width: 960px) {
  .hero { padding: var(--space-7) 0; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__aside { order: -1; }
}

/* --- 9. Countdown --------------------------------------------------------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.countdown__cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-3) var(--space-2);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.countdown__value {
  display: block;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 800;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
}

.countdown__cell:nth-child(odd) .countdown__value { color: var(--yellow-600); }

.countdown__label {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
  font-weight: 600;
}

/* --- 10. Info & lokasi ---------------------------------------------------- */
.info-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.info-card--accent { border-top: 3px solid var(--yellow-500); }
.info-card--blue { border-top: 3px solid var(--blue-700); }

.venue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5);
}

/* --- 11. Pilar & banner --------------------------------------------------- */
.pillar__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow-600);
  line-height: 1;
}

.pillar h3 { font-size: 1.15rem; margin: var(--space-3) 0 var(--space-2); }

.banner {
  margin-top: var(--space-6);
  background: var(--blue-700);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.banner h3 { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); margin-top: var(--space-2); }
.banner p { color: var(--blue-100); font-size: .9375rem; margin-top: var(--space-2); max-width: 52ch; }
.banner .eyebrow { background: rgba(255, 255, 255, .16); color: var(--yellow-300); }

/* --- 12. Agenda (timeline) ------------------------------------------------ */
.timeline { max-width: 780px; margin-inline: auto; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 115px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--space-6);
  padding: var(--space-4) 0;
}

.timeline__time {
  text-align: right;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.timeline__time span { display: block; font-weight: 500; color: var(--ink-soft); }

.timeline__body { position: relative; padding-left: var(--space-5); }

.timeline__body::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-500);
}

.timeline__item--key .timeline__body::before {
  border-color: var(--yellow-500);
  background: var(--yellow-500);
}

.timeline__body h3 { font-size: 1.0625rem; }
.timeline__body p { color: var(--ink-soft); font-size: .875rem; margin-top: var(--space-2); }

.badge-key {
  display: inline-block;
  margin-left: var(--space-2);
  vertical-align: 2px;
  background: var(--yellow-100);
  color: var(--yellow-700);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

@media (max-width: 640px) {
  .timeline::before { display: none; }
  .timeline__item { grid-template-columns: 1fr; gap: var(--space-2); }
  .timeline__time { text-align: left; }
  .timeline__time span { display: inline; margin-left: var(--space-2); }
  .timeline__body { padding-left: 0; }
  .timeline__body::before { display: none; }
}

/* --- 13. Narahubung ------------------------------------------------------- */
.contact-card { display: flex; flex-direction: column; }

.contact-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.contact-card h3 { font-size: 1.0625rem; }

.contact-card__phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  margin-top: var(--space-3);
  font-variant-numeric: tabular-nums;
}

.contact-card__phone i { color: var(--yellow-600); }

.contact-card__actions {
  margin-top: auto;
  padding-top: var(--space-5);
}

.share-box {
  max-width: 680px;
  margin: var(--space-6) auto 0;
  text-align: center;
}

.share-box h3 { font-size: 1.25rem; }

/* Tautan resmi acara: dapat diklik sekaligus disalin. */
.link-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--blue-50);
  border: 1px dashed var(--blue-200);
  border-radius: var(--r-md);
  padding: var(--space-3) var(--space-4);
}

.link-pill i { color: var(--blue-700); }

.link-pill a {
  font-weight: 700;
  font-size: .9375rem;
  word-break: break-all;
}

.link-pill .btn { background: var(--white); }
.link-pill .btn:hover { background: var(--blue-100); }

.share-box__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.share-box__actions .btn { flex: 1 1 240px; }

@media (max-width: 480px) {
  .share-box__actions .btn { flex-basis: 100%; }
}

/* --- 14. Formulir RSVP ---------------------------------------------------- */
.form-page { background: var(--blue-50); padding: var(--space-7) 0 var(--space-8); flex: 1; }

.form-card {
  max-width: 760px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-700) 0%, var(--yellow-500) 100%);
}

@media (max-width: 640px) {
  .form-card { padding: var(--space-5) var(--space-4); }
}

.fieldset { border: 0; padding: 0; margin: 0 0 var(--space-6); }

.fieldset__legend {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-800);
  margin-bottom: var(--space-2);
  padding: 0;
}

.fieldset__legend i { color: var(--blue-700); }

.field { margin-bottom: var(--space-5); }
.field:last-child { margin-bottom: 0; }
.field__label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: var(--space-2); }
.field__hint { font-size: .75rem; color: var(--ink-soft); margin-top: var(--space-2); }
.req { color: var(--blue-700); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.input::placeholder { color: var(--placeholder); }
.input:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 4px var(--blue-100); }
.input[aria-invalid="true"] { border-color: var(--yellow-600); box-shadow: 0 0 0 4px var(--yellow-100); }

.input-group { position: relative; }

.input-group__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-700);
  pointer-events: none;
}

.input-group--icon .input { padding-left: 46px; padding-right: 52px; }

.input-group__clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  color: var(--ink-soft);
}

.input-group__clear:hover { background: var(--blue-50); color: var(--blue-700); }

.combobox { position: relative; }

.combobox__list {
  position: absolute;
  z-index: 30;
  inset-inline: 0;
  top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-height: 288px;
  overflow-y: auto;
  padding: 6px;
}

.combobox__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r-sm);
}

.combobox__option:hover,
.combobox__option.is-active { background: var(--blue-50); }
.combobox__option strong { display: block; font-size: .9375rem; font-weight: 700; }
.combobox__option small { color: var(--ink-soft); font-size: .75rem; }
.combobox__option mark { background: var(--yellow-100); color: var(--blue-800); border-radius: 3px; padding: 0 2px; }

.combobox__option--manual {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
  color: var(--blue-700);
  font-weight: 700;
  font-size: .8125rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.selected-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--r-md);
  padding: var(--space-3) var(--space-4);
}

.selected-chip strong,
.selected-chip .small { display: block; }

.selected-chip__avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--r-full);
  background: var(--blue-700);
  color: var(--white);
  display: grid;
  place-items: center;
}

.counter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-3) var(--space-4);
}

.counter-row + .counter-row { margin-top: var(--space-3); }

.switch { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--blue-700); cursor: pointer; flex: 0 0 22px; }
.switch strong { display: block; font-size: .9375rem; }
.switch small { color: var(--ink-soft); font-size: .75rem; }

.stepper { display: flex; align-items: center; gap: var(--space-2); }
.stepper[hidden] { display: none; }

.stepper button {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 800;
  font-size: 1.1rem;
  transition: background-color .2s var(--ease);
}

.stepper button:hover:not(:disabled) { background: var(--blue-100); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }

.stepper input {
  width: 56px;
  min-height: 40px;
  text-align: center;
  font-weight: 700;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-variant-numeric: tabular-nums;
}

.panel {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5);
}

.panel--accent { background: var(--yellow-50); border-color: var(--yellow-300); }

@media (max-width: 640px) {
  .panel { padding: var(--space-4); }
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

.summary-row output {
  font-weight: 700;
  color: var(--blue-800);
  background: var(--blue-100);
  padding: 4px 14px;
  border-radius: var(--r-full);
}

.bank {
  background: var(--white);
  border: 1px solid var(--yellow-300);
  border-radius: var(--r-md);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.bank__number {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  color: var(--blue-800);
}

/* Penanda bahwa nomor rekening di halaman ini masih contoh. */
.bank__note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  background: var(--yellow-100);
  border: 1px solid var(--yellow-300);
  color: var(--yellow-700);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

@media (max-width: 640px) {
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
}

.chip {
  min-height: 44px;
  padding: 10px 12px;
  font-size: .8125rem;
  font-weight: 700;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.chip:hover { border-color: var(--yellow-500); }
.chip[aria-pressed="true"] { background: var(--yellow-100); border-color: var(--yellow-500); color: var(--yellow-700); }

/* --- 15. Modal & toast ---------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 60, 107, .55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: var(--space-4);
  overflow-y: auto;
}

.modal[hidden] { display: none; }

.modal__panel {
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modal-in .28s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .modal__panel { padding: var(--space-5) var(--space-4); }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  color: var(--ink-soft);
}

.modal__close:hover { background: var(--blue-50); color: var(--blue-700); }

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: var(--yellow-100);
  color: var(--yellow-700);
  font-size: 1.6rem;
}

.receipt {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-2) var(--space-4);
  margin: var(--space-5) 0;
}

.receipt__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px 0;
  font-size: .875rem;
}

.receipt__row + .receipt__row { border-top: 1px solid var(--line); }
.receipt__row dt { color: var(--ink-soft); margin: 0; }
.receipt__row dd { margin: 0; font-weight: 700; text-align: right; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  background: var(--blue-800);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  max-width: min(420px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: .875rem;
  pointer-events: none;
}

.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast i { color: var(--yellow-300); flex-shrink: 0; }

/* --- 16. Footer ----------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--blue-800);
  color: var(--white);
  border-top: 5px solid var(--yellow-500);
  padding: var(--space-8) 0 var(--space-5);
}

.site-footer a { color: var(--blue-100); }
.site-footer a:hover { color: var(--yellow-300); }
.site-footer button { color: var(--blue-100); font-size: .875rem; text-align: left; }
.site-footer button:hover { color: var(--yellow-300); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow-300);
  margin-bottom: var(--space-3);
}

.site-footer p,
.site-footer address,
.site-footer li { color: var(--blue-100); font-size: .875rem; font-style: normal; }

.site-footer li + li { margin-top: var(--space-2); }

.site-footer__logo {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: inline-block;
  margin-bottom: var(--space-4);
}

.site-footer__logo img { height: 40px; width: auto; }

.site-footer__bottom {
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--blue-100);
}

/* --- 17. Rute tampilan & animasi ------------------------------------------ */
.view { display: flex; flex-direction: column; flex: 1; }
.view[hidden] { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

/* --- 18. Utilitas --------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex { display: flex; }
.items-center { align-items: center; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.text-center { text-align: center; }

/* Opsi input manual: ikon dan label dikelompokkan di sisi kiri. */
.combobox__option--manual { justify-content: flex-start; }
