/* ==========================================================================
   Kicsi & Nagy — Enchanted Starlight Gala Wedding Website
   Midnight Velvet, Champagne Gold Foil, Twinkling & Shooting Stars
   ========================================================================== */

:root,
[data-theme="starlight"] {
  --bg: #080d1e;
  --bg-alt: #0f1730;
  --surface: rgba(18, 28, 56, 0.72);
  --surface-strong: #152142;
  --text: #fdf8ef;
  --muted: #c9bfae;
  --primary: #f3c677;
  --primary-hover: #ffd98e;
  --primary-contrast: #0b1021;
  --secondary: #c9973f;
  --accent-soft: rgba(243, 198, 119, 0.16);
  --accent-gold: #ffd98e;
  --border: rgba(243, 198, 119, 0.34);
  --shadow: 0 22px 54px rgba(3, 6, 15, 0.65), 0 0 32px rgba(243, 198, 119, 0.14);
  --radius-lg: 26px;
  --radius-md: 18px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --hero-gradient: radial-gradient(circle at 20% 18%, rgba(243, 198, 119, 0.22) 0%, transparent 45%),
                   radial-gradient(circle at 82% 24%, rgba(229, 179, 92, 0.16) 0%, transparent 46%),
                   radial-gradient(circle at 50% 82%, rgba(92, 122, 234, 0.22) 0%, transparent 55%),
                   linear-gradient(180deg, #070b19 0%, #101936 55%, #090e20 100%);
  --badge-bg: rgba(243, 198, 119, 0.18);
  --badge-text: #ffe09e;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Floating Top Navbar + Theme Switcher */
.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.topbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-quick-links {
  display: none;
  gap: 10px;
}

.mobile-quick-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .topbar {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px 16px;
    border-radius: 999px;
  }

  .topbar-head {
    width: 100%;
  }

  .mobile-quick-links {
    display: flex;
  }

  .brand {
    font-size: 1.15rem;
  }
}

/* Sections & Reveal Animations */
section {
  position: relative;
  z-index: 1;
  padding: 88px 20px;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1060px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.24;
  padding-bottom: 0.08em;
  margin-bottom: 14px;
}


/* Hero & Countdown */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 72px;
  background: var(--hero-gradient);
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  width: 100%;
}

.couple-pills {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 9vw, 6rem);
  line-height: 1.22;
  padding: 0.06em 0.12em 0.16em;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 34px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 120px));
  justify-content: center;
  gap: 12px;
  margin: 0 auto 16px;
}

.cd-box {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 10px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.cd-box:hover {
  transform: translateY(-4px);
}

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

.cd-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.date-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Reusable Buttons & Cards */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

/* Location, Calendar & Timeline */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.info-meta {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

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

.timeline {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 82px 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.timeline-item:hover {
  transform: translateX(6px);
}

.tl-time {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}

.tl-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.tl-content h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.tl-content p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Interactive Quiz */
.quiz-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 840px) {
  .quiz-layout {
    grid-template-columns: 1fr;
  }
}

.quiz-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
  margin-bottom: 20px;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.35s ease;
}

.quiz-q {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-opt {
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--primary);
  transform: translateX(4px);
}

.quiz-opt.correct {
  background: rgba(46, 160, 107, 0.18);
  border-color: #2ea06b;
}

.quiz-opt.wrong {
  background: rgba(226, 76, 76, 0.16);
  border-color: #e24c4c;
}

.quiz-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  font-size: 0.92rem;
}

.leader-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.leader-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

/* Bali Honeymoon Grid */
.bali-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.bali-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.bali-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.bali-icon {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.bali-card h3 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  margin-bottom: 8px;
}

.bali-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.bali-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.bali-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}

/* Photo Uploader */
.dropzone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  background: var(--accent-soft);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
  transform: scale(1.01);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.preview-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progress-wrap {
  margin-top: 16px;
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--secondary);
  transition: width 0.25s ease;
}

/* Wishing Wall & Forms */
.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.wish-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.wish-card:hover {
  transform: rotate(-0.6deg) translateY(-4px);
}

.wish-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wish-emoji {
  font-size: 1.6rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

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

.field label {
  font-size: 0.86rem;
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.chip.selected {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: var(--primary);
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 13, 0.68);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow);
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 44px 20px 60px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 540px) {
  .timeline-item {
    grid-template-columns: 64px 40px 1fr;
    padding: 14px;
  }
  .card {
    padding: 22px 18px;
  }
}



.section-subtitle {
  color: var(--muted);
  font-size: 1.02rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradientSlide {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@keyframes sunsetPulse {
  0% { background-position: 0% 20%; }
  100% { background-position: 100% 80%; }
}

/* ==========================================================================
   ENCHANTED STARLIGHT GALA THEME (Midnight Velvet, Gold Foil & Fairy Lights)
   ========================================================================== */

[data-theme="starlight"] .hero {
  background-size: 150% 150%;
  animation: sunsetPulse 12s ease-in-out infinite alternate;
}

[data-theme="starlight"] .hero-title {
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(
    110deg,
    #fff6df 0%,
    #f3c677 28%,
    #ffe4a3 52%,
    #fff9e8 72%,
    #d9a44a 90%,
    #fff6df 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 26px rgba(243, 198, 119, 0.36));
  animation: gradientSlide 7s ease-in-out infinite, starlightFloat 5.5s ease-in-out infinite;
}

[data-theme="starlight"] .section-title {
  background: linear-gradient(120deg, #fff8e7 0%, #f3c677 58%, #e0aa52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="starlight"] .couple-pills {
  border-color: rgba(243, 198, 119, 0.5);
  box-shadow: 0 0 28px rgba(243, 198, 119, 0.22), inset 0 0 14px rgba(243, 198, 119, 0.12);
}

[data-theme="starlight"] .cd-box {
  position: relative;
  overflow: hidden;
  border-color: rgba(243, 198, 119, 0.45);
  box-shadow: 0 14px 36px rgba(3, 6, 15, 0.65), 0 0 24px rgba(243, 198, 119, 0.2);
  animation: starlightPulse 4s ease-in-out infinite;
}

[data-theme="starlight"] .cd-box:nth-child(2) { animation-delay: 1s; }
[data-theme="starlight"] .cd-box:nth-child(3) { animation-delay: 2s; }
[data-theme="starlight"] .cd-box:nth-child(4) { animation-delay: 3s; }

[data-theme="starlight"] .cd-num {
  background: linear-gradient(135deg, #fff8e7 0%, #f3c677 65%, #e0aa52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(243, 198, 119, 0.45));
}

[data-theme="starlight"] .card,
[data-theme="starlight"] .bali-card,
[data-theme="starlight"] .timeline-item,
[data-theme="starlight"] .wish-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

[data-theme="starlight"] .card::after,
[data-theme="starlight"] .bali-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 224, 158, 0.11),
    transparent
  );
  transform: skewX(-24deg);
  pointer-events: none;
  transition: left 0.75s ease;
}

[data-theme="starlight"] .card:hover::after,
[data-theme="starlight"] .bali-card:hover::after {
  left: 140%;
}

[data-theme="starlight"] .card:hover,
[data-theme="starlight"] .bali-card:hover,
[data-theme="starlight"] .wish-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 217, 142, 0.72);
  box-shadow: 0 24px 56px rgba(3, 6, 15, 0.75), 0 0 34px rgba(243, 198, 119, 0.26);
}

[data-theme="starlight"] .btn-primary {
  background: #f3c677;
  color: #0b1021;
  box-shadow: 0 8px 26px rgba(243, 198, 119, 0.35);
}

[data-theme="starlight"] .btn-primary:hover {
  background: #ffd98e;
  box-shadow: 0 12px 34px rgba(243, 198, 119, 0.55);
}

[data-theme="starlight"] .tl-icon {
  box-shadow: 0 0 18px rgba(243, 198, 119, 0.28);
  border: 1px solid rgba(243, 198, 119, 0.35);
}

@keyframes starlightFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes starlightPulse {
  0%, 100% {
    box-shadow: 0 14px 36px rgba(3, 6, 15, 0.65), 0 0 18px rgba(243, 198, 119, 0.16);
  }
  50% {
    box-shadow: 0 14px 36px rgba(3, 6, 15, 0.65), 0 0 32px rgba(243, 198, 119, 0.36);
  }
}

/* ==========================================================================
   WEDDING-DAY LIVE HUB (Auto-triggered when countdown hits 00:00:00)
   ========================================================================== */

.live-preview-trigger {
  background: rgba(243, 198, 119, 0.1);
  border: 1px dashed rgba(243, 198, 119, 0.42);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.live-preview-trigger:hover {
  background: rgba(243, 198, 119, 0.2);
  transform: translateY(-2px);
}

.cheers-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(243, 198, 119, 0.11);
  border: 1px solid rgba(243, 198, 119, 0.32);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
}

.cheers-pill strong {
  color: var(--primary);
  font-weight: 800;
}

.cheers-pill.pop {
  transform: scale(1.06);
  border-color: rgba(243, 198, 119, 0.72);
  box-shadow: 0 0 22px rgba(243, 198, 119, 0.28);
}

.live-hub {
  text-align: left;
  margin-top: 8px;
}

.preview-exit-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(243, 198, 119, 0.55);
  background: rgba(15, 23, 48, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(3, 6, 15, 0.55), 0 0 18px rgba(243, 198, 119, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.preview-exit-fab:hover {
  transform: translateY(-2px);
  background: rgba(21, 33, 66, 0.96);
  box-shadow: 0 14px 32px rgba(3, 6, 15, 0.65), 0 0 24px rgba(243, 198, 119, 0.35);
}

.live-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 820px) {
  .live-grid {
    grid-template-columns: 1fr;
  }
}

.live-stage-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(243, 198, 119, 0.55);
  box-shadow: 0 22px 55px rgba(3, 6, 15, 0.75), 0 0 38px rgba(243, 198, 119, 0.2);
}

.live-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.16);
  border: 1px solid rgba(46, 204, 113, 0.5);
  color: #7ef2ad;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4cd97b;
  box-shadow: 0 0 10px #4cd97b;
  animation: liveBlink 1.4s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.live-clock-badge {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.live-now-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.live-now-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 22px rgba(243, 198, 119, 0.25);
}

.live-now-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--text);
}

.live-now-prompt {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.live-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 16px;
}

.live-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f3c677, #fff4d2, #d99f43);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(243, 198, 119, 0.65);
  transition: width 0.5s ease;
}

.live-next-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(8, 13, 30, 0.55);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--muted);
}

.live-next-box strong {
  color: var(--primary);
}

.live-photo-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.live-feed-box {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.live-feed-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.live-feed-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
}

.live-feed-item {
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(8, 13, 30, 0.5);
  border: 1px solid rgba(243, 198, 119, 0.18);
  color: var(--text);
}

/* Live Timeline Status Highlights */
.timeline-item.is-past {
  opacity: 0.62;
}

.timeline-item.is-live {
  border-color: var(--primary);
  box-shadow: 0 0 28px rgba(243, 198, 119, 0.32);
  transform: scale(1.015);
}

.tl-live-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ==========================================================================
   STAGE 3: BALI HONEYMOON FAMILY PHOTO DIARY
   ========================================================================== */

.diary-hub {
  text-align: left;
  margin-top: 8px;
}

.diary-banner-card {
  margin-bottom: 22px;
  border-color: rgba(243, 198, 119, 0.52);
}

.diary-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.diary-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 6px;
}

.diary-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

@media (max-width: 680px) {
  .diary-banner-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.diary-posts-list {
  display: grid;
  gap: 22px;
}

.diary-post-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

.diary-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.diary-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.diary-post-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin-bottom: 8px;
}

.diary-post-story {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 16px;
}

.diary-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.diary-photo-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.diary-photo-thumb:hover {
  transform: scale(1.025);
  border-color: var(--primary);
}

.diary-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.diary-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(243, 198, 119, 0.1);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diary-like-btn:hover,
.diary-like-btn.liked {
  background: rgba(232, 153, 181, 0.24);
  border-color: #f4a2b8;
  transform: scale(1.04);
}

/* Family Comments Section under Bali Diary Posts */
.diary-comments-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(243, 198, 119, 0.24);
}

.diary-comments-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.diary-comment-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(8, 13, 30, 0.52);
  border: 1px solid rgba(243, 198, 119, 0.2);
  font-size: 0.88rem;
  line-height: 1.5;
}

.diary-comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.diary-comment-author {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.83rem;
}

.diary-comment-time {
  color: var(--muted);
  font-size: 0.74rem;
}

.diary-comment-form {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 640px) {
  .diary-comment-form {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   POST-WEDDING BALI DIARY CLEAN MODE (Hides pre-wedding blocks & updates nav)
   ========================================================================== */

.nav-bali-diary {
  display: none;
}

.nav-bali-diary .nav-sep {
  color: var(--primary);
  opacity: 0.65;
  font-size: 0.8rem;
  user-select: none;
}

body.is-bali-diary #helyszin,
body.is-bali-diary #kviz,
body.is-bali-diary #bali,
body.is-bali-diary #rsvp,
body.is-bali-diary #qr-btn-field {
  display: none !important;
}

body.is-bali-diary .nav-default,
body.is-bali-diary .mobile-quick-links {
  display: none !important;
}

body.is-bali-diary .nav-bali-diary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

body.is-bali-diary .hero {
  min-height: auto;
  align-items: flex-start;
  padding-bottom: 64px;
}

body.is-bali-diary .hero-inner {
  max-width: 900px;
}

body.is-bali-diary #fotok {
  background: var(--bg-alt);
}

body.is-bali-diary #jokivansag {
  background: var(--bg);
}

@media (max-width: 760px) {
  body.is-bali-diary .topbar {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 22px;
  }

  body.is-bali-diary .topbar-head {
    justify-content: center;
  }

  body.is-bali-diary .nav-bali-diary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  body.is-bali-diary .nav-bali-diary a {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
  }

  body.is-bali-diary .hero {
    padding-top: 146px;
  }
}






