:root {
  --bg-ivory: #f9f5ee;
  --bg-cream: #fffdf9;
  --envelope-back: #eadfd2;
  --envelope-left: #f5ece1;
  --envelope-right: #efe3d4;
  --envelope-flap: #e8dacb;
  --gold-light: #dfbe8a;
  --gold: #b6894c;
  --gold-dark: #8c6229;
  --ink: #3a2e27;
  --ink-muted: #7a6a5e;
  --olive: #6f7f65;
  --olive-soft: rgba(111, 127, 101, 0.14);
  --border-gold: rgba(182, 137, 76, 0.28);
  --shadow-warm: 0 14px 36px rgba(58, 46, 39, 0.08);
  --shadow-soft: 0 8px 22px rgba(58, 46, 39, 0.06);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-ivory);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(223, 190, 138, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 86% 24%, rgba(111, 127, 101, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(182, 137, 76, 0.14) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.envelope-locked {
  overflow: hidden;
  height: 100dvh;
}

.hidden {
  display: none !important;
}

.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

/* =========================================================
   AŞAMA 1: DAVETİYE ZARFI AÇILIŞ SAHNESİ
========================================================= */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 253, 249, 0.94) 0%, rgba(249, 245, 238, 0.98) 65%),
    var(--bg-ivory);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.envelope-overlay.is-exiting {
  opacity: 0;
  transform: translateY(-18px) scale(1.015);
  pointer-events: none;
}

.envelope-ambient-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 190, 138, 0.34) 0%, transparent 70%);
  pointer-events: none;
}

.envelope-scene-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.envelope-top-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.botanical-sprig {
  width: 112px;
  height: 26px;
}

.welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid var(--border-gold);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(140, 98, 41, 0.08);
}

.envelope-heading {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(38px, 10vw, 46px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.envelope-subheading {
  margin: 0;
  max-width: 310px;
  color: var(--ink-muted);
  font-size: 13.5px;
  line-height: 1.48;
}

.envelope-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-top: 4px;
  perspective: 1200px;
}

.envelope-card {
  position: relative;
  width: min(330px, 88vw);
  height: 220px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 34px rgba(58, 46, 39, 0.15));
  transition: transform 0.35s ease;
}

.envelope-card:active {
  transform: scale(0.985);
}

.envelope-back {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #e7d7c4 0%, var(--envelope-back) 100%);
  border: 1px solid rgba(182, 137, 76, 0.32);
  border-top: 0;
  transition: opacity 0.65s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Zarfın içinden çıkan mektup/davetiye kartı */
.envelope-letter {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  bottom: 12px;
  z-index: 2;
  background: var(--bg-cream);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(58, 46, 39, 0.12);
  border: 1px solid rgba(182, 137, 76, 0.34);
  transform: translateY(8px);
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1.05s ease;
}

.letter-inner-frame {
  height: 100%;
  border: 1px solid rgba(182, 137, 76, 0.25);
  border-radius: 6px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #fffdf9 0%, #faf3e8 100%);
}

.letter-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 700;
}

.letter-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.letter-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--gold-dark);
}

.letter-date {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

/* Zarfın ön cebi */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-pocket svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Üst 3D kapak */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 134px;
  z-index: 4;
  transform-origin: 50% 15px;
  transform: rotateX(0deg);
  transition: transform 0.68s cubic-bezier(0.45, 0, 0.55, 1), opacity 0.65s ease;
  backface-visibility: visible;
  pointer-events: none;
}

.envelope-flap svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Balmumu Altın Mühür */
.wax-seal-btn {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.wax-seal-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(182, 137, 76, 0.45);
  animation: sealPulse 2.3s ease-in-out infinite;
}

.wax-seal-svg {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 6px 12px rgba(72, 47, 16, 0.28));
  animation: sealBreathe 2.6s ease-in-out infinite;
}

.wax-seal-monogram {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #fffaf0;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(74, 47, 15, 0.45);
}

@keyframes sealBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes sealPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

/* Zarf Açılış Durumları */
.envelope-card.is-opening .wax-seal-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

.envelope-card.is-flap-open .envelope-flap {
  transform: rotateX(180deg);
}

.envelope-card.is-flap-behind .envelope-flap {
  z-index: 0;
}

.envelope-card.is-letter-rising .envelope-letter {
  transform: translateY(-186px) scale(1.02);
  box-shadow: 0 18px 38px rgba(58, 46, 39, 0.2);
}

.envelope-card.is-letter-extracted .envelope-letter {
  z-index: 6;
  transform: translateY(-204px) scale(1.04);
}

.envelope-card.is-letter-extracted .envelope-back,
.envelope-card.is-letter-extracted .envelope-pocket,
.envelope-card.is-letter-extracted .envelope-flap {
  transition: opacity 0.65s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-card.is-letter-extracted .envelope-back,
.envelope-card.is-letter-extracted .envelope-pocket {
  opacity: 0;
  transform: translateY(88px);
}

.envelope-card.is-letter-extracted .envelope-flap {
  opacity: 0;
  transform: translateY(88px) rotateX(180deg);
}

.envelope-card.is-sheet-handoff .envelope-letter {
  opacity: 0;
  transition: none;
}

.rising-page-sheet {
  position: fixed;
  z-index: 105;
  background: linear-gradient(180deg, #fffdf9 0%, var(--bg-ivory) 45%, var(--bg-ivory) 100%);
  border: 1px solid rgba(182, 137, 76, 0.36);
  box-shadow: 0 24px 60px rgba(58, 46, 39, 0.18);
  padding: 10px;
  pointer-events: none;
  will-change: top, left, width, height, border-radius;
}

.rising-sheet-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(182, 137, 76, 0.24);
  border-radius: inherit;
  transition: opacity 0.7s ease;
}

.rising-page-sheet.is-expanding {
  border-color: rgba(182, 137, 76, 0);
  box-shadow: 0 0 0 rgba(58, 46, 39, 0);
}

.rising-page-sheet.is-expanding .rising-sheet-inner {
  opacity: 0;
}

body.is-page-settling .main-experience {
  position: relative;
  z-index: 110;
}

@keyframes settleIntoSheet {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.is-page-settling .top-bar {
  animation: settleIntoSheet 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-page-settling .hero-arch-card {
  animation: settleIntoSheet 0.84s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

body.is-page-settling .privacy-notice-banner {
  animation: settleIntoSheet 0.84s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

body.is-page-settling .guest-tabs,
body.is-page-settling #share-section {
  animation: settleIntoSheet 0.84s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.open-envelope-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(182, 137, 76, 0.42);
  background: linear-gradient(135deg, #fffdf9 0%, #f5ebd9 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, opacity 0.25s ease;
}

.open-envelope-cta:active {
  transform: scale(0.97);
}

.envelope-overlay.is-animating .open-envelope-cta {
  opacity: 0;
  pointer-events: none;
}

.envelope-overlay.is-animating .envelope-top-meta {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.envelope-overlay.is-animating .envelope-card {
  transform: translateY(56px);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-arrow {
  color: var(--gold-dark);
  font-weight: 700;
}

/* =========================================================
   AŞAMA 2: ANA DAVETİYE & HATIRA DEFTERİ
========================================================= */
.main-experience {
  min-height: 100dvh;
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 16px;
  background: rgba(249, 245, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(182, 137, 76, 0.16);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-monogram {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
}

.top-book-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: #46543d;
  font-size: 11.5px;
  font-weight: 700;
}

.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Kemer Karşılama Kartı */
.hero-arch-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: 140px 140px 24px 24px;
  padding: 12px;
  box-shadow: var(--shadow-warm);
}

.arch-inner {
  border: 1px solid rgba(182, 137, 76, 0.22);
  border-radius: 130px 130px 18px 18px;
  padding: 26px 18px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 253, 249, 1) 0%, rgba(250, 243, 232, 0.72) 100%);
}

.botanical-crest {
  width: 112px;
  height: 28px;
  margin: 0 auto 6px;
  display: block;
}

.hero-eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.hero-title {
  margin: 6px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 11vw, 50px);
  font-weight: 600;
  line-height: 1.02;
  color: var(--ink);
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(249, 245, 238, 0.95);
  border: 1px solid rgba(182, 137, 76, 0.24);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.meta-chip-olive {
  background: var(--olive-soft);
  border-color: rgba(111, 127, 101, 0.28);
  color: #46543d;
}

.hero-welcome-text {
  margin: 0 auto;
  max-width: 380px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Gizlilik Güvencesi Rozeti */
.privacy-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(111, 127, 101, 0.11);
  border: 1px solid rgba(111, 127, 101, 0.28);
}

.privacy-lock-icon {
  font-size: 16px;
  line-height: 1.3;
  flex-shrink: 0;
}

.privacy-notice-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: #3d4b35;
  font-weight: 500;
}

/* Ana Sekmeler */
.main-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(234, 223, 210, 0.55);
  border: 1px solid rgba(182, 137, 76, 0.22);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.tab-btn.is-active {
  background: var(--bg-cream);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(58, 46, 39, 0.08);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(182, 137, 76, 0.16);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
}

/* Ortak Kart */
.card {
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

/* Mod Seçici Haplar */
.mode-switcher {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mode-pill {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 5px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(255, 253, 249, 0.78);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 10.8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mode-pill.is-active {
  background: linear-gradient(135deg, #c69a5c 0%, #9b7035 100%);
  border-color: transparent;
  color: #fffdf9;
  box-shadow: 0 6px 14px rgba(140, 98, 41, 0.24);
}

/* Form Alanları - KRİTİK: iOS auto-zoom engellemesi için 16px */
.form-identity-grid {
  display: grid;
  grid-template-columns: 1fr 94px;
  gap: 10px;
  margin-bottom: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.required-star {
  color: #b45309;
}

input[type='text'],
input[type='url'],
input[type='password'],
textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(182, 137, 76, 0.34);
  background: #fffefb;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(182, 137, 76, 0.16);
}

input::placeholder,
textarea::placeholder {
  color: #a6978b;
  font-size: 14px;
}

.form-section-block {
  margin-bottom: 16px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.helper-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  background: rgba(234, 223, 210, 0.55);
  padding: 3px 9px;
  border-radius: 999px;
}

.helper-pill-required {
  background: rgba(182, 137, 76, 0.16);
  color: var(--gold-dark);
}

input.input-invalid {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.14);
}

/* Fotoğraf Yükleme Dropzone */
.upload-dropzone {
  border: 1.5px dashed rgba(182, 137, 76, 0.5);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(249, 245, 238, 0.65) 0%, rgba(255, 253, 249, 0.9) 100%);
  padding: 14px;
  text-align: center;
}

.upload-prompt {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.upload-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.upload-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  user-select: none;
}

.upload-action-btn:active {
  transform: scale(0.98);
}

.upload-btn-primary {
  background: linear-gradient(135deg, #c69a5c 0%, #9b7035 100%);
  color: #fffdf9;
  box-shadow: 0 6px 14px rgba(140, 98, 41, 0.22);
}

.upload-btn-secondary {
  background: var(--bg-cream);
  color: var(--ink);
  border: 1px solid rgba(182, 137, 76, 0.38);
}

.upload-hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.photo-thumb-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(182, 137, 76, 0.3);
  background: #ede3d6;
}

.photo-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(58, 46, 39, 0.82);
  color: #fffdf9;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-add-more-tile {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1.5px dashed rgba(182, 137, 76, 0.55);
  background: rgba(255, 253, 249, 0.75);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.photo-add-more-tile span:first-child {
  font-size: 22px;
  line-height: 1;
}

/* Mesaj Alanı */
.paper-textarea-wrap textarea {
  min-height: 116px;
  resize: vertical;
  background-image: linear-gradient(transparent 29px, rgba(182, 137, 76, 0.08) 30px);
  background-size: 100% 30px;
  line-height: 30px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Hata & İlerleme */
.form-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fdf2f2;
  border: 1px solid #f5c2c2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 500;
}

.upload-progress {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(249, 245, 238, 0.9);
  border: 1px solid var(--border-gold);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: #e6dacb;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  transition: width 0.2s ease;
}

.submit-btn {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #c69a5c 0%, #8c6229 100%);
  color: #fffdf9;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(140, 98, 41, 0.28);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.submit-btn:active {
  transform: scale(0.985);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Başarı Kartı */
.success-card {
  text-align: center;
  padding: 28px 18px;
}

.success-icon-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfbe8a 0%, #8c6229 100%);
  color: #fffdf9;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(140, 98, 41, 0.28);
}

.success-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}

.success-desc {
  margin: 0 auto 8px;
  max-width: 340px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.success-privacy-sub {
  margin: 0 auto 14px;
  max-width: 330px;
  font-size: 12px;
  color: #46543d;
  font-weight: 600;
}

.success-summary {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(249, 245, 238, 0.9);
  border: 1px solid rgba(182, 137, 76, 0.22);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 16px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-outline,
.btn-primary-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-outline {
  background: var(--bg-cream);
  border: 1px solid rgba(182, 137, 76, 0.42);
  color: var(--ink);
}

.btn-primary-soft {
  background: linear-gradient(135deg, #c69a5c 0%, #9b7035 100%);
  border: 0;
  color: #fffdf9;
}

/* =========================================================
   SEKMELER: ANI DUVARI
========================================================= */
.wall-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wall-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.wall-subheading {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.refresh-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: var(--bg-ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.private-gate {
  margin-bottom: 12px;
}

.private-gate-text {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.private-gate-form {
  display: flex;
  gap: 8px;
}

.memories-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.memory-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.memory-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.memory-author {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.memory-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.only-you-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: #46543d;
  font-weight: 700;
  font-size: 11px;
}

.memory-photos-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.memory-photos-grid.cols-1 {
  grid-template-columns: 1fr;
}

.memory-photos-grid.cols-multi {
  grid-template-columns: repeat(2, 1fr);
}

.memory-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ede3d6;
}

.memory-photo-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  width: 100%;
}

.memory-photo-btn img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.memory-photos-grid.cols-1 .memory-photo-btn img {
  max-height: 300px;
}

.memory-photos-grid.cols-multi .memory-photo-btn img {
  aspect-ratio: 4 / 3;
}

.photo-delete-overlay-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(58, 46, 39, 0.82);
  color: #fffdf9;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.photo-confirm-overlay {
  position: absolute;
  inset: auto 8px 8px 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid rgba(185, 28, 28, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.photo-confirm-actions {
  display: flex;
  gap: 5px;
}

.memory-message {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.memory-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(182, 137, 76, 0.14);
}

.footer-private-note {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.delete-memory-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(185, 28, 28, 0.28);
  background: #fff7f6;
  color: #991b1b;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.inline-confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdf2f2;
  border: 1px solid #f5c2c2;
  font-size: 12.5px;
  font-weight: 600;
  color: #7f1d1d;
}

.inline-confirm-actions {
  display: flex;
  gap: 6px;
}

.btn-danger-solid {
  padding: 6px 11px;
  border-radius: 999px;
  border: 0;
  background: #b91c1c;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel-ghost {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(58, 46, 39, 0.22);
  background: #fffdf9;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.empty-wall-card {
  text-align: center;
  color: var(--ink-muted);
  padding: 28px 18px;
}

/* =========================================================
   ÇİFT PANELİ & GENEL QR KARTI MODALI
========================================================= */
.couple-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(38, 30, 25, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 10px 0;
}

.couple-modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  background: var(--bg-ivory);
  border: 1px solid var(--border-gold);
  padding: 18px 14px calc(28px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(38, 30, 25, 0.25);
}

.couple-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-cream);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.couple-gallery-section {
  margin-top: 18px;
}

.qr-controls-card {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-size-grid-tent {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.qr-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.qr-size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  background: var(--bg-ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.qr-size-btn strong {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.qr-size-btn span {
  font-size: 10.5px;
  color: var(--ink-muted);
  line-height: 1.2;
}

.qr-size-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf9;
  box-shadow: 0 6px 14px rgba(58, 46, 39, 0.16);
}

.qr-size-btn.is-active span {
  color: rgba(255, 253, 249, 0.8);
}

.qr-bleed-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-ivory);
  border: 1px solid var(--border-gold);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
}

.qr-bleed-label input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--gold-dark);
  flex-shrink: 0;
}

.qr-bleed-label em {
  font-style: normal;
  color: var(--ink-muted);
}

.qr-bleed-label.is-disabled {
  opacity: 0.65;
  cursor: default;
}

.qr-primary-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qr-full-btn {
  width: 100%;
  justify-content: center;
  font-weight: 600;
}

.qr-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.qr-secondary-actions .btn-outline {
  width: 100%;
  padding: 10px 10px;
  font-size: 12.5px;
  text-align: center;
}

.qr-matbaa-tip {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(111, 127, 101, 0.1);
  border: 1px solid rgba(111, 127, 101, 0.25);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}

.qr-print-stage {
  display: flex;
  justify-content: center;
}

.qr-print-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: 26px;
  padding: 14px;
  box-shadow: var(--shadow-warm);
}

.qr-card-border {
  border: 1px solid rgba(182, 137, 76, 0.3);
  border-radius: 18px;
  padding: 24px 18px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fffdf9 0%, #faf3e8 100%);
}

.qr-sprig {
  margin: 0 auto 6px;
  display: block;
}

.qr-monogram {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
}

.qr-couple-title {
  margin: 4px 0 2px;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
}

.qr-welcome-label {
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}

.qr-frame {
  width: 196px;
  height: 196px;
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: #fffdf9;
  border: 1.5px solid rgba(182, 137, 76, 0.35);
  box-shadow: 0 8px 20px rgba(58, 46, 39, 0.08);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-instruction {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.site-footer {
  text-align: center;
  margin-top: 26px;
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.couple-panel-link {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 10px;
}

/* =========================================================
   ÖZEL YÖNETİCİ PANELİ (/admin)
========================================================= */
.admin-login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 28px 20px 24px;
}

.admin-badge-pill {
  margin-top: 6px;
}

.admin-login-title {
  margin: 10px 0 6px;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
}

.admin-login-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.admin-login-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-back-guest-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-link-btn {
  text-decoration: none;
}

.admin-logout-btn {
  color: #991b1b;
  border-color: rgba(185, 28, 28, 0.28);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stat-tile {
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.admin-toolbar-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-zip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.admin-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: var(--bg-ivory);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf9;
}

.admin-photo-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-photo-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 2px;
}

.admin-photo-size {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}

.admin-photo-dl-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: none;
}

.admin-photo-dl-link:hover {
  text-decoration: underline;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 19, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox img {
  max-width: 100%;
  max-height: 86dvh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Yazdırma Modu (Sadece QR Kartı) */
@media print {
  body,
  .qr-print-card,
  .qr-card-border {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body {
    background: #ffffff !important;
  }
  .envelope-overlay,
  .admin-login-screen,
  .no-print {
    display: none !important;
  }
  .main-experience {
    display: block !important;
    padding: 0;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  #admin-qr-panel {
    display: block !important;
  }
  .qr-print-card {
    box-shadow: none;
    margin: 24px auto;
  }
}
