:root {
  --navy: #1f3a5f;
  --navy-dark: #10243d;
  --gold: #d4af37;
  --gold-soft: #f3df9a;
  --white: #ffffff;
  --paper: #fbfaf7;
  --ink: #17243a;
  --muted: #6e7b8f;
  --line: #e6dfd1;
  --rose: #b65f6d;
  --mint: #4d8061;
  --shadow: 0 18px 45px rgba(16, 36, 61, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(212, 175, 55, 0.1), transparent 25rem),
    linear-gradient(135deg, #ffffff 0%, #fbfaf7 48%, #f5f0e6 100%);
  color: var(--ink);
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.guest-demo-only #adminWorkspace,
.guest-demo-only [data-mode="admin"] {
  display: none !important;
}

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

button,
label.secondary-action {
  -webkit-tap-highlight-color: transparent;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2.2rem);
  border-bottom: 1px solid rgba(31, 58, 95, 0.1);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 13rem;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  box-shadow: 0 10px 24px rgba(31, 58, 95, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand small {
  max-width: 15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.mode-tabs,
.section-tabs,
.filter-row,
.tool-row,
.event-actions,
.admin-actions,
.visitor-steps,
.camera-filters,
.admin-filter-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.mode-tab,
.section-tab,
.filter-chip {
  min-height: 2.1rem;
  border: 1px solid rgba(31, 58, 95, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
  cursor: pointer;
  padding: 0 0.78rem;
  font-size: 0.88rem;
  transition: 160ms ease;
}

.mode-tab:hover,
.section-tab:hover,
.filter-chip:hover {
  border-color: rgba(212, 175, 55, 0.75);
  transform: translateY(-1px);
}

.mode-tab.is-active,
.section-tab.is-active,
.filter-chip.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.workspace,
.guest-section {
  display: none;
}

.workspace.is-active,
.guest-section.is-active {
  display: block;
}

.section-tabs {
  margin: 0 auto 1.2rem;
  justify-content: center;
}

.event-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: stretch;
}

.event-copy {
  display: grid;
  align-content: center;
  min-height: 34rem;
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(212, 175, 55, 0.15), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 247, 0.98));
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 0.6rem;
  color: var(--navy);
  font-size: clamp(3.15rem, 8vw, 6.4rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.event-copy p {
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.visitor-steps {
  margin-bottom: 1.2rem;
}

.visitor-steps span {
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  padding: 0.48rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.event-visual {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid rgba(31, 58, 95, 0.12);
  border-radius: 0.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.event-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border-radius: 999px;
  cursor: pointer;
  padding: 0 1rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: 170ms ease;
}

.primary-action {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(31, 58, 95, 0.18);
}

.primary-action:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.secondary-action {
  border: 1px solid rgba(31, 58, 95, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
}

.secondary-action:hover {
  border-color: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

.compact {
  min-height: 2.2rem;
  padding-inline: 0.78rem;
  font-size: 0.84rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.stats-strip article,
.dashboard-card,
.admin-section,
.guestbook-form,
.guestbook-entry,
.moment-form,
.camera-panel,
.premium-panel,
.admin-panel {
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(16, 36, 61, 0.08);
}

.stats-strip article {
  min-height: 7.2rem;
  padding: 1.1rem;
}

.stats-strip strong {
  display: block;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(19rem, 0.88fr);
  gap: 1rem;
  align-items: stretch;
}

.align-start {
  align-items: start;
}

.camera-panel,
.moment-form,
.guestbook-form {
  min-width: 0;
  padding: 1rem;
}

.camera-panel {
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.96), rgba(17, 24, 39, 0.92)),
    var(--white);
  border-color: rgba(16, 36, 61, 0.22);
  padding: 0.75rem;
}

.camera-frame {
  position: relative;
  width: min(100%, 21rem);
  height: min(54vh, 28rem);
  min-height: 23rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 13rem),
    linear-gradient(135deg, #040812, #111827);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 42px rgba(16, 36, 61, 0.24);
}

.camera-frame video,
.camera-frame canvas,
.camera-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease, transform 220ms ease;
  transform-origin: center center;
}

.camera-frame canvas,
.camera-frame img,
.camera-frame #videoPreview {
  display: none;
}

.camera-frame.has-preview video,
.camera-frame.has-preview .camera-empty,
.camera-frame.has-stream .camera-empty,
.camera-frame.has-video-preview video,
.camera-frame.has-video-preview .camera-empty {
  display: none;
}

.camera-frame.has-preview img {
  display: block;
}

.camera-frame.has-video-preview #videoPreview {
  display: block;
  background: #000;
}

.filter-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  display: none;
}

.filter-overlay.is-active {
  display: block;
}

.camera-status-row {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  top: 0.58rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.active-filter-badge {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(16, 36, 61, 0.72);
  color: var(--white);
  padding: 0.32rem 0.56rem;
  font-size: 0.66rem;
  font-weight: 800;
}

.camera-mode-pill {
  display: none;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 999px;
  background: rgba(4, 8, 18, 0.72);
  color: var(--gold-soft);
  padding: 0.32rem 0.56rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.camera-top-controls {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 6;
  display: flex;
  gap: 0.45rem;
  transform: translateY(2.35rem);
}

.mini-control {
  display: inline-grid;
  min-width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.58);
  color: var(--white);
  cursor: pointer;
  padding: 0 0.46rem;
  font-size: 0.58rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.mini-control:hover {
  background: rgba(16, 36, 61, 0.9);
}

.icon-mini svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.camera-zoom-panel {
  position: absolute;
  left: 50%;
  bottom: 4.3rem;
  z-index: 5;
  display: flex;
  width: min(14rem, calc(100% - 1.3rem));
  flex-direction: column;
  align-items: center;
  gap: 0.36rem;
  transform: translateX(-50%);
}

.zoom-presets {
  display: flex;
  justify-content: center;
  gap: 0.26rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(4, 8, 18, 0.45);
  padding: 0.2rem;
  backdrop-filter: blur(14px);
}

.zoom-preset {
  min-width: 2rem;
  min-height: 1.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  padding: 0 0.35rem;
  font-size: 0.66rem;
  font-weight: 900;
}

.zoom-preset.is-active {
  background: var(--gold);
  color: var(--navy-dark);
}

.zoom-slider-row {
  display: none;
  grid-template-columns: auto minmax(0, 1fr) 3.1rem;
  align-items: center;
  gap: 0.46rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 900;
}

.zoom-slider-row input {
  height: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  accent-color: var(--gold);
}

.zoom-slider-row strong {
  justify-self: end;
  color: var(--white);
  font-size: 0.84rem;
}

.capture-circle {
  position: absolute;
  left: 50%;
  bottom: 0.72rem;
  z-index: 6;
  width: clamp(3.15rem, 6vw, 3.85rem);
  height: clamp(3.15rem, 6vw, 3.85rem);
  border: 0.28rem solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 42%, rgba(255, 255, 255, 0.42) 44% 100%);
  box-shadow: 0 16px 34px rgba(16, 36, 61, 0.32);
  cursor: pointer;
  transform: translateX(-50%);
  transition: 160ms ease;
}

.capture-circle:hover {
  transform: translateX(-50%) scale(1.04);
}

.capture-circle:active {
  transform: translateX(-50%) scale(0.96);
}

.camera-frame.has-video-preview .capture-circle {
  display: none;
}

.camera-frame.has-video-preview .camera-zoom-panel {
  display: none;
}

.camera-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: var(--white);
  text-align: center;
}

.camera-empty strong {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}

.camera-empty span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.camera-choice-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.62rem;
}

.camera-choice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0 0.82rem;
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.camera-choice-button:hover,
.camera-choice-button.is-active {
  border-color: rgba(212, 175, 55, 0.8);
  background: var(--gold);
  color: var(--navy-dark);
}

.camera-option-panel {
  display: none;
}

.camera-option-panel.is-open {
  display: flex;
  animation: panelReveal 180ms ease both;
}

.camera-option-panel:not(.is-open) {
  display: none !important;
}

.tool-row {
  margin-top: 0.48rem;
  justify-content: center;
}

.camera-filters {
  max-width: 100%;
  min-width: 0;
  margin-top: 0.52rem;
  padding: 0.34rem;
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.photoboard-list {
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
  margin-top: 0.52rem;
  overflow-x: auto;
  padding: 0.34rem;
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
}

.photoboard-option {
  display: grid;
  grid-template-columns: 1.75rem max-content;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.05rem;
  border: 1px solid rgba(31, 58, 95, 0.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  padding: 0.22rem 0.7rem 0.22rem 0.26rem;
  font-size: 0.74rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.photoboard-option.is-active {
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.18);
}

.photoboard-thumb {
  width: 1.62rem;
  height: 1.62rem;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(31, 58, 95, 0.92), rgba(212, 175, 55, 0.52));
  background-size: cover;
  background-position: center;
}

.photoboard-preview {
  display: none;
  margin-top: 0.52rem;
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.55rem;
}

.photoboard-preview.is-active {
  display: grid;
  gap: 0.6rem;
}

.photoboard-preview-head,
.photoboard-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.photoboard-preview-head strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.photoboard-preview-head span,
.photoboard-preview-actions small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.photoboard-preview-shell {
  position: relative;
  width: min(100%, 17.5rem);
  aspect-ratio: 941 / 1672;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.45rem;
  background: var(--paper);
  box-shadow: 0 18px 36px rgba(16, 36, 61, 0.12);
}

.photoboard-preview-shell > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.board-slot-button {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(31, 58, 95, 0.36);
  border-radius: 0.35rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.56);
  background-size: cover;
  background-position: center;
  color: var(--navy);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
  transition: 160ms ease;
}

.board-slot-button.is-filled {
  border-style: solid;
  background-blend-mode: normal;
  color: var(--white);
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.55);
}

.board-slot-button.is-active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 0.18rem rgba(212, 175, 55, 0.9), 0 0 0 0.18rem rgba(255, 255, 255, 0.92);
}

.board-slot-button:hover {
  transform: scale(1.015);
}

.camera-filter {
  display: grid;
  grid-template-columns: 1.65rem auto;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.02rem;
  border: 1px solid rgba(31, 58, 95, 0.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  padding: 0.2rem 0.65rem 0.2rem 0.22rem;
  font-size: 0.74rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.camera-filter.is-active {
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.18);
}

.filter-preview {
  width: 1.52rem;
  height: 1.52rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, rgba(31, 58, 95, 0.92), rgba(212, 175, 55, 0.62));
  background-size: cover;
  background-position: center;
}

.icon-button {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(31, 58, 95, 0.14);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.4rem;
}

label span,
.toggle-line span {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(31, 58, 95, 0.16);
  border-radius: 0.45rem;
  background: var(--white);
  color: var(--ink);
  outline: none;
  padding: 0.82rem 0.9rem;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.moment-form,
.guestbook-form {
  gap: 0.85rem;
}

.moment-form,
.guestbook-form,
.event-settings,
.filter-settings,
.login-card {
  display: grid;
  align-content: start;
}

.moment-form .primary-action,
.login-card .primary-action,
.event-settings .primary-action,
.filter-settings .primary-action {
  justify-self: start;
  width: auto;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note:empty {
  display: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  align-items: start;
}

.moment-card {
  overflow: hidden;
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 247, 0.96)),
    var(--white);
  box-shadow: 0 16px 38px rgba(16, 36, 61, 0.1);
}

.moment-media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0.65rem 0.65rem 0;
  overflow: hidden;
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.12), transparent 13rem),
    linear-gradient(135deg, #f7f1e7, #ede4d6);
}

.moment-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.moment-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.moment-media.is-clickable {
  cursor: zoom-in;
}

.moment-media.is-clickable::after {
  content: "Lihat";
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  border-radius: 999px;
  background: rgba(16, 36, 61, 0.78);
  color: var(--white);
  opacity: 0;
  padding: 0.32rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 900;
  transition: 160ms ease;
}

.moment-media.is-clickable:hover::after,
.moment-media.is-clickable:focus-visible::after {
  opacity: 1;
}

.status-pill {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  border-radius: 999px;
  background: rgba(16, 36, 61, 0.74);
  color: var(--white);
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
}

.media-type-pill {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.88);
  color: var(--navy-dark);
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.moment-body {
  display: grid;
  gap: 0.58rem;
  padding: 0.85rem 0.9rem 0.95rem;
}

.moment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.moment-meta strong {
  color: var(--navy);
}

.moment-category {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.moment-filter-name {
  width: max-content;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--navy);
  padding: 0.24rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.moment-body p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.moment-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-top: 0.1rem;
}

.text-button {
  border: 1px solid rgba(31, 58, 95, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  cursor: pointer;
  padding: 0.32rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.text-button:hover {
  color: var(--gold);
}

.guestbook-list {
  display: grid;
  gap: 0.75rem;
}

.guestbook-entry {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem;
}

.guestbook-entry img,
.guest-avatar {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy);
  color: var(--white);
}

.guest-avatar {
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
}

.guestbook-entry h3 {
  margin: 0 0 0.15rem;
  color: var(--navy);
}

.guestbook-entry small {
  color: var(--gold);
  font-weight: 800;
}

.guestbook-entry p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.premium-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.4fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.video-mock {
  display: grid;
  min-height: 18rem;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--white);
}

.record-light {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0.55rem rgba(182, 95, 109, 0.18);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.32fr) minmax(0, 1fr);
  gap: 1.05rem;
  align-items: start;
}

.admin-login {
  display: none;
  min-height: calc(100vh - 8rem);
  place-items: center;
}

.admin-login.is-active {
  display: grid;
}

.admin-content {
  display: none;
}

.admin-content.is-active {
  display: block;
}

.login-card {
  width: min(31rem, 100%);
  gap: 0.9rem;
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 4vw, 2rem);
}

.login-card img {
  width: 5.4rem;
  border-radius: 1rem;
  box-shadow: 0 14px 28px rgba(16, 36, 61, 0.14);
}

.login-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-panel {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
}

.admin-panel img {
  width: 100%;
  border-radius: 0.55rem;
  margin-bottom: 0;
}

.admin-cover {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.12), transparent 12rem),
    linear-gradient(135deg, #f7f1e7, #ede4d6);
  padding: 0.35rem;
}

.admin-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.admin-main {
  display: grid;
  gap: 1rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.7rem;
}

.dashboard-card {
  min-height: 6.25rem;
  padding: 0.82rem;
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 247, 0.96)),
    var(--white);
}

.dashboard-card strong {
  display: block;
  margin-top: 0.38rem;
  color: var(--navy);
  font-size: 1.65rem;
  line-height: 1;
}

.dashboard-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-section {
  padding: 1rem;
}

.event-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  gap: 0.85rem;
  align-items: end;
}

.music-settings {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 1fr) auto auto;
  gap: 0.85rem;
  align-items: end;
}

.qr-settings {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(18rem, 1.2fr) auto auto;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.filter-settings {
  grid-template-columns: minmax(12rem, 0.85fr) minmax(14rem, 1fr) minmax(15rem, 1.1fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.admin-filter-list {
  margin-top: 0.9rem;
}

.admin-filter-chip {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 999px;
  background: var(--white);
  padding: 0.28rem 0.45rem 0.28rem 0.28rem;
}

.admin-filter-chip strong {
  color: var(--navy);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toggle-line {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.55rem;
}

.toggle-line input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--navy);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.qr-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 0.5rem;
  background: var(--paper);
}

.qr-card.is-muted {
  opacity: 0.58;
}

.qr-code {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0.55rem solid var(--white);
  border-radius: 0.35rem;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(31, 58, 95, 0.12);
}

.qr-card h3 {
  margin: 0;
  color: var(--navy);
}

.qr-status {
  width: max-content;
  border: 1px solid rgba(77, 128, 97, 0.22);
  border-radius: 999px;
  background: rgba(77, 128, 97, 0.08);
  color: var(--mint);
  padding: 0.24rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.qr-card small {
  color: var(--muted);
  word-break: break-all;
}

.moderation-list {
  display: grid;
  gap: 0.7rem;
}

.moderation-item {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 0.5rem;
  background: var(--white);
}

.moderation-item img,
.moderation-item video {
  width: 5.2rem;
  height: 6.25rem;
  border-radius: 0.4rem;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.12), transparent 6rem),
    linear-gradient(135deg, #f7f1e7, #ede4d6);
}

.moderation-item h3,
.moderation-item p {
  margin: 0;
}

.moderation-item p {
  color: var(--muted);
}

.moderation-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: end;
}

.slideshow {
  min-height: calc(100vh - 7rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
}

.slideshow-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.slide-controls {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.slide-controls select {
  width: auto;
  min-height: 2.2rem;
  border-radius: 999px;
  padding: 0 1.75rem 0 0.75rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.slideshow-header h2 {
  margin-bottom: 0;
}

.slide-counter {
  border: 1px solid rgba(31, 58, 95, 0.14);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  padding: 0.48rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 900;
}

.slide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.28fr);
  gap: 1rem;
}

.slide-stage {
  position: relative;
  overflow: hidden;
  min-height: min(68vh, 42rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, rgba(16, 36, 61, 0.92), rgba(31, 58, 95, 0.86)),
    var(--navy-dark);
  box-shadow: var(--shadow);
}

.slideshow[data-theme="cinema"] .slide-stage {
  border-radius: 0;
  background: #05070d;
}

.slideshow[data-theme="cinema"] .slide-caption {
  max-width: 60rem;
  text-align: center;
  margin-inline: auto;
}

.slideshow[data-theme="wall"] .slide-layout {
  grid-template-columns: 1fr;
}

.slideshow[data-theme="wall"] .slide-side {
  display: none;
}

.slideshow[data-theme="wall"] .slide-stage {
  min-height: calc(100vh - 11rem);
}

.slide-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(16, 36, 61, 0.74) 100%);
}

.slide-stage img,
.slide-stage video {
  display: none;
  width: 100%;
  height: 100%;
  min-height: min(68vh, 42rem);
  object-fit: contain;
  opacity: 0;
  animation: slideReveal 650ms ease forwards;
}

.slide-stage img.is-active,
.slide-stage video.is-active {
  display: block;
}

.slide-stage[data-media="image"] img.is-active {
  object-fit: cover;
}

.slide-stage video {
  background: #050a12;
}

.slide-caption {
  position: absolute;
  z-index: 2;
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 3rem);
  max-width: 42rem;
  color: var(--white);
  text-shadow: 0 10px 24px rgba(16, 36, 61, 0.55);
}

.slide-caption span {
  color: var(--gold-soft);
  font-weight: 800;
  text-transform: uppercase;
}

.slide-caption strong {
  display: block;
  margin: 0.25rem 0;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.95;
}

.slide-caption small {
  font-size: 1.05rem;
}

.slide-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.8rem;
}

.slide-now {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 0.65rem;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(16, 36, 61, 0.08);
  padding: 0.95rem;
}

.slide-now span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.slide-now strong {
  color: var(--navy);
  font-size: 1.45rem;
}

.slide-wall {
  display: grid;
  grid-auto-rows: 7.2rem;
  gap: 0.7rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.slide-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 0.65rem;
  background: var(--navy-dark);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 28px rgba(16, 36, 61, 0.12);
}

.slide-thumb.is-active {
  border-color: var(--gold);
}

.slide-thumb img,
.slide-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.slide-thumb span {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  border-radius: 999px;
  background: rgba(16, 36, 61, 0.74);
  color: var(--white);
  padding: 0.25rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 900;
}

@keyframes slideReveal {
  from {
    opacity: 0;
    transform: scale(1.035);
  }

  to {
    opacity: 0.94;
    transform: scale(1);
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: min(26rem, calc(100vw - 2rem));
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: 180ms ease;
  padding: 0.9rem 1rem;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  gap: 0.75rem;
  padding: clamp(0.9rem, 3vw, 2rem);
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox.is-active {
  display: grid;
}

.lightbox-media {
  display: grid;
  width: min(72rem, 100%);
  max-height: min(82vh, 58rem);
  place-items: center;
}

.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: min(82vh, 58rem);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.12), transparent 18rem),
    #050810;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
  object-fit: contain;
}

.lightbox p {
  max-width: min(54rem, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  line-height: 1.45;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  min-height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed rgba(31, 58, 95, 0.2);
  border-radius: 0.5rem;
  color: var(--muted);
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .gallery-grid,
  .dashboard-cards,
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .music-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .mode-tabs,
  .section-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: start;
    padding-bottom: 0.15rem;
  }

  .mode-tab,
  .section-tab {
    flex: 0 0 auto;
  }

  .event-hero,
  .split-layout,
  .admin-grid,
  .premium-panel,
  .slide-layout {
    grid-template-columns: 1fr;
  }

  .slideshow-header {
    align-items: stretch;
    flex-direction: column;
  }

  .slide-stage,
  .slide-stage img,
  .slide-stage video {
    min-height: 26rem;
  }

  .event-copy,
  .event-visual {
    min-height: 27rem;
  }

  .stats-strip,
  .gallery-grid,
  .dashboard-cards,
  .qr-grid,
  .form-grid,
  .event-settings,
  .music-settings,
  .qr-settings,
  .filter-settings {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    position: static;
  }

  .admin-cover {
    max-height: 22rem;
  }

  .moderation-item {
    grid-template-columns: 4.8rem minmax(0, 1fr);
  }

  .moderation-item img,
  .moderation-item video {
    width: 4.8rem;
    height: 5.8rem;
  }

  .moderation-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .slide-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 6rem;
    overflow: visible;
  }
}

@media (max-width: 540px) {
  main {
    padding: 0.85rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .event-copy,
  .event-visual {
    min-height: 23rem;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .tool-row .primary-action,
  .tool-row .secondary-action,
  .tool-row .icon-button,
  .admin-actions .primary-action,
  .admin-actions .secondary-action,
  .moment-actions .secondary-action,
  .moment-actions .primary-action {
    width: auto;
  }

  .gallery-grid {
    gap: 0.75rem;
  }

  .moment-media {
    margin: 0.5rem 0.5rem 0;
  }

  .camera-frame {
    width: min(100%, 21rem);
    height: min(52vh, 25.5rem);
    min-height: 22rem;
    border-radius: 1.1rem;
  }

  .camera-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .camera-zoom-panel {
    bottom: 4.25rem;
  }

  .camera-filter {
    flex: 0 0 auto;
  }

  .slide-stage,
  .slide-stage img,
  .slide-stage video {
    min-height: 22rem;
  }

  .slide-caption strong {
    font-size: 2rem;
  }
}
