/* ============================================
   MOMENTS — Virtual Photobooth
   Palette: Ivory / Soft warm
   Font:    Plus Jakarta Sans + Fraunces
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&display=swap');

:root {
  --bg-base: #faf6ee;
  --bg-cream: #f4ecdd;
  --bg-soft: #fbf8f1;
  --bg-warm-glow: rgba(212, 175, 130, 0.28);
  --bg-rose-glow: rgba(199, 152, 162, 0.24);

  --ink-900: #2a221a;
  --ink-800: #3b3025;
  --ink-700: #5a4a3a;
  --ink-600: #756151;
  --ink-500: #94806a;
  --ink-400: #b3a48b;
  --ink-300: #d4c5ac;

  --accent: #b88456;
  --accent-soft: #d4a574;
  --accent-deep: #8a5e35;
  --rose: #c08699;
  --rose-soft: #d8a7b5;
  --moss: #8b9d6b;

  --line: rgba(58, 44, 26, 0.10);
  --line-strong: rgba(58, 44, 26, 0.18);
  --surface: rgba(255, 252, 245, 0.72);
  --surface-strong: rgba(255, 252, 245, 0.92);
  --surface-soft: rgba(255, 252, 245, 0.55);

  --shadow-soft: 0 10px 30px rgba(95, 70, 35, 0.08);
  --shadow-md: 0 18px 50px rgba(95, 70, 35, 0.12);
  --shadow-lg: 0 30px 80px rgba(95, 70, 35, 0.16);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

/* Atribut [hidden] WAJIB menang di atas display:flex / display:grid,
   jika tidak, elemen tersembunyi tetap tampil (mis. booth & welcome
   muncul bersamaan saat di HP). */
[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-800);
  background:
    radial-gradient(1100px 700px at 18% 8%, var(--bg-warm-glow), transparent 42%),
    radial-gradient(900px 600px at 92% 28%, var(--bg-rose-glow), transparent 48%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-cream) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

em,
.tagline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

/* ===== Page primitives (admin/login/etc) ===== */
.page {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.card {
  width: min(920px, 100%);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.card--wide {
  width: min(1400px, 100%);
  padding: 26px 28px;
}

.card--xl {
  width: min(1600px, 100%);
  padding: 26px 28px;
}

/* Welcome check-in card: lebih ramping dari .card umum agar nyaman di HP */
.welcome-card {
  width: min(520px, 100%);
  padding: 0;
  overflow: hidden;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.hero__title {
  font-weight: 800;
  letter-spacing: -0.4px;
  font-size: 18px;
  color: var(--ink-900);
}

.hero__subtitle {
  color: var(--ink-600);
  font-size: 13px;
}

.hero__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.step {
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-800);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink-900);
  transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent;
  color: #fff7ea;
  box-shadow: 0 10px 24px rgba(184, 132, 86, 0.32);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
  color: #fff;
}

.btn--ghost {
  background: var(--surface-soft);
  color: var(--ink-800);
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
}

/* ===== Forms ===== */
input,
select,
button {
  font: inherit;
  font-family: var(--font-sans);
}

form.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="email"],
select {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink-900);
  padding: 12px 14px;
  outline: none;
  font-weight: 500;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 132, 86, 0.14);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(28%) sepia(20%) saturate(800%) hue-rotate(355deg) brightness(95%) contrast(85%);
  cursor: pointer;
}

button.btn {
  cursor: pointer;
}

/* ===== Tables (admin) ===== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

thead th {
  font-size: 11px;
  text-align: left;
  color: var(--ink-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 10px 6px 10px;
}

tbody tr {
  background: var(--surface);
  border: 1px solid var(--line);
}

tbody td {
  padding: 12px 10px;
  font-size: 13px;
  color: var(--ink-800);
}

tbody tr td:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

tbody tr td:last-child {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* ===== Utility ===== */
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-700);
  margin: 4px 4px 4px 0;
}

.flash {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(192, 134, 153, 0.12);
  border: 1px solid rgba(192, 134, 153, 0.3);
  font-size: 13px;
  color: #7a4555;
}

.flash--ok {
  background: rgba(139, 157, 107, 0.14);
  border-color: rgba(139, 157, 107, 0.32);
  color: #4d5e35;
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pad-y-18 {
  padding: 18px 0;
}

.qr-img {
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.section-title {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink-700);
}

.input-wrapper {
  display: block;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius);
}

/* ===== Watermark / overlay (panel) ===== */
.wm-box {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wm-box legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700);
}

.wm-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-500);
}

.wm-hint {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.7;
}

.wm-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.wm-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 10px;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.wm-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbf8f1;
}

.wm-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-600);
}

.wm-remove {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #b3574f;
  margin: 0;
  cursor: pointer;
}

.wm-remove:hover {
  color: #8f2f27;
}

@media (max-width: 640px) {
  .wm-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Welcome Screen (event check-in) ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseSoft {
  0% { box-shadow: 0 0 0 0 rgba(184, 132, 86, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(184, 132, 86, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 132, 86, 0); }
}

.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px 48px;
  gap: 16px;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.welcome-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  color: var(--accent);
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

.welcome-event-name {
  font-family: var(--font-serif);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 500;
  font-style: italic;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.5px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.welcome-event-date {
  font-family: var(--font-sans);
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

.welcome-quota {
  margin-top: 8px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

.welcome-quota .badge {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-600);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.welcome-action {
  margin-top: 24px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}

.btn-welcome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 42px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(184, 132, 86, 0.3);
  transition: all 0.3s ease;
  animation: pulseSoft 2.5s infinite;
}

.btn-welcome:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 132, 86, 0.4);
  background: var(--accent-deep);
}

.btn-welcome svg {
  width: 22px;
  height: 22px;
}

.welcome-gallery-link {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

.welcome-gallery-link a {
  color: var(--ink-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.welcome-gallery-link a:hover {
  color: var(--ink-700);
}

.booth-content {
  /* container for the actual booth UI */
}

/* ===== Booth Fullscreen UI (Disposable Camera) ===== */
.booth-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.booth-video-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #111;
}

.booth-video-container video,
.booth-video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Live view & preview: kotak portrait 3:4 yang CENTER-CROP dari stream.
   Hasil foto persis sama dengan yang terlihat di layar (WYSIWYG) — tidak ada
   lagi tampilan "ter-zoom" karena sisi yang dipotong kini proporsional. */
.booth-video-container #liveWrap,
.booth-video-container #previewWrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.booth-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: calc(24px + env(safe-area-inset-top)) 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #fff;
}

/* Baris filter (paling atas) — dropdown select */
.booth-filter-ctrl {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booth-filter-label {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
}

.booth-filter-select {
  flex: 1;
  min-width: 0;
  max-width: 200px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.28);
  background:
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px,
    rgba(0,0,0,0.4);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 30px 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.booth-filter-select option {
  color: #fff;
  background: #2a221a;
}

.booth-top-quota {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  background: rgba(0,0,0,0.4);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: nowrap;
}

/* Live preview filter — diterapkan ke <video> (dan <img> jika perlu) */
.booth-video-container video.filter--bw,
.booth-video-container img.filter--bw { filter: grayscale(1) contrast(1.05); }
.booth-video-container video.filter--vintage,
.booth-video-container img.filter--vintage { filter: sepia(0.55) contrast(1.05) saturate(1.05); }
.booth-video-container video.filter--warm,
.booth-video-container img.filter--warm { filter: sepia(0.25) saturate(1.25) contrast(1.05) hue-rotate(-10deg); }
.booth-video-container video.filter--cool,
.booth-video-container img.filter--cool { filter: saturate(1.1) contrast(1.05) hue-rotate(12deg); }

.booth-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 28px 24px calc(48px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.booth-shutter {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.booth-shutter:active {
  transform: scale(0.92);
}

.booth-shutter-inner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.booth-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  justify-content: center;
}

.booth-actions .btn {
  flex: 1;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 100px;
}

.booth-actions .btn--ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

/* Tombol putar kamera (depan/belakang) — kanan bawah ala kamera iPhone */
.booth-flip-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0;
  z-index: 11;
  transition: transform 0.2s, background 0.2s;
}

.booth-flip-btn:active {
  transform: translateY(-50%) scale(0.9);
  background: rgba(255,255,255,0.25);
}

.booth-flash-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  z-index: 20;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.booth-flash-ok {
  background: rgba(139, 157, 107, 0.9);
}

/* ===== Mobile refinements (welcome + booth) ===== */
@media (max-width: 480px) {
  .page {
    padding: 14px;
  }

  .welcome-screen {
    padding: 40px 20px 36px;
    gap: 14px;
  }

  .welcome-icon {
    width: 44px;
    height: 44px;
  }

  .welcome-event-name {
    font-size: clamp(26px, 9vw, 36px);
  }

  .welcome-action {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .btn-welcome {
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    font-size: 17px;
  }

  .booth-top-bar {
    padding: calc(14px + env(safe-area-inset-top)) 14px 10px;
    gap: 8px;
  }

  .booth-filter-label {
    font-size: 11px;
  }

  .booth-filter-select {
    font-size: 12px;
    padding: 7px 28px 7px 10px;
    border-radius: 10px;
  }

  .booth-top-quota {
    font-size: 12px;
    padding: 5px 12px;
  }

  .booth-bottom-bar {
    padding: 26px 16px calc(30px + env(safe-area-inset-bottom));
  }

  .booth-shutter {
    width: 66px;
    height: 66px;
  }

  .booth-shutter-inner {
    width: 50px;
    height: 50px;
  }

  .booth-flip-btn {
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .booth-actions {
    gap: 12px;
  }

  .booth-actions .btn {
    font-size: 15px;
    padding: 13px 16px;
  }

  .booth-flash-msg {
    max-width: calc(100% - 32px);
    font-size: 14px;
    padding: 14px 18px;
  }
}

/* ===== iOS date input hardening (per project memory) ===== */

@media (min-width: 720px) {
  .hero__steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .hero__title {
    font-size: 28px;
  }
}

/* ============================================
   GALLERY (public & admin)
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-grid a {
  text-decoration: none;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item__meta {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-600);
}

.admin-photo-delete {
  padding: 0 10px 10px 10px;
}

.admin-photo-delete .btn {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 12px;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 720px) {
  .admin-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Item gallery (public) — reset gaya default <a> */
.gallery-grid a.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  font: inherit;
  color: inherit;
  background: var(--surface);
  text-align: left;
}

/* ===== Mode pilih (public gallery — download banyak) ===== */
.gallery-cell {
  position: relative;
}

.gallery-check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 26px;
  height: 26px;
  display: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.select-mode .gallery-check {
  display: block;
}

.gallery-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gallery-check__mark {
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(42, 34, 26, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease;
}

.gallery-check input:checked + .gallery-check__mark {
  background: var(--accent);
  border-color: #fff;
}

.gallery-check input:checked + .gallery-check__mark::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body.select-mode .gallery-item.is-selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Bar aksi bawah saat mode pilih */
.select-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-strong);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -6px 24px rgba(95, 70, 35, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.select-bar__count {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

body.select-mode .page {
  padding-bottom: 84px;
}

/* Tombol pembuka lightbox di dalam .gallery-item (panel admin) */
.gallery-item__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

/* ===== Photo viewer (lightbox) ===== */
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.photo-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 19, 11, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.photo-viewer__card {
  position: relative;
  width: min(560px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.photo-viewer__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.photo-viewer__title {
  font-weight: 700;
  color: var(--ink-800);
}

.photo-viewer__close {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-600);
  cursor: pointer;
  padding: 0 4px;
}

.photo-viewer__close:hover {
  color: var(--ink-900);
}

.photo-viewer__stage {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: auto;
}

.photo-viewer__stage img {
  max-width: 100%;
  max-height: 64vh;
  border-radius: var(--radius);
  display: block;
  object-fit: contain;
}

.photo-viewer__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-600);
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  max-width: 100%;
}

.photo-viewer__actions {
  padding: 0 14px 14px;
  display: flex;
  justify-content: center;
}

.photo-viewer__actions .btn {
  width: 100%;
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 22px 80px 22px;
  overflow: hidden;
  text-align: center;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero__glow--a {
  width: 540px;
  height: 540px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, var(--bg-warm-glow), transparent 70%);
}

.hero__glow--b {
  width: 580px;
  height: 580px;
  bottom: -180px;
  right: -140px;
  background: radial-gradient(circle, var(--bg-rose-glow), transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 132, 86, 0.18);
}

.hero__title {
  margin: 0 0 16px 0;
  font-size: clamp(38px, 8.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 4.6vw, 36px);
  background: linear-gradient(120deg, var(--accent) 0%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

.hero__lede {
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 580px;
  margin: 0 auto 28px auto;
  font-weight: 400;
}

.hero__lede em {
  font-style: italic;
  color: var(--ink-800);
}

.hero__cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn--lg {
  padding: 15px 22px;
  font-size: 15px;
  border-radius: var(--radius);
}

.hero__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--ink-700);
  box-shadow: var(--shadow-soft);
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
}

.hero__scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* SECTIONS */
.section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 22px;
}

.section--center {
  text-align: center;
}

.section--cta {
  padding-top: 16px;
  padding-bottom: 64px;
}

.section__head {
  text-align: center;
  margin-bottom: 32px;
}

.section__kicker {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(184, 132, 86, 0.12);
  border: 1px solid rgba(184, 132, 86, 0.22);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  margin: 0 0 8px 0;
  font-size: clamp(24px, 4.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.section__sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.55;
}

/* FLOW 9 LANGKAH */
.flow-scroller {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 20px 0;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.flow-scroller::-webkit-scrollbar {
  display: none;
}

.flow-scroller {
  /* Mobile: phone keeps its native 200x410 aspect, just smaller-scale via fixed px */
  --phone-w: 200px;
  --phone-h: 410px;
  --slide-gap: 14px;
  --side-pad: max(16px, calc((100vw - var(--phone-w)) / 2));
  scroll-padding: 0 var(--side-pad);
}

/* Track = baris kartu .phone. Wajib flex agar kartu tersusun horizontal
   (scroller hanya wadah geser; tanpa ini .phone menumpuk vertikal). */
.flow-track {
  display: flex;
  padding-right: var(--side-pad);
}

/* Salinan duplikat (untuk loop marquee desktop) disembunyikan di mobile
   sehingga carousel pas 9 slide. Di desktop di-reset lihat @media 1100px. */
.phone--dup {
  display: none;
}

/* Each .phone stays at native iPhone-ish aspect (200:410 ≈ 0.488) on every screen.
   On mobile it is just smaller + centered in a single-view slide. */
.phone {
  position: relative;
  flex: 0 0 var(--phone-w);
  width: var(--phone-w);
  height: var(--phone-h);
  aspect-ratio: 200 / 410;
  border-radius: 32px;
  background: linear-gradient(160deg, #2a2218, #1a140c);
  padding: 8px;
  box-shadow:
    0 22px 50px rgba(60, 38, 12, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin: 0 calc(var(--slide-gap) / 2);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
  opacity: 0.5;
  transform: scale(0.94);
}

.phone:first-child {
  margin-left: var(--side-pad);
}

.phone:last-child {
  margin-right: var(--side-pad);
}

.phone.is-current {
  opacity: 1;
  transform: scale(1);
  box-shadow:
    0 28px 60px rgba(60, 38, 12, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone:hover {
  transform: scale(1);
  opacity: 1;
  box-shadow:
    0 28px 60px rgba(60, 38, 12, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Pagination dots */
.flow-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease, transform 160ms ease;
}

.flow-dot:hover {
  background: var(--ink-400);
  transform: scale(1.15);
}

.flow-dot.is-active {
  background: var(--accent);
  width: 26px;
}

.flow-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* PHONE MOCKUP — kept dark for contrast on ivory bg */
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background: #0a0805;
  border-radius: 999px;
  z-index: 2;
}

/* Scoped override: only the first .phone inside the flow scroller gets 5px top/bottom margin. */
div#flow-scroller > article.phone:nth-child(1) {
  margin-top: 5px;
  margin-bottom: 5px;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, #1a140c 0%, #2a2018 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 0 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f4e7d0;
  opacity: 0.75;
}

.phone__time {
  margin-left: 32px;
}

.phone__icons {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.phone__icons i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #f4e7d0;
  border-radius: 1px;
  opacity: 0.75;
}

.phone__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 6px 8px 10px 8px;
  position: relative;
}

.phone__num {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-soft);
  background: rgba(184, 132, 86, 0.18);
  border: 1px solid rgba(184, 132, 86, 0.4);
  border-radius: 999px;
  padding: 2px 7px;
  z-index: 1;
}

.phone__art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  min-height: 220px;
}

.phone__caption {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(244, 231, 208, 0.1);
  color: #f4e7d0;
}

.phone__caption-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.phone__caption-sub {
  font-size: 9.5px;
  opacity: 0.7;
  line-height: 1.4;
}

.phone__bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  border-radius: 999px;
  background: rgba(244, 231, 208, 0.4);
}

/* Phone art pieces */
.art-qr {
  display: grid;
  grid-template-columns: repeat(7, 12px);
  grid-auto-rows: 12px;
  gap: 1px;
  padding: 10px;
  background: #faf6ee;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(184, 132, 86, 0.3);
}

.art-qr span {
  background: #1a140c;
  border-radius: 1px;
}

.art-qr span:nth-child(1),
.art-qr span:nth-child(2),
.art-qr span:nth-child(3),
.art-qr span:nth-child(8),
.art-qr span:nth-child(15),
.art-qr span:nth-child(22),
.art-qr span:nth-child(29),
.art-qr span:nth-child(36),
.art-qr span:nth-child(43),
.art-qr span:nth-child(47),
.art-qr span:nth-child(48),
.art-qr span:nth-child(49) {
  background: transparent;
}

.art-event {
  width: 100%;
  background: linear-gradient(180deg, #2a2018, #1a140c);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  border: 1px solid rgba(244, 231, 208, 0.12);
}

.art-event strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #f4e7d0;
  font-weight: 800;
  line-height: 1.3;
}

.art-event span {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  opacity: 0.7;
  letter-spacing: 0.5px;
  color: #d4a574;
}

.art-shield {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.art-shield__bubble {
  font-size: 9px;
  background: rgba(244, 231, 208, 0.06);
  border: 1px solid rgba(244, 231, 208, 0.14);
  color: #f4e7d0;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.3;
}

.art-shield__btn {
  font-size: 9px;
  padding: 5px 14px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.art-shield__btn--ok {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #faf6ee;
}

.art-shield__btn--no {
  background: rgba(244, 231, 208, 0.06);
  border: 1px solid rgba(244, 231, 208, 0.14);
  color: #d4c5ac;
}

.art-camera {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 165, 116, 0.3), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(192, 134, 153, 0.25), transparent 50%),
    linear-gradient(180deg, #2a2018, #1a140c);
  filter: sepia(0.55) contrast(1.05) saturate(1.05);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.art-camera__view {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(244, 231, 208, 0.04) 0 2px, transparent 2px 4px);
}

.art-camera__label {
  position: relative;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(244, 231, 208, 0.2);
  color: #d4a574;
}

.art-shutter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.art-shutter__btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(244, 231, 208, 0.1);
  border: 4px solid #f4e7d0;
  position: relative;
}

.art-shutter__btn::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #f4e7d0;
}

.art-spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(244, 231, 208, 0.14);
  border-top-color: var(--accent-soft);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.art-spinner__label {
  position: absolute;
  bottom: 50px;
  font-size: 9px;
  text-align: center;
  padding: 0 8px;
  color: #d4c5ac;
  line-height: 1.3;
}

.art-progress {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.art-progress__bar {
  width: 80%;
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 231, 208, 0.1);
  overflow: hidden;
}

.art-progress__bar span {
  display: block;
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--accent), var(--rose));
  border-radius: 999px;
  animation: progressSlide 1.6s ease-in-out infinite alternate;
}

@keyframes progressSlide {
  from { width: 30%; }
  to { width: 80%; }
}

.art-progress__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-soft);
}

.art-progress__cap {
  font-size: 9px;
  text-align: center;
  color: #d4c5ac;
  padding: 0 8px;
  line-height: 1.3;
}

.art-check {
  width: 60px;
  height: 60px;
  color: #8b9d6b;
}

.art-check svg {
  width: 100%;
  height: 100%;
}

.art-check__cap {
  position: absolute;
  top: 100px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  width: 80%;
  color: #f4e7d0;
}

.art-check__counter {
  position: absolute;
  bottom: 50px;
  text-align: center;
  font-size: 9px;
  color: #d4c5ac;
  line-height: 1.4;
}

.art-check__counter strong {
  display: block;
  font-size: 14px;
  color: var(--accent-soft);
  margin-top: 2px;
}

.art-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  padding: 4px;
}

.art-gallery__cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 165, 116, 0.5), transparent 60%),
    linear-gradient(135deg, #3a2e22, #1a140c);
  border: 1px solid rgba(244, 231, 208, 0.1);
}

.art-gallery__cell:nth-child(1) { filter: sepia(0.55); }
.art-gallery__cell:nth-child(2) { filter: grayscale(1); }
.art-gallery__cell:nth-child(3) { filter: hue-rotate(-10deg) saturate(1.25); }
.art-gallery__cell:nth-child(4) { filter: saturate(1.1) hue-rotate(12deg); }
.art-gallery__cell:nth-child(5) { filter: sepia(0.55); }
.art-gallery__cell:nth-child(6) { filter: grayscale(1); }

.art-fallback {
  font-size: 11px;
  padding: 16px;
  background: rgba(244, 231, 208, 0.05);
  border: 1px solid rgba(244, 231, 208, 0.1);
  border-radius: 10px;
  text-align: center;
  color: #d4c5ac;
}

.phone__content--sparkle .phone__art,
.phone__content--check .phone__art,
.phone__content--shutter .phone__art {
  position: relative;
  flex-direction: column;
}

/* TAGLINE */
.tagline {
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-800);
  font-weight: 500;
}

.tagline em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 600;
}

.tagline strong {
  color: var(--ink-900);
  font-weight: 700;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: inline-block;
  padding: 8px 10px;
  background: rgba(184, 132, 86, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(184, 132, 86, 0.18);
}

.feature__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.feature__desc {
  font-size: 13.5px;
  color: var(--ink-600);
  line-height: 1.55;
}

/* PUBLIC EVENTS LIST */
.public-events {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 720px) {
  .public-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.public-event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.public-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.public-event-card__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--ink-900);
}

.public-event-card__meta {
  font-size: 12px;
  color: var(--ink-600);
  margin-bottom: 10px;
}

.public-event-card__cta {
  font-size: 13px;
  color: var(--accent-deep);
  font-weight: 600;
}

/* CTA */
.cta {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(184, 132, 86, 0.16), rgba(192, 134, 153, 0.14));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cta__title {
  font-size: clamp(22px, 3.8vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}

.cta__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent) 0%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

.btn svg {
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
}

.cta__sub {
  font-size: 14px;
  color: var(--ink-700);
  margin-bottom: 22px;
  line-height: 1.55;
}

.cta__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  text-align: center;
  padding: 30px 22px 40px 22px;
  font-size: 12px;
  color: var(--ink-600);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 500;
}

.footer__sep {
  color: var(--ink-400);
}

/* RESPONSIVE */
@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Desktop memakai carousel yang SAMA dengan mobile (scroll-snap 1-per-1,
     dots interaktif, kartu tengah .is-current) — yang berbeda hanya ukuran
     view: kartu lebih besar (240×492) & jarak antar kartu lebih lega. */
  .flow-scroller {
    --phone-w: 240px;
    --phone-h: 492px;
    --slide-gap: 32px;
    --side-pad: max(24px, calc((100vw - var(--phone-w)) / 2));
    scroll-padding: 0 var(--side-pad);
  }
  /* Duplikat (18 kartu) dulu untuk loop marquee; sekarang tak dipakai. */
  .phone--dup {
    display: none;
  }
  /* Dots interaktif di desktop juga (bisa diklik). */
  .flow-dots {
    pointer-events: auto;
  }
}
