/* ============================================================
   COUPLE-NOTEBOOK — İkimizin Defteri
   Antika Lüks Deri Cilt, Parşömen Sayfalar, Balmumu Mühür &
   Doğrudan Defter İçi İnteraktif Tasarım Mimarisi
   ============================================================ */

.blk-wrap[data-block="couple-notebook"] {
  background:
    radial-gradient(1100px 560px at 50% -2%, rgba(212, 175, 55, 0.14), transparent 65%),
    radial-gradient(800px 480px at 50% 100%, rgba(153, 27, 27, 0.08), transparent 70%),
    linear-gradient(180deg, #07090D 0%, #0F121A 50%, #07090D 100%);
  padding: max(36px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  color: #F4F5F7;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.nb-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* --- Başlık Alanı --- */
.nb-header {
  text-align: center;
  margin-bottom: 28px;
}

.nb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blk-accent, #D4AF37);
  margin-bottom: 10px;
}

.nb-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #F5EEDB;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.22);
}

.nb-header-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px auto 0;
  max-width: 220px;
}

.nb-orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6));
}

.nb-header-ornament .nb-orn-line:last-child {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.6), transparent);
}

.nb-header-ornament i {
  color: var(--blk-accent, #D4AF37);
  font-size: 0.82rem;
}

/* ============================================================
   KİTAP SAHNESİ & SABİT BOYUTLU DERİ CİLT
   ============================================================ */
.nb-book-stage {
  perspective: 1600px;
  max-width: 580px;
  margin: 0 auto;
}

.nb-book {
  position: relative;
  width: 100%;
  height: 640px;
  min-height: 640px;
  max-height: 640px;
  border-radius: 12px 22px 22px 12px;
  background: linear-gradient(135deg, #18130B 0%, #291F12 40%, #1c150c 70%, #120D07 100%);
  padding: 14px 14px 14px 28px;
  box-sizing: border-box;
  box-shadow:
    0 35px 85px -15px rgba(0, 0, 0, 0.9),
    0 0 0 1.5px rgba(212, 175, 55, 0.38),
    inset 0 0 0 5px #151009,
    inset 0 0 0 6.5px rgba(212, 175, 55, 0.32);
}

/* Sol Deri Sırt */
.nb-book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  z-index: 4;
  background: linear-gradient(90deg, #100C07 0%, #2A2012 35%, #18120A 75%, #0B0805 100%);
  border-radius: 12px 0 0 12px;
  box-shadow:
    inset 1px 0 0 rgba(212, 175, 55, 0.4),
    2px 0 6px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 24px 0;
  box-sizing: border-box;
}

.nb-spine-band {
  display: block;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #3D2D15 0%, #6E5325 45%, #C9A24B 50%, #6E5325 55%, #231A0D 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border-radius: 1px;
}

/* Katmanlı Parşömen Sayfa Deste Kenarları */
.nb-page-edge {
  position: absolute;
  inset: 12px -10px -14px 22px;
  z-index: 1;
  border-radius: 4px 16px 16px 4px;
  background: repeating-linear-gradient(90deg, #E6DBC0 0px, #E6DBC0 2px, #CBBDA0 3px, #DACDB1 4px, #F0E6D0 5px);
  box-shadow:
    2px 2px 0 #D5C7A7,
    4px 4px 0 #C4B594,
    6px 6px 0 #B3A381,
    9px 9px 22px rgba(0, 0, 0, 0.6);
  opacity: 0.85;
}

/* ============================================================
   ESKİTİLMİŞ PARŞÖMEN SAYFASI (Fixed Page Bounds)
   ============================================================ */
.nb-page {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.08), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(185, 130, 30, 0.09), transparent 50%),
    radial-gradient(circle at 50% 50%, #FCF8EE 0%, #F6ECDA 65%, #EBDDC0 100%);
  border-radius: 3px 14px 14px 3px;
  padding: 24px 20px 24px 28px;
  color: #241D12;
  box-shadow:
    inset 0 0 35px rgba(180, 135, 60, 0.14),
    inset 0 0 0 1px rgba(166, 124, 40, 0.45),
    inset 0 0 0 6px #FAF2E1,
    inset 0 0 0 7.5px rgba(166, 124, 40, 0.35),
    -5px 0 14px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: left center;
  animation: nbPageFlipNext 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Sol Cilt Katlantı Gölgesi */
.nb-page::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.04) 50%, transparent 100%);
  pointer-events: none;
  border-radius: 3px 0 0 3px;
  z-index: 5;
}

/* Sayfa İç Bordürü */
.nb-page-inner-border {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(166, 124, 40, 0.32);
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}

/* Altın Varak Köşebentler */
.nb-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 6;
}

.nb-corner-tl { top: 8px; left: 8px; border-top: 2.5px solid #C9A24B; border-left: 2.5px solid #C9A24B; border-top-left-radius: 4px; }
.nb-corner-tr { top: 8px; right: 8px; border-top: 2.5px solid #C9A24B; border-right: 2.5px solid #C9A24B; border-top-right-radius: 6px; }
.nb-corner-bl { bottom: 8px; left: 8px; border-bottom: 2.5px solid #C9A24B; border-left: 2.5px solid #C9A24B; border-bottom-left-radius: 4px; }
.nb-corner-br { bottom: 8px; right: 8px; border-bottom: 2.5px solid #C9A24B; border-right: 2.5px solid #C9A24B; border-bottom-right-radius: 6px; }

.nb-corner::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #C9A24B;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(212, 175, 55, 0.6);
}

.nb-corner-tl::after { top: 2px; left: 2px; }
.nb-corner-tr::after { top: 2px; right: 2px; }
.nb-corner-bl::after { bottom: 2px; left: 2px; }
.nb-corner-br::after { bottom: 2px; right: 2px; }

/* 3D Sayfa Çevirme Animasyonları */
@keyframes nbPageFlipNext {
  0% { opacity: 0.2; transform: rotateY(16deg) translateX(20px) scale(0.98); }
  100% { opacity: 1; transform: rotateY(0deg) translateX(0) scale(1); }
}

.nb-page.nb-page-back {
  animation-name: nbPageFlipPrev;
}

@keyframes nbPageFlipPrev {
  0% { opacity: 0.2; transform: rotateY(-16deg) translateX(-20px) scale(0.98); }
  100% { opacity: 1; transform: rotateY(0deg) translateX(0) scale(1); }
}

@keyframes nbCoverOpenFlip {
  0% { transform: rotateY(0deg) scale(1); opacity: 1; }
  100% { transform: rotateY(-32deg) translateX(-25px) scale(0.96); opacity: 0.15; }
}

.nb-page.nb-cover-opening {
  animation: nbCoverOpenFlip 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

/* Sayfa İçi Kaydırma Çerçevesi (Fixed Viewport Inside Page) */
.nb-page-scroll {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 6px 4px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 124, 40, 0.4) transparent;
}

.nb-page-scroll::-webkit-scrollbar {
  width: 5px;
}
.nb-page-scroll::-webkit-scrollbar-thumb {
  background: rgba(166, 124, 40, 0.4);
  border-radius: 4px;
}

/* ============================================================
   KAPAK GÖRÜNÜMÜ
   ============================================================ */
.nb-cover {
  text-align: center;
  margin: auto 0;
  padding: 10px 6px;
  position: relative;
  z-index: 3;
}

.nb-cover-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: #8A6D1F;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.nb-cover-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: #231B0E;
  margin: 0 0 12px;
  line-height: 1.25;
}

.nb-cover-names {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #735310;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nb-cover-amp i {
  font-size: 0.88rem;
  color: #C9A24B;
}

.nb-cover-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 16px;
  max-width: 180px;
}

.nb-cover-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 124, 40, 0.55));
}
.nb-cover-ornament span:last-child {
  background: linear-gradient(90deg, rgba(166, 124, 40, 0.55), transparent);
}
.nb-cover-ornament i {
  color: #991B1B;
  font-size: 0.75rem;
}

.nb-wax-seal-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-wax-ribbon {
  position: absolute;
  top: 44px;
  width: 18px;
  height: 38px;
  background: linear-gradient(180deg, #991B1B 0%, #701111 75%, #450A0A 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  z-index: 1;
}

.nb-wax-ribbon-left { left: 22px; transform: rotate(-14deg); }
.nb-wax-ribbon-right { right: 22px; transform: rotate(14deg); }

.nb-wax-seal {
  width: 74px;
  height: 74px;
  position: relative;
  z-index: 2;
  border-radius: 49% 51% 48% 52% / 51% 48% 52% 49%;
  background: radial-gradient(circle at 34% 28%, #D82B2B 0%, #991B1B 45%, #631010 80%, #3B0606 100%);
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.45),
    inset 0 -4px 8px rgba(0, 0, 0, 0.65),
    0 10px 22px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-wax-seal-inner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-wax-seal-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px dashed rgba(245, 238, 219, 0.6);
  background: radial-gradient(circle at 35% 35%, #881313 0%, #540A0A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #F5EEDB;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.nb-cover-text {
  color: #594A28;
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto 20px;
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.nb-cover-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border-radius: 40px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #F5EEDB;
  background: linear-gradient(135deg, #241D12 0%, #3D3019 50%, #1A140B 100%);
  box-shadow: 0 10px 24px rgba(36, 29, 18, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nb-cover-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(36, 29, 18, 0.55), 0 0 16px rgba(212, 175, 55, 0.25);
}

.nb-cover-open i {
  color: var(--blk-accent, #D4AF37);
}

/* ============================================================
   POLAROID FOTOĞRAF ÇERÇEVESİ (Rock-Solid Fixed Height)
   ============================================================ */
.nb-polaroid-frame {
  position: relative;
  background: #FCF9F2;
  padding: 8px 8px 12px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(42, 36, 22, 0.15), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(166, 124, 40, 0.25);
  box-sizing: border-box;
  margin: auto 0;
  width: 100%;
}

.nb-polaroid-frame.nb-polaroid-compose {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.nb-photo-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.nb-photo-tl { top: 4px; left: 4px; border-top: 2px solid #C9A24B; border-left: 2px solid #C9A24B; }
.nb-photo-tr { top: 4px; right: 4px; border-top: 2px solid #C9A24B; border-right: 2px solid #C9A24B; }
.nb-photo-bl { bottom: 4px; left: 4px; border-bottom: 2px solid #C9A24B; border-left: 2px solid #C9A24B; }
.nb-photo-br { bottom: 4px; right: 4px; border-bottom: 2px solid #C9A24B; border-right: 2px solid #C9A24B; }

.nb-polaroid-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
  overflow: hidden;
  background: #EAE3D2;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nb-photo-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
  cursor: zoom-in;
}

.nb-polaroid-body {
  padding: 12px 6px 0;
  text-align: center;
}

.nb-polaroid-caption {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #241D12;
  margin: 0 0 6px;
  line-height: 1.35;
}

.nb-polaroid-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #7A6635;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}

/* ============================================================
   EL YAZISI VE ÇİZİM SAYFASI (Doğrudan Defter Sayfasında)
   ============================================================ */
.nb-drawing-page {
  margin: auto 0;
  width: 100%;
  text-align: center;
  background: transparent;
}

.nb-drawing-frame {
  position: relative;
  width: 100%;
  height: 380px;
  min-height: 320px;
  max-height: 420px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.nb-pg-drawing-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

/* ============================================================
   SÖZLEŞME MADDELERİ FERMANI (Doğrudan Parşömen Üzerinde)
   ============================================================ */
.nb-ferman-container {
  width: 100%;
  margin: 0;
  padding: 4px 0;
  background: transparent;
}

.nb-ferman-header {
  text-align: center;
  margin-bottom: 14px;
}

.nb-ferman-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8A6D1F;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.nb-ferman-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #241D12;
  margin: 0 0 4px;
}

.nb-ferman-meta {
  font-size: 0.8rem;
  color: #7A6635;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}

.nb-ferman-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nb-ferman-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(166, 124, 40, 0.28);
  border-radius: 0;
  box-shadow: none;
}

.nb-ferman-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Cinzel', serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: #8A6D1F;
  white-space: nowrap;
  padding-top: 2px;
}

.nb-ferman-text {
  flex: 1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #241D12;
  line-height: 1.5;
}

.nb-ferman-wax-mark {
  color: #991B1B;
  font-size: 0.82rem;
  opacity: 0.75;
  padding-top: 2px;
}

/* ============================================================
   AŞK MEKTUBU / YEMİNLER (Doğrudan Parşömen Satırlarında)
   ============================================================ */
.nb-letter-paper {
  width: 100%;
  margin: 0;
  padding: 4px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.nb-letter-header {
  text-align: center;
  margin-bottom: 12px;
}

.nb-letter-crest {
  color: #8A6D1F;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.nb-letter-kicker {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8A6D1F;
  margin-bottom: 4px;
}

.nb-letter-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #241D12;
  margin: 0;
}

.nb-letter-body {
  background:
    repeating-linear-gradient(transparent, transparent 31px, rgba(166, 124, 40, 0.2) 31px, rgba(166, 124, 40, 0.2) 32px);
  padding: 4px 6px;
  margin-bottom: 14px;
}

.nb-letter-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #241D12;
  font-size: 1.15rem;
  line-height: 32px;
  margin: 0;
  white-space: pre-wrap;
}

.nb-letter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(166, 124, 40, 0.3);
  padding-top: 10px;
}

.nb-stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #991B1B;
  border: 1px solid rgba(153, 27, 27, 0.35);
  background: rgba(153, 27, 27, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
}

.nb-letter-signature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #735310;
}

.nb-sig-details {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.nb-sig-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.nb-sig-name {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
}

/* ============================================================
   DOĞRUDAN SAYFA ÜZERİNDE YAZMA / ÇİZME PANELİ (In-Book Compose)
   ============================================================ */
.nb-inbook-compose-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.nb-inbook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(166, 124, 40, 0.28);
}

.nb-inbook-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #8A6D1F;
}

.nb-inbook-author-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #241D12;
  background: rgba(212, 175, 55, 0.15);
  padding: 2px 10px;
  border-radius: 12px;
}

/* Sekmeler */
.nb-inbook-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.nb-inbook-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid rgba(166, 124, 40, 0.35);
  background: rgba(212, 175, 55, 0.08);
  color: #6E5A2D;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.nb-inbook-tab.active {
  background: linear-gradient(135deg, #241D12, #3D3019);
  color: #F5EEDB;
  border-color: #241D12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Polaroid Canlı Ekleme & Anlık Kamera */
.nb-photo-slot {
  cursor: pointer;
  transition: background 0.2s;
  border: 1.5px dashed rgba(166, 124, 40, 0.45);
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.06);
  position: relative;
}

.nb-photo-empty-dual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.nb-photo-choice-btn {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 8px;
  border: 1px dashed rgba(166, 124, 40, 0.45);
  background: rgba(212, 175, 55, 0.08);
  color: #6E5A2D;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}

.nb-photo-choice-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: #8A6D1F;
  transform: translateY(-2px);
}

.nb-photo-choice-btn i {
  font-size: 1.6rem;
  color: #8A6D1F;
}

.nb-photo-choice-btn strong {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: #241D12;
}

.nb-photo-choice-btn small {
  font-size: 0.68rem;
  color: #8A6D1F;
}

.nb-photo-choice-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: 'Cinzel', serif;
  color: #8A6D1F;
  text-transform: uppercase;
  opacity: 0.7;
}

.nb-photo-change-group {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.nb-photo-change-badge {
  background: rgba(18, 13, 7, 0.85);
  color: #F5EEDB;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.nb-photo-change-badge:hover {
  background: #241D12;
  border-color: #D4AF37;
  transform: scale(1.05);
}

/* Canlı Kamera Görünümü (In-Slot Live Camera Viewfinder) */
.nb-live-cam-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: #000;
}

.nb-live-cam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nb-live-cam-controls {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 6;
}

.nb-cam-shutter-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FFF;
  background: linear-gradient(135deg, #F5EEDB, #D4AF37);
  color: #120D07;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s;
}

.nb-cam-shutter-btn:hover {
  transform: scale(1.1);
}

.nb-cam-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
  color: #FFF;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.nb-inbook-caption-input,
.nb-inbook-title-input {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(166, 124, 40, 0.35);
  padding: 6px 4px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #241D12;
  text-align: center;
  transition: border-color 0.2s;
}

.nb-inbook-caption-input:focus,
.nb-inbook-title-input:focus {
  outline: none;
  border-color: #8A6D1F;
}

.nb-inbook-caption-input::placeholder,
.nb-inbook-title-input::placeholder {
  color: #9C8963;
  font-size: 0.84rem;
  font-style: italic;
}

/* Sözleşme Satırları */
.nb-inbook-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.nb-inbook-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(166, 124, 40, 0.32);
  border-radius: 0;
  padding: 6px 2px;
}

.nb-inbook-item-roman {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8A6D1F;
  white-space: nowrap;
}

.nb-inbook-item-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: #241D12;
  padding: 4px 0;
}

.nb-inbook-item-input:focus {
  outline: none;
}

.nb-inbook-item-del {
  background: transparent;
  border: none;
  color: #991B1B;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
}

.nb-inbook-add-item-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px dashed rgba(166, 124, 40, 0.4);
  background: rgba(212, 175, 55, 0.08);
  color: #6E5A2D;
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.nb-inbook-add-item-btn:hover {
  background: rgba(212, 175, 55, 0.16);
  color: #241D12;
}

/* Mektup Textarea */
.nb-inbook-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 220px;
  background:
    repeating-linear-gradient(transparent, transparent 31px, rgba(166, 124, 40, 0.22) 31px, rgba(166, 124, 40, 0.22) 32px);
  border: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12rem;
  line-height: 32px;
  color: #241D12;
  padding: 4px 6px;
  resize: vertical;
}

.nb-inbook-textarea:focus {
  outline: none;
}

.nb-inbook-textarea::placeholder {
  color: #9C8963;
  font-style: italic;
}

/* Çizim Tuvali & Araçları (Parşömen Üzerinde Çizim) */
.nb-draw-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(166, 124, 40, 0.3);
  border-radius: 8px;
}

.nb-ink-group,
.nb-size-group,
.nb-draw-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nb-ink {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}

.nb-ink-active {
  transform: scale(1.2);
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px #241D12;
}

.nb-draw-sep {
  width: 1px;
  height: 18px;
  background: rgba(166, 124, 40, 0.25);
}

.nb-size,
.nb-draw-tool-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(166, 124, 40, 0.35);
  background: rgba(212, 175, 55, 0.12);
  color: #6E5A2D;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nb-size.nb-size-active {
  background: #241D12;
  color: #F5EEDB;
  border-color: #241D12;
}

.nb-inbook-canvas-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  min-height: 280px;
  max-height: 340px;
  border-radius: 6px;
  border: 1px dashed rgba(166, 124, 40, 0.35);
  background: transparent;
  overflow: hidden;
}

.nb-inbook-canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  display: block;
  background: transparent;
}

.nb-inbook-canvas-hint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #9C8963;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
  padding: 14px;
}

.nb-inbook-canvas-hint i {
  font-size: 1.3rem;
  color: #B89E5F;
}

/* Sayfa Mühürleme Butonu */
.nb-inbook-seal-row {
  margin-top: 4px;
  text-align: center;
}

.nb-seal-stamp-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #991B1B 0%, #701111 60%, #450A0A 100%);
  color: #FFF3D6;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(153, 27, 27, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nb-seal-stamp-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 26px rgba(153, 27, 27, 0.55);
}

.nb-seal-stamp-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Sayfa İçi Taraf Seçimi (Auth) */
.nb-inbook-auth {
  text-align: center;
  margin: auto 0;
  padding: 10px 4px;
  background: transparent;
}

.nb-auth-crest {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.14);
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #8A6D1F;
  margin: 0 auto 10px;
}

.nb-auth-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.2rem;
  color: #241D12;
  margin: 0 0 6px;
}

.nb-auth-desc {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  color: #6E5A2D;
  margin: 0 0 16px;
}

.nb-inbook-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.nb-inbook-side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1.5px solid rgba(166, 124, 40, 0.35);
  background: rgba(212, 175, 55, 0.08);
  color: #241D12;
  cursor: pointer;
  transition: all 0.2s;
}

.nb-inbook-side-btn:hover,
.nb-inbook-side-btn.active {
  background: linear-gradient(135deg, #241D12, #3D3019);
  color: #F5EEDB;
  border-color: #241D12;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nb-inbook-avatar {
  font-size: 1rem;
  color: var(--blk-accent, #D4AF37);
}

.nb-inbook-name {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
}

.nb-inbook-pin-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.nb-inbook-pin-icon {
  color: #8A6D1F;
}

.nb-inbook-pin-input {
  width: 140px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(166, 124, 40, 0.35);
  background: rgba(212, 175, 55, 0.08);
  text-align: center;
  font-size: 0.95rem;
  color: #241D12;
}

.nb-inbook-pin-input:focus {
  outline: none;
  border-color: #8A6D1F;
}

.nb-inbook-auth-error {
  color: #991B1B;
  font-size: 0.8rem;
  margin-top: 8px;
}

/* Sayfa Silme Butonu */
.nb-pg-del {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(185, 28, 28, 0.25);
  cursor: pointer;
  color: #B91C1C;
  background: rgba(185, 28, 28, 0.08);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.nb-page.nb-own-page .nb-pg-del {
  display: flex;
}

.nb-pg-del:hover {
  background: rgba(185, 28, 28, 0.18);
  transform: scale(1.05);
}

/* ============================================================
   NAVİGASYON & EYLEM ÇUBUĞU
   ============================================================ */
.nb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.nb-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: #F5EEDB;
  background: linear-gradient(135deg, #1A1E29, #11141C);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.nb-nav-btn:hover {
  background: linear-gradient(135deg, #2A2F3D, #1A1E29);
  border-color: var(--blk-accent, #D4AF37);
  transform: scale(1.08);
}

.nb-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.nb-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #F5EEDB;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  min-width: 130px;
  justify-content: center;
}

.nb-counter-badge i {
  color: var(--blk-accent, #D4AF37);
  font-size: 0.78rem;
}

.nb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.nb-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.nb-tool-gold {
  color: #120D07;
  border: none;
  background: linear-gradient(135deg, #F5EEDB 0%, #D4AF37 55%, #996515 100%);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.32);
}

.nb-tool-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.42);
}

.nb-tool-ghost {
  color: #F5EEDB;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.nb-tool-ghost:hover {
  border-color: var(--blk-accent, #D4AF37);
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.nb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.nb-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(12px);
}

.nb-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
}

.nb-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: transparent;
  border: none;
  color: #F5EEDB;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
}

.nb-lightbox-card {
  position: relative;
  background: #FFFFFF;
  padding: 14px 14px 20px;
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.nb-lightbox-img-wrap {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-lightbox-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.nb-lightbox-body {
  text-align: center;
  padding-top: 14px;
}

.nb-lightbox-caption {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #241D12;
  margin: 0 0 6px;
}

.nb-lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #7A6635;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE & MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .blk-wrap[data-block="couple-notebook"] {
    padding: max(28px, env(safe-area-inset-top)) 12px max(36px, env(safe-area-inset-bottom));
  }

  .nb-inner {
    width: 100%;
    max-width: 100%;
  }

  .nb-book-stage {
    width: 100%;
    max-width: 100%;
  }

  .nb-book {
    height: auto;
    min-height: 520px;
    max-height: calc(100svh - 130px);
    padding: 10px 8px 10px 18px;
    border-radius: 10px 16px 16px 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .nb-page {
    padding: 16px 12px 16px 16px;
    border-radius: 2px 10px 10px 2px;
  }

  .nb-cover-title {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  }

  .nb-cover-names {
    font-size: 1.25rem;
  }

  .nb-polaroid-img-wrap {
    height: 190px;
    min-height: 190px;
    max-height: 190px;
  }

  .nb-drawing-frame,
  .nb-inbook-canvas-wrap {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
  }

  .nb-inbook-sides {
    grid-template-columns: 1fr;
  }

  .nb-inbook-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .nb-counter-badge {
    min-width: auto;
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .nb-nav-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .nb-toolbar {
    gap: 8px;
  }

  .nb-tool {
    padding: 10px 16px;
    font-size: 0.78rem;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .nb-book {
    min-height: 480px;
    padding: 8px 6px 8px 14px;
  }
  .nb-page {
    padding: 12px 8px 12px 12px;
  }
}

