/* ============================================
   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--sm {
  padding: 7px 11px;
  font-size: 12px;
  border-radius: 9px;
}

.btn--danger {
  background: rgba(204, 51, 51, 0.10);
  border-color: rgba(204, 51, 51, 0.32);
  color: #c33;
}

.btn--danger:hover {
  background: rgba(204, 51, 51, 0.16);
  color: #a22;
}

.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;
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line-strong);
}

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

/* ===== Rentang Jam Acara (panel) ===== */
.time-range {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.time-range__field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 9px 12px 9px 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.time-range__field:hover {
  border-color: rgba(184, 132, 86, 0.45);
}

.time-range__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 132, 86, 0.16);
}

.time-range__field::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.time-range__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.time-range__field input[type="time"] {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
}

.time-range__field input[type="time"]:focus {
  border: none;
  box-shadow: none;
}

.time-range__field input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
}

.time-range__sep {
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-cream);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* ===== 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;
  }
}

/* ===== Pilihan Template Cetak (QR Private) ===== */
.tpl-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;
}

.tpl-box[hidden] {
  display: none;
}

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

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

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

.tpl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.tpl-card:hover {
  border-color: var(--accent);
}

.tpl-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tpl-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 132, 86, .18);
  background: #fffdf8;
}

.tpl-mini {
  position: relative;
  display: block;
  width: 64px;
  aspect-ratio: 500 / 763;
  margin: 2px auto 4px;
  border-radius: 6px;
  border: 1px solid rgba(136, 96, 48, .35);
  background: #fbf8ef;
  overflow: hidden;
}

.tpl-mini__title {
  position: absolute;
  top: 13%;
  left: 8%;
  right: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tpl-mini__title i {
  display: block;
  width: 68%;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.tpl-mini__title i:last-child {
  width: 92%;
}

.tpl-mini__qr {
  position: absolute;
  top: 33%;
  left: 20%;
  width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 1px;
  background:
    repeating-conic-gradient(rgba(42, 34, 26, .82) 0 25%, transparent 0 50%) 0 0 / 5px 5px,
    #fff;
}

.tpl-mini__foot {
  position: absolute;
  bottom: 13%;
  left: 10%;
  right: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tpl-mini__foot i {
  display: block;
  width: 82%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .75;
}

.tpl-mini__foot i:last-child {
  width: 52%;
}

/* Varian Polos — krem, judul emas, aksen lengkung di kiri */
.tpl-mini--polos {
  background: #fbf8ef;
  color: #886030;
  border-color: rgba(136, 96, 48, .5);
}

.tpl-mini--polos::before {
  content: "";
  position: absolute;
  left: 5%;
  top: 17%;
  width: 18%;
  height: 56%;
  border: 1px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: .4;
}

/* Varian Bunga — putih, judul gelap, floral di kanan bawah */
.tpl-mini--bunga {
  background: #ffffff;
  color: #181818;
}

.tpl-mini--bunga .tpl-mini__qr {
  border: 1px solid rgba(136, 96, 48, .35);
}

.tpl-mini--bunga::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -3%;
  width: 52%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 36%, #f1d2d8 0 20%, transparent 21%),
    radial-gradient(circle at 63% 47%, #cdaca7 0 17%, transparent 18%),
    radial-gradient(circle at 45% 68%, #dab2ba 0 16%, transparent 17%);
}

/* Varian Party — gradien pesta, judul putih */
.tpl-mini--party {
  background: linear-gradient(180deg, #36225f 0%, #51366b 28%, #a94a80 56%, #00508d 78%, #090f4d 100%);
  color: #fff;
  border-color: rgba(214, 178, 120, .75);
}

.tpl-mini--party .tpl-mini__qr {
  border: 1px solid rgba(214, 178, 120, .55);
}

.tpl-card__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-800);
}

.tpl-card__desc {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-500);
}

@media (max-width: 640px) {
  .tpl-grid {
    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 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: 12px;
  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: 8px;
    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)
   ============================================ */

/* ===== Hero gallery (nama acara + tagline) ===== */
.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 12vw, 76px) 22px clamp(34px, 10vw, 60px);
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(212, 165, 116, 0.30), transparent 55%),
    radial-gradient(90% 90% at 90% 10%, rgba(192, 134, 153, 0.22), transparent 55%),
    linear-gradient(180deg, var(--ink-900) 0%, #3a2e22 100%);
  color: #fff;
  isolation: isolate;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0, transparent 42%);
  pointer-events: none;
}

.gallery-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  animation: heroIn .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gallery-hero__date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gallery-hero__name {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 8.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.gallery-hero__tagline {
  margin: 12px auto 0;
  max-width: 46ch;
  font-size: clamp(14px, 3.6vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}

.gallery-hero__tagline::after {
  content: '';
  display: block;
  width: 54px;
  height: 2px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

.gallery-hero__meta {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .62);
}

@media (max-width: 480px) {
  .gallery-hero__meta {
    font-size: 10px;
  }
}

/* Kartu konten naik sedikit menutupi tepi bawah hero */
.page--after-hero {
  align-items: flex-start;
  padding-top: clamp(20px, 6vw, 34px);
  margin-top: calc(-1 * clamp(24px, 7vw, 44px));
}

/* Aksi gallery (Kembali / Pilih) — rata kanan, teks mengecil di mobile */
.gallery-actions {
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .gallery-actions .btn {
   padding: 5px 12px;
    font-size: 10px;
  }
}

.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 (bulk) di gallery publik ===== */
.gallery-cell {
  position: relative;
}

/* Kontrol cepat admin: selalu terlihat di setiap foto */
.gallery-admin {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 7;
  display: flex;
  gap: 6px;
  opacity: .9;
  transition: opacity .2s ease;
}

.gallery-cell:hover .gallery-admin,
.gallery-cell:focus-within .gallery-admin {
  opacity: 1;
}

.gallery-admin__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(42, 34, 26, .55);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.gallery-admin__btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-admin__btn:hover {
  transform: translateY(-1px);
  background: rgba(42, 34, 26, .8);
}

.gallery-admin__btn:active {
  transform: scale(.94);
}

.gallery-admin__btn--danger:hover {
  background: rgba(200, 60, 60, .92);
  border-color: rgba(255, 255, 255, .75);
}

/* Sembunyikan kontrol cepat saat mode pilih agar tidak tumpang tindih */
body.select-mode .gallery-admin {
  display: none;
}

/* ===== Tombol like di gallery publik (paket Public) ===== */
.gallery-like {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(42, 34, 26, .55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
  transition: transform .15s ease, background .18s ease, border-color .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.gallery-like svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-like:hover {
  transform: translateY(-1px);
  background: rgba(42, 34, 26, .8);
}

.gallery-like:active {
  transform: scale(.94);
}

.gallery-like__count {
  min-width: 8px;
  text-align: center;
  line-height: 1;
}

/* Sudah ada yang like selain saya → kuning keemasan. Ditulis sebelum .is-liked
   agar state "saya yang like" (merah) selalu menang bila dua-duanya ada. */
.gallery-like.has-likes {
  background: rgba(222, 168, 60, .88);
  border-color: rgba(255, 255, 255, .75);
}

.gallery-like.has-likes svg {
  fill: #fff;
}

.gallery-like.is-liked {
  background: rgba(228, 64, 102, .85);
  border-color: rgba(255, 255, 255, .75);
}

.gallery-like.is-liked svg {
  fill: #fff;
  animation: likePop .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes likePop {
  0%   { transform: scale(.6); }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

body.select-mode .gallery-like {
  display: none;
}

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

body.select-mode .gallery-check {
  display: block;
  animation: checkIn .22s ease both;
}

@keyframes checkIn {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

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

.gallery-check__mark {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(42, 34, 26, .35);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.gallery-check:hover .gallery-check__mark {
  transform: scale(1.08);
}

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

.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);
}

/* Penanda foto terpilih: ring halus + lapisan tipis */
.gallery-item.is-selected {
  position: relative;
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-soft);
}

.gallery-item.is-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(184, 132, 86, .12);
  pointer-events: none;
}

body.select-mode .gallery-item {
  transition: box-shadow .18s ease, transform .18s ease;
}

body.select-mode .gallery-cell:active .gallery-item {
  transform: scale(.985);
}

/* Bar aksi bawah saat mode pilih */
.select-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: min(680px, 100%);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 28px rgba(95, 70, 35, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: selectBarUp .26s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes selectBarUp {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

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

.select-bar .btn {
  flex: 0 0 auto;
}

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

/* Badge penanda foto yang disembunyikan admin (soft-hide) */
.gallery-hidden-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: rgba(200, 60, 60, 0.88);
}

.gallery-cell.is-hidden .gallery-item img {
  opacity: .45;
  filter: grayscale(.5);
}

/* 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: 15px;
  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;
  }
}

/* ============================================
   TOGGLE SWITCH — Aturan Ketat Tanggal
   ============================================ */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 180ms ease;
}

.toggle-row:hover {
  border-color: rgba(184, 132, 86, 0.35);
}

.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.toggle-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}

.toggle-text small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-600);
  opacity: 0.8;
}

.toggle {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 30px;
  margin: 0;
  border-radius: 999px;
  background: var(--ink-300);
  cursor: pointer;
  transition: background 200ms ease;
  outline-offset: 3px;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease;
}

.toggle:checked {
  background: var(--accent);
}

.toggle:checked::after {
  transform: translateX(20px);
}

.toggle:focus-visible {
  outline: 2px solid var(--accent);
}

/* ============================================
   PANEL SIDEBAR LAYOUT (dashboard / event / user)
   Gaya meniru sidebar admin x1.kingphotobooth.co,
   diadaptasi ke tema terang Moments.
   ============================================ */
.dash-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  width: min(1600px, 100%);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-soft));
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(138, 94, 53, 0.35);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-name span {
  color: var(--accent-deep);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-700);
  border: 1px solid transparent;
  transition: background 150ms ease, color 150ms ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  fill: var(--ink-500);
  flex-shrink: 0;
  transition: fill 150ms ease;
}

.nav-item:hover {
  background: var(--bg-soft);
  color: var(--accent-deep);
  text-decoration: none;
}

.nav-item:hover svg {
  fill: var(--accent-deep);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.nav-item.active svg {
  fill: #fff;
}

/* === Sidebar sub-menu (Events) === */
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-parent {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.nav-parent .nav-caret {
  margin-left: auto;
  margin-right: 0;
  fill: currentColor;
  transition: transform 200ms ease;
  opacity: 0.7;
}

.nav-group.open > .nav-parent .nav-caret {
  transform: rotate(180deg);
}

.nav-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 4px 12px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-group.open > .nav-sub {
  display: flex;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.nav-sub-item:hover {
  background: var(--bg-soft);
  color: var(--accent-deep);
  text-decoration: none;
}

.nav-sub-item.active {
  background: rgba(184, 132, 86, 0.16);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(184, 132, 86, 0.30);
}

.nav-sub-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(138, 94, 53, 0.30);
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.user-role {
  font-size: 11.5px;
  color: var(--ink-500);
}

@media (max-width: 820px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
  }
  .sidebar-foot {
    border-top: none;
    padding-top: 0;
  }
}
